From 294fc7942578e41d85a98bf5e5c6cfc7c8005d9f Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 10 Jan 2025 16:51:04 +0700 Subject: [PATCH 001/879] no message --- .../Reports/ProbationReportRepository.cs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 68857412..29de906b 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -148,12 +148,8 @@ namespace BMA.EHR.Application.Repositories.Reports var training_seminar = evaluate_record.result.evaluate.training_seminar == "1" ? "ðŸ—đ āļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāđāļĨāđ‰āļ§ â˜ āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢ" : "☐ āļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāđāļĨāđ‰āļ§ ðŸ—đ āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢ"; var other_training = evaluate_record.result.evaluate.other_training == "1" ? "ðŸ—đ āļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāđāļĨāđ‰āļ§ â˜ āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢ" : "☐ āļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāđāļĨāđ‰āļ§ ðŸ—đ āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢ"; - var expects = evaluate_record.result.evaluate != null && evaluate_record.result.evaluate.achievements.evaluate_expect_level - ? evaluate_record.result.evaluate.achievements.evaluate_expect_level - : null; - var outputs = evaluate_record.result.evaluate != null && evaluate_record.result.evaluate.achievements.evaluate_output_level - ? evaluate_record.result.evaluate.achievements.evaluate_output_level - : null; + var expects = evaluate_record?.result?.evaluate?.achievements?.evaluate_expect_level ?? null; + var outputs = evaluate_record?.result?.evaluate?.achievements?.evaluate_output_level ?? null; var knows = evaluate_record.result.evaluate != null ? new { @@ -363,13 +359,7 @@ namespace BMA.EHR.Application.Repositories.Reports EvaluateDateFinish = string.IsNullOrEmpty(evaluate_record.result.evaluate.date_finish.ToString()) ? string.Empty : evaluate_record.result.evaluate.date_finish.ToThaiFullDate().ToString().ToThaiNumber(), Role = evaluate_record.result.evaluate.role == "mentor" ? "āļœāļđāđ‰āļ”āļđāđāļĨāļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ" : "āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", Expects = expects, - ExpectDesc = evaluate_record.result.evaluate != null && evaluate_record.result.evaluate.achievements.Count > 0 - ? evaluate_record.result.evaluate.achievements[0].evaluate_expect_desc - : string.Empty, Outputs = outputs, - OutputDesc = evaluate_record.result.evaluate != null && evaluate_record.result.evaluate.achievements.Count > 0 - ? evaluate_record.result.evaluate.achievements[0].evaluate_output_desc - : string.Empty, AchievementOtherDesc = evaluate_record.result.evaluate.achievement_other_desc, AchievementStrengthDesc = evaluate_record.result.evaluate.achievement_strength_desc, AchievementImproveDesc = evaluate_record.result.evaluate.achievement_improve_desc, From 223e8761525562de7b9e3e00564556a09d7f5278 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 10 Jan 2025 18:31:27 +0700 Subject: [PATCH 002/879] add law & skill --- .../Reports/ProbationReportRepository.cs | 11 +++++++++++ .../Responses/ProbationAssignResponse.cs | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 29de906b..102c256d 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -89,6 +89,17 @@ namespace BMA.EHR.Application.Repositories.Reports output_desc = string.IsNullOrEmpty(x.output_desc) ? string.Empty : x.output_desc.ToThaiNumber(), }).ToList(); + var skills = probation_assign.result.skills.Select(x => new + { + id = string.IsNullOrEmpty(x.id.ToString()) ? string.Empty : x.id.ToString().ToThaiNumber(), + title = string.IsNullOrEmpty(x.title) ? string.Empty : x.title.ToThaiNumber(), + description = string.IsNullOrEmpty(x.description) ? string.Empty : x.description.ToThaiNumber(), + }).ToList(); + + var laws = probation_assign.result.laws.Where(x => x.selected == true).Select((x, Index) => new + { + title = string.IsNullOrEmpty(x.description) ? string.Empty : $"{Index + 1}. {x.description.ToThaiNumber()}", + }).ToList(); return new { diff --git a/BMA.EHR.Application/Responses/ProbationAssignResponse.cs b/BMA.EHR.Application/Responses/ProbationAssignResponse.cs index a96a9204..1a5a0e15 100644 --- a/BMA.EHR.Application/Responses/ProbationAssignResponse.cs +++ b/BMA.EHR.Application/Responses/ProbationAssignResponse.cs @@ -15,6 +15,8 @@ public List knowledges { get; set; } public List competencys { get; set; } public List outputs { get; set; } + public List laws { get; set; } + public List skills { get; set; } } public class Profile @@ -73,6 +75,20 @@ public string description { get; set; } = string.Empty; } + public class Skill + { + public int id { get; set; } + public string title { get; set; } = string.Empty; + public string description { get; set; } = string.Empty; + } + + public class Law + { + public int id { get; set; } + public string description { get; set; } = string.Empty; + public bool selected { get; set; } + } + public class Competency { public string id { get; set; } = string.Empty; From b636233bfd8417da2c3d92b6b2aa3fff2b813114 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Fri, 10 Jan 2025 19:26:19 +0700 Subject: [PATCH 003/879] checkpoint #852 (1,2) --- .../Reports/InsigniaReportRepository.cs | 310 +++++++++++++++--- .../Controllers/InsigniaReportController.cs | 102 +++--- .../GetInsigniaDetailByNodeReportDto.cs | 2 +- 3 files changed, 314 insertions(+), 100 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs index fb09d9ab..da4809da 100644 --- a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs @@ -3,6 +3,7 @@ using BMA.EHR.Application.Common.Interfaces; using BMA.EHR.Application.Repositories.MessageQueue; using BMA.EHR.Application.Responses; using BMA.EHR.Domain.Extensions; +using BMA.EHR.Domain.Models.Commands.Core; using BMA.EHR.Domain.Models.HR; using BMA.EHR.Domain.Models.Insignias; using BMA.EHR.Domain.Models.MetaData; @@ -14,7 +15,9 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Metadata; using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; +using Newtonsoft.Json.Linq; using System.Net; +using System.Net.Http.Headers; namespace BMA.EHR.Application.Repositories.Reports { @@ -743,31 +746,81 @@ namespace BMA.EHR.Application.Repositories.Reports } //44-āļšāļąāļāļŠāļĩāđāļŠāļ”āļ‡āļˆāļģāļ™āļ§āļ™āļŠāļąāđ‰āļ™āļ•āļĢāļēāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ - public async Task GetSummaryCoinReport(Guid id) + public async Task GetSummaryCoinReport(Guid id, string type = null, int node = -1, Guid nodeId = default) { var period = await _dbContext.Set() .FirstOrDefaultAsync(x => x.Id == id); if (period == null) throw new Exception(GlobalMessages.InsigniaPeriodNotFound); - var data_insignia = await _dbContext.Set() - //.Include(x => x.Profile) - .Where(x => x.Request.Period.Id == period.Id) - .Where(x => x.IsApprove == true) - .Where(x => x.Status == "PENDING") - .Where(x => x.RequestInsignia.InsigniaType != null) - .Where(x => x.RequestInsignia.InsigniaType.Name == "āđ€āļŦāļĢāļĩāļĒāļāļšāļģāđ€āļŦāļ™āđ‡āļˆāđƒāļ™āļĢāļēāļŠāļāļēāļĢ") - .Select(x => new - { - //Gendor = x.Profile.Gender == null ? null : x.Profile.Gender.Name, - Gendor = x.Gender, //_userProfileRepository.GetOfficerProfileById(x.ProfileId, AccessToken).Gender ?? "", - RequestInsigniaName = x.RequestInsignia.Name, - InsigniaInitial = $"{x.RequestInsignia.Name}({x.RequestInsignia.ShortName})", - OcId = x.Request.OrganizationId - }) - .ToListAsync(); + /* var data_insignia = await _dbContext.Set() + //.Include(x => x.Profile) + .Where(x => x.Request.Period.Id == period.Id) + .Where(x => x.IsApprove == true) + .Where(x => x.Status == "PENDING") + .Where(x => x.RequestInsignia.InsigniaType != null) + .Where(x => x.RequestInsignia.InsigniaType.Name == "āđ€āļŦāļĢāļĩāļĒāļāļšāļģāđ€āļŦāļ™āđ‡āļˆāđƒāļ™āļĢāļēāļŠāļāļēāļĢ") + .Select(x => new + { + //Gendor = x.Profile.Gender == null ? null : x.Profile.Gender.Name, + Gendor = x.Gender, //_userProfileRepository.GetOfficerProfileById(x.ProfileId, AccessToken).Gender ?? "", + RequestInsigniaName = x.RequestInsignia.Name, + InsigniaInitial = $"{x.RequestInsignia.Name}({x.RequestInsignia.ShortName})", + OcId = x.Request.OrganizationId + }) + .ToListAsync();*/ + var data_insigniaQuery = _dbContext.Set() + .Where(x => x.Request.Period.Id == period.Id) + .Where(x => x.IsApprove == true) + .Where(x => x.Status == "PENDING") + .Where(x => x.RequestInsignia.InsigniaType != null) + .Where(x => x.RequestInsignia.InsigniaType.Name == "āđ€āļŦāļĢāļĩāļĒāļāļšāļģāđ€āļŦāļ™āđ‡āļˆāđƒāļ™āļĢāļēāļŠāļāļēāļĢ"); - var insignia = (from r in data_insignia + if (type == "officer") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "officer"); + } + else if (type == "employee") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "employee"); + } + + switch (node) + { + case 0: + data_insigniaQuery = data_insigniaQuery.Where(r => r.RootId == nodeId); + break; + + case 1: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child1Id == nodeId); + break; + + case 2: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child2Id == nodeId); + break; + + case 3: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child3Id == nodeId); + break; + + case 4: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child4Id == nodeId); + break; + + default: + break; + } + var data = await data_insigniaQuery + .Select(x => new + { + Gendor = x.Gender, // Gender as is, directly from x.Gender + RequestInsigniaName = x.RequestInsignia.Name, // Name of the Insignia + InsigniaInitial = $"{x.RequestInsignia.Name}({x.RequestInsignia.ShortName})", // Insignia's full name and short name + OcId = x.Request.OrganizationId // Organization ID + }) + .ToListAsync(); + + var insignia = (from r in data group r by new { OcId = r.OcId, InsigniaInitial = r.InsigniaInitial } into g select new { @@ -832,7 +885,7 @@ namespace BMA.EHR.Application.Repositories.Reports } //45-āļšāļąāļāļŠāļĩāđāļŠāļ”āļ‡āļĢāļēāļĒāļŠāļ·āđˆāļ­āļœāļđāđ‰āļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē - public async Task GetCoinReport(Guid id) + public async Task GetCoinReport(Guid id, string type = null, int node = -1, Guid nodeId = default) { var period = await _dbContext.Set() .FirstOrDefaultAsync(x => x.Id == id); @@ -856,45 +909,89 @@ namespace BMA.EHR.Application.Repositories.Reports && r.Status == "PENDING" && r.RequestInsignia.InsigniaType != null && r.RequestInsignia.InsigniaType.Name != "āđ€āļŦāļĢāļĩāļĒāļāļšāļģāđ€āļŦāļ™āđ‡āļˆāđƒāļ™āļĢāļēāļŠāļāļēāļĢ" - select new + select new { Male = r.Gender == "āļŠāļēāļĒ" ? 1 : 0, Female = r.Gender == "āļŦāļāļīāļ‡" ? 1 : 0, }) .Distinct() .ToList(); - var data = (from r in await _dbContext.Set() - //.Include(x => x.Profile) - //.ThenInclude(x => x.Gender) - //.Include(x => x.Profile) - //.ThenInclude(x => x.Prefix) - .Include(x => x.Request) - .ThenInclude(x => x.Period) - .Include(x => x.Request) - //.ThenInclude(x => x.Organization) - .Include(x => x.RequestInsignia) - .ThenInclude(x => x.InsigniaType) - .ToListAsync() - where r.Request.Period == period - && r.IsApprove == true - && r.Status == "PENDING" - && r.RequestInsignia.InsigniaType != null - && r.RequestInsignia.InsigniaType.Name != "āđ€āļŦāļĢāļĩāļĒāļāļšāļģāđ€āļŦāļ™āđ‡āļˆāđƒāļ™āļĢāļēāļŠāļāļēāļĢ" - select new - { - InsigniaInitial = r.RequestInsignia.ShortName, - InsigniaName = r.RequestInsignia.Name, - ProfileId = r.ProfileId, - FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - // $"{r.Profile.Prefix?.Name}{r.Profile.FirstName} {r.Profile.LastName}", - Gender = r.Gender, - Male = gender.Sum(x => x.Male), - Female = gender.Sum(x => x.Female), - InsigniaId = r.RequestInsignia.Id, - OCName = _userProfileRepository.GetOc(r.Request.OrganizationId, 0, AccessToken).Root, //_organizationCommonRepository.GetOrganizationNameFullPath(g.Key.OcId, false, false), - }) - .Distinct() - .ToList(); + var dataQuery = _dbContext.Set() + .Include(x => x.Request) + .ThenInclude(x => x.Period) + .Include(x => x.Request) + /*.ThenInclude(x => x.Organization)*/ + .Include(x => x.RequestInsignia) + .ThenInclude(x => x.InsigniaType) + .Where(r => r.Request.Period == period + && r.IsApprove == true + && r.Status == "PENDING" + && r.RequestInsignia.InsigniaType != null + && r.RequestInsignia.InsigniaType.Name != "āđ€āļŦāļĢāļĩāļĒāļāļšāļģāđ€āļŦāļ™āđ‡āļˆāđƒāļ™āļĢāļēāļŠāļāļēāļĢ"); + + if (type == "officer") + { + dataQuery = dataQuery.Where(r => r.ProfileType == "officer"); + } + else if (type == "employee") + { + dataQuery = dataQuery.Where(r => r.ProfileType == "employee"); + } + + switch (node) + { + case 0: + dataQuery = dataQuery.Where(r => r.RootId == nodeId); + break; + + case 1: + dataQuery = dataQuery.Where(r => r.Child1Id == nodeId); + break; + + case 2: + dataQuery = dataQuery.Where(r => r.Child2Id == nodeId); + break; + + case 3: + dataQuery = dataQuery.Where(r => r.Child3Id == nodeId); + break; + + case 4: + dataQuery = dataQuery.Where(r => r.Child4Id == nodeId); + break; + + default: + break; + } + + // Grouping by ProfileId and InsigniaId, and calculating the sum for Male and Female + var data = await dataQuery + .GroupBy(r => new + { + r.RequestInsignia.ShortName, + r.RequestInsignia.Name, + r.ProfileId, + r.Prefix, + r.FirstName, + r.LastName, + r.Gender, + r.RequestInsignia.Id, + r.Request.OrganizationId + }) + .Select(group => new + { + InsigniaInitial = group.Key.ShortName, + InsigniaName = group.Key.Name, + ProfileId = group.Key.ProfileId, + FullName = $"{group.Key.Prefix}{group.Key.FirstName} {group.Key.LastName}", + Gender = group.Key.Gender, + Male = group.Count(r => r.Gender == "Male"), // Count male entries + Female = group.Count(r => r.Gender == "Female"), // Count female entries + InsigniaId = group.Key.Id, + OCName = _userProfileRepository.GetOc(group.Key.OrganizationId, 0, AccessToken).Root + }) + .Distinct() + .ToListAsync(); // loop to add temp row with 50 rows per page var insigniaList = data.Select(x => new { InsigniaId = x.InsigniaId, InsigniaInitial = x.InsigniaInitial, InsigniaName = x.InsigniaName }) @@ -959,6 +1056,115 @@ namespace BMA.EHR.Application.Repositories.Reports return s_data; } + //47-āļšāļąāļāļŠāļĩāļĢāļ°āļ”āļąāļšāļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ + public async Task GetEvaluationResultReport(Guid id, string type = null, int node = -1, Guid nodeId = default) + { + var period = await _dbContext.Set() + .FirstOrDefaultAsync(x => x.Id == id); + if (period == null) + throw new Exception(GlobalMessages.InsigniaPeriodNotFound); + + var data_insigniaQuery = _dbContext.Set() + .Where(x => x.Request.Period.Id == period.Id) + .Where(x => x.IsApprove == true) + .Where(x => x.Status == "PENDING") + .Where(x => x.RequestInsignia.InsigniaType != null); + /*.Where(x => x.RequestInsignia.InsigniaType.Name == "āđ€āļŦāļĢāļĩāļĒāļāļšāļģāđ€āļŦāļ™āđ‡āļˆāđƒāļ™āļĢāļēāļŠāļāļēāļĢ");*/ + + if (type == "officer") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "officer"); + } + else if (type == "employee") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "employee"); + } + + switch (node) + { + case 0: + data_insigniaQuery = data_insigniaQuery.Where(r => r.RootId == nodeId); + break; + + case 1: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child1Id == nodeId); + break; + + case 2: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child2Id == nodeId); + break; + + case 3: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child3Id == nodeId); + break; + + case 4: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child4Id == nodeId); + break; + + default: + break; + } + var data = await data_insigniaQuery + .Select(x => new + { + FullName = $"{x.Prefix}{x.FirstName} {x.LastName}", + RequestInsigniaName = x.RequestInsignia.Name, // Name of the Insignia + }) + .ToListAsync(); + + /* var seq = 1; + foreach (var d in response!.result) + { + var _baseAPI = _configuration["API"]; + var _apiUrl = $"{_baseAPI}/org/profile/profileid/position/{d.person.id}"; + using (var _client = new HttpClient()) + { + _client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token); + _client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, _apiUrl); + var _res = await _client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org == null || org.result == null) + continue; + + var receiver = new CommandReceiver + { + Sequence = seq, + CitizenId = org.result.citizenId == null ? "" : org.result.citizenId, + Prefix = org.result.prefix == null ? "" : org.result.prefix, + FirstName = org.result.firstName == null ? "" : org.result.firstName, + LastName = org.result.lastName == null ? "" : org.result.lastName, + RefPlacementProfileId = org.result.profileId == null ? null : Guid.Parse(org.result.profileId), + }; + seq++; + resultData.Add(receiver); + } + }*/ + var insignia = data.Select((r, index) => new + { + RowNo = (index + 1).ToNumericText().ToThaiNumber(), + FullName = r.FullName, + RequestInsigniaName = r.RequestInsigniaName, + ResultY1APR = "-", + ResultY1OCT = "-", + ResultY2APR = "-", + ResultY2OCT = "-", + ResultY3APR = "-", + ResultY3OCT = "-", + ResultY4APR = "-", + ResultY4OCT = "-", + ResultY5APR = "-", + ResultY5OCT = "-", + Remark = "", + }).ToList(); + + return insignia; + } + //noti āļĒāļ·āđˆāļ™āđ€āļŠāļ™āļ­āļ„āļ™ public async Task NotifyInsignia() { diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index 51cd0c0c..7e34893c 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -94,7 +94,7 @@ namespace BMA.EHR.Insignia.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - var data = await _repository.GetCoinReport(req.roundId); + var data = await _repository.GetCoinReport(req.roundId, type, req.node, req.nodeId); var yearInsignalPeriod = await _repository.GetYearInsigniaPeriod(req.roundId); var dataResult = new List(); @@ -161,9 +161,13 @@ namespace BMA.EHR.Insignia.Service.Controllers { row = mergeList.Count + 1, ColLeft = colLeft.ToString().ToThaiNumber(), - NameLeft = left.ElementAt(i).GetType().GetProperty("FullName").GetValue(left.ElementAt(i)), + NameLeft = string.IsNullOrEmpty(left.ElementAt(i).GetType().GetProperty("FullName").GetValue(left.ElementAt(i))?.ToString()) + ? null + : left.ElementAt(i).GetType().GetProperty("FullName").GetValue(left.ElementAt(i)), ColRight = colRight.ToString().ToThaiNumber(), - NameRight = right.ElementAt(i).GetType().GetProperty("FullName").GetValue(right.ElementAt(i)), + NameRight = string.IsNullOrEmpty(right.ElementAt(i).GetType().GetProperty("FullName").GetValue(right.ElementAt(i))?.ToString()) + ? null + : right.ElementAt(i).GetType().GetProperty("FullName").GetValue(right.ElementAt(i)), InsigniaInitial = left.ElementAt(i).GetType().GetProperty("InsigniaInitial").GetValue(left.ElementAt(i)), InsigniaName = left.ElementAt(i).GetType().GetProperty("InsigniaName").GetValue(left.ElementAt(i)), Range = range.ToThaiNumber(), @@ -200,9 +204,9 @@ namespace BMA.EHR.Insignia.Service.Controllers } #endregion - #region āļšāļąāļāļŠāļĩāđāļŠāļ”āļ‡āļˆāļģāļ™āļ§āļ™āļŠāļąāđ‰āļ™āļ•āļĢāļēāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ + #region āļšāļąāļāļŠāļĩāļĢāļ°āļ”āļąāļšāļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ /// - /// āļšāļąāļāļŠāļĩāđāļŠāļ”āļ‡āļˆāļģāļ™āļ§āļ™āļŠāļąāđ‰āļ™āļ•āļĢāļēāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ + /// āļšāļąāļāļŠāļĩāļĢāļ°āļ”āļąāļšāļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ /// /// type /// @@ -210,7 +214,7 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpPost("report2/{type}")] - public async Task> GetInsigniaReport2Async([FromBody] GetInsigniaDetailByNodeReportDto req, string type) + public async Task> GetInsigniaReport3Async([FromBody] GetInsigniaDetailByNodeReportDto req, string type) { try { @@ -220,7 +224,49 @@ namespace BMA.EHR.Insignia.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - var data = await _repository.GetSummaryCoinReport(req.roundId); + + var data = await _repository.GetEvaluationResultReport(req.roundId, type, req.node, req.nodeId); + + var result = new + { + template = "reportInsignia2", + reportName = "reportInsignia2", + data = new + { + data = data, + } + }; + return Success(result); + + } + catch + { + throw; + } + } + #endregion + + #region āļšāļąāļāļŠāļĩāđāļŠāļ”āļ‡āļˆāļģāļ™āļ§āļ™āļŠāļąāđ‰āļ™āļ•āļĢāļēāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ + /// + /// āļšāļąāļāļŠāļĩāđāļŠāļ”āļ‡āļˆāļģāļ™āļ§āļ™āļŠāļąāđ‰āļ™āļ•āļĢāļēāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ + /// + /// type + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("report3/{type}")] + public async Task> GetInsigniaReport2Async([FromBody] GetInsigniaDetailByNodeReportDto req, string type) + { + try + { + /* var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_INSIGNIA_REPORT"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + }*/ + var data = await _repository.GetSummaryCoinReport(req.roundId, type, req.node, req.nodeId); var summaryTotal = await _repository.GetSummaryTotalCoinReport(req.roundId); var yearInsignalPeriod = await _repository.GetYearInsigniaPeriod(req.roundId); @@ -242,8 +288,8 @@ namespace BMA.EHR.Insignia.Service.Controllers var result = new { - template = "reportInsignia2", - reportName = "reportInsignia2", + template = "reportInsignia3", + reportName = "reportInsignia3", data = new { yearInsignalPeriod, @@ -261,44 +307,6 @@ namespace BMA.EHR.Insignia.Service.Controllers } #endregion - #region āļšāļąāļāļŠāļĩāļĢāļ°āļ”āļąāļšāļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ - /// - /// āļšāļąāļāļŠāļĩāļĢāļ°āļ”āļąāļšāļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ - /// - /// type - /// - /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ - /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpPost("report3/{type}")] - public async Task> GetInsigniaReport3Async([FromBody] GetInsigniaDetailByNodeReportDto req, string type) - { - try - { - var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_INSIGNIA_REPORT"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") - { - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - } - - var result = new - { - template = "reportInsignia2", - reportName = "reportInsignia2", - data = new List() - }; - return Success(result); - - } - catch - { - throw; - } - } - #endregion - - } } diff --git a/BMA.EHR.Insignia/Requests/GetInsigniaDetailByNodeReportDto.cs b/BMA.EHR.Insignia/Requests/GetInsigniaDetailByNodeReportDto.cs index 0282b021..62895347 100644 --- a/BMA.EHR.Insignia/Requests/GetInsigniaDetailByNodeReportDto.cs +++ b/BMA.EHR.Insignia/Requests/GetInsigniaDetailByNodeReportDto.cs @@ -5,6 +5,6 @@ namespace BMA.EHR.Insignia.Service.Requests { public Guid roundId { get; set; } public int node { get; set; } - public string nodeId { get; set; } + public Guid nodeId { get; set; } } } \ No newline at end of file From dba085d55a509e964489281a8fd15fa2ef916c09 Mon Sep 17 00:00:00 2001 From: kittapath Date: Sat, 11 Jan 2025 10:57:59 +0700 Subject: [PATCH 004/879] edit report probation --- .../Repositories/Reports/ProbationReportRepository.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 102c256d..8f552434 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -124,6 +124,8 @@ namespace BMA.EHR.Application.Repositories.Reports Knowledges = knowledges, Competencys = competencys, Outputs = outputs, + Skills=skills, + Laws=laws, OtherDesc = string.IsNullOrEmpty(probation_assign.result.assign.other_desc) ? "-" : probation_assign.result.assign.other_desc, Other4Desc = string.IsNullOrEmpty(probation_assign.result.assign.other4_desc) ? "-" : probation_assign.result.assign.other4_desc, Other5No1Desc = string.IsNullOrEmpty(probation_assign.result.assign.other5_no1_desc) ? "-" : probation_assign.result.assign.other5_no1_desc, From 825fbf6a2d33499faa8a29a52b1dad8a6f58de91 Mon Sep 17 00:00:00 2001 From: kittapath Date: Sat, 11 Jan 2025 12:25:12 +0700 Subject: [PATCH 005/879] no message --- BMA.EHR.Placement.Service/Controllers/PlacementController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index dd75b93a..29139434 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -445,8 +445,8 @@ namespace BMA.EHR.Placement.Service.Controllers Education = x.PlacementEducations.Select(p => new { Id = p.Id, - EducationLevel = p.EducationLevelId, - EducationLevelId = p.EducationLevelName, + EducationLevel = p.EducationLevelName, + EducationLevelId = p.EducationLevelId, Institute = p.Institute, Degree = p.Degree, Field = p.Field, From d1b3160847535f7bc9fc1ca5a73a3b15b1c53964 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Sat, 11 Jan 2025 12:46:39 +0700 Subject: [PATCH 006/879] fixing report probation --- .../Repositories/Reports/ProbationReportRepository.cs | 2 +- .../Responses/EvaluateRecordAssignResponse.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 102c256d..b9f9b6ce 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -46,7 +46,7 @@ namespace BMA.EHR.Application.Repositories.Reports #region 13 āđāļšāļšāļĄāļ­āļšāļŦāļĄāļēāļĒāļ‡āļēāļ™ āļŊ public async Task GetProbationAssignAsync(Guid assign_id, string token) { - var api_url = $"{_configuration["APIPROBATION"]}/assign?assign_id={assign_id}"; + var api_url = $"{_configuration["APIPROBATION"]}/assign?assign_id={assign_id}&isReport=true"; ProbationAssignResponse probation_assign; using (var client = new HttpClient()) { diff --git a/BMA.EHR.Application/Responses/EvaluateRecordAssignResponse.cs b/BMA.EHR.Application/Responses/EvaluateRecordAssignResponse.cs index e0a8d017..f3fa9e9d 100644 --- a/BMA.EHR.Application/Responses/EvaluateRecordAssignResponse.cs +++ b/BMA.EHR.Application/Responses/EvaluateRecordAssignResponse.cs @@ -95,10 +95,10 @@ namespace BMA.EHR.Application.Responses public class Achievement { - public string evaluate_expect_desc { get; set; } - public EvaluateExpectLevel evaluate_expect_level { get; set; } - public string evaluate_output_desc { get; set; } - public EvaluateOutputLevel evaluate_output_level { get; set; } + // public string evaluate_expect_desc { get; set; } + public EvaluateExpectLevel? evaluate_expect_level { get; set; } + // public string evaluate_output_desc { get; set; } + public EvaluateOutputLevel? evaluate_output_level { get; set; } } public class EvaluateExpectLevel From d9dd45338e4357c5d32e1a19d2baee5331f06a46 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Sat, 11 Jan 2025 13:42:03 +0700 Subject: [PATCH 007/879] fixing field --- .../Reports/ProbationReportRepository.cs | 15 +++++++++------ .../Responses/EvaluateRecordAssignResponse.cs | 4 ++-- .../Responses/ProbationAssignResponse.cs | 4 +++- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 2b185fea..39f41650 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -91,9 +91,11 @@ namespace BMA.EHR.Application.Repositories.Reports var skills = probation_assign.result.skills.Select(x => new { - id = string.IsNullOrEmpty(x.id.ToString()) ? string.Empty : x.id.ToString().ToThaiNumber(), - title = string.IsNullOrEmpty(x.title) ? string.Empty : x.title.ToThaiNumber(), - description = string.IsNullOrEmpty(x.description) ? string.Empty : x.description.ToThaiNumber(), + name = string.IsNullOrEmpty(x.title) ? string.Empty : x.title.ToThaiNumber(), + level = string.IsNullOrEmpty(x.level) ? string.Empty : x.level.ToThaiNumber(), + description = string.IsNullOrEmpty(x.description) + ? string.Empty + : (Regex.Replace(x.description, "<.*?>", string.Empty)).Replace(" ", " ").ToString().ToThaiNumber(), }).ToList(); var laws = probation_assign.result.laws.Where(x => x.selected == true).Select((x, Index) => new @@ -105,7 +107,8 @@ namespace BMA.EHR.Application.Repositories.Reports { Name = string.IsNullOrEmpty(probation_assign.result.profile.name) ? "-" : probation_assign.result.profile.name, Position = string.IsNullOrEmpty(probation_assign.result.profile.Position) ? "-" : probation_assign.result.profile.Position, - PositionLevel = string.IsNullOrEmpty(probation_assign.result.profile.PositionLevelName) ? "-" : probation_assign.result.profile.PositionLevelName, + PositionLevel = string.IsNullOrEmpty(probation_assign.result.profile.positionLevelName) ? "-" : probation_assign.result.profile.positionLevelName, + PositionAndLevel = string.IsNullOrEmpty(probation_assign.result.profile.PositionAndLevel) ? "-" : probation_assign.result.profile.PositionAndLevel, Department = string.IsNullOrEmpty(probation_assign.result.profile.Department) ? "-" : probation_assign.result.profile.Department, OrganizationOrganization = string.IsNullOrEmpty(probation_assign.result.profile.OrganizationOrganization) ? "-" : probation_assign.result.profile.OrganizationOrganization, Oc = string.IsNullOrEmpty(probation_assign.result.profile.Oc) ? "-" : probation_assign.result.profile.Oc, @@ -124,8 +127,8 @@ namespace BMA.EHR.Application.Repositories.Reports Knowledges = knowledges, Competencys = competencys, Outputs = outputs, - Skills=skills, - Laws=laws, + Skills = skills, + Laws = laws, OtherDesc = string.IsNullOrEmpty(probation_assign.result.assign.other_desc) ? "-" : probation_assign.result.assign.other_desc, Other4Desc = string.IsNullOrEmpty(probation_assign.result.assign.other4_desc) ? "-" : probation_assign.result.assign.other4_desc, Other5No1Desc = string.IsNullOrEmpty(probation_assign.result.assign.other5_no1_desc) ? "-" : probation_assign.result.assign.other5_no1_desc, diff --git a/BMA.EHR.Application/Responses/EvaluateRecordAssignResponse.cs b/BMA.EHR.Application/Responses/EvaluateRecordAssignResponse.cs index f3fa9e9d..0feb741c 100644 --- a/BMA.EHR.Application/Responses/EvaluateRecordAssignResponse.cs +++ b/BMA.EHR.Application/Responses/EvaluateRecordAssignResponse.cs @@ -96,9 +96,9 @@ namespace BMA.EHR.Application.Responses public class Achievement { // public string evaluate_expect_desc { get; set; } - public EvaluateExpectLevel? evaluate_expect_level { get; set; } + public List evaluate_expect_level { get; set; } // public string evaluate_output_desc { get; set; } - public EvaluateOutputLevel? evaluate_output_level { get; set; } + public List evaluate_output_level { get; set; } } public class EvaluateExpectLevel diff --git a/BMA.EHR.Application/Responses/ProbationAssignResponse.cs b/BMA.EHR.Application/Responses/ProbationAssignResponse.cs index 1a5a0e15..6497aa7a 100644 --- a/BMA.EHR.Application/Responses/ProbationAssignResponse.cs +++ b/BMA.EHR.Application/Responses/ProbationAssignResponse.cs @@ -30,7 +30,8 @@ public string Position { get; set; } = string.Empty; public string Department { get; set; } = string.Empty; public string Oc { get; set; } = string.Empty; - public string PositionLevelName { get; set; } = string.Empty; + public string positionLevelName { get; set; } = string.Empty; + public string PositionAndLevel { get; set; } = string.Empty; } public class Assign @@ -78,6 +79,7 @@ public class Skill { public int id { get; set; } + public string level { get; set; } = string.Empty; public string title { get; set; } = string.Empty; public string description { get; set; } = string.Empty; } From 3ee1da6a1220e39572e539f833e24057890930e8 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Sat, 11 Jan 2025 15:42:22 +0700 Subject: [PATCH 008/879] fixing number to thai --- .../Repositories/Reports/ProbationReportRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 39f41650..acf4aa37 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -100,7 +100,7 @@ namespace BMA.EHR.Application.Repositories.Reports var laws = probation_assign.result.laws.Where(x => x.selected == true).Select((x, Index) => new { - title = string.IsNullOrEmpty(x.description) ? string.Empty : $"{Index + 1}. {x.description.ToThaiNumber()}", + title = string.IsNullOrEmpty(x.description) ? string.Empty : $"{(Index + 1).ToString().ToThaiNumber()}. {x.description.ToThaiNumber()}", }).ToList(); return new From 68346f80960fe148c1e0a9d1f675fd7ddb766ef3 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 13 Jan 2025 10:05:56 +0700 Subject: [PATCH 009/879] checkpoint report #852 (1) --- .../Controllers/InsigniaReportController.cs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index 7e34893c..29db1981 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -157,17 +157,22 @@ namespace BMA.EHR.Insignia.Service.Controllers colLeft = start; colRight = start + 25; } + // āļ”āļķāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ NameLeft āđāļĨāļ° NameRight + var nameLeft = left.ElementAt(i).GetType().GetProperty("FullName").GetValue(left.ElementAt(i)); + var nameRight = right.ElementAt(i).GetType().GetProperty("FullName").GetValue(right.ElementAt(i)); + + // āļ–āđ‰āļēāđ„āļĄāđˆāļĄāļĩāļ—āļąāđ‰āļ‡ NameLeft āđāļĨāļ° NameRight āđƒāļŦāđ‰āļ‚āđ‰āļēāļĄāđ„āļ› + if (string.IsNullOrEmpty((string)nameLeft) && string.IsNullOrEmpty((string)nameRight)) + { + continue; // āļ‚āđ‰āļēāļĄāļāļēāļĢāļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡āļĨāļđāļ›āđƒāļ™āļĢāļ­āļšāļ™āļĩāđ‰ + } mergeList.Add(new { row = mergeList.Count + 1, ColLeft = colLeft.ToString().ToThaiNumber(), - NameLeft = string.IsNullOrEmpty(left.ElementAt(i).GetType().GetProperty("FullName").GetValue(left.ElementAt(i))?.ToString()) - ? null - : left.ElementAt(i).GetType().GetProperty("FullName").GetValue(left.ElementAt(i)), + NameLeft = left.ElementAt(i).GetType().GetProperty("FullName").GetValue(left.ElementAt(i)), ColRight = colRight.ToString().ToThaiNumber(), - NameRight = string.IsNullOrEmpty(right.ElementAt(i).GetType().GetProperty("FullName").GetValue(right.ElementAt(i))?.ToString()) - ? null - : right.ElementAt(i).GetType().GetProperty("FullName").GetValue(right.ElementAt(i)), + NameRight = right.ElementAt(i).GetType().GetProperty("FullName").GetValue(right.ElementAt(i)), InsigniaInitial = left.ElementAt(i).GetType().GetProperty("InsigniaInitial").GetValue(left.ElementAt(i)), InsigniaName = left.ElementAt(i).GetType().GetProperty("InsigniaName").GetValue(left.ElementAt(i)), Range = range.ToThaiNumber(), From 549bbfcf524b06ae6a3d313638648b1dbbb68a3a Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 13 Jan 2025 15:12:44 +0700 Subject: [PATCH 010/879] report 13 --- .../Repositories/Reports/ProbationReportRepository.cs | 10 ++++++++++ .../Responses/ProbationAssignResponse.cs | 1 + 2 files changed, 11 insertions(+) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index acf4aa37..9c99690c 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -82,6 +82,15 @@ namespace BMA.EHR.Application.Repositories.Reports : (Regex.Replace(x.description, "<.*?>", string.Empty)).Replace(" ", " ").ToString().ToThaiNumber(), }).ToList(); + var competencyGroups = probation_assign.result.competency_groups.Select(x => new + { + name = string.IsNullOrEmpty(x.name) ? string.Empty : x.name.ToThaiNumber(), + level = string.IsNullOrEmpty(x.level) ? string.Empty : x.level.ToThaiNumber(), + description = string.IsNullOrEmpty(x.description) + ? string.Empty + : (Regex.Replace(x.description, "<.*?>", string.Empty)).Replace(" ", " ").ToString().ToThaiNumber(), + }).ToList(); + var outputs = probation_assign.result.outputs.Select(x => new { id = string.IsNullOrEmpty(x.id.ToString()) ? string.Empty : x.id.ToString().ToThaiNumber(), @@ -126,6 +135,7 @@ namespace BMA.EHR.Application.Repositories.Reports Jobs = jobs, Knowledges = knowledges, Competencys = competencys, + CompetencyGroups = competencyGroups, Outputs = outputs, Skills = skills, Laws = laws, diff --git a/BMA.EHR.Application/Responses/ProbationAssignResponse.cs b/BMA.EHR.Application/Responses/ProbationAssignResponse.cs index 6497aa7a..52f21da0 100644 --- a/BMA.EHR.Application/Responses/ProbationAssignResponse.cs +++ b/BMA.EHR.Application/Responses/ProbationAssignResponse.cs @@ -14,6 +14,7 @@ public List jobs { get; set; } public List knowledges { get; set; } public List competencys { get; set; } + public List competency_groups { get; set; } public List outputs { get; set; } public List laws { get; set; } public List skills { get; set; } From a6b256a39c0de5b3f024509072b91d51f6770017 Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 13 Jan 2025 16:52:51 +0700 Subject: [PATCH 011/879] add ReasonResign --- .../Models/Retirement/RetirementResign.cs | 2 + .../Retirement/RetirementResignEmployee.cs | 2 + ...rementResigns add ReasonResign.Designer.cs | 19187 ++++++++++++++++ ...able RetirementResigns add ReasonResign.cs | 42 + .../ApplicationDBContextModelSnapshot.cs | 8 + .../Controllers/RetirementResignController.cs | 23 +- .../RetirementResignEmployeeController.cs | 22 +- .../RetirementResignEmployeeRequest.cs | 1 + .../Requests/RetirementResignRequest.cs | 1 + 9 files changed, 19284 insertions(+), 4 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250113094243_update table RetirementResigns add ReasonResign.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250113094243_update table RetirementResigns add ReasonResign.cs diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs index a36cbe27..7760cd36 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs @@ -18,6 +18,8 @@ namespace BMA.EHR.Domain.Models.Retirement [Comment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ")] public DateTime? ActiveDate { get; set; } [Comment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ")] + public string? ReasonResign { get; set; } = string.Empty; + [Comment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ")] public string? Reason { get; set; } = string.Empty; [Comment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)")] public string? Remark { get; set; } = string.Empty; diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs index 5341a46c..82ba9da4 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs @@ -18,6 +18,8 @@ namespace BMA.EHR.Domain.Models.Retirement [Comment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ")] public DateTime? ActiveDate { get; set; } [Comment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ")] + public string? ReasonResign { get; set; } = string.Empty; + [Comment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ")] public string? Reason { get; set; } = string.Empty; [Comment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)")] public string? Remark { get; set; } = string.Empty; diff --git a/BMA.EHR.Infrastructure/Migrations/20250113094243_update table RetirementResigns add ReasonResign.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250113094243_update table RetirementResigns add ReasonResign.Designer.cs new file mode 100644 index 00000000..afead55e --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250113094243_update table RetirementResigns add ReasonResign.Designer.cs @@ -0,0 +1,19187 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250113094243_update table RetirementResigns add ReasonResign")] + partial class updatetableRetirementResignsaddReasonResign + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250113094243_update table RetirementResigns add ReasonResign.cs b/BMA.EHR.Infrastructure/Migrations/20250113094243_update table RetirementResigns add ReasonResign.cs new file mode 100644 index 00000000..ca130fa0 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250113094243_update table RetirementResigns add ReasonResign.cs @@ -0,0 +1,42 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class updatetableRetirementResignsaddReasonResign : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "ReasonResign", + table: "RetirementResigns", + type: "longtext", + nullable: true, + comment: "āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "ReasonResign", + table: "RetirementResignEmployees", + type: "longtext", + nullable: true, + comment: "āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "ReasonResign", + table: "RetirementResigns"); + + migrationBuilder.DropColumn( + name: "ReasonResign", + table: "RetirementResignEmployees"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 707dc8bf..db314ea9 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -16021,6 +16021,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + b.Property("RejectReason") .HasColumnType("longtext") .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); @@ -16722,6 +16726,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + b.Property("RejectReason") .HasColumnType("longtext") .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 9d55c91d..d917c6fc 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -149,6 +149,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.SendDate, p.ActiveDate, p.Reason, + p.ReasonResign, p.Remark, p.ApproveReason, p.RejectReason, @@ -243,6 +244,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.SendDate, p.ActiveDate, p.Reason, + p.ReasonResign, p.Remark, p.Status, salary = p.AmountOld, @@ -366,6 +368,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.SendDate, p.ActiveDate, p.Reason, + p.ReasonResign, p.Remark, p.Status, salary = p.AmountOld, @@ -458,6 +461,7 @@ namespace BMA.EHR.Retirement.Service.Controllers data.SendDate, data.ActiveDate, data.Reason, + data.ReasonResign, data.Remark, data.Status, data.salary, @@ -884,6 +888,19 @@ namespace BMA.EHR.Retirement.Service.Controllers // if (profile == null) // return Error(GlobalMessages.DataNotFound, 404); + var Remark = req.Remark; + if (req.Reason != null) + { + switch (req.Reason.Trim().ToLower()) + { + case "CAREER": Remark = $"āļ›āļĢāļ°āļāļ­āļšāļ­āļēāļŠāļĩāļžāļ­āļ·āđˆāļ™ ({req.Remark})"; break; + case "MOVE": Remark = $"āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļŠāļąāļ‡āļāļąāļ”āļ­āļ·āđˆāļ™ ({req.Remark})"; break; + case "FAMILY": Remark = $"āļ”āļđāđāļĨāļšāļīāļ”āļēāļĄāļēāļĢāļ”āļē ({req.Remark})"; break; + case "EDUCATION": Remark = $"āļĻāļķāļāļĐāļēāļ•āđˆāļ­ ({req.Remark})"; break; + case "OTHER": Remark = $"āļ­āļ·āđˆāļ™ āđ† ({req.Remark})"; break; + } + } + var retirementResign = new RetirementResign { // Profile = profile, @@ -891,6 +908,7 @@ namespace BMA.EHR.Retirement.Service.Controllers SendDate = DateTime.Now, ActiveDate = req.ActiveDate, Reason = req.Reason, + ReasonResign = Remark, Remark = req.Remark, // AmountOld = profile.Salaries.Count() == 0 ? null : profile.Salaries.OrderByDescending(x => x.Order).FirstOrDefault().Amount, // PositionLevelOld = profile.PositionLevel == null ? null : profile.PositionLevel.Name, @@ -1028,8 +1046,9 @@ namespace BMA.EHR.Retirement.Service.Controllers updated.Location = req.Location; updated.ActiveDate = req.ActiveDate; - updated.Reason = req.Reason; + // updated.Reason = req.Reason; updated.Remark = req.Remark; + updated.ReasonResign = req.Reason; updated.OrganizationPositionOld = req.OrganizationPositionOld; updated.RemarkHorizontal = req.RemarkHorizontal; updated.PositionTypeOld = req.PositionTypeOld; @@ -1180,7 +1199,7 @@ namespace BMA.EHR.Retirement.Service.Controllers Location = updated.Location, SendDate = updated.SendDate, ActiveDate = updated.ActiveDate, - Reason = updated.Reason, + Reason = updated.ReasonResign, Remark = updated.Remark, OrganizationPositionOld = updated.OrganizationPositionOld, PositionTypeOld = updated.PositionTypeOld, diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index a86d1250..27b4cc93 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -93,6 +93,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.SendDate, p.ActiveDate, p.Reason, + p.ReasonResign, p.Remark, p.ApproveReason, p.RejectReason, @@ -187,6 +188,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.SendDate, p.ActiveDate, p.Reason, + p.ReasonResign, p.Remark, p.Status, salary = p.AmountOld, @@ -309,6 +311,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.SendDate, p.ActiveDate, p.Reason, + p.ReasonResign, p.Remark, p.Status, salary = p.AmountOld, @@ -401,6 +404,7 @@ namespace BMA.EHR.Retirement.Service.Controllers data.SendDate, data.ActiveDate, data.Reason, + data.ReasonResign, data.Remark, data.Status, data.salary, @@ -827,6 +831,18 @@ namespace BMA.EHR.Retirement.Service.Controllers // if (profile == null) // return Error(GlobalMessages.DataNotFound, 404); + var Remark = req.Remark; + if (req.Reason != null) + { + switch (req.Reason.Trim().ToLower()) + { + case "CAREER": Remark = $"āļ›āļĢāļ°āļāļ­āļšāļ­āļēāļŠāļĩāļžāļ­āļ·āđˆāļ™ ({req.Remark})"; break; + case "MOVE": Remark = $"āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļŠāļąāļ‡āļāļąāļ”āļ­āļ·āđˆāļ™ ({req.Remark})"; break; + case "FAMILY": Remark = $"āļ”āļđāđāļĨāļšāļīāļ”āļēāļĄāļēāļĢāļ”āļē ({req.Remark})"; break; + case "EDUCATION": Remark = $"āļĻāļķāļāļĐāļēāļ•āđˆāļ­ ({req.Remark})"; break; + case "OTHER": Remark = $"āļ­āļ·āđˆāļ™ āđ† ({req.Remark})"; break; + } + } var retirementResignEmployee = new RetirementResignEmployee { // Profile = profile, @@ -834,6 +850,7 @@ namespace BMA.EHR.Retirement.Service.Controllers SendDate = DateTime.Now, ActiveDate = req.ActiveDate, Reason = req.Reason, + ReasonResign = Remark, Remark = req.Remark, // AmountOld = profile.Salaries.Count() == 0 ? null : profile.Salaries.OrderByDescending(x => x.Order).FirstOrDefault().Amount, // PositionLevelOld = profile.PositionLevel == null ? null : profile.PositionLevel.Name, @@ -971,8 +988,9 @@ namespace BMA.EHR.Retirement.Service.Controllers updated.Location = req.Location; updated.ActiveDate = req.ActiveDate; - updated.Reason = req.Reason; + // updated.Reason = req.Reason; updated.Remark = req.Remark; + updated.ReasonResign = req.Reason; updated.OrganizationPositionOld = req.OrganizationPositionOld; updated.RemarkHorizontal = req.RemarkHorizontal; updated.PositionTypeOld = req.PositionTypeOld; @@ -1123,7 +1141,7 @@ namespace BMA.EHR.Retirement.Service.Controllers Location = updated.Location, SendDate = updated.SendDate, ActiveDate = updated.ActiveDate, - Reason = updated.Reason, + Reason = updated.ReasonResign, Remark = updated.Remark, OrganizationPositionOld = updated.OrganizationPositionOld, PositionTypeOld = updated.PositionTypeOld, diff --git a/BMA.EHR.Retirement.Service/Requests/RetirementResignEmployeeRequest.cs b/BMA.EHR.Retirement.Service/Requests/RetirementResignEmployeeRequest.cs index e43e7fe3..409bc185 100644 --- a/BMA.EHR.Retirement.Service/Requests/RetirementResignEmployeeRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/RetirementResignEmployeeRequest.cs @@ -10,6 +10,7 @@ namespace BMA.EHR.Retirement.Service.Requests public DateTime? ActiveDate { get; set; } public string? Reason { get; set; } public string? Remark { get; set; } + public string? ReasonResign { get; set; } public string? OrganizationPositionOld { get; set; } public string? PositionTypeOld { get; set; } public string? PositionLevelOld { get; set; } diff --git a/BMA.EHR.Retirement.Service/Requests/RetirementResignRequest.cs b/BMA.EHR.Retirement.Service/Requests/RetirementResignRequest.cs index 45d58c4f..36d5f031 100644 --- a/BMA.EHR.Retirement.Service/Requests/RetirementResignRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/RetirementResignRequest.cs @@ -10,6 +10,7 @@ namespace BMA.EHR.Retirement.Service.Requests public DateTime? ActiveDate { get; set; } public string? Reason { get; set; } public string? Remark { get; set; } + public string? ReasonResign { get; set; } public string? OrganizationPositionOld { get; set; } public string? PositionTypeOld { get; set; } public string? PositionLevelOld { get; set; } From 97b050779ac29d1bca653641aadb38c5a3554311 Mon Sep 17 00:00:00 2001 From: kittapath Date: Tue, 14 Jan 2025 12:57:43 +0700 Subject: [PATCH 012/879] no message --- .../Controllers/DisciplineResultController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs index 22f8335e..bd02f83d 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs @@ -1034,7 +1034,8 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers positionno = p.PosNo, organizationname = p.Organization, salary = r.Amount, - RemarkHorizontal = r.RemarkHorizontal + RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal, }).ToList(); var result = new List(); From ed0af9661c516992b332260ee211d793a93c892c Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 14 Jan 2025 18:12:07 +0700 Subject: [PATCH 013/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=9F=E0=B8=B4=E0=B8=A5=E0=B8=94=E0=B9=8C=E0=B8=AA?= =?UTF-8?q?=E0=B8=96=E0=B8=B2=E0=B8=99=E0=B8=A0=E0=B8=B2=E0=B8=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs | 3 +++ BMA.EHR.Domain/Models/Retirement/RetirementOut.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs b/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs index 6b7031da..34f4023f 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs @@ -82,6 +82,9 @@ namespace BMA.EHR.Domain.Models.Retirement [Comment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™")] public bool IsActive { get; set; } = true; + + [Comment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)")] + public string? profileType { get; set; } public virtual List RetirementDeceasedNotis { get; set; } = new List(); } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs b/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs index 773a75ae..9c4e18e1 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs @@ -89,5 +89,8 @@ namespace BMA.EHR.Domain.Models.Retirement [Comment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™")] public bool IsActive { get; set; } = true; + + [Comment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)")] + public string? profileType { get; set; } } } From 1b04e2dfc33d6f42436ac1b5a5875ff79538ab56 Mon Sep 17 00:00:00 2001 From: kittapath Date: Wed, 15 Jan 2025 16:14:54 +0700 Subject: [PATCH 014/879] migrate --- ...irementResigns add profiletype.Designer.cs | 19195 ++++++++++++++++ ...table RetirementResigns add profiletype.cs | 42 + .../ApplicationDBContextModelSnapshot.cs | 8 + 3 files changed, 19245 insertions(+) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250115091305_update table RetirementResigns add profiletype.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250115091305_update table RetirementResigns add profiletype.cs diff --git a/BMA.EHR.Infrastructure/Migrations/20250115091305_update table RetirementResigns add profiletype.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250115091305_update table RetirementResigns add profiletype.Designer.cs new file mode 100644 index 00000000..f666124e --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250115091305_update table RetirementResigns add profiletype.Designer.cs @@ -0,0 +1,19195 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250115091305_update table RetirementResigns add profiletype")] + partial class updatetableRetirementResignsaddprofiletype + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250115091305_update table RetirementResigns add profiletype.cs b/BMA.EHR.Infrastructure/Migrations/20250115091305_update table RetirementResigns add profiletype.cs new file mode 100644 index 00000000..122df969 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250115091305_update table RetirementResigns add profiletype.cs @@ -0,0 +1,42 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class updatetableRetirementResignsaddprofiletype : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "profileType", + table: "RetirementOuts", + type: "longtext", + nullable: true, + comment: "āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "profileType", + table: "RetirementDeceaseds", + type: "longtext", + nullable: true, + comment: "āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "profileType", + table: "RetirementOuts"); + + migrationBuilder.DropColumn( + name: "profileType", + table: "RetirementDeceaseds"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index db314ea9..22f0bdb8 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -14324,6 +14324,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("profile Id"); + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + b.Property("root") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); @@ -15121,6 +15125,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("profile Id"); + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + b.Property("rootOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); From 082f4b2f59ad79f1759a4dc369ecaf04ffef4374 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 16 Jan 2025 17:06:23 +0700 Subject: [PATCH 015/879] report placement, retire --- .../Controllers/PlacementController.cs | 408 ++++++++++++- .../Requests/NodeAllRequest.cs | 24 + .../Controllers/RetirementController.cs | 549 +++++++++++++++++- BMA.EHR.Retirement.Service/Program.cs | 5 + .../Requests/NodeAllRequest.cs | 24 + BMA.EHR.Retirement.Service/appsettings.json | 3 +- 6 files changed, 984 insertions(+), 29 deletions(-) create mode 100644 BMA.EHR.Placement.Service/Requests/NodeAllRequest.cs create mode 100644 BMA.EHR.Retirement.Service/Requests/NodeAllRequest.cs diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 29139434..998af1d0 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -2773,15 +2773,285 @@ namespace BMA.EHR.Placement.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet("report1")] - public async Task> report1(string? nodeId = null, int? node = 0, DateOnly? startDate = null, DateOnly? startEnd = null) + public async Task> report1(string nodeId = "", int? node = null, DateTime? startDate = null, DateTime? endDate = null) { - var data = new + var apiUrl = $"{_configuration["API"]}/org/find/node-all"; + var data = new object(); + var data1 = new List(); + var data2 = new List(); + using (var client = new HttpClient()) { - template = "placement01", - reportName = "xlsx-report", - data = "" - }; + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + var _req = new HttpRequestMessage(HttpMethod.Post, apiUrl); + var _res = await client.PostAsJsonAsync(apiUrl, new + { + node, + nodeId, + }); + var _result = await _res.Content.ReadAsStringAsync(); + var orgs = JsonConvert.DeserializeObject(_result); + if (orgs == null || orgs.result == null) + return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ™āļĩāđ‰āđƒāļ™āļĢāļ°āļšāļš", 404); + + int no = 1; + + foreach (var item in orgs.result.isRootTrue) + { + var placementProfiles = _context.PlacementProfiles + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootId.Contains(item.rootId) && + x.PlacementStatus.Trim().ToUpper() == "DONE") + .GroupBy(x => x.typeCommand.Trim().ToUpper()) + .Select(g => new + { + TypeCommand = g.Key, + Count = g.Count() + }) + .ToList(); + + var placementAppointments = _context.PlacementAppointments + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE" && + x.type.Trim().ToUpper() == "OFFICER") + .GroupBy(x => x.typeCommand.Trim().ToUpper()) + .Select(g => new + { + TypeCommand = g.Key, + Count = g.Count() + }) + .ToList(); + + var pt_count = _context.PlacementTransfers + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE") + .Count(); + + var pr_count = _context.PlacementReceives + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE") + .Count(); + + var po_count = _context.PlacementOfficers + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE") + .Count(); + + var prp_count = _context.PlacementRepatriations + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE") + .Count(); + + var ro_count = _context.RetirementOthers + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE") + .Count(); + + var pp_appoint = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; + var pp_slip = placementProfiles.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; + var pp_move = placementProfiles.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; + + var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; + var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; + var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; + + data1.Add(new + { + no = no, + rootName = item.name, + pp_appoint = pp_appoint, + pp_slip = pp_slip, + pp_move = pp_move, + pa_appoint = pa_appoint, + pa_slip = pa_slip, + pa_move = pa_move, + pt_count = pt_count, + pr_count = pr_count, + po_count = po_count, + prp_count = prp_count, + ro_count = ro_count, + total = (pp_appoint + pp_slip + pp_move + pa_appoint + pa_slip + pa_move + pt_count + pr_count + po_count + prp_count + ro_count) + }); + no++; + } + no = 1; + foreach (var item in orgs.result.isRootFalse) + { + var placementProfiles = _context.PlacementProfiles + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootId.Contains(item.rootId) && + x.PlacementStatus.Trim().ToUpper() == "DONE") + .GroupBy(x => x.typeCommand.Trim().ToUpper()) + .Select(g => new + { + TypeCommand = g.Key, + Count = g.Count() + }) + .ToList(); + + var placementAppointments = _context.PlacementAppointments + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE" && + x.type.Trim().ToUpper() == "OFFICER") + .GroupBy(x => x.typeCommand.Trim().ToUpper()) + .Select(g => new + { + TypeCommand = g.Key, + Count = g.Count() + }) + .ToList(); + + var pt_count = _context.PlacementTransfers + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE") + .Count(); + + var pr_count = _context.PlacementReceives + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE") + .Count(); + + var po_count = _context.PlacementOfficers + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE") + .Count(); + + var prp_count = _context.PlacementRepatriations + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE") + .Count(); + + var ro_count = _context.RetirementOthers + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE") + .Count(); + + var pp_appoint = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; + var pp_slip = placementProfiles.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; + var pp_move = placementProfiles.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; + + var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; + var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; + var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; + + data2 .Add(new + { + no = no, + rootName = item.name, + pp_appoint = pp_appoint, + pp_slip = pp_slip, + pp_move = pp_move, + pa_appoint = pa_appoint, + pa_slip = pa_slip, + pa_move = pa_move, + pt_count = pt_count, + pr_count = pr_count, + po_count = po_count, + prp_count = prp_count, + ro_count = ro_count, + total = (pp_appoint + pp_slip + pp_move + pa_appoint + pa_slip + pa_move + pt_count + pr_count + po_count + prp_count + ro_count) + }); + no++; + } + } + + data = new + { + template = "reportPlacement01All", + reportName = "xlsx-report", + data = new + { + date = $"āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ {startDate.Value.Date.ToThaiShortDate().ToThaiNumber()} āļ–āļķāļ‡ {endDate.Value.Date.ToThaiShortDate().ToThaiNumber()}", + dateCurrent = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}", + data1, + data1Count = new + { + pp_appoint = data1.Where(x => x.pp_appoint > 0).Sum(x => x.pp_appoint), + pp_slip = data1.Where(x => x.pp_slip > 0).Sum(x => x.pp_slip), + pp_move = data1.Where(x => x.pp_move > 0).Sum(x => x.pp_move), + pa_appoint = data1.Where(x => x.pa_appoint > 0).Sum(x => x.pa_appoint), + pa_slip = data1.Where(x => x.pa_slip > 0).Sum(x => x.pa_slip), + pa_move = data1.Where(x => x.pa_move > 0).Sum(x => x.pa_move), + pt_count = data1.Where(x => x.pt_count > 0).Sum(x => x.pt_count), + pr_count = data1.Where(x => x.pr_count > 0).Sum(x => x.pr_count), + po_count = data1.Where(x => x.po_count > 0).Sum(x => x.po_count), + prp_count = data1.Where(x => x.prp_count > 0).Sum(x => x.prp_count), + ro_count = data1.Where(x => x.ro_count > 0).Sum(x => x.ro_count), + total = data1.Where(x => x.total > 0).Sum(x => x.total) + }, + data2, + data2Count = new + { + pp_appoint = data2.Where(x => x.pp_appoint > 0).Sum(x => x.pp_appoint), + pp_slip = data2.Where(x => x.pp_slip > 0).Sum(x => x.pp_slip), + pp_move = data2.Where(x => x.pp_move > 0).Sum(x => x.pp_move), + pa_appoint = data2.Where(x => x.pa_appoint > 0).Sum(x => x.pa_appoint), + pa_slip = data2.Where(x => x.pa_slip > 0).Sum(x => x.pa_slip), + pa_move = data2.Where(x => x.pa_move > 0).Sum(x => x.pa_move), + pt_count = data2.Where(x => x.pt_count > 0).Sum(x => x.pt_count), + pr_count = data2.Where(x => x.pr_count > 0).Sum(x => x.pr_count), + po_count = data2.Where(x => x.po_count > 0).Sum(x => x.po_count), + prp_count = data2.Where(x => x.prp_count > 0).Sum(x => x.prp_count), + ro_count = data2.Where(x => x.ro_count > 0).Sum(x => x.ro_count), + total = data2.Where(x => x.total > 0).Sum(x => x.total) + }, + sum = new + { + pp_appoint = data1.Where(x => x.pp_appoint > 0).Sum(x => x.pp_appoint) + data2.Where(x => x.pp_appoint > 0).Sum(x => x.pp_appoint), + pp_slip = data1.Where(x => x.pp_slip > 0).Sum(x => x.pp_slip) + data2.Where(x => x.pp_slip > 0).Sum(x => x.pp_slip), + pp_move = data1.Where(x => x.pp_move > 0).Sum(x => x.pp_move) + data2.Where(x => x.pp_move > 0).Sum(x => x.pp_move), + pa_appoint = data1.Where(x => x.pa_appoint > 0).Sum(x => x.pa_appoint) + data2.Where(x => x.pa_appoint > 0).Sum(x => x.pa_appoint), + pa_slip = data1.Where(x => x.pa_slip > 0).Sum(x => x.pa_slip) + data2.Where(x => x.pa_slip > 0).Sum(x => x.pa_slip), + pa_move = data1.Where(x => x.pa_move > 0).Sum(x => x.pa_move) + data2.Where(x => x.pa_move > 0).Sum(x => x.pa_move), + pt_count = data1.Where(x => x.pt_count > 0).Sum(x => x.pt_count) + data2.Where(x => x.pt_count > 0).Sum(x => x.pt_count), + pr_count = data1.Where(x => x.pr_count > 0).Sum(x => x.pr_count) + data2.Where(x => x.pr_count > 0).Sum(x => x.pr_count), + po_count = data1.Where(x => x.po_count > 0).Sum(x => x.po_count) + data2.Where(x => x.po_count > 0).Sum(x => x.po_count), + prp_count = data1.Where(x => x.prp_count > 0).Sum(x => x.prp_count) + data2.Where(x => x.prp_count > 0).Sum(x => x.prp_count), + ro_count = data1.Where(x => x.ro_count > 0).Sum(x => x.ro_count) + data2.Where(x => x.ro_count > 0).Sum(x => x.ro_count), + total = data1.Where(x => x.total > 0).Sum(x => x.total) + data2.Where(x => x.total > 0).Sum(x => x.total) + } + } + }; return Success(data); } @@ -2794,17 +3064,129 @@ namespace BMA.EHR.Placement.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet("report2")] - public async Task> report2(string? nodeId = null, int? node = 0, DateOnly? startDate = null, DateOnly? startEnd = null) + public async Task> report2(string nodeId = "", int? node = null, DateTime? startDate = null, DateTime? endDate = null) { - - var data = new + var apiUrl = $"{_configuration["API"]}/org/find/node-all"; + var data = new object(); + var data1 = new List(); + var data2 = new List(); + using (var client = new HttpClient()) { - template = "placement02", + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + var _req = new HttpRequestMessage(HttpMethod.Post, apiUrl); + var _res = await client.PostAsJsonAsync(apiUrl, new + { + node, + nodeId, + }); + var _result = await _res.Content.ReadAsStringAsync(); + var orgs = JsonConvert.DeserializeObject(_result); + + if (orgs == null || orgs.result == null) + return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ™āļĩāđ‰āđƒāļ™āļĢāļ°āļšāļš", 404); + + int no = 1; + + foreach (var item in orgs.result.isRootTrue) + { + var placementAppointments = _context.PlacementAppointments + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE" && + x.type.Trim().ToUpper() == "OFFICER") + .GroupBy(x => x.typeCommand.Trim().ToUpper()) + .Select(g => new + { + TypeCommand = g.Key, + Count = g.Count() + }) + .ToList(); + + var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; + var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; + var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; + + data1.Add(new + { + no = no, + rootName = item.name, + pa_appoint = pa_appoint, + pa_slip = pa_slip, + pa_move = pa_move, + total = (pa_appoint + pa_slip + pa_move) + }); + no++; + } + no = 1; + foreach (var item in orgs.result.isRootFalse) + { + var placementAppointments = _context.PlacementAppointments + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootId.Contains(item.rootId) && + x.Status.Trim().ToUpper() == "DONE" && + x.type.Trim().ToUpper() == "OFFICER") + .GroupBy(x => x.typeCommand.Trim().ToUpper()) + .Select(g => new + { + TypeCommand = g.Key, + Count = g.Count() + }) + .ToList(); + + var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; + var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; + var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; + + data2.Add(new + { + no = no, + rootName = item.name, + pa_appoint = pa_appoint, + pa_slip = pa_slip, + pa_move = pa_move, + total = (pa_appoint + pa_slip + pa_move) + }); + no++; + } + } + + data = new + { + template = "reportPlacement02All", reportName = "xlsx-report", - data = "" - + data = new + { + date = $"āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ {startDate.Value.Date.ToThaiShortDate().ToThaiNumber()} āļ–āļķāļ‡ {endDate.Value.Date.ToThaiShortDate().ToThaiNumber()}", + dateCurrent = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}", + data1, + data1Count = new + { + pa_appoint = data1.Where(x => x.pa_appoint > 0).Sum(x => x.pa_appoint), + pa_slip = data1.Where(x => x.pa_slip > 0).Sum(x => x.pa_slip), + pa_move = data1.Where(x => x.pa_move > 0).Sum(x => x.pa_move), + total = data1.Where(x => x.total > 0).Sum(x => x.total) + }, + data2, + data2Count = new + { + pa_appoint = data2.Where(x => x.pa_appoint > 0).Sum(x => x.pa_appoint), + pa_slip = data2.Where(x => x.pa_slip > 0).Sum(x => x.pa_slip), + pa_move = data2.Where(x => x.pa_move > 0).Sum(x => x.pa_move), + total = data2.Where(x => x.total > 0).Sum(x => x.total) + }, + sum = new + { + pa_appoint = data1.Where(x => x.pa_appoint > 0).Sum(x => x.pa_appoint) + data2.Where(x => x.pa_appoint > 0).Sum(x => x.pa_appoint), + pa_slip = data1.Where(x => x.pa_slip > 0).Sum(x => x.pa_slip) + data2.Where(x => x.pa_slip > 0).Sum(x => x.pa_slip), + pa_move = data1.Where(x => x.pa_move > 0).Sum(x => x.pa_move) + data2.Where(x => x.pa_move > 0).Sum(x => x.pa_move), + total = data1.Where(x => x.total > 0).Sum(x => x.total) + data2.Where(x => x.total > 0).Sum(x => x.total) + } + } }; - return Success(data); } } diff --git a/BMA.EHR.Placement.Service/Requests/NodeAllRequest.cs b/BMA.EHR.Placement.Service/Requests/NodeAllRequest.cs new file mode 100644 index 00000000..d1c4f7cf --- /dev/null +++ b/BMA.EHR.Placement.Service/Requests/NodeAllRequest.cs @@ -0,0 +1,24 @@ +using BMA.EHR.Domain.Models.MetaData; +using Microsoft.EntityFrameworkCore; + +namespace BMA.EHR.Placement.Service.Requests +{ + public class NodeAllRequest + { + public NodeAllResult result { get; set; } = new(); + } + public class NodeAllResult + { + public List isRootTrue { get; set; } = new(); + public List isRootFalse { get; set; } = new(); + } + public class NodeAllRequestData + { + public string? name { get; set; } + public string? rootId { get; set; } + public string? child1Id { get; set; } + public string? child2Id { get; set; } + public string? child3Id { get; set; } + public string? child4Id { get; set; } + } +} \ No newline at end of file diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index 87e2be80..f1f88266 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -33,7 +33,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; private readonly PermissionRepository _permission; - + private readonly DisciplineDbContext _contextDiscipline; public RetirementController(RetirementRepository repository, NotificationRepository repositoryNoti, ApplicationDBContext context, @@ -41,7 +41,8 @@ namespace BMA.EHR.Retirement.Service.Controllers IConfiguration configuration, OrganizationCommonRepository organizationCommonRepository, IHttpContextAccessor httpContextAccessor, - PermissionRepository permission) + PermissionRepository permission, + DisciplineDbContext contextDiscipline) { _repository = repository; _repositoryNoti = repositoryNoti; @@ -51,6 +52,7 @@ namespace BMA.EHR.Retirement.Service.Controllers _httpContextAccessor = httpContextAccessor; _configuration = configuration; _permission = permission; + _contextDiscipline = contextDiscipline; } #region " Properties " @@ -1290,15 +1292,286 @@ namespace BMA.EHR.Retirement.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet("report1")] - public async Task> report1(string? nodeId = null, int? node = 0, DateOnly? startDate = null, DateOnly? startEnd = null) + public async Task> report1(string nodeId = "", int? node = null, DateTime? startDate = null, DateTime? endDate = null) { - var data = new - { - template = "retirement01", - reportName = "xlsx-report", - data = "" - }; + var apiUrl = $"{_configuration["API"]}/org/find/node-all"; + var data = new object(); + var data1 = new List(); + var data2 = new List(); + + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + var _req = new HttpRequestMessage(HttpMethod.Post, apiUrl); + var _res = await client.PostAsJsonAsync(apiUrl, new + { + node, + nodeId + }); + var _result = await _res.Content.ReadAsStringAsync(); + var orgs = JsonConvert.DeserializeObject(_result); + + if (orgs == null || orgs.result == null) + return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ™āļĩāđ‰āđƒāļ™āļĢāļ°āļšāļš", 404); + + int no = 1; + + foreach (var org in orgs.result.isRootTrue) + { + //āđ€āļāļĐāļĩāļĒāļ“ + var retire = _context.RetirementPeriods + .Include(x => x.RetirementProfiles.Where(x => x.rootId == org.rootId)) + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Type.Trim().ToUpper() == "OFFICER") + .FirstOrDefault(); + + var rt_count = retire != null ? retire.RetirementProfiles.Count() : 0; + + //āļĨāļēāļ­āļ­āļ + var retirementResigns = _context.RetirementResigns + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId == org.rootId && + x.IsCancel == false && x.Status == "DONE") + .ToList(); + + var career_count = retirementResigns.Where(x => x.Reason == "CAREER").Count(); + var move_count = retirementResigns.Where(x => x.Reason == "MOVE").Count(); + var family_count = retirementResigns.Where(x => x.Reason == "FAMILY").Count(); + var education_count = retirementResigns.Where(x => x.Reason == "EDUCATION").Count(); + var other_count = retirementResigns.Where(x => x.Reason == "OTHER").Count(); + + //āļ‚āļ­āđ‚āļ­āļ™ + var pt_count = _context.PlacementTransfers + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId.Contains(org.rootId) && + x.Status.Trim().ToUpper() == "DONE") + .Count(); + + //āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ + var rd_count = _context.RetirementDeceaseds + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.rootId.Contains(org.rootId)) + .Count(); + + //āđƒāļŦāđ‰āļ­āļ­āļ + var ro_count = _context.RetirementOuts + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Status.Trim().ToUpper() == "DONE" && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.rootOldId.Contains(org.rootId)) + .Count(); + + //āļ›āļĨāļ”āļ­āļ­āļ + var dl_cm19_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Status.Trim().ToUpper() == "DONE" && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") && + x.rootId.Contains(org.rootId)) + .Count(); + + //āđ„āļĨāđˆāļ­āļ­āļ + var dl_cm20_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Status.Trim().ToUpper() == "DONE" && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") && + x.rootId.Contains(org.rootId)) + .Count(); + + data1.Add(new + { + no = no, + rootName = org.name, + rt_count, + career_count, + move_count, + family_count, + education_count, + other_count, + pt_count, + rd_count, + ro_count, + dl_cm19_count, + dl_cm20_count, + total = (rt_count + career_count + move_count + family_count + education_count + other_count + pt_count + rd_count + ro_count + dl_cm19_count + dl_cm20_count) + }); + no++; + } + + no = 1; + foreach (var org in orgs.result.isRootFalse) + { + //āđ€āļāļĐāļĩāļĒāļ“ + var retire = _context.RetirementPeriods + .Include(x => x.RetirementProfiles.Where(x => x.rootId == org.rootId)) + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Type.Trim().ToUpper() == "OFFICER") + .FirstOrDefault(); + + var rt_count = retire != null ? retire.RetirementProfiles.Count() : 0; + + //āļĨāļēāļ­āļ­āļ + var retirementResigns = _context.RetirementResigns + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId == org.rootId && + x.IsCancel == false && x.Status == "DONE") + .ToList(); + + var career_count = retirementResigns.Where(x => x.Reason == "CAREER").Count(); + var move_count = retirementResigns.Where(x => x.Reason == "MOVE").Count(); + var family_count = retirementResigns.Where(x => x.Reason == "FAMILY").Count(); + var education_count = retirementResigns.Where(x => x.Reason == "EDUCATION").Count(); + var other_count = retirementResigns.Where(x => x.Reason == "OTHER").Count(); + + //āļ‚āļ­āđ‚āļ­āļ™ + var pt_count = _context.PlacementTransfers + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId.Contains(org.rootId) && + x.Status.Trim().ToUpper() == "DONE") + .Count(); + + //āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ + var rd_count = _context.RetirementDeceaseds + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.rootId.Contains(org.rootId)) + .Count(); + + //āđƒāļŦāđ‰āļ­āļ­āļ + var ro_count = _context.RetirementOuts + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Status.Trim().ToUpper() == "DONE" && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.rootOldId.Contains(org.rootId)) + .Count(); + + //āļ›āļĨāļ”āļ­āļ­āļ + var dl_cm19_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Status.Trim().ToUpper() == "DONE" && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") && + x.rootId.Contains(org.rootId)) + .Count(); + + //āđ„āļĨāđˆāļ­āļ­āļ + var dl_cm20_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Status.Trim().ToUpper() == "DONE" && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") && + x.rootId.Contains(org.rootId)) + .Count(); + + data2.Add(new + { + no = no, + rootName = org.name, + rt_count, + career_count, + move_count, + family_count, + education_count, + other_count, + pt_count, + rd_count, + ro_count, + dl_cm19_count, + dl_cm20_count, + total = (rt_count + career_count + move_count + family_count + education_count + other_count + pt_count + rd_count + ro_count + dl_cm19_count + dl_cm20_count) + }); + no++; + } + } + + data = new + { + template = "reportRetirement01All", + reportName = "xlsx-report", + data = new + { + date = $"āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ {startDate.Value.Date.ToThaiShortDate().ToThaiNumber()} āļ–āļķāļ‡ {endDate.Value.Date.ToThaiShortDate().ToThaiNumber()}", + dateCurrent = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}", + data1, + data1Count = new + { + rt_count = data1.Where(x => x.rt_count > 0).Sum(x => x.rt_count), + career_count = data1.Where(x => x.career_count > 0).Sum(x => x.career_count), + move_count = data1.Where(x => x.move_count > 0).Sum(x => x.move_count), + family_count = data1.Where(x => x.family_count > 0).Sum(x => x.family_count), + education_count = data1.Where(x => x.education_count > 0).Sum(x => x.education_count), + other_count = data1.Where(x => x.other_count > 0).Sum(x => x.other_count), + pt_count = data1.Where(x => x.pt_count > 0).Sum(x => x.pt_count), + rd_count = data1.Where(x => x.rd_count > 0).Sum(x => x.rd_count), + ro_count = data1.Where(x => x.ro_count > 0).Sum(x => x.ro_count), + dl_cm19_count = data1.Where(x => x.dl_cm19_count > 0).Sum(x => x.dl_cm19_count), + dl_cm20_count = data1.Where(x => x.dl_cm20_count > 0).Sum(x => x.dl_cm20_count), + total = data1.Where(x => x.total > 0).Sum(x => x.total) + }, + data2, + data2Count = new + { + rt_count = data2.Where(x => x.rt_count > 0).Sum(x => x.rt_count), + career_count = data2.Where(x => x.career_count > 0).Sum(x => x.career_count), + move_count = data2.Where(x => x.move_count > 0).Sum(x => x.move_count), + family_count = data2.Where(x => x.family_count > 0).Sum(x => x.family_count), + education_count = data2.Where(x => x.education_count > 0).Sum(x => x.education_count), + other_count = data2.Where(x => x.other_count > 0).Sum(x => x.other_count), + pt_count = data2.Where(x => x.pt_count > 0).Sum(x => x.pt_count), + rd_count = data2.Where(x => x.rd_count > 0).Sum(x => x.rd_count), + ro_count = data2.Where(x => x.ro_count > 0).Sum(x => x.ro_count), + dl_cm19_count = data2.Where(x => x.dl_cm19_count > 0).Sum(x => x.dl_cm19_count), + dl_cm20_count = data2.Where(x => x.dl_cm20_count > 0).Sum(x => x.dl_cm20_count), + total = data2.Where(x => x.total > 0).Sum(x => x.total) + }, + sum = new + { + rt_count = data1.Where(x => x.rt_count > 0).Sum(x => x.rt_count) + data2.Where(x => x.rt_count > 0).Sum(x => x.rt_count), + career_count = data1.Where(x => x.career_count > 0).Sum(x => x.career_count) + data2.Where(x => x.career_count > 0).Sum(x => x.career_count), + move_count = data1.Where(x => x.move_count > 0).Sum(x => x.move_count) + data2.Where(x => x.move_count > 0).Sum(x => x.move_count), + family_count = data1.Where(x => x.family_count > 0).Sum(x => x.family_count) + data2.Where(x => x.family_count > 0).Sum(x => x.family_count), + education_count = data1.Where(x => x.education_count > 0).Sum(x => x.education_count) + data2.Where(x => x.education_count > 0).Sum(x => x.education_count), + other_count = data1.Where(x => x.other_count > 0).Sum(x => x.other_count) + data2.Where(x => x.other_count > 0).Sum(x => x.other_count), + pt_count = data1.Where(x => x.pt_count > 0).Sum(x => x.pt_count) + data2.Where(x => x.pt_count > 0).Sum(x => x.pt_count), + rd_count = data1.Where(x => x.rd_count > 0).Sum(x => x.rd_count) + data2.Where(x => x.rd_count > 0).Sum(x => x.rd_count), + ro_count = data1.Where(x => x.ro_count > 0).Sum(x => x.ro_count) + data2.Where(x => x.ro_count > 0).Sum(x => x.ro_count), + dl_cm19_count = data1.Where(x => x.dl_cm19_count > 0).Sum(x => x.dl_cm19_count) + data2.Where(x => x.dl_cm19_count > 0).Sum(x => x.dl_cm19_count), + dl_cm20_count = data1.Where(x => x.dl_cm20_count > 0).Sum(x => x.dl_cm20_count) + data2.Where(x => x.dl_cm20_count > 0).Sum(x => x.dl_cm20_count), + total = data1.Where(x => x.total > 0).Sum(x => x.total) + data2.Where(x => x.total > 0).Sum(x => x.total) + } + } + }; return Success(data); } @@ -1311,17 +1584,263 @@ namespace BMA.EHR.Retirement.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet("report2")] - public async Task> report2(string? nodeId = null, int? node = 0, DateOnly? startDate = null, DateOnly? startEnd = null) + public async Task> report2(string nodeId = "", int? node = null, DateTime? startDate = null, DateTime? endDate = null) { - var data = new + var apiUrl = $"{_configuration["API"]}/org/find/node-all"; + var data = new object(); + var data1 = new List(); + var data2 = new List(); + + using (var client = new HttpClient()) { - template = "retirement02", + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + var _req = new HttpRequestMessage(HttpMethod.Post, apiUrl); + var _res = await client.PostAsJsonAsync(apiUrl, new + { + node, + nodeId + }); + var _result = await _res.Content.ReadAsStringAsync(); + var orgs = JsonConvert.DeserializeObject(_result); + + if (orgs == null || orgs.result == null) + return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ™āļĩāđ‰āđƒāļ™āļĢāļ°āļšāļš", 404); + + int no = 1; + + foreach (var org in orgs.result.isRootTrue) + { + //āđ€āļāļĐāļĩāļĒāļ“ + var retire = _context.RetirementPeriods + .Include(x => x.RetirementProfiles.Where(x => x.rootId == org.rootId)) + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Type.Trim().ToUpper() == "OFFICER") + .FirstOrDefault(); + + var rt_count = retire != null ? retire.RetirementProfiles.Count() : 0; + + //āļĨāļēāļ­āļ­āļ + var retirementResigns = _context.RetirementResigns + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId == org.rootId && + x.IsCancel == false && x.Status == "DONE") + .ToList(); + + var career_count = retirementResigns.Where(x => x.Reason == "CAREER").Count(); + var move_count = retirementResigns.Where(x => x.Reason == "MOVE").Count(); + var family_count = retirementResigns.Where(x => x.Reason == "FAMILY").Count(); + var education_count = retirementResigns.Where(x => x.Reason == "EDUCATION").Count(); + var other_count = retirementResigns.Where(x => x.Reason == "OTHER").Count(); + + //āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ + var rd_count = _context.RetirementDeceaseds + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.rootId.Contains(org.rootId)) + .Count(); + + //āđƒāļŦāđ‰āļ­āļ­āļ + var ro_count = _context.RetirementOuts + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Status.Trim().ToUpper() == "DONE" && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.rootOldId.Contains(org.rootId)) + .Count(); + + //āļ›āļĨāļ”āļ­āļ­āļ + var dl_cm19_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Status.Trim().ToUpper() == "DONE" && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") && + x.rootId.Contains(org.rootId)) + .Count(); + + //āđ„āļĨāđˆāļ­āļ­āļ + var dl_cm20_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Status.Trim().ToUpper() == "DONE" && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") && + x.rootId.Contains(org.rootId)) + .Count(); + + data1.Add(new + { + no = no, + rootName = org.name, + rt_count, + career_count, + move_count, + family_count, + education_count, + other_count, + rd_count, + ro_count, + dl_cm19_count, + dl_cm20_count, + total = (rt_count + career_count + move_count + family_count + education_count + other_count + rd_count + ro_count + dl_cm19_count + dl_cm20_count) + }); + no++; + } + + no = 1; + foreach (var org in orgs.result.isRootFalse) + { + //āđ€āļāļĐāļĩāļĒāļ“ + var retire = _context.RetirementPeriods + .Include(x => x.RetirementProfiles.Where(x => x.rootId == org.rootId)) + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Type.Trim().ToUpper() == "OFFICER") + .FirstOrDefault(); + + var rt_count = retire != null ? retire.RetirementProfiles.Count() : 0; + + //āļĨāļēāļ­āļ­āļ + var retirementResigns = _context.RetirementResigns + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootOldId == org.rootId && + x.IsCancel == false && x.Status == "DONE") + .ToList(); + + var career_count = retirementResigns.Where(x => x.Reason == "CAREER").Count(); + var move_count = retirementResigns.Where(x => x.Reason == "MOVE").Count(); + var family_count = retirementResigns.Where(x => x.Reason == "FAMILY").Count(); + var education_count = retirementResigns.Where(x => x.Reason == "EDUCATION").Count(); + var other_count = retirementResigns.Where(x => x.Reason == "OTHER").Count(); + + //āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ + var rd_count = _context.RetirementDeceaseds + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.rootId.Contains(org.rootId)) + .Count(); + + //āđƒāļŦāđ‰āļ­āļ­āļ + var ro_count = _context.RetirementOuts + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Status.Trim().ToUpper() == "DONE" && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.rootOldId.Contains(org.rootId)) + .Count(); + + //āļ›āļĨāļ”āļ­āļ­āļ + var dl_cm19_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Status.Trim().ToUpper() == "DONE" && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") && + x.rootId.Contains(org.rootId)) + .Count(); + + //āđ„āļĨāđˆāļ­āļ­āļ + var dl_cm20_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.Status.Trim().ToUpper() == "DONE" && + x.profileType.Trim().ToUpper() == "OFFICER" && + x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") && + x.rootId.Contains(org.rootId)) + .Count(); + + data2.Add(new + { + no = no, + rootName = org.name, + rt_count, + career_count, + move_count, + family_count, + education_count, + other_count, + rd_count, + ro_count, + dl_cm19_count, + dl_cm20_count, + total = (rt_count + career_count + move_count + family_count + education_count + other_count + rd_count + ro_count + dl_cm19_count + dl_cm20_count) + }); + no++; + } + } + + data = new + { + template = "reportRetirement02All", reportName = "xlsx-report", - data = "" - + data = new + { + date = $"āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ {startDate.Value.Date.ToThaiShortDate().ToThaiNumber()} āļ–āļķāļ‡ {endDate.Value.Date.ToThaiShortDate().ToThaiNumber()}", + dateCurrent = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}", + data1, + data1Count = new + { + rt_count = data1.Where(x => x.rt_count > 0).Sum(x => x.rt_count), + career_count = data1.Where(x => x.career_count > 0).Sum(x => x.career_count), + move_count = data1.Where(x => x.move_count > 0).Sum(x => x.move_count), + family_count = data1.Where(x => x.family_count > 0).Sum(x => x.family_count), + education_count = data1.Where(x => x.education_count > 0).Sum(x => x.education_count), + other_count = data1.Where(x => x.other_count > 0).Sum(x => x.other_count), + rd_count = data1.Where(x => x.rd_count > 0).Sum(x => x.rd_count), + ro_count = data1.Where(x => x.ro_count > 0).Sum(x => x.ro_count), + dl_cm19_count = data1.Where(x => x.dl_cm19_count > 0).Sum(x => x.dl_cm19_count), + dl_cm20_count = data1.Where(x => x.dl_cm20_count > 0).Sum(x => x.dl_cm20_count), + total = data1.Where(x => x.total > 0).Sum(x => x.total) + }, + data2, + data2Count = new + { + rt_count = data2.Where(x => x.rt_count > 0).Sum(x => x.rt_count), + career_count = data2.Where(x => x.career_count > 0).Sum(x => x.career_count), + move_count = data2.Where(x => x.move_count > 0).Sum(x => x.move_count), + family_count = data2.Where(x => x.family_count > 0).Sum(x => x.family_count), + education_count = data2.Where(x => x.education_count > 0).Sum(x => x.education_count), + other_count = data2.Where(x => x.other_count > 0).Sum(x => x.other_count), + rd_count = data2.Where(x => x.rd_count > 0).Sum(x => x.rd_count), + ro_count = data2.Where(x => x.ro_count > 0).Sum(x => x.ro_count), + dl_cm19_count = data2.Where(x => x.dl_cm19_count > 0).Sum(x => x.dl_cm19_count), + dl_cm20_count = data2.Where(x => x.dl_cm20_count > 0).Sum(x => x.dl_cm20_count), + total = data2.Where(x => x.total > 0).Sum(x => x.total) + }, + sum = new + { + rt_count = data1.Where(x => x.rt_count > 0).Sum(x => x.rt_count) + data2.Where(x => x.rt_count > 0).Sum(x => x.rt_count), + career_count = data1.Where(x => x.career_count > 0).Sum(x => x.career_count) + data2.Where(x => x.career_count > 0).Sum(x => x.career_count), + move_count = data1.Where(x => x.move_count > 0).Sum(x => x.move_count) + data2.Where(x => x.move_count > 0).Sum(x => x.move_count), + family_count = data1.Where(x => x.family_count > 0).Sum(x => x.family_count) + data2.Where(x => x.family_count > 0).Sum(x => x.family_count), + education_count = data1.Where(x => x.education_count > 0).Sum(x => x.education_count) + data2.Where(x => x.education_count > 0).Sum(x => x.education_count), + other_count = data1.Where(x => x.other_count > 0).Sum(x => x.other_count) + data2.Where(x => x.other_count > 0).Sum(x => x.other_count), + rd_count = data1.Where(x => x.rd_count > 0).Sum(x => x.rd_count) + data2.Where(x => x.rd_count > 0).Sum(x => x.rd_count), + ro_count = data1.Where(x => x.ro_count > 0).Sum(x => x.ro_count) + data2.Where(x => x.ro_count > 0).Sum(x => x.ro_count), + dl_cm19_count = data1.Where(x => x.dl_cm19_count > 0).Sum(x => x.dl_cm19_count) + data2.Where(x => x.dl_cm19_count > 0).Sum(x => x.dl_cm19_count), + dl_cm20_count = data1.Where(x => x.dl_cm20_count > 0).Sum(x => x.dl_cm20_count) + data2.Where(x => x.dl_cm20_count > 0).Sum(x => x.dl_cm20_count), + total = data1.Where(x => x.total > 0).Sum(x => x.total) + data2.Where(x => x.total > 0).Sum(x => x.total) + } + } }; - return Success(data); } } diff --git a/BMA.EHR.Retirement.Service/Program.cs b/BMA.EHR.Retirement.Service/Program.cs index d2f411ad..8460c0f5 100644 --- a/BMA.EHR.Retirement.Service/Program.cs +++ b/BMA.EHR.Retirement.Service/Program.cs @@ -101,6 +101,11 @@ var builder = WebApplication.CreateBuilder(args); var defaultConnection = builder.Configuration.GetConnectionString("DefaultConnection"); builder.Services.AddDbContext(options => options.UseMySql(defaultConnection, ServerVersion.AutoDetect(defaultConnection))); + // Register DisciplineDbContext + var disciplineConnection = builder.Configuration.GetConnectionString("DisciplineConnection"); + builder.Services.AddDbContext(options => + options.UseMySql(disciplineConnection, ServerVersion.AutoDetect(disciplineConnection))); + builder.Services.AddHealthChecks(); // Add Hangfire services. builder.Services.AddHangfire(configuration => configuration diff --git a/BMA.EHR.Retirement.Service/Requests/NodeAllRequest.cs b/BMA.EHR.Retirement.Service/Requests/NodeAllRequest.cs new file mode 100644 index 00000000..0e5b46b3 --- /dev/null +++ b/BMA.EHR.Retirement.Service/Requests/NodeAllRequest.cs @@ -0,0 +1,24 @@ +using BMA.EHR.Domain.Models.MetaData; +using Microsoft.EntityFrameworkCore; + +namespace BMA.EHR.Retirement.Service.Requests +{ + public class NodeAllRequest + { + public NodeAllResult result { get; set; } = new(); + } + public class NodeAllResult + { + public List isRootTrue { get; set; } = new(); + public List isRootFalse { get; set; } = new(); + } + public class NodeAllRequestData + { + public string? name { get; set; } + public string? rootId { get; set; } + public string? child1Id { get; set; } + public string? child2Id { get; set; } + public string? child3Id { get; set; } + public string? child4Id { get; set; } + } +} \ No newline at end of file diff --git a/BMA.EHR.Retirement.Service/appsettings.json b/BMA.EHR.Retirement.Service/appsettings.json index 522c87d0..a9e19037 100644 --- a/BMA.EHR.Retirement.Service/appsettings.json +++ b/BMA.EHR.Retirement.Service/appsettings.json @@ -15,7 +15,8 @@ "ConnectionStrings": { //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", // "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "DisciplineConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_discipline_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", From 102b5e21dcc2c58f10e43f0cccfdff25ef30173b Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 16 Jan 2025 17:24:30 +0700 Subject: [PATCH 016/879] report 02 add edu --- BMA.EHR.Placement.Service/Controllers/PlacementController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 29139434..0a0d9ac0 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1529,7 +1529,7 @@ namespace BMA.EHR.Placement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.PlacementEducations == null || p.PlacementEducations.Count == 0 ? "-" : - p.PlacementEducations.FirstOrDefault().Degree, + $"{p.PlacementEducations.FirstOrDefault().Degree} {p.PlacementEducations.FirstOrDefault().Field}", PositionName = p.positionName == null ? "-" : p.positionName, ExamNumber = p.ExamNumber == null ? "-" : p.ExamNumber.Value.ToString().ToThaiNumber(), PlacementName = $"{p.Placement.Name.ToThaiNumber()} āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ {p.Placement.Round.ToThaiNumber()}/{p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", @@ -1849,7 +1849,7 @@ namespace BMA.EHR.Placement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.PlacementEducations == null || p.PlacementEducations.Count == 0 ? "-" : - p.PlacementEducations.FirstOrDefault().Degree, + $"{p.PlacementEducations.FirstOrDefault().Degree} {p.PlacementEducations.FirstOrDefault().Field}", PositionName = p.positionName == null ? "-" : p.positionName, ExamNumber = p.ExamNumber == null ? "-" : p.ExamNumber.Value.ToString().ToThaiNumber(), PlacementName = $"{p.Placement.Name.ToThaiNumber()} āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ {p.Placement.Round.ToThaiNumber()}/{p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", From 2095cd7fb43251728eb277b3051e533411e7b61f Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 16 Jan 2025 17:55:07 +0700 Subject: [PATCH 017/879] add phnoe --- .../Controllers/PlacementController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 369be4f3..fca6ea0d 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1956,7 +1956,7 @@ namespace BMA.EHR.Placement.Service.Controllers posLevelId = p.posLevelId == null ? string.Empty : p.posLevelId, posTypeId = p.posTypeId == null ? string.Empty : p.posTypeId, email = p.Email == null ? string.Empty : p.Email, - phone = p.MobilePhone == null ? string.Empty : p.MobilePhone, + phone = p.Telephone == null ? string.Empty : p.Telephone, keycloak = string.Empty, isProbation = true, isLeave = false, @@ -2795,7 +2795,7 @@ namespace BMA.EHR.Placement.Service.Controllers return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ™āļĩāđ‰āđƒāļ™āļĢāļ°āļšāļš", 404); int no = 1; - + foreach (var item in orgs.result.isRootTrue) { var placementProfiles = _context.PlacementProfiles @@ -2974,7 +2974,7 @@ namespace BMA.EHR.Placement.Service.Controllers var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; - data2 .Add(new + data2.Add(new { no = no, rootName = item.name, @@ -3004,7 +3004,7 @@ namespace BMA.EHR.Placement.Service.Controllers date = $"āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ {startDate.Value.Date.ToThaiShortDate().ToThaiNumber()} āļ–āļķāļ‡ {endDate.Value.Date.ToThaiShortDate().ToThaiNumber()}", dateCurrent = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}", data1, - data1Count = new + data1Count = new { pp_appoint = data1.Where(x => x.pp_appoint > 0).Sum(x => x.pp_appoint), pp_slip = data1.Where(x => x.pp_slip > 0).Sum(x => x.pp_slip), From 37d1ff3f405082a9b1411c51bb7405e219e56a01 Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 17 Jan 2025 11:11:06 +0700 Subject: [PATCH 018/879] add RetirementDeceased --- .../RetirementDeceasedController.cs | 234 ++++++++++-------- .../Requests/RetirementDeceasedRequest.cs | 1 + 2 files changed, 126 insertions(+), 109 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index ddfce717..f27dbcf9 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -103,6 +103,7 @@ namespace BMA.EHR.Retirement.Service.Controllers .Select(p => new { p.Id, + p.profileType, p.citizenId, p.profileId, p.prefix, @@ -126,7 +127,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsActive, }) .ToListAsync(); - return Success(retirementDeceaseds); + return Success(retirementDeceaseds); } /// @@ -147,6 +148,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { p.Id, p.profileId, + p.profileType, p.prefix, p.firstName, p.lastName, @@ -236,6 +238,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { // Profile = profile, Number = req.Number, + profileType = req.profileType.Trim().ToUpper(), Date = req.Date, Location = req.Location, Reason = req.Reason, @@ -247,65 +250,129 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, }; - var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{req.ProfileId}"; - using (var client = new HttpClient()) + if (req.profileType.Trim().ToUpper() == "OFFICER") { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); - var _res = await client.SendAsync(_req); - var _result = await _res.Content.ReadAsStringAsync(); - - var org = JsonConvert.DeserializeObject(_result); - - if (org == null || org.result == null) - return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļ„āļ™āļ™āļĩāđ‰", 404); - - retirementDeceased.profileId = org.result.profileId; - retirementDeceased.prefix = org.result.prefix; - retirementDeceased.firstName = org.result.firstName; - retirementDeceased.lastName = org.result.lastName; - retirementDeceased.citizenId = org.result.citizenId; - retirementDeceased.root = org.result.root; - retirementDeceased.rootId = org.result.rootId; - retirementDeceased.rootShortName = org.result.rootShortName; - retirementDeceased.child1 = org.result.child1; - retirementDeceased.child1Id = org.result.child1Id; - retirementDeceased.child1ShortName = org.result.child1ShortName; - retirementDeceased.child2 = org.result.child2; - retirementDeceased.child2Id = org.result.child2Id; - retirementDeceased.child2ShortName = org.result.child2ShortName; - retirementDeceased.child3 = org.result.child3; - retirementDeceased.child3Id = org.result.child3Id; - retirementDeceased.child3ShortName = org.result.child3ShortName; - retirementDeceased.child4 = org.result.child4; - retirementDeceased.child4Id = org.result.child4Id; - retirementDeceased.child4ShortName = org.result.child4ShortName; - retirementDeceased.posMasterNo = org.result.posMasterNo; - retirementDeceased.position = org.result.position; - retirementDeceased.posTypeId = org.result.posTypeId; - retirementDeceased.posTypeName = org.result.posTypeName; - retirementDeceased.posLevelId = org.result.posLevelId; - retirementDeceased.posLevelName = org.result.posLevelName; - } - await _context.RetirementDeceaseds.AddAsync(retirementDeceased); - //await _context.SaveChangesAsync(); - - var _baseAPI = _configuration["API"]; - var _apiUrl = $"{_baseAPI}/org/profile/leave/{req.ProfileId}"; - - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _req = new HttpRequestMessage(HttpMethod.Post, _apiUrl); - var _res = await client.PostAsJsonAsync(_apiUrl, new + var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{req.ProfileId}"; + using (var client = new HttpClient()) { - isLeave = true, - leaveReason = "āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ", - dateLeave = req.Date, - }); - var _result = await _res.Content.ReadAsStringAsync(); + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org == null || org.result == null) + return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļ„āļ™āļ™āļĩāđ‰", 404); + + retirementDeceased.profileId = org.result.profileId; + retirementDeceased.prefix = org.result.prefix; + retirementDeceased.firstName = org.result.firstName; + retirementDeceased.lastName = org.result.lastName; + retirementDeceased.citizenId = org.result.citizenId; + retirementDeceased.root = org.result.root; + retirementDeceased.rootId = org.result.rootId; + retirementDeceased.rootShortName = org.result.rootShortName; + retirementDeceased.child1 = org.result.child1; + retirementDeceased.child1Id = org.result.child1Id; + retirementDeceased.child1ShortName = org.result.child1ShortName; + retirementDeceased.child2 = org.result.child2; + retirementDeceased.child2Id = org.result.child2Id; + retirementDeceased.child2ShortName = org.result.child2ShortName; + retirementDeceased.child3 = org.result.child3; + retirementDeceased.child3Id = org.result.child3Id; + retirementDeceased.child3ShortName = org.result.child3ShortName; + retirementDeceased.child4 = org.result.child4; + retirementDeceased.child4Id = org.result.child4Id; + retirementDeceased.child4ShortName = org.result.child4ShortName; + retirementDeceased.posMasterNo = org.result.posMasterNo; + retirementDeceased.position = org.result.position; + retirementDeceased.posTypeId = org.result.posTypeId; + retirementDeceased.posTypeName = org.result.posTypeName; + retirementDeceased.posLevelId = org.result.posLevelId; + retirementDeceased.posLevelName = org.result.posLevelName; + } + await _context.RetirementDeceaseds.AddAsync(retirementDeceased); + + var _baseAPI = _configuration["API"]; + var _apiUrl = $"{_baseAPI}/org/profile/leave/{req.ProfileId}"; + + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Post, _apiUrl); + var _res = await client.PostAsJsonAsync(_apiUrl, new + { + isLeave = true, + leaveReason = "āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ", + dateLeave = req.Date, + }); + var _result = await _res.Content.ReadAsStringAsync(); + } + } + else + { + var apiUrl = $"{_configuration["API"]}/org/profile-employee/profileid/position/{req.ProfileId}"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org == null || org.result == null) + return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļ„āļ™āļ™āļĩāđ‰", 404); + + retirementDeceased.profileId = org.result.profileId; + retirementDeceased.prefix = org.result.prefix; + retirementDeceased.firstName = org.result.firstName; + retirementDeceased.lastName = org.result.lastName; + retirementDeceased.citizenId = org.result.citizenId; + retirementDeceased.root = org.result.root; + retirementDeceased.rootId = org.result.rootId; + retirementDeceased.rootShortName = org.result.rootShortName; + retirementDeceased.child1 = org.result.child1; + retirementDeceased.child1Id = org.result.child1Id; + retirementDeceased.child1ShortName = org.result.child1ShortName; + retirementDeceased.child2 = org.result.child2; + retirementDeceased.child2Id = org.result.child2Id; + retirementDeceased.child2ShortName = org.result.child2ShortName; + retirementDeceased.child3 = org.result.child3; + retirementDeceased.child3Id = org.result.child3Id; + retirementDeceased.child3ShortName = org.result.child3ShortName; + retirementDeceased.child4 = org.result.child4; + retirementDeceased.child4Id = org.result.child4Id; + retirementDeceased.child4ShortName = org.result.child4ShortName; + retirementDeceased.posMasterNo = org.result.posMasterNo; + retirementDeceased.position = org.result.position; + retirementDeceased.posTypeId = org.result.posTypeId; + retirementDeceased.posTypeName = org.result.posTypeName; + retirementDeceased.posLevelId = org.result.posLevelId; + retirementDeceased.posLevelName = org.result.posLevelName; + } + await _context.RetirementDeceaseds.AddAsync(retirementDeceased); + + var _baseAPI = _configuration["API"]; + var _apiUrl = $"{_baseAPI}/org/profile-employee/leave/{req.ProfileId}"; + + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Post, _apiUrl); + var _res = await client.PostAsJsonAsync(_apiUrl, new + { + isLeave = true, + leaveReason = "āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ", + dateLeave = req.Date, + }); + var _result = await _res.Content.ReadAsStringAsync(); + } } var _doc = new Domain.Models.Documents.Document(); @@ -320,56 +387,7 @@ namespace BMA.EHR.Retirement.Service.Controllers if (_doc != null) retirementDeceased.Document = _doc; } - // await _context.ProfileSalaries.AddAsync(new ProfileSalary - // { - // Date = req.Date, - // SalaryRef = req.Number, - // CommandNo = "-", - // SalaryClass = "-", - // PosNoEmployee = "-", - // CommandTypeName = "-", - // SalaryStatus = "DEATH", - // Profile = profile, - // CreatedFullName = FullName ?? "System Administrator", - // CreatedUserId = UserId ?? "", - // CreatedAt = DateTime.Now, - // LastUpdateFullName = FullName ?? "System Administrator", - // LastUpdateUserId = UserId ?? "", - // LastUpdatedAt = DateTime.Now, - // }); - // if (_doc != null) - // { - // await _context.ProfilePapers.AddAsync(new ProfilePaper - // { - // Detail = "āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ", - // CategoryName = "DEATH", - // Document = _doc, - // Profile = profile, - // CreatedFullName = FullName ?? "System Administrator", - // CreatedUserId = UserId ?? "", - // CreatedAt = DateTime.Now, - // LastUpdateFullName = FullName ?? "System Administrator", - // LastUpdateUserId = UserId ?? "", - // LastUpdatedAt = DateTime.Now, - // }); - // } - // var orgPos = await _context.ProfilePositions - // .Include(x => x.Profile) - // .ThenInclude(x => x!.Prefix) - // .Include(x => x.OrganizationPosition) - // .ThenInclude(x => x!.Organization) - // .ThenInclude(x => x!.OrganizationOrganization) - // .Include(x => x.OrganizationPosition) - // .ThenInclude(x => x!.PositionMaster) - // .ThenInclude(x => x!.PositionPath) - // .Where(x => x.OrganizationPosition!.IsDirector! == true) - // .Where(x => x.OrganizationPosition!.Organization!.Id == profile.OcId) - // .FirstOrDefaultAsync(); - // if (orgPos != null) - // { - // if (orgPos.Profile != null) - // { retirementDeceased.RetirementDeceasedNotis.Add(new RetirementDeceasedNoti { CitizenId = retirementDeceased.citizenId == null ? "" : retirementDeceased.citizenId, @@ -389,8 +407,6 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, }); - // } - // } await _context.SaveChangesAsync(); return Success(); diff --git a/BMA.EHR.Retirement.Service/Requests/RetirementDeceasedRequest.cs b/BMA.EHR.Retirement.Service/Requests/RetirementDeceasedRequest.cs index d96d1a5f..dbbefd98 100644 --- a/BMA.EHR.Retirement.Service/Requests/RetirementDeceasedRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/RetirementDeceasedRequest.cs @@ -11,5 +11,6 @@ namespace BMA.EHR.Retirement.Service.Requests public string? Location { get; set; } public string? Reason { get; set; } public string ProfileId { get; set; } + public string profileType { get; set; } } } From d516e265e001661d520359dd352f792ae0b1ec6f Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 17 Jan 2025 11:21:39 +0700 Subject: [PATCH 019/879] no message --- .../RetirementDeceasedController.cs | 75 +++++--- .../Controllers/RetirementOutController.cs | 171 +++++++++++------- .../Requests/RetirementAddProfileRequest.cs | 1 + 3 files changed, 160 insertions(+), 87 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index f27dbcf9..da396e49 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -568,32 +568,63 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, }; - - var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{item.ProfileId}"; - using (var client = new HttpClient()) + if (retirementDeceased.profileType.Trim().ToUpper() == "OFFICER") { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); - var _res = await client.SendAsync(_req); - var _result = await _res.Content.ReadAsStringAsync(); + var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{item.ProfileId}"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); - var org = JsonConvert.DeserializeObject(_result); + var org = JsonConvert.DeserializeObject(_result); - if (org == null || org.result == null) - continue; + if (org == null || org.result == null) + continue; - retirementDeceasedNoti.Prefix = org.result.prefix == null ? "" : org.result.prefix; - retirementDeceasedNoti.FirstName = org.result.firstName == null ? "" : org.result.firstName; - retirementDeceasedNoti.LastName = org.result.lastName == null ? "" : org.result.lastName; - retirementDeceasedNoti.CitizenId = org.result.citizenId == null ? "" : org.result.citizenId; - retirementDeceasedNoti.PositionName = org.result.position == null ? "" : org.result.position; - retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + - (org.result.root == null ? "" : org.result.root); - retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); + retirementDeceasedNoti.Prefix = org.result.prefix == null ? "" : org.result.prefix; + retirementDeceasedNoti.FirstName = org.result.firstName == null ? "" : org.result.firstName; + retirementDeceasedNoti.LastName = org.result.lastName == null ? "" : org.result.lastName; + retirementDeceasedNoti.CitizenId = org.result.citizenId == null ? "" : org.result.citizenId; + retirementDeceasedNoti.PositionName = org.result.position == null ? "" : org.result.position; + retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "/") + + (org.result.child3 == null ? "" : org.result.child3 + "/") + + (org.result.child2 == null ? "" : org.result.child2 + "/") + + (org.result.child1 == null ? "" : org.result.child1 + "/") + + (org.result.root == null ? "" : org.result.root); + retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); + } + } + else + { + var apiUrl = $"{_configuration["API"]}/org/profile-employee/profileid/position/{item.ProfileId}"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org == null || org.result == null) + continue; + + retirementDeceasedNoti.Prefix = org.result.prefix == null ? "" : org.result.prefix; + retirementDeceasedNoti.FirstName = org.result.firstName == null ? "" : org.result.firstName; + retirementDeceasedNoti.LastName = org.result.lastName == null ? "" : org.result.lastName; + retirementDeceasedNoti.CitizenId = org.result.citizenId == null ? "" : org.result.citizenId; + retirementDeceasedNoti.PositionName = org.result.position == null ? "" : org.result.position; + retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "/") + + (org.result.child3 == null ? "" : org.result.child3 + "/") + + (org.result.child2 == null ? "" : org.result.child2 + "/") + + (org.result.child1 == null ? "" : org.result.child1 + "/") + + (org.result.root == null ? "" : org.result.root); + retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); + } } await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index cb6c5399..a62755b9 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -107,6 +107,7 @@ namespace BMA.EHR.Retirement.Service.Controllers .Select(p => new { p.Id, + p.profileType, p.citizenId, p.profileId, p.prefix, @@ -178,6 +179,7 @@ namespace BMA.EHR.Retirement.Service.Controllers .Select(p => new { p.Id, + p.profileType, p.profileId, p.prefix, p.firstName, @@ -258,27 +260,8 @@ namespace BMA.EHR.Retirement.Service.Controllers [HttpPost()] public async Task> Post([FromForm] RetirementAddProfileRequest req) { - // var profile = await _context.Profiles - // .Include(x => x.PositionLevel) - // .Include(x => x.PositionType) - // .Include(x => x.PosNo) - // .Include(x => x.Salaries) - // .Include(x => x.Position) - // .FirstOrDefaultAsync(x => x.Id == req.Id); - // if (profile == null) - // return Error(GlobalMessages.DataNotFound, 404); - var retirementOut = new RetirementOut { - // Profile = profile, - // Organization = Request.Form.ContainsKey("Organization") ? Request.Form["Organization"] : "", - // Reason = Request.Form.ContainsKey("Reason") ? Request.Form["Reason"] : "", - // // Date = req.Date, - // AmountOld = profile.Salaries.Count() == 0 ? null : profile.Salaries.OrderByDescending(x => x.Order).FirstOrDefault().Amount, - // PositionLevelOld = profile.PositionLevel == null ? null : profile.PositionLevel.Name, - // PositionTypeOld = profile.PositionType == null ? null : profile.PositionType.Name, - // PositionNumberOld = profile.PosNo == null ? null : profile.PosNo.Name, - // OrganizationPositionOld = profile.Position == null ? profile.Oc : $"{profile.Position.Name}-{profile.Oc}", Status = "WAITTING", CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", @@ -287,57 +270,115 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, }; - var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{req.Id}"; - using (var client = new HttpClient()) + if (req.profileType.Trim().ToUpper() == "OFFICER") { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); - var _res = await client.SendAsync(_req); - var _result = await _res.Content.ReadAsStringAsync(); + var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{req.Id}"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); - var org = JsonConvert.DeserializeObject(_result); + var org = JsonConvert.DeserializeObject(_result); - if (org == null || org.result == null) - return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļ„āļ™āļ™āļĩāđ‰", 404); + if (org == null || org.result == null) + return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļ„āļ™āļ™āļĩāđ‰", 404); - retirementOut.profileId = org.result.profileId; - retirementOut.prefix = org.result.prefix; - retirementOut.firstName = org.result.firstName; - retirementOut.lastName = org.result.lastName; - retirementOut.citizenId = org.result.citizenId; - retirementOut.rootOld = org.result.root; - retirementOut.rootOldId = org.result.rootId; - retirementOut.rootShortNameOld = org.result.rootShortName; - retirementOut.child1Old = org.result.child1; - retirementOut.child1OldId = org.result.child1Id; - retirementOut.child1ShortNameOld = org.result.child1ShortName; - retirementOut.child2Old = org.result.child2; - retirementOut.child2OldId = org.result.child2Id; - retirementOut.child2ShortNameOld = org.result.child2ShortName; - retirementOut.child3Old = org.result.child3; - retirementOut.child3OldId = org.result.child3Id; - retirementOut.child3ShortNameOld = org.result.child3ShortName; - retirementOut.child4Old = org.result.child4; - retirementOut.child4OldId = org.result.child4Id; - retirementOut.child4ShortNameOld = org.result.child4ShortName; - retirementOut.posMasterNoOld = org.result.posMasterNo; - retirementOut.posTypeOldId = org.result.posTypeId; - retirementOut.posTypeNameOld = org.result.posTypeName; - retirementOut.posLevelOldId = org.result.posLevelId; - retirementOut.posLevelNameOld = org.result.posLevelName; + retirementOut.profileId = org.result.profileId; + retirementOut.prefix = org.result.prefix; + retirementOut.firstName = org.result.firstName; + retirementOut.lastName = org.result.lastName; + retirementOut.citizenId = org.result.citizenId; + retirementOut.rootOld = org.result.root; + retirementOut.rootOldId = org.result.rootId; + retirementOut.rootShortNameOld = org.result.rootShortName; + retirementOut.child1Old = org.result.child1; + retirementOut.child1OldId = org.result.child1Id; + retirementOut.child1ShortNameOld = org.result.child1ShortName; + retirementOut.child2Old = org.result.child2; + retirementOut.child2OldId = org.result.child2Id; + retirementOut.child2ShortNameOld = org.result.child2ShortName; + retirementOut.child3Old = org.result.child3; + retirementOut.child3OldId = org.result.child3Id; + retirementOut.child3ShortNameOld = org.result.child3ShortName; + retirementOut.child4Old = org.result.child4; + retirementOut.child4OldId = org.result.child4Id; + retirementOut.child4ShortNameOld = org.result.child4ShortName; + retirementOut.posMasterNoOld = org.result.posMasterNo; + retirementOut.posTypeOldId = org.result.posTypeId; + retirementOut.posTypeNameOld = org.result.posTypeName; + retirementOut.posLevelOldId = org.result.posLevelId; + retirementOut.posLevelNameOld = org.result.posLevelName; - retirementOut.PositionOld = org.result.position; - retirementOut.PositionLevelOld = org.result.posLevelName; - retirementOut.PositionTypeOld = org.result.posTypeName; - retirementOut.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + - (org.result.root == null ? "" : org.result.root); - retirementOut.OrganizationPositionOld = org.result.position + "/" + retirementOut.OrganizationOld; - retirementOut.AmountOld = org.result.salary; + retirementOut.PositionOld = org.result.position; + retirementOut.PositionLevelOld = org.result.posLevelName; + retirementOut.PositionTypeOld = org.result.posTypeName; + retirementOut.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; + retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + + (org.result.child3 == null ? "" : org.result.child3 + "/") + + (org.result.child2 == null ? "" : org.result.child2 + "/") + + (org.result.child1 == null ? "" : org.result.child1 + "/") + + (org.result.root == null ? "" : org.result.root); + retirementOut.OrganizationPositionOld = org.result.position + "/" + retirementOut.OrganizationOld; + retirementOut.AmountOld = org.result.salary; + } + } + else + { + var apiUrl = $"{_configuration["API"]}/org/profile-employee/profileid/position/{req.Id}"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org == null || org.result == null) + return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļ„āļ™āļ™āļĩāđ‰", 404); + + retirementOut.profileId = org.result.profileId; + retirementOut.prefix = org.result.prefix; + retirementOut.firstName = org.result.firstName; + retirementOut.lastName = org.result.lastName; + retirementOut.citizenId = org.result.citizenId; + retirementOut.rootOld = org.result.root; + retirementOut.rootOldId = org.result.rootId; + retirementOut.rootShortNameOld = org.result.rootShortName; + retirementOut.child1Old = org.result.child1; + retirementOut.child1OldId = org.result.child1Id; + retirementOut.child1ShortNameOld = org.result.child1ShortName; + retirementOut.child2Old = org.result.child2; + retirementOut.child2OldId = org.result.child2Id; + retirementOut.child2ShortNameOld = org.result.child2ShortName; + retirementOut.child3Old = org.result.child3; + retirementOut.child3OldId = org.result.child3Id; + retirementOut.child3ShortNameOld = org.result.child3ShortName; + retirementOut.child4Old = org.result.child4; + retirementOut.child4OldId = org.result.child4Id; + retirementOut.child4ShortNameOld = org.result.child4ShortName; + retirementOut.posMasterNoOld = org.result.posMasterNo; + retirementOut.posTypeOldId = org.result.posTypeId; + retirementOut.posTypeNameOld = org.result.posTypeName; + retirementOut.posLevelOldId = org.result.posLevelId; + retirementOut.posLevelNameOld = org.result.posLevelName; + + retirementOut.PositionOld = org.result.position; + retirementOut.PositionLevelOld = org.result.posLevelName; + retirementOut.PositionTypeOld = org.result.posTypeName; + retirementOut.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; + retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + + (org.result.child3 == null ? "" : org.result.child3 + "/") + + (org.result.child2 == null ? "" : org.result.child2 + "/") + + (org.result.child1 == null ? "" : org.result.child1 + "/") + + (org.result.root == null ? "" : org.result.root); + retirementOut.OrganizationPositionOld = org.result.position + "/" + retirementOut.OrganizationOld; + retirementOut.AmountOld = org.result.salary; + } } await _context.RetirementOuts.AddAsync(retirementOut); await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Retirement.Service/Requests/RetirementAddProfileRequest.cs b/BMA.EHR.Retirement.Service/Requests/RetirementAddProfileRequest.cs index 902be976..c77951fe 100644 --- a/BMA.EHR.Retirement.Service/Requests/RetirementAddProfileRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/RetirementAddProfileRequest.cs @@ -6,5 +6,6 @@ namespace BMA.EHR.Retirement.Service.Requests public class RetirementAddProfileRequest { public Guid Id { get; set; } + public string profileType { get; set; } } } \ No newline at end of file From ae513bbbd57b54b2dc581699f77d4a2ab1211f68 Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 17 Jan 2025 14:20:44 +0700 Subject: [PATCH 020/879] test retire --- .../Controllers/RetirementResignController.cs | 28 ++++--------------- .../RetirementResignEmployeeController.cs | 28 ++++--------------- 2 files changed, 12 insertions(+), 44 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index d917c6fc..30e8c04f 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -877,44 +877,28 @@ namespace BMA.EHR.Retirement.Service.Controllers [HttpPost()] public async Task> Post([FromForm] RetirementResignRequest req) { - // var profile = await _context.Profiles - // .Include(x => x.PositionLevel) - // .Include(x => x.PositionType) - // .Include(x => x.PosNo) - // .Include(x => x.Salaries) - // .Include(x => x.Position) - // .Include(x => x.Prefix) - // .FirstOrDefaultAsync(x => x.KeycloakId == Guid.Parse(UserId)); - // if (profile == null) - // return Error(GlobalMessages.DataNotFound, 404); - var Remark = req.Remark; if (req.Reason != null) { switch (req.Reason.Trim().ToLower()) { - case "CAREER": Remark = $"āļ›āļĢāļ°āļāļ­āļšāļ­āļēāļŠāļĩāļžāļ­āļ·āđˆāļ™ ({req.Remark})"; break; - case "MOVE": Remark = $"āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļŠāļąāļ‡āļāļąāļ”āļ­āļ·āđˆāļ™ ({req.Remark})"; break; - case "FAMILY": Remark = $"āļ”āļđāđāļĨāļšāļīāļ”āļēāļĄāļēāļĢāļ”āļē ({req.Remark})"; break; - case "EDUCATION": Remark = $"āļĻāļķāļāļĐāļēāļ•āđˆāļ­ ({req.Remark})"; break; - case "OTHER": Remark = $"āļ­āļ·āđˆāļ™ āđ† ({req.Remark})"; break; + case "CAREER": Remark = $"āļ›āļĢāļ°āļāļ­āļšāļ­āļēāļŠāļĩāļžāļ­āļ·āđˆāļ™" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; + case "MOVE": Remark = $"āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļŠāļąāļ‡āļāļąāļ”āļ­āļ·āđˆāļ™" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; + case "FAMILY": Remark = $"āļ”āļđāđāļĨāļšāļīāļ”āļēāļĄāļēāļĢāļ”āļē" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; + case "EDUCATION": Remark = $"āļĻāļķāļāļĐāļēāļ•āđˆāļ­" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; + case "OTHER": Remark = $"āļ­āļ·āđˆāļ™ āđ†" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; + default: Remark = req.Reason.Trim().ToLower(); break; } } var retirementResign = new RetirementResign { - // Profile = profile, Location = req.Location, SendDate = DateTime.Now, ActiveDate = req.ActiveDate, Reason = req.Reason, ReasonResign = Remark, Remark = req.Remark, - // AmountOld = profile.Salaries.Count() == 0 ? null : profile.Salaries.OrderByDescending(x => x.Order).FirstOrDefault().Amount, - // PositionLevelOld = profile.PositionLevel == null ? null : profile.PositionLevel.Name, - // PositionTypeOld = profile.PositionType == null ? null : profile.PositionType.Name, - // PositionNumberOld = profile.PosNo == null ? null : profile.PosNo.Name, - // OrganizationPositionOld = profile.Position == null ? profile.Oc : $"{profile.Position.Name}-{profile.Oc}", Status = "WAITTING", IsActive = true, CreatedFullName = FullName ?? "System Administrator", diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 27b4cc93..e14161cb 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -820,43 +820,27 @@ namespace BMA.EHR.Retirement.Service.Controllers [HttpPost()] public async Task> Post([FromForm] RetirementResignEmployeeRequest req) { - // var profile = await _context.Profiles - // .Include(x => x.PositionLevel) - // .Include(x => x.PositionType) - // .Include(x => x.PosNo) - // .Include(x => x.Salaries) - // .Include(x => x.Position) - // .Include(x => x.Prefix) - // .FirstOrDefaultAsync(x => x.KeycloakId == Guid.Parse(UserId)); - // if (profile == null) - // return Error(GlobalMessages.DataNotFound, 404); - var Remark = req.Remark; if (req.Reason != null) { switch (req.Reason.Trim().ToLower()) { - case "CAREER": Remark = $"āļ›āļĢāļ°āļāļ­āļšāļ­āļēāļŠāļĩāļžāļ­āļ·āđˆāļ™ ({req.Remark})"; break; - case "MOVE": Remark = $"āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļŠāļąāļ‡āļāļąāļ”āļ­āļ·āđˆāļ™ ({req.Remark})"; break; - case "FAMILY": Remark = $"āļ”āļđāđāļĨāļšāļīāļ”āļēāļĄāļēāļĢāļ”āļē ({req.Remark})"; break; - case "EDUCATION": Remark = $"āļĻāļķāļāļĐāļēāļ•āđˆāļ­ ({req.Remark})"; break; - case "OTHER": Remark = $"āļ­āļ·āđˆāļ™ āđ† ({req.Remark})"; break; + case "CAREER": Remark = $"āļ›āļĢāļ°āļāļ­āļšāļ­āļēāļŠāļĩāļžāļ­āļ·āđˆāļ™" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; + case "MOVE": Remark = $"āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļŠāļąāļ‡āļāļąāļ”āļ­āļ·āđˆāļ™" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; + case "FAMILY": Remark = $"āļ”āļđāđāļĨāļšāļīāļ”āļēāļĄāļēāļĢāļ”āļē" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; + case "EDUCATION": Remark = $"āļĻāļķāļāļĐāļēāļ•āđˆāļ­" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; + case "OTHER": Remark = $"āļ­āļ·āđˆāļ™ āđ†" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; + default: Remark = "test"; break; } } var retirementResignEmployee = new RetirementResignEmployee { - // Profile = profile, Location = req.Location, SendDate = DateTime.Now, ActiveDate = req.ActiveDate, Reason = req.Reason, ReasonResign = Remark, Remark = req.Remark, - // AmountOld = profile.Salaries.Count() == 0 ? null : profile.Salaries.OrderByDescending(x => x.Order).FirstOrDefault().Amount, - // PositionLevelOld = profile.PositionLevel == null ? null : profile.PositionLevel.Name, - // PositionTypeOld = profile.PositionType == null ? null : profile.PositionType.Name, - // PositionNumberOld = profile.PosNo == null ? null : profile.PosNo.Name, - // OrganizationPositionOld = profile.Position == null ? profile.Oc : $"{profile.Position.Name}-{profile.Oc}", Status = "WAITTING", IsActive = true, CreatedFullName = FullName ?? "System Administrator", From 1bec0918569cb0e52b52f0996c8f00275dd0ec7f Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 17 Jan 2025 14:34:07 +0700 Subject: [PATCH 021/879] eq.Reason.Trim().ToUpper() --- .../Controllers/RetirementResignController.cs | 3 +-- .../Controllers/RetirementResignEmployeeController.cs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 30e8c04f..590b4719 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -880,14 +880,13 @@ namespace BMA.EHR.Retirement.Service.Controllers var Remark = req.Remark; if (req.Reason != null) { - switch (req.Reason.Trim().ToLower()) + switch (req.Reason.Trim().ToUpper()) { case "CAREER": Remark = $"āļ›āļĢāļ°āļāļ­āļšāļ­āļēāļŠāļĩāļžāļ­āļ·āđˆāļ™" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; case "MOVE": Remark = $"āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļŠāļąāļ‡āļāļąāļ”āļ­āļ·āđˆāļ™" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; case "FAMILY": Remark = $"āļ”āļđāđāļĨāļšāļīāļ”āļēāļĄāļēāļĢāļ”āļē" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; case "EDUCATION": Remark = $"āļĻāļķāļāļĐāļēāļ•āđˆāļ­" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; case "OTHER": Remark = $"āļ­āļ·āđˆāļ™ āđ†" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; - default: Remark = req.Reason.Trim().ToLower(); break; } } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index e14161cb..c80d69f3 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -823,14 +823,13 @@ namespace BMA.EHR.Retirement.Service.Controllers var Remark = req.Remark; if (req.Reason != null) { - switch (req.Reason.Trim().ToLower()) + switch (req.Reason.Trim().ToUpper()) { case "CAREER": Remark = $"āļ›āļĢāļ°āļāļ­āļšāļ­āļēāļŠāļĩāļžāļ­āļ·āđˆāļ™" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; case "MOVE": Remark = $"āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļŠāļąāļ‡āļāļąāļ”āļ­āļ·āđˆāļ™" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; case "FAMILY": Remark = $"āļ”āļđāđāļĨāļšāļīāļ”āļēāļĄāļēāļĢāļ”āļē" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; case "EDUCATION": Remark = $"āļĻāļķāļāļĐāļēāļ•āđˆāļ­" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; case "OTHER": Remark = $"āļ­āļ·āđˆāļ™ āđ†" + (req.Remark == null || req.Remark == "" ? $"{req.Remark}" : ""); break; - default: Remark = "test"; break; } } var retirementResignEmployee = new RetirementResignEmployee From d692ea43590d6d387a6774cc3cab65453a4dae76 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 17 Jan 2025 15:06:28 +0700 Subject: [PATCH 022/879] report discipline --- .../Profiles/GetProfileByKeycloakIdRootDto.cs | 2 + .../Controllers/DisciplineReportController.cs | 106 ++++++++++++++---- .../Requests/DisciplineReportRequest.cs | 4 +- 3 files changed, 91 insertions(+), 21 deletions(-) diff --git a/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdRootDto.cs b/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdRootDto.cs index bb85f0ed..a1d9c7ce 100644 --- a/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdRootDto.cs +++ b/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdRootDto.cs @@ -9,10 +9,12 @@ namespace BMA.EHR.Application.Responses.Profiles public string? Prefix { get; set; } public string? FirstName { get; set; } public string? LastName { get; set; } + public string? CitizenId { get; set; } public Guid? Keycloak { get; set; } public string? PosNo { get; set; } public string? Position { get; set; } public string? PositionLevel { get; set; } + public string? PositionType { get; set; } public string? Oc { get; set; } } } diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs index 06eeaa4e..599a0ae8 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs @@ -1,9 +1,12 @@ ïŧŋusing BMA.EHR.Application.Repositories; using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Application.Responses; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Discipline.Service.Requests; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Models.Discipline; using BMA.EHR.Domain.Shared; +using BMA.EHR.Domain.Extensions; using BMA.EHR.Infrastructure.Persistence; // using BMA.EHR.Placement.Service.Requests; using Microsoft.AspNetCore.Authorization; @@ -28,17 +31,20 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers private readonly MinIODisciplineService _documentService; private readonly IHttpContextAccessor _httpContextAccessor; private readonly PermissionRepository _permission; + private readonly UserProfileRepository _userProfileRepository; public DisciplineReportController(DisciplineDbContext context, MinIODisciplineService documentService, IHttpContextAccessor httpContextAccessor, - PermissionRepository permission) + PermissionRepository permission, + UserProfileRepository userProfileRepository) { // _repository = repository; _context = context; _documentService = documentService; _httpContextAccessor = httpContextAccessor; _permission = permission; + _userProfileRepository = userProfileRepository; } #region " Properties " @@ -46,6 +52,8 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + #endregion @@ -60,39 +68,99 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers [HttpPost("{type}")] public async Task> GetReportDiscipline([FromBody] DisciplineReportRequest req, string type) { - // var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates - // .Include(x => x.DisciplineDisciplinary) - // .Where(x => x.Id == d.id) - // .FirstOrDefaultAsync(); - var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_DISCIPLINE_REPORT"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } + var profile = new List(); + if (type.Trim().ToUpper() == "OFFICER") + { + profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficer(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + } + else + { + profile = await _userProfileRepository.GetProfileWithKeycloakAllEmployee(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + } - // var profile = new List(); - // if (type.Trim().ToUpper() == "OFFICER") - // { - // profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficer(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); - // } - // else - // { - // profile = await _userProfileRepository.GetProfileWithKeycloakAllEmployee(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); - // } + if (req.posLevel != null || req.posType != null) + { + profile = profile.Where(x => x.PositionType == req.posType || x.PositionLevel == req.posLevel).ToList(); + } + + var data_search = await _context.DisciplineDisciplinarys + .Include(x => x.DisciplineDisciplinary_ProfileComplaintInvestigates) + .OrderByDescending(x => x.CreatedAt) + .ToListAsync(); + + if (req.status.Trim().ToUpper() != "ALL") + data_search = data_search.Where(x => x.Status.Contains(req.status.Trim().ToUpper())).ToList(); + + if (req.offenseDetail.Trim().ToUpper() != "ALL") + data_search = data_search.Where(x => x.OffenseDetails.Contains(req.status.Trim().ToUpper())).ToList(); + + if (req.disciplinaryFaultLevel.Trim().ToUpper() != "ALL") + data_search = data_search.Where(x => x.DisciplinaryFaultLevel.Contains(req.status.Trim().ToUpper())).ToList(); + + var mapData = data_search + .SelectMany((d) => d.DisciplineDisciplinary_ProfileComplaintInvestigates.Select((profile) => new + { + fullName = $"{profile.Prefix}{profile.FirstName} {profile.LastName}", + citizenId = profile.CitizenId, + position = profile.Position, + posLevel = profile.posLevelName, + oc = profile.Organization, + CreatedAt = profile.CreatedAt, + offense = d.OffenseDetails != null && d.OffenseDetails != "" + ? d.OffenseDetails == "NOT_SPECIFIED" + ? "āļ„āļ§āļēāļĄāļœāļīāļ”āļ§āļīāļ™āļąāļĒāļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ" + : d.OffenseDetails == "NOT_DEADLY" + ? "āļ„āļ§āļēāļĄāļœāļīāļ”āļ§āļīāļ™āļąāļĒāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡" + : d.OffenseDetails == "DEADLY" + ? "āļ„āļ§āļēāļĄāļœāļīāļ”āļ§āļīāļ™āļąāļĒāļĢāđ‰āļēāļĒāđāļĢāļ‡" + : "" + : "", + faultLevel = d.DisciplinaryFaultLevel, + })) + .Where(x => + x.citizenId != null && profile.Any(p => p.CitizenId == x.citizenId)) + .OrderByDescending(x => x.CreatedAt) + .ToList(); + + var count = 1; + var employees = new List(); + foreach (var p in mapData) + { + var emp = new + { + no = count, + fullName = p.fullName, + citizenId = p.citizenId, + position = p.position, + posLevel = p.posLevel, + oc = profile.FirstOrDefault(x => x.CitizenId == p.citizenId)?.Oc ?? "", + offense = p.offense, + faultLevel = p.faultLevel, + one = 0, + two = 0, + three = 0, + }; + employees.Add(emp); + count++; + } var result = new { template = "reportDiscipline", - reportName = "reportDiscipline", + reportName = "xlsx-report", data = new { - year = req.year + 543, - data = new List() + year = (req.year + 543).ToString().ToThaiNumber(), + dateCurrent = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}", + data = employees } }; - return Success(result); } } diff --git a/BMA.EHR.Discipline.Service/Requests/DisciplineReportRequest.cs b/BMA.EHR.Discipline.Service/Requests/DisciplineReportRequest.cs index 2fa79722..3d3cfe97 100644 --- a/BMA.EHR.Discipline.Service/Requests/DisciplineReportRequest.cs +++ b/BMA.EHR.Discipline.Service/Requests/DisciplineReportRequest.cs @@ -17,8 +17,8 @@ namespace BMA.EHR.Discipline.Service.Requests public string status { get; set; } - public string posType { get; set; } + public string? posType { get; set; } - public string posLevel { get; set; } + public string? posLevel { get; set; } } } From 19e913f68f47777b17316036e3c4d086b2c54a10 Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 20 Jan 2025 16:20:01 +0700 Subject: [PATCH 023/879] =?UTF-8?q?profileType=20=E0=B9=81=E0=B8=88?= =?UTF-8?q?=E0=B9=89=E0=B8=87=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=96=E0=B8=B6?= =?UTF-8?q?=E0=B8=87=E0=B9=81=E0=B8=81=E0=B9=88=E0=B8=81=E0=B8=A3=E0=B8=A3?= =?UTF-8?q?=E0=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/RetirementDeceasedController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index da396e49..4eb4bbfd 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -186,6 +186,7 @@ namespace BMA.EHR.Retirement.Service.Controllers data.prefix, data.firstName, data.lastName, + data.profileType, data.root, data.rootShortName, data.child1, From 74b2a817d3ce958996249f6289c7017677e87e4e Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 20 Jan 2025 16:24:12 +0700 Subject: [PATCH 024/879] add posTypeShortName --- .../Controllers/RetirementDeceasedController.cs | 2 +- BMA.EHR.Retirement.Service/Requests/OrgRequest.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 4eb4bbfd..1f808137 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -292,7 +292,7 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceased.posTypeId = org.result.posTypeId; retirementDeceased.posTypeName = org.result.posTypeName; retirementDeceased.posLevelId = org.result.posLevelId; - retirementDeceased.posLevelName = org.result.posLevelName; + retirementDeceased.posLevelName = $"{org.result.posTypeShortName} {org.result.posLevelName}"; } await _context.RetirementDeceaseds.AddAsync(retirementDeceased); diff --git a/BMA.EHR.Retirement.Service/Requests/OrgRequest.cs b/BMA.EHR.Retirement.Service/Requests/OrgRequest.cs index 921a44b5..15986e02 100644 --- a/BMA.EHR.Retirement.Service/Requests/OrgRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/OrgRequest.cs @@ -38,6 +38,7 @@ namespace BMA.EHR.Retirement.Service.Requests public string? posTypeName { get; set; } public int? posTypeRank { get; set; } public string? posLevelId { get; set; } + public string? posTypeShortName { get; set; } public string? posLevelName { get; set; } public int? posLevelRank { get; set; } public string? posExecutiveId { get; set; } From afb1f83bdf4f347702696563f12ab91d6896b781 Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 20 Jan 2025 16:25:02 +0700 Subject: [PATCH 025/879] add posTypeName --- .../Controllers/RetirementDeceasedController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 1f808137..ad24d463 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -290,9 +290,9 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceased.posMasterNo = org.result.posMasterNo; retirementDeceased.position = org.result.position; retirementDeceased.posTypeId = org.result.posTypeId; - retirementDeceased.posTypeName = org.result.posTypeName; + retirementDeceased.posTypeName = $"{org.result.posTypeShortName} {org.result.posTypeName}"; retirementDeceased.posLevelId = org.result.posLevelId; - retirementDeceased.posLevelName = $"{org.result.posTypeShortName} {org.result.posLevelName}"; + retirementDeceased.posLevelName = org.result.posLevelName; } await _context.RetirementDeceaseds.AddAsync(retirementDeceased); From 35f590e1f3589f03ae9b6ae245fced183a564dea Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 20 Jan 2025 17:54:15 +0700 Subject: [PATCH 026/879] report placement.probation --- .../Controllers/PlacementController.cs | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index fca6ea0d..34597431 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -397,6 +397,50 @@ namespace BMA.EHR.Placement.Service.Controllers return Success(new List()); } + [HttpGet("exam-probation/{citizenId:length(13)}")] + public async Task> GetDataExamByPlacement(string citizenId) + { + var dateAppoint = string.Empty; + var apiUrl = $"{_configuration["API"]}/org/profile/citizenid/position/{citizenId}"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + if (_res.IsSuccessStatusCode) + { + var json = JObject.Parse(_result); + var dateAppointToken = json["result"]?["dateAppoint"]; + if (dateAppointToken != null) + { + dateAppoint = dateAppointToken.ToString(); + } + } + } + + var placementProfile = await _context.PlacementProfiles + .Include(x => x.Placement) + .Select(x => new + { + fullName = $"{x.Prefix}{x.Firstname} {x.Lastname}", + citizenId = x.CitizenId, + examName = x.Placement.Name, + }) + .Where(x => x.citizenId == citizenId.ToString()) + .FirstOrDefaultAsync(); + + var data = new + { + fullName = placementProfile != null ? placementProfile.fullName : "", + citizenId = placementProfile != null ? placementProfile.citizenId : "", + examName = placementProfile != null ? placementProfile.examName : "", + dateAppoint = dateAppoint + }; + return Success(data); + } + [HttpGet("personal/{personalId:length(36)}")] public async Task> GetProfileByUser(Guid personalId) { From 68f379bd59083fe72a6852b7c392da0c49498789 Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 20 Jan 2025 22:16:25 +0700 Subject: [PATCH 027/879] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B9=80?= =?UTF-8?q?=E0=B8=A0=E0=B8=97=20=E0=B8=82=E0=B8=A3=E0=B8=81=20=20=E0=B8=A3?= =?UTF-8?q?=E0=B9=89=E0=B8=AD=E0=B8=87=E0=B8=97=E0=B8=B8=E0=B8=81=E0=B8=82?= =?UTF-8?q?=E0=B9=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/DisciplineComplaint_AppealController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs index 5fef15c4..1195204f 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs @@ -348,6 +348,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers ProfileId = id, Position = req.Position, Oc = req.Oc, + profileType = req.profileType, CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", CreatedAt = DateTime.Now, From f8932def1d48695a7e57d4835cd03b188ac82408 Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 20 Jan 2025 22:38:18 +0700 Subject: [PATCH 028/879] DisciplineComplaint_Appeal add profileType --- .../Controllers/DisciplineComplaint_AppealController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs index 1195204f..360a4db0 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs @@ -348,7 +348,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers ProfileId = id, Position = req.Position, Oc = req.Oc, - profileType = req.profileType, + profileType = org.result.profileType, CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", CreatedAt = DateTime.Now, From ac1f371bbb455fb9461e65c636b2ddb83b044cfb Mon Sep 17 00:00:00 2001 From: kittapath Date: Tue, 21 Jan 2025 11:30:51 +0700 Subject: [PATCH 029/879] add salary special --- .../Controllers/DisciplineResultController.cs | 13 ++++++++++++- .../Requests/ReportExecuteRequest.cs | 1 + .../Controllers/PlacementOfficerController.cs | 1 + .../Controllers/PlacementRepatriationController.cs | 1 + .../Controllers/RetirementOutController.cs | 1 + .../Controllers/RetirementResignController.cs | 2 ++ .../RetirementResignEmployeeController.cs | 2 ++ 7 files changed, 20 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs index bd02f83d..475c4667 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs @@ -468,7 +468,8 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers foreach (var data in data1) { data2.Add(data); - }; + } + ; return Success(data2); } @@ -820,6 +821,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āļ›āļĨāļ”āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", amount = r.amount, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, isGovernment = false, @@ -920,6 +922,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āđ„āļĨāđˆāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", amount = r.amount, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, isGovernment = false, @@ -1098,6 +1101,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āļžāļąāļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", amount = r.amount, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, isGovernment = false, @@ -1214,6 +1218,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™", amount = r.amount, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, isGovernment = false, @@ -1329,6 +1334,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āļĨāļ‡āđ‚āļ—āļĐ āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ", amount = r.amount, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, profileType = p.profileType, @@ -1443,6 +1449,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™", amount = r.amount, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, profileType = p.profileType, @@ -1557,6 +1564,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™", amount = r.amount, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, profileType = p.profileType, @@ -1671,6 +1679,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āđ€āļžāļīāđˆāļĄāđ‚āļ—āļĐ", amount = r.amount, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, profileType = p.profileType, @@ -1785,6 +1794,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļĐ", amount = r.amount, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, profileType = p.profileType, @@ -1915,6 +1925,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers level = "", unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡", amount = r.amount, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, profileType = p.profileType, diff --git a/BMA.EHR.Discipline.Service/Requests/ReportExecuteRequest.cs b/BMA.EHR.Discipline.Service/Requests/ReportExecuteRequest.cs index 5ed2cb4a..bbe62ce8 100644 --- a/BMA.EHR.Discipline.Service/Requests/ReportExecuteRequest.cs +++ b/BMA.EHR.Discipline.Service/Requests/ReportExecuteRequest.cs @@ -16,6 +16,7 @@ namespace BMA.EHR.Discipline.Service.Requests public int commandYear { get; set; } public string? templateDoc { get; set; } public double? amount { get; set; } + public double? amountSpecial { get; set; } public double? positionSalaryAmount { get; set; } public double? mouthSalaryAmount { get; set; } public string? refCommandCode { get; set; } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 94684221..47827a44 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -675,6 +675,7 @@ namespace BMA.EHR.Placement.Service.Controllers date = r.commandAffectDate, amount = r.amount, commandId = r.commandId, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, posNo = p.PositionNumberOld, diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index cd90224f..20d4dd84 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -500,6 +500,7 @@ namespace BMA.EHR.Placement.Service.Controllers date = r.commandAffectDate, amount = r.amount, commandId = r.commandId, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, posNo = p.PositionNumberOld, diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index a62755b9..d661d002 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -574,6 +574,7 @@ namespace BMA.EHR.Retirement.Service.Controllers date = r.commandAffectDate, amount = r.amount, commandId = r.commandId, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, posNo = p.PositionNumberOld, diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 590b4719..6ce2d732 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -2447,6 +2447,7 @@ namespace BMA.EHR.Retirement.Service.Controllers date = r.commandAffectDate, amount = r.amount, commandId = r.commandId, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, posNo = p.PositionNumberOld, @@ -2635,6 +2636,7 @@ namespace BMA.EHR.Retirement.Service.Controllers date = r.commandAffectDate, amount = r.amount, commandId = r.commandId, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, posNo = p.PositionNumberOld, diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index c80d69f3..b92bc974 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -2389,6 +2389,7 @@ namespace BMA.EHR.Retirement.Service.Controllers date = r.commandAffectDate, amount = r.amount, commandId = r.commandId, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, posNo = p.PositionNumberOld, @@ -2577,6 +2578,7 @@ namespace BMA.EHR.Retirement.Service.Controllers date = r.commandAffectDate, amount = r.amount, commandId = r.commandId, + amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, posNo = p.PositionNumberOld, From 681f9ec0e44c485c5ef85b5e370bae51d041a94a Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 21 Jan 2025 12:45:53 +0700 Subject: [PATCH 030/879] fix --- .../Controllers/InsigniaReportController.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index 29db1981..daf4c18e 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -196,7 +196,7 @@ namespace BMA.EHR.Insignia.Service.Controllers reportName = "reportInsignia1", data = new { - yearInsignalPeriod, + yearInsignalPeriod = yearInsignalPeriod, data = dataResult, } }; @@ -229,6 +229,8 @@ namespace BMA.EHR.Insignia.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } + var yearInsignalPeriod = await _repository.GetYearInsigniaPeriod(req.roundId); + var agency = ""; var data = await _repository.GetEvaluationResultReport(req.roundId, type, req.node, req.nodeId); @@ -238,6 +240,8 @@ namespace BMA.EHR.Insignia.Service.Controllers reportName = "reportInsignia2", data = new { + agency = agency, + yearInsignalPeriod = yearInsignalPeriod, data = data, } }; @@ -297,8 +301,8 @@ namespace BMA.EHR.Insignia.Service.Controllers reportName = "reportInsignia3", data = new { - yearInsignalPeriod, - summaryTotal, + yearInsignalPeriod = yearInsignalPeriod, + summaryTotal = summaryTotal, data = dataResult, } }; From 92b1c01efc1723abc6b6745489619308d054a11f Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 21 Jan 2025 12:51:25 +0700 Subject: [PATCH 031/879] fix issue #950 --- .../Controllers/RetirementOutController.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index d661d002..17b609a5 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -596,6 +596,13 @@ namespace BMA.EHR.Retirement.Service.Controllers var baseAPIOrg = _configuration["API"]; var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave"; + if (data.Count > 0) + { + if (data[0].profileType == "EMPLOYEE") + { + apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave"; + } + } using (var client = new HttpClient()) { client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); From 5380dad68ee740c2f5b177d629e0bab35e6cb373 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 21 Jan 2025 13:31:54 +0700 Subject: [PATCH 032/879] fixing report result by no --- .../Repositories/Reports/ProbationReportRepository.cs | 4 ++-- .../Controllers/ProbationReportController.cs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 9c99690c..46433515 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -887,9 +887,9 @@ namespace BMA.EHR.Application.Repositories.Reports #endregion #region 18 āđāļšāļšāļĢāļēāļĒāļ‡āļēāļ™āļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨ (āļŠāļģāļŦāļĢāļąāļšāļ›āļĢāļ°āļ˜āļēāļ™ āđāļĨāļ° āļāļĢāļ“āļĩāļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē) - public async Task GetEvaluateResultAssignAsync(Guid id, string token) + public async Task GetEvaluateResultAssignAsync(Guid id, int no, string token) { - var api_url = $"{_configuration["APIPROBATION"]}/evaluate-result?assign_id={id}"; + var api_url = $"{_configuration["APIPROBATION"]}/evaluate-result?assign_id={id}&evaluate_no={no}"; EvaluateResultAssignResponse evaluate_assign; using (var client = new HttpClient()) { diff --git a/BMA.EHR.Report.Service/Controllers/ProbationReportController.cs b/BMA.EHR.Report.Service/Controllers/ProbationReportController.cs index fdba84fb..de66404d 100644 --- a/BMA.EHR.Report.Service/Controllers/ProbationReportController.cs +++ b/BMA.EHR.Report.Service/Controllers/ProbationReportController.cs @@ -31,7 +31,7 @@ namespace BMA.EHR.Report.Service.Controllers public ProbationReportController(IWebHostEnvironment hostingEnvironment, IConfiguration configuration, ProbationReportRepository repository, GenericReportGenerator reportGenerator) { - + _hostingEnvironment = hostingEnvironment; _configuration = configuration; _repository = repository; @@ -66,7 +66,7 @@ namespace BMA.EHR.Report.Service.Controllers token = authorizationHeader.Substring("Bearer ".Length).Trim(); var probation = await _repository.GetProbationAssignAsync(id, token); - if(probation != null) + if (probation != null) { var mimeType = ""; switch (exportType.Trim().ToLower()) @@ -1064,8 +1064,8 @@ namespace BMA.EHR.Report.Service.Controllers /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpGet("18/{exportType}/{id}")] - public async Task> GetProbation19ConvertReportAsync(Guid id, string exportType = "pdf") + [HttpGet("18/{exportType}/{id}/{no}")] + public async Task> GetProbation19ConvertReportAsync(Guid id, int no, string exportType = "pdf") { try { @@ -1075,7 +1075,7 @@ namespace BMA.EHR.Report.Service.Controllers if (!string.IsNullOrEmpty(authorizationHeader) && authorizationHeader.StartsWith("Bearer ")) { token = authorizationHeader.Substring("Bearer ".Length).Trim(); - var evaluateAssign = await _repository.GetEvaluateResultAssignAsync(id, token); + var evaluateAssign = await _repository.GetEvaluateResultAssignAsync(id, no, token); if (evaluateAssign != null) { From 50b3dde54e5907569861fba93746ad1f774505e0 Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 21 Jan 2025 18:10:31 +0700 Subject: [PATCH 033/879] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B9=81=E0=B8=9A=E0=B8=9A=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87?= =?UTF-8?q?=E0=B8=B2=E0=B8=99=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B9=80=E0=B8=A1=E0=B8=B4=E0=B8=99=E0=B8=9C=E0=B8=A5?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=97=E0=B8=94=E0=B8=A5=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B8=9B=E0=B8=8F=E0=B8=B4=E0=B8=9A=E0=B8=B1=E0=B8=95?= =?UTF-8?q?=E0=B8=B4=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2=E0=B8=97=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=20(18)=20#1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/Reports/ProbationReportRepository.cs | 2 +- .../Controllers/ProbationReportController.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 46433515..88390358 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -952,7 +952,7 @@ namespace BMA.EHR.Application.Repositories.Reports CommanderPosition = string.IsNullOrEmpty(evaluate_assign.result.commander.Position) ? string.Empty : evaluate_assign.result.commander.Position, CommanderDate = string.IsNullOrEmpty(evaluate_assign.result.evaluate.director1_dated.ToString()) ? "-" : evaluate_assign.result.evaluate.director1_dated.ToThaiFullDate().ToString().ToThaiNumber(), Name = evaluate_assign.result.experimentee.name, - RoundNo = evaluate_assign.result.assign.round_no.ToString().ToThaiNumber(), + RoundNo = no.ToString().ToThaiNumber(), DateStart = evaluate_assign.result.assign.date_start != string.Empty ? dateStart_ : "-", DateFinish = evaluate_assign.result.assign.date_finish != string.Empty ? dateFinish_ : "-", Develop1 = developComplete1, diff --git a/BMA.EHR.Report.Service/Controllers/ProbationReportController.cs b/BMA.EHR.Report.Service/Controllers/ProbationReportController.cs index de66404d..0a93a1ed 100644 --- a/BMA.EHR.Report.Service/Controllers/ProbationReportController.cs +++ b/BMA.EHR.Report.Service/Controllers/ProbationReportController.cs @@ -1131,10 +1131,10 @@ namespace BMA.EHR.Report.Service.Controllers //ReportProcessor reportProcessor = new ReportProcessor(_configuration); //RenderingResult result = reportProcessor.RenderReport($"{exportType}", instanceReportSource, deviceInfo); //return File(result.DocumentBytes, mimeType, $"āđāļšāļšāļĢāļēāļĒāļ‡āļēāļ™āļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨ.{exportType.Trim().ToLower()}"); - var ExpandMonth = evaluateAssign.GetType().GetProperty("ExpandMonth").GetValue(evaluateAssign).ToString(); + var data = new { - template = ExpandMonth == "āđ" ? "probation-18-1" : "probation-18-2", + template = no == 1 ? "probation-18-1" : "probation-18-2", reportName = "docx-report", data = evaluateAssign }; From b861ddcdc75ebacacbb97f9ac985228ca91c0bb8 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 21 Jan 2025 19:40:32 +0700 Subject: [PATCH 034/879] change file --- BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 01de8382..ef7a1c9d 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -716,7 +716,7 @@ namespace BMA.EHR.Application.Repositories LastInsignia = p.LastInsignia, LastInsigniaId = p.LastInsigniaId, Salary = p.Salary, - RequestInsignia = GetInsigniaByName("āđ€āļšāļāļˆāļĄāļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), + RequestInsignia = GetInsigniaByName("āđ€āļšāļāļˆāļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), Seq = 1, Gender = p.Gender, PositionSalaryAmount = p.PositionSalaryAmount, From 0c32520802bf847ca0c8972d2a8baf52e6489db1 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 22 Jan 2025 09:29:52 +0700 Subject: [PATCH 035/879] add messge leave in between --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index b24b0427..1771cbca 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -13,12 +13,11 @@ using BMA.EHR.Leave.Service.DTOs.LeaveRequest; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Newtonsoft.Json.Linq; using Newtonsoft.Json; +using Newtonsoft.Json.Linq; using Swashbuckle.AspNetCore.Annotations; -using System.Security.Claims; using System.Net.Http.Headers; -using BMA.EHR.Domain.Models.MetaData; +using System.Security.Claims; namespace BMA.EHR.Leave.Service.Controllers { @@ -987,7 +986,7 @@ namespace BMA.EHR.Leave.Service.Controllers SumDateWork = sumWorkDay, TotalDate = totalDay, SumDateHoliday = sumWeekend, - Message = message, + Message = !isBetween ? message : "āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļĨāļēāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĄāļĩāļ§āļąāļ™āļĨāļēāđƒāļ™āļŠāđˆāļ§āļ‡āļ—āļĩāđˆāđ€āļ„āļĒāļ—āļģāļāļēāļĢāļ‚āļ­āļĨāļēāđ„āļ›āđāļĨāđ‰āļ§", }; return Success(result); From 92e6d1ebfc4f11db24ef64c69b2003e94ebe4df4 Mon Sep 17 00:00:00 2001 From: kittapath Date: Wed, 22 Jan 2025 15:10:34 +0700 Subject: [PATCH 036/879] edit display org --- .../DisciplineDisciplinaryController.cs | 10 +- .../PlacementAppointmentController.cs | 88 ++++++++--------- .../PlacementAppointmentEmployeeController.cs | 8 +- .../Controllers/PlacementController.cs | 94 +++++++++---------- .../Controllers/PlacementOfficerController.cs | 16 ++-- .../Controllers/PlacementReceiveController.cs | 24 ++--- .../PlacementRepatriationController.cs | 8 +- .../PlacementTransferController.cs | 16 ++-- .../Controllers/RetireReportController.cs | 8 +- .../RetirementDeceasedController.cs | 16 ++-- .../Controllers/RetirementOtherController.cs | 24 ++--- .../Controllers/RetirementOutController.cs | 16 ++-- .../Controllers/RetirementResignController.cs | 18 ++-- .../RetirementResignEmployeeController.cs | 16 ++-- 14 files changed, 181 insertions(+), 181 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs index fafa806a..f878225a 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs @@ -519,7 +519,7 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers posTypeName = p.posTypeName, posLevelId = p.posLevelId, posLevelName = p.posLevelName, - + IsSend = p.IsReport, IsSuspend = p.IsSuspend, Status = p.Status, @@ -1745,10 +1745,10 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers FirstName = item.FirstName, LastName = item.LastName, //Organization = item.Organization, - Organization = (item.child4 == null ? "" : item.child4 + "/") + - (item.child3 == null ? "" : item.child3 + "/") + - (item.child2 == null ? "" : item.child2 + "/") + - (item.child1 == null ? "" : item.child1 + "/") + + Organization = (item.child4 == null ? "" : item.child4 + "\n") + + (item.child3 == null ? "" : item.child3 + "\n") + + (item.child2 == null ? "" : item.child2 + "\n") + + (item.child1 == null ? "" : item.child1 + "\n") + (item.root == null ? "" : item.root), root = item.root, diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 51bec560..326b8a94 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -449,10 +449,10 @@ namespace BMA.EHR.Placement.Service.Controllers placementAppointment.PositionLevelOld = org.result.posLevelName; placementAppointment.PositionTypeOld = org.result.posTypeName; placementAppointment.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + + placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); placementAppointment.OrganizationPositionOld = org.result.position + "/" + placementAppointment.OrganizationOld; placementAppointment.AmountOld = org.result.salary; @@ -798,13 +798,13 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.EducationOld == null ? "-" : p.EducationOld, OldOc = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child1Old} {p.rootOld}" : p.rootOld != null ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld}/{p.rootOld}" : "-", OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, @@ -814,13 +814,13 @@ namespace BMA.EHR.Placement.Service.Controllers LeaveDate = "-", NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : p.node == 4 - ? p.position == null ? $"{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.position == null ? $"{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.position == null ? $"{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.position == null ? $"{p.child1}/{p.root}" : $"{p.position}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position}/{p.child1} {p.root}" : p.node == 0 ? p.position == null ? $"{p.root}" : $"{p.position}/{p.root}" : "-", NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, @@ -1013,13 +1013,13 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.EducationOld == null ? "-" : p.EducationOld, OldOc = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child1Old} {p.rootOld}" : p.rootOld != null ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld}/{p.rootOld}" : "-", OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, @@ -1029,13 +1029,13 @@ namespace BMA.EHR.Placement.Service.Controllers LeaveDate = "-", NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : p.node == 4 - ? p.position == null ? $"{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.position == null ? $"{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.position == null ? $"{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.position == null ? $"{p.child1}/{p.root}" : $"{p.position}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position}/{p.child1} {p.root}" : p.node == 0 ? p.position == null ? $"{p.root}" : $"{p.position}/{p.root}" : "-", NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, @@ -1230,13 +1230,13 @@ namespace BMA.EHR.Placement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", OldOrganization = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child1Old} {p.rootOld}" : p.rootOld != null ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld}/{p.rootOld}" : "-", OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld.ToThaiNumber(), @@ -1244,13 +1244,13 @@ namespace BMA.EHR.Placement.Service.Controllers OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : p.node == 4 - ? p.position == null ? $"{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.position == null ? $"{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.position == null ? $"{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.position == null ? $"{p.child1}/{p.root}" : $"{p.position}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position}/{p.child1} {p.root}" : p.node == 0 ? p.position == null ? $"{p.root}" : $"{p.position}/{p.root}" : "-", NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName.ToThaiNumber(), @@ -1433,13 +1433,13 @@ namespace BMA.EHR.Placement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", OldOc = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child1Old} {p.rootOld}" : p.rootOld != null ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld}/{p.rootOld}" : "-", OldPositionNumber = p.posMasterNoOld == null ? "-" : @@ -1451,13 +1451,13 @@ namespace BMA.EHR.Placement.Service.Controllers OldSalary = p.AmountOld == null ? "" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : p.node == 4 - ? p.position == null ? $"{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.position == null ? $"{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.position == null ? $"{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.position == null ? $"{p.child1}/{p.root}" : $"{p.position}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position}/{p.child1} {p.root}" : p.node == 0 ? p.position == null ? $"{p.root}" : $"{p.position}/{p.root}" : "-", NewPositionNumber = p.posMasterNo == null ? "-" : @@ -1647,13 +1647,13 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.EducationOld == null ? "-" : p.EducationOld, OldOc = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.positionOld}/{p.child1Old}/{p.rootOld}" : + ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child1Old} {p.rootOld}" : p.rootOld != null ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld}/{p.rootOld}" : "-", OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, @@ -1668,13 +1668,13 @@ namespace BMA.EHR.Placement.Service.Controllers PositionDate = p.PositionDate == null ? "-" : p.PositionDate.Value.ToThaiShortDate2().ToThaiNumber(), NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : p.node == 4 - ? p.position == null ? $"{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.position == null ? $"{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.position == null ? $"{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.position == null ? $"{p.child1}/{p.root}" : $"{p.position}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position}/{p.child1} {p.root}" : p.node == 0 ? p.position == null ? $"{p.root}" : $"{p.position}/{p.root}" : "-", NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index d0b4dd9c..28c3eab0 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -481,10 +481,10 @@ namespace BMA.EHR.Placement.Service.Controllers placementAppointment.PositionLevelOld = org.result.posLevelName; placementAppointment.PositionTypeOld = org.result.posTypeName; placementAppointment.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + + placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); placementAppointment.OrganizationPositionOld = org.result.position + "/" + placementAppointment.OrganizationOld; } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 34597431..b298fedc 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1576,18 +1576,18 @@ namespace BMA.EHR.Placement.Service.Controllers $"{p.PlacementEducations.FirstOrDefault().Degree} {p.PlacementEducations.FirstOrDefault().Field}", PositionName = p.positionName == null ? "-" : p.positionName, ExamNumber = p.ExamNumber == null ? "-" : p.ExamNumber.Value.ToString().ToThaiNumber(), - PlacementName = $"{p.Placement.Name.ToThaiNumber()} āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ {p.Placement.Round.ToThaiNumber()}/{p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", + PlacementName = $"{p.Placement.Name.ToThaiNumber()} āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ {p.Placement.Round.ToThaiNumber()} {p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", Oc = p.root == null ? p.positionName == null ? "-" : $"{p.positionName}/-" : p.node == 4 - ? p.positionName == null ? $"{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.positionName == null ? $"{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.positionName == null ? $"{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.positionName == null ? $"{p.child1}/{p.root}" : $"{p.positionName}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child1} {p.root}" : $"{p.positionName} {p.child1} {p.root}" : p.node == 0 - ? p.positionName == null ? $"{p.root}" : $"{p.positionName}/{p.root}" : "-", + ? p.positionName == null ? $"{p.root}" : $"{p.positionName} {p.root}" : "-", PositionType = p.posTypeName == null ? "-" : p.posTypeName, PositionLevel = p.posLevelName == null ? "-" : p.posLevelName, PositionNumber = p.posMasterNo == null ? "-" : @@ -1603,15 +1603,15 @@ namespace BMA.EHR.Placement.Service.Controllers PositionCandidate = p.PositionCandidate, //āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™ OcCandidate = p.root == null ? p.positionName == null ? "-" : $"{p.positionName}/-" : p.node == 4 - ? p.positionName == null ? $"{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.positionName == null ? $"{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.positionName == null ? $"{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.positionName == null ? $"{p.child1}/{p.root}" : $"{p.positionName}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child1} {p.root}" : $"{p.positionName} {p.child1} {p.root}" : p.node == 0 - ? p.positionName == null ? $"{p.root}" : $"{p.positionName}/{p.root}" : "-", + ? p.positionName == null ? $"{p.root}" : $"{p.positionName} {p.root}" : "-", RemarkHorizontal = r.RemarkHorizontal, RemarkVertical = r.RemarkVertical, }).ToList(); @@ -1896,18 +1896,18 @@ namespace BMA.EHR.Placement.Service.Controllers $"{p.PlacementEducations.FirstOrDefault().Degree} {p.PlacementEducations.FirstOrDefault().Field}", PositionName = p.positionName == null ? "-" : p.positionName, ExamNumber = p.ExamNumber == null ? "-" : p.ExamNumber.Value.ToString().ToThaiNumber(), - PlacementName = $"{p.Placement.Name.ToThaiNumber()} āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ {p.Placement.Round.ToThaiNumber()}/{p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", + PlacementName = $"{p.Placement.Name.ToThaiNumber()} āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ {p.Placement.Round.ToThaiNumber()} {p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", Oc = p.root == null ? p.positionName == null ? "-" : $"{p.positionName}/-" : p.node == 4 - ? p.positionName == null ? $"{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.positionName == null ? $"{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.positionName == null ? $"{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.positionName == null ? $"{p.child1}/{p.root}" : $"{p.positionName}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child1} {p.root}" : $"{p.positionName} {p.child1} {p.root}" : p.node == 0 - ? p.positionName == null ? $"{p.root}" : $"{p.positionName}/{p.root}" : "-", + ? p.positionName == null ? $"{p.root}" : $"{p.positionName} {p.root}" : "-", PositionType = p.posTypeName == null ? "-" : p.posTypeName, PositionLevel = p.posLevelName == null ? "-" : p.posLevelName, PositionNumber = p.posMasterNo == null ? "-" : @@ -2205,15 +2205,15 @@ namespace BMA.EHR.Placement.Service.Controllers p.PlacementEducations.FirstOrDefault().Degree, OldOc = p.rootOld == null ? p.positionNameOld == null ? "-" : $"{p.positionNameOld}/-" : p.nodeOld == "4" - ? p.positionNameOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionNameOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "3" - ? p.positionNameOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionNameOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "2" - ? p.positionNameOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionNameOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "1" - ? p.positionNameOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.positionNameOld}/{p.child1Old}/{p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child1Old} {p.rootOld}" : p.nodeOld == "0" - ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld}/{p.rootOld}" : "-", + ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld} {p.rootOld}" : "-", OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : @@ -2226,15 +2226,15 @@ namespace BMA.EHR.Placement.Service.Controllers OldPosition = p.positionNameOld == null ? "-" : p.positionNameOld, NewOc = p.root == null ? p.positionName == null ? "-" : $"{p.positionName}/-" : p.node == 4 - ? p.positionName == null ? $"{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.positionName == null ? $"{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.positionName == null ? $"{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.positionName == null ? $"{p.child1}/{p.root}" : $"{p.positionName}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child1} {p.root}" : $"{p.positionName} {p.child1} {p.root}" : p.node == 0 - ? p.positionName == null ? $"{p.root}" : $"{p.positionName}/{p.root}" : "-", + ? p.positionName == null ? $"{p.root}" : $"{p.positionName} {p.root}" : "-", NewPosition = p.positionName == null ? "-" : p.positionName, NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, @@ -2436,15 +2436,15 @@ namespace BMA.EHR.Placement.Service.Controllers p.PlacementEducations.FirstOrDefault().Degree, OldOc = p.rootOld == null ? p.positionNameOld == null ? "-" : $"{p.positionNameOld}/-" : p.nodeOld == "4" - ? p.positionNameOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionNameOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "3" - ? p.positionNameOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionNameOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "2" - ? p.positionNameOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionNameOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "1" - ? p.positionNameOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.positionNameOld}/{p.child1Old}/{p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child1Old} {p.rootOld}" : p.nodeOld == "0" - ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld}/{p.rootOld}" : "-", + ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld} {p.rootOld}" : "-", OldPosition = p.positionNameOld == null ? "-" : p.positionNameOld, OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, @@ -2457,15 +2457,15 @@ namespace BMA.EHR.Placement.Service.Controllers OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = p.root == null ? p.positionName == null ? "-" : $"{p.positionName}/-" : p.node == 4 - ? p.positionName == null ? $"{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.positionName == null ? $"{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.positionName == null ? $"{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.positionName == null ? $"{p.child1}/{p.root}" : $"{p.positionName}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child1} {p.root}" : $"{p.positionName} {p.child1} {p.root}" : p.node == 0 - ? p.positionName == null ? $"{p.root}" : $"{p.positionName}/{p.root}" : "-", + ? p.positionName == null ? $"{p.root}" : $"{p.positionName} {p.root}" : "-", NewPosition = p.positionName == null ? "-" : p.positionName, NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, @@ -2660,15 +2660,15 @@ namespace BMA.EHR.Placement.Service.Controllers p.PlacementEducations.FirstOrDefault().Degree, OldOc = p.rootOld == null ? p.positionNameOld == null ? "-" : $"{p.positionNameOld}/-" : p.nodeOld == "4" - ? p.positionNameOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionNameOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "3" - ? p.positionNameOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionNameOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "2" - ? p.positionNameOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.positionNameOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "1" - ? p.positionNameOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.positionNameOld}/{p.child1Old}/{p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child1Old} {p.rootOld}" : p.nodeOld == "0" - ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld}/{p.rootOld}" : "-", + ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld} {p.rootOld}" : "-", OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : @@ -2681,15 +2681,15 @@ namespace BMA.EHR.Placement.Service.Controllers LeaveDate = "-", NewOc = p.root == null ? p.positionName == null ? "-" : $"{p.positionName}/-" : p.node == 4 - ? p.positionName == null ? $"{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.positionName == null ? $"{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.positionName == null ? $"{p.child2}/{p.child1}/{p.root}" : $"{p.positionName}/{p.child2}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.positionName == null ? $"{p.child1}/{p.root}" : $"{p.positionName}/{p.child1}/{p.root}" : + ? p.positionName == null ? $"{p.child1} {p.root}" : $"{p.positionName} {p.child1} {p.root}" : p.node == 0 - ? p.positionName == null ? $"{p.root}" : $"{p.positionName}/{p.root}" : "-", + ? p.positionName == null ? $"{p.root}" : $"{p.positionName} {p.root}" : "-", NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 47827a44..30bd92fc 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -395,10 +395,10 @@ namespace BMA.EHR.Placement.Service.Controllers placementOfficer.PositionLevelOld = org.result.posLevelName; placementOfficer.PositionTypeOld = org.result.posTypeName; placementOfficer.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementOfficer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + + placementOfficer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); placementOfficer.OrganizationPositionOld = org.result.position + "/" + placementOfficer.OrganizationOld; } @@ -605,13 +605,13 @@ namespace BMA.EHR.Placement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", PositionName = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : p.rootOld != null ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", Organization = p.Organization == null ? "" : p.Organization, diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 3ec81c32..e00129a7 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -495,10 +495,10 @@ namespace BMA.EHR.Placement.Service.Controllers placementReceive.PositionLevelOld = org.result.posLevelName; placementReceive.PositionTypeOld = org.result.posTypeName; placementReceive.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementReceive.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + + placementReceive.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); placementReceive.OrganizationPositionOld = org.result.position + "/" + placementReceive.OrganizationOld; } @@ -930,13 +930,13 @@ namespace BMA.EHR.Placement.Service.Controllers OldOrg = p.OrganizationPositionOld ?? "-", OldOc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : p.rootOld != null ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", OldPositionType = p.PositionTypeOld ?? "-", @@ -944,13 +944,13 @@ namespace BMA.EHR.Placement.Service.Controllers OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : p.node == 4 - ? p.position == null ? $"{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.position == null ? $"{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.position == null ? $"{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child2}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.position == null ? $"{p.child1}/{p.root}" : $"{p.position}/{p.child1}/{p.root}" : + ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position}/{p.child1} {p.root}" : p.node == 0 ? p.position == null ? $"{p.root}" : $"{p.position}/{p.root}" : "-", NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index 20d4dd84..9792d2c4 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -273,10 +273,10 @@ namespace BMA.EHR.Placement.Service.Controllers placementRepatriation.PositionLevelOld = org.result.posLevelName; placementRepatriation.PositionTypeOld = org.result.posTypeName; placementRepatriation.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementRepatriation.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + + placementRepatriation.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); placementRepatriation.OrganizationPositionOld = org.result.position + "/" + placementRepatriation.OrganizationOld; } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index 90e61efe..c3e9b8b9 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -524,10 +524,10 @@ namespace BMA.EHR.Placement.Service.Controllers placementTransfer.PositionLevelOld = org.result.posLevelName; placementTransfer.PositionTypeOld = org.result.posTypeName; placementTransfer.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementTransfer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + + placementTransfer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); placementTransfer.OrganizationPositionOld = org.result.position + "/" + placementTransfer.OrganizationOld; } @@ -811,13 +811,13 @@ namespace BMA.EHR.Placement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", OldOc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : p.rootOld != null ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", PositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, diff --git a/BMA.EHR.Report.Service/Controllers/RetireReportController.cs b/BMA.EHR.Report.Service/Controllers/RetireReportController.cs index 56dd83af..f79f7e11 100644 --- a/BMA.EHR.Report.Service/Controllers/RetireReportController.cs +++ b/BMA.EHR.Report.Service/Controllers/RetireReportController.cs @@ -133,10 +133,10 @@ namespace BMA.EHR.Report.Service.Controllers // thaiOrder = $"āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ {thaiOrder.ToThaiNumber()}"; // string thaiPosNo = profile.GetType().GetProperty("posNo").GetValue(profile); // thaiPosNo = thaiPosNo != null ? $"(āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ {thaiPosNo.ToThaiNumber()})" : $"(āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ - )"; - // string organizationOrganization = (profile.GetType().GetProperty("child4").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child4").GetValue(profile) + "/") + - // (profile.GetType().GetProperty("child3").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child3").GetValue(profile) + "/") + - // (profile.GetType().GetProperty("child2").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child2").GetValue(profile) + "/") + - // (profile.GetType().GetProperty("child1").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child1").GetValue(profile) + "/") + + // string organizationOrganization = (profile.GetType().GetProperty("child4").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child4").GetValue(profile) + "\n") + + // (profile.GetType().GetProperty("child3").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child3").GetValue(profile) + "\n") + + // (profile.GetType().GetProperty("child2").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child2").GetValue(profile) + "\n") + + // (profile.GetType().GetProperty("child1").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child1").GetValue(profile) + "\n") + // (profile.GetType().GetProperty("root").GetValue(profile) == null ? "" : profile.GetType().GetProperty("root").GetValue(profile)); // string reason = profile.GetType().GetProperty("reason").GetValue(profile); // organizationOrganization = organizationOrganization != string.Empty ? organizationOrganization : reason != string.Empty ? reason : string.Empty ; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index ad24d463..885b8f29 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -590,10 +590,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceasedNoti.LastName = org.result.lastName == null ? "" : org.result.lastName; retirementDeceasedNoti.CitizenId = org.result.citizenId == null ? "" : org.result.citizenId; retirementDeceasedNoti.PositionName = org.result.position == null ? "" : org.result.position; - retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + + retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); } @@ -619,10 +619,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceasedNoti.LastName = org.result.lastName == null ? "" : org.result.lastName; retirementDeceasedNoti.CitizenId = org.result.citizenId == null ? "" : org.result.citizenId; retirementDeceasedNoti.PositionName = org.result.position == null ? "" : org.result.position; - retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + + retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 6bfb98e4..42fb8c0c 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -396,10 +396,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOther.PositionLevelOld = org.result.posLevelName; retirementOther.PositionTypeOld = org.result.posTypeName; retirementOther.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementOther.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + + retirementOther.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementOther.OrganizationPositionOld = org.result.position + "/" + retirementOther.OrganizationOld; retirementOther.EducationOld = org.result.education; @@ -888,13 +888,13 @@ namespace BMA.EHR.Retirement.Service.Controllers Education = p.EducationOld == null ? "-" : p.EducationOld, OldOc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : p.rootOld != null ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, @@ -905,13 +905,13 @@ namespace BMA.EHR.Retirement.Service.Controllers MilitaryDate = p.MilitaryDate == null ? "-" : p.MilitaryDate.Value.ToThaiShortDate2().ToThaiNumber(), NewOc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : p.rootOld != null ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", NewPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index 17b609a5..403b2124 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -316,10 +316,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOut.PositionLevelOld = org.result.posLevelName; retirementOut.PositionTypeOld = org.result.posTypeName; retirementOut.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + + retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementOut.OrganizationPositionOld = org.result.position + "/" + retirementOut.OrganizationOld; retirementOut.AmountOld = org.result.salary; @@ -371,10 +371,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOut.PositionLevelOld = org.result.posLevelName; retirementOut.PositionTypeOld = org.result.posTypeName; retirementOut.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + + retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementOut.OrganizationPositionOld = org.result.position + "/" + retirementOut.OrganizationOld; retirementOut.AmountOld = org.result.salary; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 6ce2d732..93ebc983 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -100,7 +100,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // var ret = String.Empty; // foreach (var oc in ocList) // { - // ret = oc + "/" + ret; + // ret = oc + "\n" + ret; // } // if (ret.Length > 2) @@ -952,10 +952,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementResign.PositionLevelOld = org.result.posLevelName; retirementResign.PositionTypeOld = org.result.posTypeName; retirementResign.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementResign.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + + retirementResign.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementResign.OrganizationPositionOld = org.result.position + "/" + retirementResign.OrganizationOld; } @@ -2558,13 +2558,13 @@ namespace BMA.EHR.Retirement.Service.Controllers Organization = p.OrganizationPositionOld ?? "-", Oc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : p.rootOld != null ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", PositionLevel = p.PositionLevelOld ?? "-", diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index b92bc974..4bab144f 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -894,10 +894,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementResignEmployee.PositionLevelOld = org.result.posLevelName; retirementResignEmployee.PositionTypeOld = org.result.posTypeName; retirementResignEmployee.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementResignEmployee.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "/") + - (org.result.child3 == null ? "" : org.result.child3 + "/") + - (org.result.child2 == null ? "" : org.result.child2 + "/") + - (org.result.child1 == null ? "" : org.result.child1 + "/") + + retirementResignEmployee.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementResignEmployee.OrganizationPositionOld = org.result.position + "/" + retirementResignEmployee.OrganizationOld; } @@ -2500,13 +2500,13 @@ namespace BMA.EHR.Retirement.Service.Controllers Organization = p.OrganizationPositionOld ?? "-", Oc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child4Old}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child3Old}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old}/{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child2Old}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old}/{p.rootOld}" : $"{p.PositionOld}/{p.child1Old}/{p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : p.rootOld != null ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", PositionLevel = p.PositionLevelOld ?? "-", From a8dc4b82db1c42b2265f4ed603600ec657b5972e Mon Sep 17 00:00:00 2001 From: kittapath Date: Wed, 22 Jan 2025 15:12:29 +0700 Subject: [PATCH 037/879] no message --- .../Controllers/PlacementController.cs | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index b298fedc..5d41c228 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -2205,15 +2205,15 @@ namespace BMA.EHR.Placement.Service.Controllers p.PlacementEducations.FirstOrDefault().Degree, OldOc = p.rootOld == null ? p.positionNameOld == null ? "-" : $"{p.positionNameOld}/-" : p.nodeOld == "4" - ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "3" - ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "2" - ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "1" - ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child1Old} {p.rootOld}" : p.nodeOld == "0" - ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld} {p.rootOld}" : "-", + ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld}/{p.rootOld}" : "-", OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : @@ -2436,15 +2436,15 @@ namespace BMA.EHR.Placement.Service.Controllers p.PlacementEducations.FirstOrDefault().Degree, OldOc = p.rootOld == null ? p.positionNameOld == null ? "-" : $"{p.positionNameOld}/-" : p.nodeOld == "4" - ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "3" - ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "2" - ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "1" - ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child1Old} {p.rootOld}" : p.nodeOld == "0" - ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld} {p.rootOld}" : "-", + ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld}/{p.rootOld}" : "-", OldPosition = p.positionNameOld == null ? "-" : p.positionNameOld, OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, @@ -2660,15 +2660,15 @@ namespace BMA.EHR.Placement.Service.Controllers p.PlacementEducations.FirstOrDefault().Degree, OldOc = p.rootOld == null ? p.positionNameOld == null ? "-" : $"{p.positionNameOld}/-" : p.nodeOld == "4" - ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "3" - ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "2" - ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "1" - ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child1Old} {p.rootOld}" : p.nodeOld == "0" - ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld} {p.rootOld}" : "-", + ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld}/{p.rootOld}" : "-", OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : From 78bbfb710705c11ef14b726d6d5d4b26800f3b95 Mon Sep 17 00:00:00 2001 From: kittapath Date: Wed, 22 Jan 2025 17:06:55 +0700 Subject: [PATCH 038/879] no message --- .../Controllers/RetirementResignController.cs | 40 +------------------ 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 93ebc983..51522f92 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -511,9 +511,9 @@ namespace BMA.EHR.Retirement.Service.Controllers data.IsNoBurden, data.IsDiscipline, data.CancelReason, - idCancel = data.RetirementResignCancels?.Id ?? Guid.Empty, + idCancel = data.RetirementResignCancels?.Id ?? null, statusCancel = data.RetirementResignCancels?.Status ?? null, - statusMain = data.Status, + statusMain = data.Status == "CANCEL" ? "DONECANCEL" : data.Status, // Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar), Docs = retirementResignDocs, // DocDebts = retirementResignDebtDocs, @@ -1261,43 +1261,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } updated.IsCancel = true; } - // else - // { updated.Status = "CANCEL"; - // } - // if (updated.OfficerReject != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc3db9-257d-470d-8256-3dc24f6fa332"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ", - // "", - // "", - // true - // ); - // } - // if (updated.CommanderReject != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc432c-2bc5-4b81-8089-9c057c51192c"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ", - // "", - // "", - // true - // ); - // } - // if (updated.OligarchReject != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc4307-0adc-4bcd-8213-5479bb010236"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ", - // "", - // "", - // true - // ); - // } updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; From ff4019978fbae611c265555eb0a36162758c6cf1 Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 23 Jan 2025 11:48:12 +0700 Subject: [PATCH 039/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20format=20?= =?UTF-8?q?org?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DisciplineDisciplinaryController.cs | 8 +- .../PlacementAppointmentController.cs | 110 +++++++++--------- .../PlacementAppointmentEmployeeController.cs | 10 +- .../Controllers/PlacementController.cs | 30 ++--- .../Controllers/PlacementOfficerController.cs | 20 ++-- .../Controllers/PlacementReceiveController.cs | 30 ++--- .../PlacementRepatriationController.cs | 10 +- .../PlacementTransferController.cs | 20 ++-- .../Controllers/RetireReportController.cs | 8 +- .../RetirementDeceasedController.cs | 16 +-- .../Controllers/RetirementOtherController.cs | 34 +++--- .../Controllers/RetirementOutController.cs | 20 ++-- .../Controllers/RetirementResignController.cs | 20 ++-- .../RetirementResignEmployeeController.cs | 20 ++-- 14 files changed, 178 insertions(+), 178 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs index f878225a..ad95788a 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs @@ -1745,10 +1745,10 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers FirstName = item.FirstName, LastName = item.LastName, //Organization = item.Organization, - Organization = (item.child4 == null ? "" : item.child4 + "\n") + - (item.child3 == null ? "" : item.child3 + "\n") + - (item.child2 == null ? "" : item.child2 + "\n") + - (item.child1 == null ? "" : item.child1 + "\n") + + Organization = (item.child4 == null ? "" : item.child4 + " ") + + (item.child3 == null ? "" : item.child3 + " ") + + (item.child2 == null ? "" : item.child2 + " ") + + (item.child1 == null ? "" : item.child1 + " ") + (item.root == null ? "" : item.root), root = item.root, diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 326b8a94..ee60e8d9 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -449,12 +449,12 @@ namespace BMA.EHR.Placement.Service.Controllers placementAppointment.PositionLevelOld = org.result.posLevelName; placementAppointment.PositionTypeOld = org.result.posTypeName; placementAppointment.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + + placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + + (org.result.child3 == null ? "" : org.result.child3 + " ") + + (org.result.child2 == null ? "" : org.result.child2 + " ") + + (org.result.child1 == null ? "" : org.result.child1 + " ") + (org.result.root == null ? "" : org.result.root); - placementAppointment.OrganizationPositionOld = org.result.position + "/" + placementAppointment.OrganizationOld; + placementAppointment.OrganizationPositionOld = org.result.position + "\n" + placementAppointment.OrganizationOld; placementAppointment.AmountOld = org.result.salary; } await _context.PlacementAppointments.AddAsync(placementAppointment); @@ -798,15 +798,15 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.EducationOld == null ? "-" : p.EducationOld, OldOc = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child1Old} {p.rootOld}" : p.rootOld != null - ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld}/{p.rootOld}" : "-", + ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld} {p.rootOld}" : "-", OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), @@ -814,15 +814,15 @@ namespace BMA.EHR.Placement.Service.Controllers LeaveDate = "-", NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : p.node == 4 - ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child3} {p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position} {p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position}/{p.child1} {p.root}" : + ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position} {p.child1} {p.root}" : p.node == 0 - ? p.position == null ? $"{p.root}" : $"{p.position}/{p.root}" : "-", + ? p.position == null ? $"{p.root}" : $"{p.position} {p.root}" : "-", NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : @@ -1013,15 +1013,15 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.EducationOld == null ? "-" : p.EducationOld, OldOc = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child1Old} {p.rootOld}" : p.rootOld != null - ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld}/{p.rootOld}" : "-", + ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld} {p.rootOld}" : "-", OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), @@ -1029,15 +1029,15 @@ namespace BMA.EHR.Placement.Service.Controllers LeaveDate = "-", NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : p.node == 4 - ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child3} {p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position} {p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position}/{p.child1} {p.root}" : + ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position} {p.child1} {p.root}" : p.node == 0 - ? p.position == null ? $"{p.root}" : $"{p.position}/{p.root}" : "-", + ? p.position == null ? $"{p.root}" : $"{p.position} {p.root}" : "-", NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : @@ -1230,29 +1230,29 @@ namespace BMA.EHR.Placement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", OldOrganization = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child1Old} {p.rootOld}" : p.rootOld != null - ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld}/{p.rootOld}" : "-", + ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld} {p.rootOld}" : "-", OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld.ToThaiNumber(), OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : p.node == 4 - ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child3} {p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position} {p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position}/{p.child1} {p.root}" : + ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position} {p.child1} {p.root}" : p.node == 0 - ? p.position == null ? $"{p.root}" : $"{p.position}/{p.root}" : "-", + ? p.position == null ? $"{p.root}" : $"{p.position} {p.root}" : "-", NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName.ToThaiNumber(), NewPositionNumber = p.posMasterNo == null ? "-" : p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : @@ -1433,15 +1433,15 @@ namespace BMA.EHR.Placement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", OldOc = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child1Old} {p.rootOld}" : p.rootOld != null - ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld}/{p.rootOld}" : "-", + ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld} {p.rootOld}" : "-", OldPositionNumber = p.posMasterNoOld == null ? "-" : p.child4Old != null ? $"{p.child4ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : p.child3Old != null ? $"{p.child3ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : @@ -1451,15 +1451,15 @@ namespace BMA.EHR.Placement.Service.Controllers OldSalary = p.AmountOld == null ? "" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : p.node == 4 - ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child3} {p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position} {p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position}/{p.child1} {p.root}" : + ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position} {p.child1} {p.root}" : p.node == 0 - ? p.position == null ? $"{p.root}" : $"{p.position}/{p.root}" : "-", + ? p.position == null ? $"{p.root}" : $"{p.position} {p.root}" : "-", NewPositionNumber = p.posMasterNo == null ? "-" : p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : @@ -1647,15 +1647,15 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.EducationOld == null ? "-" : p.EducationOld, OldOc = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld}/{p.child1Old} {p.rootOld}" : + ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child1Old} {p.rootOld}" : p.rootOld != null - ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld}/{p.rootOld}" : "-", + ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld} {p.rootOld}" : "-", OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : @@ -1668,15 +1668,15 @@ namespace BMA.EHR.Placement.Service.Controllers PositionDate = p.PositionDate == null ? "-" : p.PositionDate.Value.ToThaiShortDate2().ToThaiNumber(), NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : p.node == 4 - ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child3} {p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position} {p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position}/{p.child1} {p.root}" : + ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position} {p.child1} {p.root}" : p.node == 0 - ? p.position == null ? $"{p.root}" : $"{p.position}/{p.root}" : "-", + ? p.position == null ? $"{p.root}" : $"{p.position} {p.root}" : "-", NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "" : diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index 28c3eab0..ed223f86 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -481,12 +481,12 @@ namespace BMA.EHR.Placement.Service.Controllers placementAppointment.PositionLevelOld = org.result.posLevelName; placementAppointment.PositionTypeOld = org.result.posTypeName; placementAppointment.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + + placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + + (org.result.child3 == null ? "" : org.result.child3 + " ") + + (org.result.child2 == null ? "" : org.result.child2 + " ") + + (org.result.child1 == null ? "" : org.result.child1 + " ") + (org.result.root == null ? "" : org.result.root); - placementAppointment.OrganizationPositionOld = org.result.position + "/" + placementAppointment.OrganizationOld; + placementAppointment.OrganizationPositionOld = org.result.position + "\n" + placementAppointment.OrganizationOld; } await _context.PlacementAppointments.AddAsync(placementAppointment); await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 5d41c228..b298fedc 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -2205,15 +2205,15 @@ namespace BMA.EHR.Placement.Service.Controllers p.PlacementEducations.FirstOrDefault().Degree, OldOc = p.rootOld == null ? p.positionNameOld == null ? "-" : $"{p.positionNameOld}/-" : p.nodeOld == "4" - ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "3" - ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "2" - ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "1" - ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child1Old} {p.rootOld}" : p.nodeOld == "0" - ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld}/{p.rootOld}" : "-", + ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld} {p.rootOld}" : "-", OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : @@ -2436,15 +2436,15 @@ namespace BMA.EHR.Placement.Service.Controllers p.PlacementEducations.FirstOrDefault().Degree, OldOc = p.rootOld == null ? p.positionNameOld == null ? "-" : $"{p.positionNameOld}/-" : p.nodeOld == "4" - ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "3" - ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "2" - ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "1" - ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child1Old} {p.rootOld}" : p.nodeOld == "0" - ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld}/{p.rootOld}" : "-", + ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld} {p.rootOld}" : "-", OldPosition = p.positionNameOld == null ? "-" : p.positionNameOld, OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, @@ -2660,15 +2660,15 @@ namespace BMA.EHR.Placement.Service.Controllers p.PlacementEducations.FirstOrDefault().Degree, OldOc = p.rootOld == null ? p.positionNameOld == null ? "-" : $"{p.positionNameOld}/-" : p.nodeOld == "4" - ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "3" - ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "2" - ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.nodeOld == "1" - ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld}/{p.child1Old} {p.rootOld}" : + ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child1Old} {p.rootOld}" : p.nodeOld == "0" - ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld}/{p.rootOld}" : "-", + ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld} {p.rootOld}" : "-", OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 30bd92fc..9db7af70 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -395,12 +395,12 @@ namespace BMA.EHR.Placement.Service.Controllers placementOfficer.PositionLevelOld = org.result.posLevelName; placementOfficer.PositionTypeOld = org.result.posTypeName; placementOfficer.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementOfficer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + + placementOfficer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + + (org.result.child3 == null ? "" : org.result.child3 + " ") + + (org.result.child2 == null ? "" : org.result.child2 + " ") + + (org.result.child1 == null ? "" : org.result.child1 + " ") + (org.result.root == null ? "" : org.result.root); - placementOfficer.OrganizationPositionOld = org.result.position + "/" + placementOfficer.OrganizationOld; + placementOfficer.OrganizationPositionOld = org.result.position + "\n" + placementOfficer.OrganizationOld; } await _context.PlacementOfficers.AddAsync(placementOfficer); await _context.SaveChangesAsync(); @@ -605,15 +605,15 @@ namespace BMA.EHR.Placement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", PositionName = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", + ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", Organization = p.Organization == null ? "" : p.Organization, StartDate = p.DateStart == null ? "" : p.DateStart.Value.ToThaiShortDate2().ToThaiNumber(), EndDate = p.DateEnd == null ? "" : p.DateEnd.Value.ToThaiShortDate2().ToThaiNumber(), diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index e00129a7..0676d102 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -495,12 +495,12 @@ namespace BMA.EHR.Placement.Service.Controllers placementReceive.PositionLevelOld = org.result.posLevelName; placementReceive.PositionTypeOld = org.result.posTypeName; placementReceive.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementReceive.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + + placementReceive.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + + (org.result.child3 == null ? "" : org.result.child3 + " ") + + (org.result.child2 == null ? "" : org.result.child2 + " ") + + (org.result.child1 == null ? "" : org.result.child1 + " ") + (org.result.root == null ? "" : org.result.root); - placementReceive.OrganizationPositionOld = org.result.position + "/" + placementReceive.OrganizationOld; + placementReceive.OrganizationPositionOld = org.result.position + "\n" + placementReceive.OrganizationOld; } } await _context.PlacementReceives.AddAsync(placementReceive); @@ -930,29 +930,29 @@ namespace BMA.EHR.Placement.Service.Controllers OldOrg = p.OrganizationPositionOld ?? "-", OldOc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", + ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", OldPositionType = p.PositionTypeOld ?? "-", OldPositionLevel = p.PositionLevelOld ?? "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : p.node == 4 - ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 3 - ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child3} {p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child3} {p.child2} {p.child1} {p.root}" : p.node == 2 - ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position}/{p.child2} {p.child1} {p.root}" : + ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position} {p.child2} {p.child1} {p.root}" : p.node == 1 - ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position}/{p.child1} {p.root}" : + ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position} {p.child1} {p.root}" : p.node == 0 - ? p.position == null ? $"{p.root}" : $"{p.position}/{p.root}" : "-", + ? p.position == null ? $"{p.root}" : $"{p.position} {p.root}" : "-", NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index 9792d2c4..7db7fec8 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -273,12 +273,12 @@ namespace BMA.EHR.Placement.Service.Controllers placementRepatriation.PositionLevelOld = org.result.posLevelName; placementRepatriation.PositionTypeOld = org.result.posTypeName; placementRepatriation.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementRepatriation.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + + placementRepatriation.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + + (org.result.child3 == null ? "" : org.result.child3 + " ") + + (org.result.child2 == null ? "" : org.result.child2 + " ") + + (org.result.child1 == null ? "" : org.result.child1 + " ") + (org.result.root == null ? "" : org.result.root); - placementRepatriation.OrganizationPositionOld = org.result.position + "/" + placementRepatriation.OrganizationOld; + placementRepatriation.OrganizationPositionOld = org.result.position + "\n" + placementRepatriation.OrganizationOld; } await _context.PlacementRepatriations.AddAsync(placementRepatriation); await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index c3e9b8b9..b9adcb9a 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -524,12 +524,12 @@ namespace BMA.EHR.Placement.Service.Controllers placementTransfer.PositionLevelOld = org.result.posLevelName; placementTransfer.PositionTypeOld = org.result.posTypeName; placementTransfer.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementTransfer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + + placementTransfer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + + (org.result.child3 == null ? "" : org.result.child3 + " ") + + (org.result.child2 == null ? "" : org.result.child2 + " ") + + (org.result.child1 == null ? "" : org.result.child1 + " ") + (org.result.root == null ? "" : org.result.root); - placementTransfer.OrganizationPositionOld = org.result.position + "/" + placementTransfer.OrganizationOld; + placementTransfer.OrganizationPositionOld = org.result.position + "\n" + placementTransfer.OrganizationOld; } await _context.PlacementTransfers.AddAsync(placementTransfer); await _context.SaveChangesAsync(); @@ -811,15 +811,15 @@ namespace BMA.EHR.Placement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", OldOc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", + ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", PositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, PositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, PositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), diff --git a/BMA.EHR.Report.Service/Controllers/RetireReportController.cs b/BMA.EHR.Report.Service/Controllers/RetireReportController.cs index f79f7e11..dd329dde 100644 --- a/BMA.EHR.Report.Service/Controllers/RetireReportController.cs +++ b/BMA.EHR.Report.Service/Controllers/RetireReportController.cs @@ -133,10 +133,10 @@ namespace BMA.EHR.Report.Service.Controllers // thaiOrder = $"āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ {thaiOrder.ToThaiNumber()}"; // string thaiPosNo = profile.GetType().GetProperty("posNo").GetValue(profile); // thaiPosNo = thaiPosNo != null ? $"(āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ {thaiPosNo.ToThaiNumber()})" : $"(āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ - )"; - // string organizationOrganization = (profile.GetType().GetProperty("child4").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child4").GetValue(profile) + "\n") + - // (profile.GetType().GetProperty("child3").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child3").GetValue(profile) + "\n") + - // (profile.GetType().GetProperty("child2").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child2").GetValue(profile) + "\n") + - // (profile.GetType().GetProperty("child1").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child1").GetValue(profile) + "\n") + + // string organizationOrganization = (profile.GetType().GetProperty("child4").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child4").GetValue(profile) + " ") + + // (profile.GetType().GetProperty("child3").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child3").GetValue(profile) + " ") + + // (profile.GetType().GetProperty("child2").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child2").GetValue(profile) + " ") + + // (profile.GetType().GetProperty("child1").GetValue(profile) == null ? "" : profile.GetType().GetProperty("child1").GetValue(profile) + " ") + // (profile.GetType().GetProperty("root").GetValue(profile) == null ? "" : profile.GetType().GetProperty("root").GetValue(profile)); // string reason = profile.GetType().GetProperty("reason").GetValue(profile); // organizationOrganization = organizationOrganization != string.Empty ? organizationOrganization : reason != string.Empty ? reason : string.Empty ; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 885b8f29..9ebcf854 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -590,10 +590,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceasedNoti.LastName = org.result.lastName == null ? "" : org.result.lastName; retirementDeceasedNoti.CitizenId = org.result.citizenId == null ? "" : org.result.citizenId; retirementDeceasedNoti.PositionName = org.result.position == null ? "" : org.result.position; - retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + + retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + " ") + + (org.result.child3 == null ? "" : org.result.child3 + " ") + + (org.result.child2 == null ? "" : org.result.child2 + " ") + + (org.result.child1 == null ? "" : org.result.child1 + " ") + (org.result.root == null ? "" : org.result.root); retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); } @@ -619,10 +619,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceasedNoti.LastName = org.result.lastName == null ? "" : org.result.lastName; retirementDeceasedNoti.CitizenId = org.result.citizenId == null ? "" : org.result.citizenId; retirementDeceasedNoti.PositionName = org.result.position == null ? "" : org.result.position; - retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + + retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + " ") + + (org.result.child3 == null ? "" : org.result.child3 + " ") + + (org.result.child2 == null ? "" : org.result.child2 + " ") + + (org.result.child1 == null ? "" : org.result.child1 + " ") + (org.result.root == null ? "" : org.result.root); retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 42fb8c0c..97580f4e 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -396,12 +396,12 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOther.PositionLevelOld = org.result.posLevelName; retirementOther.PositionTypeOld = org.result.posTypeName; retirementOther.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementOther.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + + retirementOther.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + + (org.result.child3 == null ? "" : org.result.child3 + " ") + + (org.result.child2 == null ? "" : org.result.child2 + " ") + + (org.result.child1 == null ? "" : org.result.child1 + " ") + (org.result.root == null ? "" : org.result.root); - retirementOther.OrganizationPositionOld = org.result.position + "/" + retirementOther.OrganizationOld; + retirementOther.OrganizationPositionOld = org.result.position + "\n" + retirementOther.OrganizationOld; retirementOther.EducationOld = org.result.education; retirementOther.AmountOld = org.result.salary; } @@ -698,13 +698,13 @@ namespace BMA.EHR.Retirement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = (p.OrganizationPositionOld == null ? "" : p.OrganizationPositionOld) + "/" + (p.rootOld == null ? "" : p.rootOld), + OldOc = (p.OrganizationPositionOld == null ? "" : p.OrganizationPositionOld) + "\n" + (p.rootOld == null ? "" : p.rootOld), OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = p.LeaveDate == null ? "-" : p.LeaveDate.Value.ToThaiShortDate2().ToThaiNumber(), - NewOc = (p.OrganizationPositionOld == null ? "" : p.OrganizationPositionOld) + "/" + (p.rootOld == null ? "" : p.rootOld), + NewOc = (p.OrganizationPositionOld == null ? "" : p.OrganizationPositionOld) + "\n" + (p.rootOld == null ? "" : p.rootOld), NewPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, NewPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, NewPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), @@ -888,15 +888,15 @@ namespace BMA.EHR.Retirement.Service.Controllers Education = p.EducationOld == null ? "-" : p.EducationOld, OldOc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", + ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), @@ -905,15 +905,15 @@ namespace BMA.EHR.Retirement.Service.Controllers MilitaryDate = p.MilitaryDate == null ? "-" : p.MilitaryDate.Value.ToThaiShortDate2().ToThaiNumber(), NewOc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", + ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", NewPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, NewPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, NewPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index 403b2124..f63713b3 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -316,12 +316,12 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOut.PositionLevelOld = org.result.posLevelName; retirementOut.PositionTypeOld = org.result.posTypeName; retirementOut.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + + retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + + (org.result.child3 == null ? "" : org.result.child3 + " ") + + (org.result.child2 == null ? "" : org.result.child2 + " ") + + (org.result.child1 == null ? "" : org.result.child1 + " ") + (org.result.root == null ? "" : org.result.root); - retirementOut.OrganizationPositionOld = org.result.position + "/" + retirementOut.OrganizationOld; + retirementOut.OrganizationPositionOld = org.result.position + "\n" + retirementOut.OrganizationOld; retirementOut.AmountOld = org.result.salary; } } @@ -371,12 +371,12 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOut.PositionLevelOld = org.result.posLevelName; retirementOut.PositionTypeOld = org.result.posTypeName; retirementOut.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + + retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + + (org.result.child3 == null ? "" : org.result.child3 + " ") + + (org.result.child2 == null ? "" : org.result.child2 + " ") + + (org.result.child1 == null ? "" : org.result.child1 + " ") + (org.result.root == null ? "" : org.result.root); - retirementOut.OrganizationPositionOld = org.result.position + "/" + retirementOut.OrganizationOld; + retirementOut.OrganizationPositionOld = org.result.position + "\n" + retirementOut.OrganizationOld; retirementOut.AmountOld = org.result.salary; } } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 51522f92..10a83322 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -952,12 +952,12 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementResign.PositionLevelOld = org.result.posLevelName; retirementResign.PositionTypeOld = org.result.posTypeName; retirementResign.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementResign.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + + retirementResign.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + + (org.result.child3 == null ? "" : org.result.child3 + " ") + + (org.result.child2 == null ? "" : org.result.child2 + " ") + + (org.result.child1 == null ? "" : org.result.child1 + " ") + (org.result.root == null ? "" : org.result.root); - retirementResign.OrganizationPositionOld = org.result.position + "/" + retirementResign.OrganizationOld; + retirementResign.OrganizationPositionOld = org.result.position + "\n" + retirementResign.OrganizationOld; } await _context.RetirementResigns.AddAsync(retirementResign); await _context.SaveChangesAsync(); @@ -2522,15 +2522,15 @@ namespace BMA.EHR.Retirement.Service.Controllers Organization = p.OrganizationPositionOld ?? "-", Oc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", + ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", PositionLevel = p.PositionLevelOld ?? "-", PositionType = p.PositionTypeOld ?? "-", PositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 4bab144f..b484414c 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -894,12 +894,12 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementResignEmployee.PositionLevelOld = org.result.posLevelName; retirementResignEmployee.PositionTypeOld = org.result.posTypeName; retirementResignEmployee.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementResignEmployee.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + + retirementResignEmployee.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + + (org.result.child3 == null ? "" : org.result.child3 + " ") + + (org.result.child2 == null ? "" : org.result.child2 + " ") + + (org.result.child1 == null ? "" : org.result.child1 + " ") + (org.result.root == null ? "" : org.result.root); - retirementResignEmployee.OrganizationPositionOld = org.result.position + "/" + retirementResignEmployee.OrganizationOld; + retirementResignEmployee.OrganizationPositionOld = org.result.position + "\n" + retirementResignEmployee.OrganizationOld; } await _context.RetirementResignEmployees.AddAsync(retirementResignEmployee); await _context.SaveChangesAsync(); @@ -2500,15 +2500,15 @@ namespace BMA.EHR.Retirement.Service.Controllers Organization = p.OrganizationPositionOld ?? "-", Oc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child2Old} {p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld}/{p.child1Old} {p.rootOld}" : + ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-", + ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", PositionLevel = p.PositionLevelOld ?? "-", PositionType = p.PositionTypeOld ?? "-", PositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), From 977429157339de82f2530d615f828d60eea58944 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 23 Jan 2025 14:58:04 +0700 Subject: [PATCH 040/879] =?UTF-8?q?fix=20-=20SIT=20=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=9A=E0=B8=9A=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B6?= =?UTF-8?q?=E0=B8=81=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2=E0=B8=9B=E0=B8=8F?= =?UTF-8?q?=E0=B8=B4=E0=B8=9A=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=87=E0=B8=B2?= =?UTF-8?q?=E0=B8=99>>=E0=B8=A5=E0=B8=87=E0=B9=80=E0=B8=A7=E0=B8=A5?= =?UTF-8?q?=E0=B8=B2=E0=B9=80=E0=B8=82=E0=B9=89=E0=B8=B2-=E0=B8=AD?= =?UTF-8?q?=E0=B8=AD=E0=B8=81=E0=B8=87=E0=B8=B2=E0=B8=99=20(=E0=B8=81?= =?UTF-8?q?=E0=B8=A3=E0=B8=93=E0=B8=B5=E0=B8=A5=E0=B8=87=E0=B9=80=E0=B8=A7?= =?UTF-8?q?=E0=B8=A5=E0=B8=B2=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=AD=E0=B8=B5?= =?UTF-8?q?=E0=B8=81=E0=B8=A7=E0=B8=B1=E0=B8=99)=20#921=20-=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=A5=E0=B8=B2=20(=E0=B8=82?= =?UTF-8?q?=E0=B8=A3=E0=B8=81.)=20>>=20=E0=B8=A5=E0=B8=B2=E0=B8=9E?= =?UTF-8?q?=E0=B8=B1=E0=B8=81=E0=B8=9C=E0=B9=88=E0=B8=AD=E0=B8=99=20(?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=81=E0=B8=88=E0=B9=89=E0=B8=87?= =?UTF-8?q?=E0=B9=80=E0=B8=95=E0=B8=B7=E0=B8=AD=E0=B8=99=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B8=AD=E0=B8=81=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=8B=E0=B9=89?= =?UTF-8?q?=E0=B8=B3)=20#837?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index b4cd6cb6..a742dcc2 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -427,8 +427,10 @@ namespace BMA.EHR.Leave.Service.Controllers { if (data.CheckOut != null) { + // fix issue SIT āļĢāļ°āļšāļšāļšāļąāļ™āļ—āļķāļāđ€āļ§āļĨāļēāļ›āļāļīāļšāļąāļ•āļīāļ‡āļēāļ™>>āļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļē-āļ­āļ­āļāļ‡āļēāļ™ (āļāļĢāļ“āļĩāļĨāļ‡āđ€āļ§āļĨāļēāļ­āļ­āļāļ­āļĩāļāļ§āļąāļ™) #921 + var cur_date = DateTime.Now.Date; // āļ–āđ‰āļē check-in + check-out āđ„āļ›āđāļĨāđ‰āļ§ - if (data.CheckOut.Value.Date == DateTime.Now.Date) + if (data.CheckIn.Date == cur_date && data.CheckOut.Value.Date == cur_date) { return Error("āļ„āļļāļ“āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāđāļĨāļ°āļ­āļ­āļāđ€āļĢāļĩāļĒāļšāļĢāđ‰āļ­āļĒāđāļĨāđ‰āļ§ āļ„āļļāļ“āļˆāļ°āļŠāļēāļĄāļēāļĢāļ–āļĨāļ‡āđ€āļ§āļĨāļēāđ„āļ”āđ‰āļ­āļĩāļāļ„āļĢāļąāđ‰āļ‡āđƒāļ™āļ§āļąāļ™āļ–āļąāļ”āđ„āļ›"); } @@ -1609,6 +1611,7 @@ namespace BMA.EHR.Leave.Service.Controllers }; await _additionalCheckRequestRepository.AddAsync(request); + return Success(); } From b1f93784245f694f9bbc5dc7c03308bd23bb6748 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 23 Jan 2025 15:14:09 +0700 Subject: [PATCH 041/879] =?UTF-8?q?fix=20issue=20:=20=20SIT=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97?= =?UTF-8?q?=E0=B8=B6=E0=B8=81=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?>>=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=A5=E0=B8=B2=20(=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1?= =?UTF-8?q?=E0=B8=B9=E0=B8=A5=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=AA=E0=B8=B1?= =?UTF-8?q?=E0=B8=87=E0=B8=81=E0=B8=B1=E0=B8=94=E0=B9=81=E0=B8=A5=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=A3=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B9=84=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87)=20#971?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/LeaveRequestController.cs | 33 +++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 1771cbca..2425a505 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1163,6 +1163,18 @@ namespace BMA.EHR.Leave.Service.Controllers var sumHoliday = await _holidayRepository.GetHolidayCountAsync(rawData.LeaveStartDate, rawData.LeaveEndDate, category); var sumWeekend = _holidayRepository.GetWeekEndCount(rawData.LeaveStartDate, rawData.LeaveEndDate, category); + + var orgName = rawData.Root ?? ""; + if (rawData.Child1 != null && rawData.Child1 != "") + orgName += $"/{rawData.Child1}"; + if (rawData.Child2 != null && rawData.Child2 != "") + orgName += $"/{rawData.Child2}"; + if (rawData.Child3 != null && rawData.Child3 != "") + orgName += $"/{rawData.Child3}"; + if (rawData.Child4 != null && rawData.Child4 != "") + orgName += $"/{rawData.Child4}"; + + var result = new GetLeaveRequestByIdDto { Id = rawData.Id, @@ -1235,7 +1247,10 @@ namespace BMA.EHR.Leave.Service.Controllers Dear = rawData.Dear ?? "", PositionName = rawData.PositionName ?? "", PositionLevelName = rawData.PositionLevelName ?? "", - OrganizationName = rawData.OrganizationName ?? "", + OrganizationName = orgName, + //OrganizationName = rawData.OrganizationName ?? "", + // fix issue : SIT āļĢāļ°āļšāļšāļšāļąāļ™āļ—āļķāļāļāļēāļĢāļĨāļē>>āļĢāļēāļĒāļāļēāļĢāļĨāļē (āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļŠāļąāļ‡āļāļąāļ”āđāļĨāļ°āđ€āļĢāļĩāļĒāļ™āđ„āļĄāđˆāđāļŠāļ”āļ‡) #971 + LeaveTypeCode = rawData.LeaveTypeCode ?? "" }; @@ -1780,6 +1795,16 @@ namespace BMA.EHR.Leave.Service.Controllers //var sumHoliday = await _holidayRepository.GetHolidayCountAsync(rawData.LeaveStartDate, rawData.LeaveEndDate, category); //var sumWeekend = _holidayRepository.GetWeekEndCount(rawData.LeaveStartDate, rawData.LeaveEndDate, category); + var orgName = rawData.Root ?? ""; + if (rawData.Child1 != null && rawData.Child1 != "") + orgName += $"/{rawData.Child1}"; + if (rawData.Child2 != null && rawData.Child2 != "") + orgName += $"/{rawData.Child2}"; + if (rawData.Child3 != null && rawData.Child3 != "") + orgName += $"/{rawData.Child3}"; + if (rawData.Child4 != null && rawData.Child4 != "") + orgName += $"/{rawData.Child4}"; + var result = new GetLeaveRequestForAdminByIdDto { Id = rawData.Id, @@ -1858,10 +1883,14 @@ namespace BMA.EHR.Leave.Service.Controllers // OrganizationName = profile.Oc ?? "", // āđ€āļ›āļĨāļĩāđˆāļĒāļ™āļĄāļēāļ­āđˆāļēāļ™āļˆāļēāļāļāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđāļ—āļ™ read_db + Dear = rawData.Dear ?? "", PositionName = rawData.PositionName ?? "", PositionLevelName = rawData.PositionLevelName ?? "", - OrganizationName = rawData.OrganizationName ?? "", + OrganizationName = orgName, + //OrganizationName = rawData.OrganizationName ?? "", + // fix SIT āļĢāļ°āļšāļšāļšāļąāļ™āļ—āļķāļāļāļēāļĢāļĨāļē>>āļĢāļēāļĒāļāļēāļĢāļĨāļē (āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļŠāļąāļ‡āļāļąāļ”āđāļĨāļ°āđ€āļĢāļĩāļĒāļ™āđ„āļĄāđˆāđāļŠāļ”āļ‡) #971 + ApproveStep = rawData.ApproveStep ?? "-", From 752b1a5479e23052e125b1fa64f2be85fb871ab0 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 23 Jan 2025 15:32:31 +0700 Subject: [PATCH 042/879] =?UTF-8?q?fix=20issue=20:=20SIT=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97?= =?UTF-8?q?=E0=B8=B6=E0=B8=81=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?>>=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=A5=E0=B8=B2=20(=E0=B8=A5=E0=B8=B2=E0=B8=9E=E0=B8=B1?= =?UTF-8?q?=E0=B8=81=E0=B8=9C=E0=B9=88=E0=B8=AD=E0=B8=99=20=E0=B8=A2?= =?UTF-8?q?=E0=B8=B1=E0=B8=87=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=96=E0=B8=B6?= =?UTF-8?q?=E0=B8=87=2010=20=E0=B8=A7=E0=B8=B1=E0=B8=99=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B9=81=E0=B8=88=E0=B9=89=E0=B8=87?= =?UTF-8?q?=E0=B8=A5=E0=B8=B2=E0=B9=80=E0=B8=81=E0=B8=B4=E0=B8=99=E0=B8=81?= =?UTF-8?q?=E0=B8=B3=E0=B8=AB=E0=B8=99=E0=B8=94)=20#973?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 2425a505..b1f30fec 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -857,7 +857,7 @@ namespace BMA.EHR.Leave.Service.Controllers break; case "LV-005": // fix issue : āļĢāļ°āļšāļšāļĨāļē (āļ‚āļĢāļ.) >> āļĨāļēāļžāļąāļāļœāđˆāļ­āļ™ (āļāļĢāļ“āļĩāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāđ„āļĄāđˆāļ–āļķāļ‡ 6 āđ€āļ”āļ·āļ­āļ™) #838 - var leavePrevYear = (await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear)).Where(x => x.LeaveTypeCode == "LV-005").FirstOrDefault(); + var leavePrevYear = (await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear)).Where(x => x.LeaveTypeCode == "LV-005" && x.KeycloakUserId == userId).FirstOrDefault(); var leavePrevYearRemain = 10 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ if (govAge >= 180) @@ -891,7 +891,7 @@ namespace BMA.EHR.Leave.Service.Controllers else { // fix issue : āļĢāļ°āļšāļšāļĨāļē (āļ‚āļĢāļ.) >> āļĨāļēāļ­āļļāļ›āļŠāļĄāļšāļ—āļŦāļĢāļ·āļ­āļāļēāļĢāļĨāļēāļ›āļĢāļ°āļāļ­āļšāļžāļīāļ˜āļĩāļŪāļąāļˆāļĒāđŒāļŊ (āļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāđ„āļ”āđ‰āļĄāļēāļāļāļ§āđˆāļē 1 āļ„āļĢāļąāđ‰āļ‡) #841 - var prevLeave = _context.Set().Where(x => x.LeaveTypeCode == "LV-006").Where(x => x.LeaveStatus == "APPROVE").Count(); + var prevLeave = _context.Set().Where(x => x.LeaveTypeCode == "LV-006" && x.KeycloakUserId == userId).Where(x => x.LeaveStatus == "APPROVE").Count(); if (prevLeave > 0) { From 6afb95fe1bde985530c9f73ff5695ff2d1bcb76c Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 24 Jan 2025 10:18:41 +0700 Subject: [PATCH 043/879] =?UTF-8?q?fix=20issue=20:=20SIT=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97?= =?UTF-8?q?=E0=B8=B6=E0=B8=81=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2=E0=B8=9B?= =?UTF-8?q?=E0=B8=8F=E0=B8=B4=E0=B8=9A=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=87?= =?UTF-8?q?=E0=B8=B2=E0=B8=99>>=E0=B8=A5=E0=B8=87=E0=B9=80=E0=B8=A7?= =?UTF-8?q?=E0=B8=A5=E0=B8=B2=E0=B8=81=E0=B8=A3=E0=B8=93=E0=B8=B5=E0=B8=9E?= =?UTF-8?q?=E0=B8=B4=E0=B9=80=E0=B8=A8=E0=B8=A9=20(=E0=B9=84=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B8=A1=E0=B8=B5=E0=B9=81=E0=B8=88=E0=B9=89=E0=B8=87?= =?UTF-8?q?=E0=B9=80=E0=B8=95=E0=B8=B7=E0=B8=AD=E0=B8=99=E0=B9=84=E0=B8=9B?= =?UTF-8?q?=E0=B8=A2=E0=B8=B1=E0=B8=87=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=9A?= =?UTF-8?q?=E0=B8=B1=E0=B8=87=E0=B8=84=E0=B8=B1=E0=B8=9A=E0=B8=9A=E0=B8=B1?= =?UTF-8?q?=E0=B8=8D=E0=B8=8A=E0=B8=B2)=20#969?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AdditionalCheckRequestRepository.cs | 102 ++++++++++++------ .../Profiles/GetProfileByKeycloakIdDto.cs | 4 + .../Controllers/LeaveRequestController.cs | 47 +++++++- 3 files changed, 116 insertions(+), 37 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs index ceae6c2b..0952daae 100644 --- a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs @@ -73,47 +73,79 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants var userId = UserId != null ? Guid.Parse(UserId) : Guid.Empty; var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken ?? ""); - var profile_id = profile == null ? Guid.Empty : profile.Id; - var rootOc = _userProfileRepository.GetRootOcId(profile_id, AccessToken); - var approver = string.Empty; - var list = new List(); - if (rootOc != null) + // fix issue : SIT āļĢāļ°āļšāļšāļšāļąāļ™āļ—āļķāļāđ€āļ§āļĨāļēāļ›āļāļīāļšāļąāļ•āļīāļ‡āļēāļ™>>āļĨāļ‡āđ€āļ§āļĨāļēāļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ (āđ„āļĄāđˆāļĄāļĩāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āđ„āļ›āļĒāļąāļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē) #969 + // send noti + inbox + mail + // send inbox and notification + var subject_str = $"āļĄāļĩāļāļēāļĢāļ‚āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āđ€āļ§āļĨāļēāļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"; + var body_str = $"āđ‚āļ›āļĢāļ”āļžāļīāļˆāļēāļĢāļ“āļēāļ„āļģāļĢāđ‰āļ­āļ‡āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāđƒāļ™āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐāļˆāļēāļ {profile.Prefix}{profile.FirstName} {profile.LastName} āđƒāļ™āļ§āļąāļ™āļ—āļĩāđˆ {entity.CheckDate.Date.ToThaiShortDate2()}"; + + var subject = subject_str; + var body = body_str; + _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + + + var inbox = new Inbox { - list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - } - if (list.Count > 0) + Subject = subject_str, + Body = body_str, + ReceiverUserId = profile.CommanderId == Guid.Empty || profile.CommanderId == null ? Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6") : profile.CommanderId.Value, + Payload = "", + }; + _appContext.Set().Add(inbox); + + var noti = new Notification { - var appr = list.FirstOrDefault(); - - // send inbox and notification - var subject_str = $"āļĄāļĩāļāļēāļĢāļ‚āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āđ€āļ§āļĨāļēāļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"; - var body_str = $"āđ‚āļ›āļĢāļ”āļžāļīāļˆāļēāļĢāļ“āļēāļ„āļģāļĢāđ‰āļ­āļ‡āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāđƒāļ™āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐāļˆāļēāļ {profile.Prefix}{profile.FirstName} {profile.LastName} āđƒāļ™āļ§āļąāļ™āļ—āļĩāđˆ {entity.CheckDate.Date.ToThaiShortDate2()}"; - - var subject = subject_str; - var body = body_str; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + Body = body_str, + ReceiverUserId = profile.CommanderId == Guid.Empty || profile.CommanderId == null ? Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6") : profile.CommanderId.Value, + Type = "", + Payload = "", + }; + _appContext.Set().Add(noti); + await _appContext.SaveChangesAsync(); - var inbox = new Inbox - { - Subject = subject_str, - Body = body_str, - ReceiverUserId = appr.Id == Guid.Empty ? Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6") : appr.Id, - Payload = "", - }; - _appContext.Set().Add(inbox); + //var profile_id = profile == null ? Guid.Empty : profile.Id; - var noti = new Notification - { - Body = body_str, - ReceiverUserId = appr.Id == Guid.Empty ? Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6") : appr.Id, - Type = "", - Payload = "", - }; - _appContext.Set().Add(noti); - await _appContext.SaveChangesAsync(); - } + //var rootOc = _userProfileRepository.GetRootOcId(profile_id, AccessToken); + //var approver = string.Empty; + //var list = new List(); + //if (rootOc != null) + //{ + // list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); + //} + //if (list.Count > 0) + //{ + // var appr = list.FirstOrDefault(); + + // // send inbox and notification + // var subject_str = $"āļĄāļĩāļāļēāļĢāļ‚āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āđ€āļ§āļĨāļēāļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"; + // var body_str = $"āđ‚āļ›āļĢāļ”āļžāļīāļˆāļēāļĢāļ“āļēāļ„āļģāļĢāđ‰āļ­āļ‡āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāđƒāļ™āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐāļˆāļēāļ {profile.Prefix}{profile.FirstName} {profile.LastName} āđƒāļ™āļ§āļąāļ™āļ—āļĩāđˆ {entity.CheckDate.Date.ToThaiShortDate2()}"; + + // var subject = subject_str; + // var body = body_str; + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + + + // var inbox = new Inbox + // { + // Subject = subject_str, + // Body = body_str, + // ReceiverUserId = appr.Id == Guid.Empty ? Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6") : appr.Id, + // Payload = "", + // }; + // _appContext.Set().Add(inbox); + + // var noti = new Notification + // { + // Body = body_str, + // ReceiverUserId = appr.Id == Guid.Empty ? Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6") : appr.Id, + // Type = "", + // Payload = "", + // }; + // _appContext.Set().Add(noti); + // await _appContext.SaveChangesAsync(); + //} return entity; } diff --git a/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs b/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs index d43b35bf..12641e9d 100644 --- a/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs +++ b/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs @@ -58,6 +58,10 @@ namespace BMA.EHR.Application.Responses.Profiles public double? PositionSalaryAmount { get; set; } public string? Commander { get; set; } + public Guid? CommanderId { get; set; } + + public Guid? CommanderKeycloak { get; set; } + } public class PosLevel diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index b1f30fec..9f4f7a61 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -703,12 +703,55 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); } + var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); + var leaveType = await _leaveTypeRepository.GetByIdAsync(req.Type); if (leaveType == null) { return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); } + var leaveLimit = 0; + if (leaveType.Code.Trim().ToUpper() == "LV-005") + { + if (govAge >= 180) + { + if (govAge >= 3650) leaveLimit = 30; + else leaveLimit = 20; + } + else + { + leaveLimit = 0; + } + //var leavePrevYear = (await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear)).Where(x => x.LeaveTypeCode == "LV-005" && x.KeycloakUserId == userId).FirstOrDefault(); + //var leavePrevYearRemain = 0; + + + ////var leavePrevYearRemain = 10 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + + //if (govAge >= 180) + // if (govAge >= 3650) + // { + // // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ + // isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= (20 + leavePrevYearRemain); + // if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; + // } + // else + // { + // isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= (10 + leavePrevYearRemain); + // if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; + // } + + //else + //{ + // leavePrevYearRemain + //} + + } + else + leaveLimit = leaveType.Limit; + + var sumLeave = await _leaveRequestRepository.GetSumLeaveByTypeForUserAsync(userId, req.Type, thisYear); var restOldDay = await _leaveRequestRepository.GetRestDayTotalByYearForUserAsync(userId, thisYear - 1); @@ -738,9 +781,9 @@ namespace BMA.EHR.Leave.Service.Controllers PositionLevelName = profile.PosLevel == null ? "" : profile.PosLevel, OrganizationName = profile.Root ?? "", //profile.Oc ?? "", - LeaveLimit = leaveType.Limit, + LeaveLimit = leaveLimit, LeaveTotal = sumLeave, - LeaveRemain = leaveType.Limit - sumLeave, + LeaveRemain = leaveLimit - sumLeave, RestDayTotalOld = restOldDay, BirthDate = profile.BirthDate.Date, DateAppoint = profile.DateAppoint == null ? null : profile.DateAppoint.Value.Date, From 2852615d6224a389f705a16c2e0736b62a2b8652 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 24 Jan 2025 10:27:22 +0700 Subject: [PATCH 044/879] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=84=E0=B8=B3=E0=B8=99=E0=B8=A7?= =?UTF-8?q?=E0=B8=99=E0=B8=A2=E0=B8=AD=E0=B8=94=E0=B8=A7=E0=B8=B1=E0=B8=99?= =?UTF-8?q?=E0=B8=A5=E0=B8=B2=E0=B8=AA=E0=B8=B0=E0=B8=AA=E0=B8=A1=20?= =?UTF-8?q?=E0=B8=82=E0=B8=AD=E0=B8=87=E0=B8=9B=E0=B8=B5=E0=B8=81=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/LeaveRequestController.cs | 49 +++++++------------ 1 file changed, 19 insertions(+), 30 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 9f4f7a61..50223629 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -711,42 +711,25 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); } - var leaveLimit = 0; + var leaveLimit = 0.0; if (leaveType.Code.Trim().ToUpper() == "LV-005") { if (govAge >= 180) { - if (govAge >= 3650) leaveLimit = 30; - else leaveLimit = 20; + var leavePrevYear = (await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear)).Where(x => x.LeaveTypeCode == "LV-005" && x.KeycloakUserId == userId).FirstOrDefault(); + if (govAge >= 3650) + { + leaveLimit = 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); + } + else + { + leaveLimit = 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); + } } else { leaveLimit = 0; } - //var leavePrevYear = (await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear)).Where(x => x.LeaveTypeCode == "LV-005" && x.KeycloakUserId == userId).FirstOrDefault(); - //var leavePrevYearRemain = 0; - - - ////var leavePrevYearRemain = 10 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ - - //if (govAge >= 180) - // if (govAge >= 3650) - // { - // // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ - // isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= (20 + leavePrevYearRemain); - // if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; - // } - // else - // { - // isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= (10 + leavePrevYearRemain); - // if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; - // } - - //else - //{ - // leavePrevYearRemain - //} - } else leaveLimit = leaveType.Limit; @@ -901,17 +884,23 @@ namespace BMA.EHR.Leave.Service.Controllers case "LV-005": // fix issue : āļĢāļ°āļšāļšāļĨāļē (āļ‚āļĢāļ.) >> āļĨāļēāļžāļąāļāļœāđˆāļ­āļ™ (āļāļĢāļ“āļĩāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāđ„āļĄāđˆāļ–āļķāļ‡ 6 āđ€āļ”āļ·āļ­āļ™) #838 var leavePrevYear = (await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear)).Where(x => x.LeaveTypeCode == "LV-005" && x.KeycloakUserId == userId).FirstOrDefault(); - var leavePrevYearRemain = 10 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + //var leavePrevYearRemain = 10 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ if (govAge >= 180) if (govAge >= 3650) { // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ - isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= (20 + leavePrevYearRemain); + var leavePrevYearRemain = 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + if (leavePrevYearRemain >= 20) leavePrevYearRemain = 20; + + isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= (10 + leavePrevYearRemain); if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; } else { + var leavePrevYearRemain = 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + if (leavePrevYearRemain >= 10) leavePrevYearRemain = 10; + isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= (10 + leavePrevYearRemain); if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; } @@ -1926,7 +1915,7 @@ namespace BMA.EHR.Leave.Service.Controllers // OrganizationName = profile.Oc ?? "", // āđ€āļ›āļĨāļĩāđˆāļĒāļ™āļĄāļēāļ­āđˆāļēāļ™āļˆāļēāļāļāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđāļ—āļ™ read_db - + Dear = rawData.Dear ?? "", PositionName = rawData.PositionName ?? "", PositionLevelName = rawData.PositionLevelName ?? "", From 6d4f2f965aa7cd69f0f147321ed345e5e9b7d377 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 24 Jan 2025 15:24:35 +0700 Subject: [PATCH 045/879] fix probation report --- .../Reports/ProbationReportRepository.cs | 14 +++++++------- .../Responses/EvaluateResultAssignResponse.cs | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 88390358..57dd6284 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -910,17 +910,17 @@ namespace BMA.EHR.Application.Repositories.Reports ? "ðŸ—đ" : "☐"; var passResult1 = evaluate_assign.result.evaluate.pass_result == 1 - ? "ðŸ—đ āđ„āļĄāđˆāļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļŦāđ‡āļ™ āļ„āļ§āļĢāđƒāļŦāđ‰āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" - : "☐ āđ„āļĄāđˆāļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļŦāđ‡āļ™ āļ„āļ§āļĢāđƒāļŦāđ‰āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›"; + ? no == 1 ? "ðŸ—đ āđ„āļĄāđˆāļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" : "ðŸ—đ āđ„āļĄāđˆāļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ” āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" + : no == 1 ? "☐ āđ„āļĄāđˆāļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" : "☐ āđ„āļĄāđˆāļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ” āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›"; var passResult2 = evaluate_assign.result.evaluate.pass_result == 2 - ? "ðŸ—đ āļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" - : "☐ āļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›"; + ? no == 1 ? "ðŸ—đ āļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ" : "ðŸ—đ āļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ” āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ" + : no == 1 ? "☐ āļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ" : "☐ āļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ” āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"; var passResult3 = evaluate_assign.result.evaluate.pass_result == 3 ? $"ðŸ—đ āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļēāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›āļ­āļĩāļ {expandMonth} āđ€āļ”āļ·āļ­āļ™" : "☐ āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļēāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›āļ­āļĩāļ.....āđ€āļ”āļ·āļ­āļ™"; var passResult = evaluate_assign.result.evaluate.pass_result == 1 - ? "āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" + ? no == 1 ? "āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" : "āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" : evaluate_assign.result.evaluate.pass_result == 2 ? "āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ" : $"āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļēāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›āļ­āļĩāļ {expandMonth} āđ€āļ”āļ·āļ­āļ™"; @@ -947,10 +947,10 @@ namespace BMA.EHR.Application.Repositories.Reports ExpandMonth = expandMonth, ChairmanName = string.IsNullOrEmpty(evaluate_assign.result.chairman.name) ? string.Empty : evaluate_assign.result.chairman.name, ChairmanPosition = string.IsNullOrEmpty(evaluate_assign.result.chairman.Position) ? string.Empty : evaluate_assign.result.chairman.Position, - ChairmanDate = string.IsNullOrEmpty(evaluate_assign.result.evaluate.chairman_dated.ToString()) ? "-" : evaluate_assign.result.evaluate.chairman_dated.ToThaiFullDate().ToString().ToThaiNumber(), + ChairmanDate = string.IsNullOrEmpty(evaluate_assign.result.evaluate.chairman_dated.ToString()) ? "-" : evaluate_assign.result.evaluate?.chairman_dated?.ToThaiFullDate().ToString().ToThaiNumber(), CommanderName = string.IsNullOrEmpty(evaluate_assign.result.commander.name) ? string.Empty : evaluate_assign.result.commander.name, CommanderPosition = string.IsNullOrEmpty(evaluate_assign.result.commander.Position) ? string.Empty : evaluate_assign.result.commander.Position, - CommanderDate = string.IsNullOrEmpty(evaluate_assign.result.evaluate.director1_dated.ToString()) ? "-" : evaluate_assign.result.evaluate.director1_dated.ToThaiFullDate().ToString().ToThaiNumber(), + CommanderDate = string.IsNullOrEmpty(evaluate_assign.result.evaluate.director1_dated.ToString()) ? "-" : evaluate_assign.result.evaluate?.director1_dated?.ToThaiFullDate().ToString().ToThaiNumber(), Name = evaluate_assign.result.experimentee.name, RoundNo = no.ToString().ToThaiNumber(), DateStart = evaluate_assign.result.assign.date_start != string.Empty ? dateStart_ : "-", diff --git a/BMA.EHR.Application/Responses/EvaluateResultAssignResponse.cs b/BMA.EHR.Application/Responses/EvaluateResultAssignResponse.cs index 5db0ce18..ae940ec5 100644 --- a/BMA.EHR.Application/Responses/EvaluateResultAssignResponse.cs +++ b/BMA.EHR.Application/Responses/EvaluateResultAssignResponse.cs @@ -100,9 +100,9 @@ namespace BMA.EHR.Application.Responses public int pass_result { get; set; } public int expand_month { get; set; } public string reson { get; set; } - public DateTime chairman_dated { get; set; } - public DateTime director1_dated { get; set; } - public DateTime director2_dated { get; set; } + public DateTime? chairman_dated { get; set; } + public DateTime? director1_dated { get; set; } + public DateTime? director2_dated { get; set; } public string createdAt { get; set; } public string updatedAt { get; set; } } From 5c27f0d28dec3c6a63b7862c8fb1a6f5f203bab9 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 24 Jan 2025 16:03:49 +0700 Subject: [PATCH 046/879] fix report issue #893 --- .../Controllers/InsigniaRequestController.cs | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index ee25953e..07026e48 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -2317,26 +2317,28 @@ namespace BMA.EHR.Insignia.Service.Controllers var row = 2; foreach (var item in requestProfiles) { - workSheet.Cells[row, 1].Value = item.Root; - workSheet.Cells[row, 2].Value = item.CitizenId; + workSheet.Cells[row, 1].Value = item.Root == null ? "-" : item.Root; + workSheet.Cells[row, 2].Value = item.CitizenId == null ? "-" : item.CitizenId; workSheet.Cells[row, 3].Value = item.Prefix == null ? "-" : ((item.Prefix == "āļ™āļēāļĒ" || item.Prefix == "āļ™āļēāļ‡" || item.Prefix == "āļ™āļēāļ‡āļŠāļēāļ§") ? item.Prefix : "-"); workSheet.Cells[row, 4].Value = item.Prefix == null ? "-" : ((item.Prefix == "āļ™āļēāļĒ" || item.Prefix == "āļ™āļēāļ‡" || item.Prefix == "āļ™āļēāļ‡āļŠāļēāļ§") ? "-" : item.Prefix); - workSheet.Cells[row, 5].Value = item.FirstName; - workSheet.Cells[row, 6].Value = item.LastName; + workSheet.Cells[row, 5].Value = item.FirstName == null ? "-" : item.FirstName; + workSheet.Cells[row, 6].Value = item.LastName == null ? "-" : item.LastName; workSheet.Cells[row, 7].Value = item.Gender == null ? "-" : item.Gender; - workSheet.Cells[row, 8].Value = item.BirthDate == null ? "" : item.BirthDate.Value.ToThaiDate(); - workSheet.Cells[row, 9].Value = item.DateAppoint == null ? "" : item.DateAppoint.Value.ToThaiDate(); - workSheet.Cells[row, 12].Value = ""; - workSheet.Cells[row, 13].Value = item.PosLevelName == null ? "" : item.PosLevelName; - workSheet.Cells[row, 14].Value = ""; - workSheet.Cells[row, 15].Value = null; - workSheet.Cells[row, 16].Value = item.Position ?? ""; + workSheet.Cells[row, 8].Value = item.BirthDate == null ? "-" : item.BirthDate.Value.ToThaiDate(); + workSheet.Cells[row, 9].Value = item.DateAppoint == null ? "-" : item.DateAppoint.Value.ToThaiDate(); + workSheet.Cells[row, 10].Value = "-"; + workSheet.Cells[row, 11].Value = "-"; + workSheet.Cells[row, 12].Value = "-"; + workSheet.Cells[row, 13].Value = item.PosLevelName == null ? "-" : item.PosLevelName; + workSheet.Cells[row, 14].Value = "-"; + workSheet.Cells[row, 15].Value = "-"; + workSheet.Cells[row, 16].Value = item.Position == null ? "-" : item.Position; workSheet.Cells[row, 17].Value = item.Amount == null ? 0 : item.Amount; - workSheet.Cells[row, 18].Value = null; + workSheet.Cells[row, 18].Value = "-"; workSheet.Cells[row, 19].Value = item.PositionSalaryAmount == null ? 0 : item.PositionSalaryAmount; - workSheet.Cells[row, 20].Value = item.LastInsigniaName; - workSheet.Cells[row, 21].Value = ""; - workSheet.Cells[row, 22].Value = null; + workSheet.Cells[row, 20].Value = item.LastInsigniaName == null ? "-" : item.LastInsigniaName; + workSheet.Cells[row, 21].Value = "-"; + workSheet.Cells[row, 22].Value = "-"; row++; } excel.Save(); From 3aa94c7b34da016e2175bcd5e93e1f5f647d5468 Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 24 Jan 2025 17:14:39 +0700 Subject: [PATCH 047/879] add command placement --- .../Models/Placement/PlacementProfile.cs | 12 + ...e placementProfile add command.Designer.cs | 19225 ++++++++++++++++ ...date table placementProfile add command.cs | 96 + .../ApplicationDBContextModelSnapshot.cs | 30 + .../Controllers/PlacementController.cs | 28 +- 5 files changed, 19389 insertions(+), 2 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250124100911_update table placementProfile add command.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250124100911_update table placementProfile add command.cs diff --git a/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs b/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs index 4dafaa4d..707914fb 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs @@ -382,6 +382,18 @@ namespace BMA.EHR.Domain.Models.Placement [Comment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡")] public string? posLevelNameOld { get; set; } + [MaxLength(200), Comment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­")] + public string? commandId { get; set; } + [MaxLength(200), Comment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­")] + public string? refCommandCode { get; set; } + [MaxLength(200), Comment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­")] + public DateTime? refCommandDate { get; set; } + [MaxLength(200), Comment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­")] + public string? refCommandName { get; set; } + [MaxLength(200), Comment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­")] + public string? refCommandNo { get; set; } + [MaxLength(200), Comment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­")] + public string? templateDoc { get; set; } [Comment("Id āļĢāļđāļ›āđ‚āļ›āļĢāđ„āļŸāļĨāđŒ")] public virtual Document? ProfileImg { get; set; } diff --git a/BMA.EHR.Infrastructure/Migrations/20250124100911_update table placementProfile add command.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250124100911_update table placementProfile add command.Designer.cs new file mode 100644 index 00000000..12b8d5d0 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250124100911_update table placementProfile add command.Designer.cs @@ -0,0 +1,19225 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250124100911_update table placementProfile add command")] + partial class updatetableplacementProfileaddcommand + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250124100911_update table placementProfile add command.cs b/BMA.EHR.Infrastructure/Migrations/20250124100911_update table placementProfile add command.cs new file mode 100644 index 00000000..794f8a54 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250124100911_update table placementProfile add command.cs @@ -0,0 +1,96 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class updatetableplacementProfileaddcommand : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "commandId", + table: "PlacementProfiles", + type: "varchar(200)", + maxLength: 200, + nullable: true, + comment: "āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "refCommandCode", + table: "PlacementProfiles", + type: "varchar(200)", + maxLength: 200, + nullable: true, + comment: "āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "refCommandDate", + table: "PlacementProfiles", + type: "datetime(6)", + maxLength: 200, + nullable: true, + comment: "āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + migrationBuilder.AddColumn( + name: "refCommandName", + table: "PlacementProfiles", + type: "varchar(200)", + maxLength: 200, + nullable: true, + comment: "āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "refCommandNo", + table: "PlacementProfiles", + type: "varchar(200)", + maxLength: 200, + nullable: true, + comment: "āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "templateDoc", + table: "PlacementProfiles", + type: "varchar(200)", + maxLength: 200, + nullable: true, + comment: "āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "commandId", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "refCommandCode", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "refCommandDate", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "refCommandName", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "refCommandNo", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "templateDoc", + table: "PlacementProfiles"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 22f0bdb8..0cca8243 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -12657,6 +12657,11 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + b.Property("node") .HasColumnType("int") .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); @@ -12765,6 +12770,26 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("profileId"); + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + b.Property("root") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); @@ -12789,6 +12814,11 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + b.Property("typeCommand") .HasColumnType("longtext") .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index b298fedc..28d8e7ed 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1803,7 +1803,19 @@ namespace BMA.EHR.Placement.Service.Controllers var _result = await _res.Content.ReadAsStringAsync(); if (_res.IsSuccessStatusCode) { - placementProfile.ForEach(profile => profile.PlacementStatus = "DONE"); + placementProfile.ForEach(profile => + { + profile.PlacementStatus = "DONE"; + if (req.refIds.Length > 0) + { + profile.commandId = req.refIds[0].commandId; + profile.refCommandCode = req.refIds[0].refCommandCode; + profile.refCommandDate = req.refIds[0].commandAffectDate; + profile.refCommandName = req.refIds[0].refCommandName; + profile.refCommandNo = $"{req.refIds[0].commandNo}/{req.refIds[0].commandYear.ToThaiYear()}"; + profile.templateDoc = req.refIds[0].templateDoc; + } + }); await _context.SaveChangesAsync(); } } @@ -2110,7 +2122,19 @@ namespace BMA.EHR.Placement.Service.Controllers var _result = await _res.Content.ReadAsStringAsync(); if (_res.IsSuccessStatusCode) { - placementProfile.ForEach(profile => profile.PlacementStatus = "DONE"); + placementProfile.ForEach(profile => + { + profile.PlacementStatus = "DONE"; + if (req.refIds.Length > 0) + { + profile.commandId = req.refIds[0].commandId; + profile.refCommandCode = req.refIds[0].refCommandCode; + profile.refCommandDate = req.refIds[0].commandAffectDate; + profile.refCommandName = req.refIds[0].refCommandName; + profile.refCommandNo = $"{req.refIds[0].commandNo}/{req.refIds[0].commandYear.ToThaiYear()}"; + profile.templateDoc = req.refIds[0].templateDoc; + } + }); await _context.SaveChangesAsync(); } } From 535fa21b87130049b297b403fbdf6b5fd8ee9ea5 Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 24 Jan 2025 17:16:16 +0700 Subject: [PATCH 048/879] no message --- .../Controllers/PlacementController.cs | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 28d8e7ed..817aaa7d 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -218,6 +218,12 @@ namespace BMA.EHR.Placement.Service.Controllers posLevelCandidate = x.PositionLevel, posTypeCandidate = x.PositionType, positionCandidate = x.PositionCandidate, + x.commandId, + x.refCommandCode, + x.refCommandDate, + x.refCommandName, + x.refCommandNo, + x.templateDoc, }).OrderBy(x => x.ExamNumber).ToListAsync(); var result1 = new List(); @@ -275,6 +281,12 @@ namespace BMA.EHR.Placement.Service.Controllers p.posLevelCandidate, p.posTypeCandidate, p.positionCandidate, + p.commandId, + p.refCommandCode, + p.refCommandDate, + p.refCommandName, + p.refCommandNo, + p.templateDoc, }; result1.Add(_data1); } @@ -330,6 +342,12 @@ namespace BMA.EHR.Placement.Service.Controllers posLevelCandidate = x.PositionLevel, posTypeCandidate = x.PositionType, positionCandidate = x.PositionCandidate, + x.commandId, + x.refCommandCode, + x.refCommandDate, + x.refCommandName, + x.refCommandNo, + x.templateDoc, }).OrderBy(x => x.ExamNumber).ToListAsync(); var result = new List(); @@ -387,6 +405,12 @@ namespace BMA.EHR.Placement.Service.Controllers p.posLevelCandidate, p.posTypeCandidate, p.positionCandidate, + p.commandId, + p.refCommandCode, + p.refCommandDate, + p.refCommandName, + p.refCommandNo, + p.templateDoc, }; result.Add(_data); } From d0e5089a06c529e13cf9c4c60976aee3ecf615a5 Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 24 Jan 2025 22:33:14 +0700 Subject: [PATCH 049/879] no message --- .../Controllers/DisciplineDisciplinaryController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs index ad95788a..5690f9d7 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs @@ -1745,7 +1745,8 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers FirstName = item.FirstName, LastName = item.LastName, //Organization = item.Organization, - Organization = (item.child4 == null ? "" : item.child4 + " ") + + Organization = (item.Position == null ? "" : item.Position + " ") + + (item.child4 == null ? "" : item.child4 + " ") + (item.child3 == null ? "" : item.child3 + " ") + (item.child2 == null ? "" : item.child2 + " ") + (item.child1 == null ? "" : item.child1 + " ") + From 8a3baab88f84a9cfc7612e64b35064bf0c009486 Mon Sep 17 00:00:00 2001 From: kittapath Date: Sat, 25 Jan 2025 01:20:08 +0700 Subject: [PATCH 050/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=AF=20=E0=B9=80?= =?UTF-8?q?=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=E0=B8=AB=E0=B8=99=E0=B9=89?= =?UTF-8?q?=E0=B8=B2=E0=B8=81=E0=B8=A3=E0=B8=AD=E0=B8=87=E0=B8=A5=E0=B8=B9?= =?UTF-8?q?=E0=B8=81=E0=B8=88=E0=B9=89=E0=B8=B2=E0=B8=87=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=88=E0=B8=B3=E0=B8=81=E0=B9=88=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A1=E0=B8=A7=E0=B8=A5=E0=B8=9C?= =?UTF-8?q?=E0=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/InsigniaPeriodsRepository.cs | 9 +- .../Repositories/UserProfileRepository.cs | 29 + .../Requests/InsigniaPeriodRequest.cs | 1 + .../Models/Insignias/InsigniaEmployee.cs | 15 + .../Models/Insignias/InsigniaPeriod.cs | 1 + ...niaPeriod add InsigniaEmployee.Designer.cs | 19294 ++++++++++++++++ ...ble InsigniaPeriod add InsigniaEmployee.cs | 57 + .../ApplicationDBContextModelSnapshot.cs | 69 + .../Persistence/ApplicationDBContext.cs | 1 + .../Controllers/InsigniaPeriodController.cs | 42 + 10 files changed, 19516 insertions(+), 2 deletions(-) create mode 100644 BMA.EHR.Domain/Models/Insignias/InsigniaEmployee.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250124180416_update table InsigniaPeriod add InsigniaEmployee.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250124180416_update table InsigniaPeriod add InsigniaEmployee.cs diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index ef7a1c9d..1f9e39f5 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -6530,8 +6530,13 @@ namespace BMA.EHR.Application.Repositories var allOfficerProfilesByRoot = (await _userProfileRepository.GetOfficerProfileByRootIdAsync(ocId, AccessToken)); - var allEmployeeProfileByRoot = - (await _userProfileRepository.GetEmployeeProfileByRootIdAsync(ocId, AccessToken)); + var period = await _dbContext.Set().Include(x => x.InsigniaEmployees).FirstOrDefaultAsync(p => p.Id == periodId); + var allEmployeeProfileByRoot = new List(); + if (period != null && period.InsigniaEmployees != null) + { + allEmployeeProfileByRoot = + (await _userProfileRepository.GetEmployeeProfileByPositionAsync(period.InsigniaEmployees.Select(x => x.RefId), AccessToken)); + } var type_coin = await GetCoinCandidate(periodId, ocId, allOfficerProfilesByRoot); var type1_level1 = await GetInsigniaCandidate_Type1_Level1(periodId, ocId, allOfficerProfilesByRoot); diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index cf73fcc9..b1511b07 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -129,6 +129,35 @@ namespace BMA.EHR.Application.Repositories } } + public async Task> GetEmployeeProfileByPositionAsync(dynamic empPosId, string? accessToken) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/find/employee/position"; + var apiKey = _configuration["API_KEY"]; + + var body = new + { + empPosId + }; + + var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey); + + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } + } + public async Task GetProfileByKeycloakIdAsync(Guid keycloakId, string? accessToken) { try diff --git a/BMA.EHR.Application/Requests/InsigniaPeriodRequest.cs b/BMA.EHR.Application/Requests/InsigniaPeriodRequest.cs index 23c9c3e1..e9befe3c 100644 --- a/BMA.EHR.Application/Requests/InsigniaPeriodRequest.cs +++ b/BMA.EHR.Application/Requests/InsigniaPeriodRequest.cs @@ -16,6 +16,7 @@ namespace BMA.EHR.Application.Requests public int Amount { get; set; } public int Round { get; set; } + public List? EmpPosId { get; set; } public FormFile? File { get; set; } } } diff --git a/BMA.EHR.Domain/Models/Insignias/InsigniaEmployee.cs b/BMA.EHR.Domain/Models/Insignias/InsigniaEmployee.cs new file mode 100644 index 00000000..8719382b --- /dev/null +++ b/BMA.EHR.Domain/Models/Insignias/InsigniaEmployee.cs @@ -0,0 +1,15 @@ +ïŧŋusing Microsoft.EntityFrameworkCore; +using System.ComponentModel.DataAnnotations; +using BMA.EHR.Domain.Models.Base; +using System.ComponentModel.DataAnnotations.Schema; +using BMA.EHR.Domain.Models.MetaData; +using BMA.EHR.Domain.Models.Organizations; +using BMA.EHR.Domain.Models.Documents; + +namespace BMA.EHR.Domain.Models.Insignias +{ + public class InsigniaEmployee : EntityBase + { + public string? RefId { get; set; } + } +} diff --git a/BMA.EHR.Domain/Models/Insignias/InsigniaPeriod.cs b/BMA.EHR.Domain/Models/Insignias/InsigniaPeriod.cs index a87fbba9..6b1a1f10 100644 --- a/BMA.EHR.Domain/Models/Insignias/InsigniaPeriod.cs +++ b/BMA.EHR.Domain/Models/Insignias/InsigniaPeriod.cs @@ -29,6 +29,7 @@ namespace BMA.EHR.Domain.Models.Insignias [Comment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ")] public bool IsLock { get; set; } = false; public virtual List InsigniaRequests { get; set; } + public virtual List InsigniaEmployees { get; set; } public Guid? RevisionId { get; set; } } diff --git a/BMA.EHR.Infrastructure/Migrations/20250124180416_update table InsigniaPeriod add InsigniaEmployee.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250124180416_update table InsigniaPeriod add InsigniaEmployee.Designer.cs new file mode 100644 index 00000000..85d8eb30 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250124180416_update table InsigniaPeriod add InsigniaEmployee.Designer.cs @@ -0,0 +1,19294 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250124180416_update table InsigniaPeriod add InsigniaEmployee")] + partial class updatetableInsigniaPeriodaddInsigniaEmployee + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", null) + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250124180416_update table InsigniaPeriod add InsigniaEmployee.cs b/BMA.EHR.Infrastructure/Migrations/20250124180416_update table InsigniaPeriod add InsigniaEmployee.cs new file mode 100644 index 00000000..4c42cff7 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250124180416_update table InsigniaPeriod add InsigniaEmployee.cs @@ -0,0 +1,57 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class updatetableInsigniaPeriodaddInsigniaEmployee : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "InsigniaEmployees", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + RefId = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + InsigniaPeriodId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci") + }, + constraints: table => + { + table.PrimaryKey("PK_InsigniaEmployees", x => x.Id); + table.ForeignKey( + name: "FK_InsigniaEmployees_InsigniaPeriods_InsigniaPeriodId", + column: x => x.InsigniaPeriodId, + principalTable: "InsigniaPeriods", + principalColumn: "Id"); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateIndex( + name: "IX_InsigniaEmployees_InsigniaPeriodId", + table: "InsigniaEmployees", + column: "InsigniaPeriodId"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "InsigniaEmployees"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 0cca8243..48d73db1 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -5648,6 +5648,66 @@ namespace BMA.EHR.Infrastructure.Migrations b.ToTable("TypeLeaves"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => { b.Property("Id") @@ -17943,6 +18003,13 @@ namespace BMA.EHR.Infrastructure.Migrations b.Navigation("ProfileTraining"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", null) + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => { b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") @@ -19111,6 +19178,8 @@ namespace BMA.EHR.Infrastructure.Migrations modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => { + b.Navigation("InsigniaEmployees"); + b.Navigation("InsigniaRequests"); }); diff --git a/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs b/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs index c59c5ae0..3e003e03 100644 --- a/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs +++ b/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs @@ -312,6 +312,7 @@ namespace BMA.EHR.Infrastructure.Persistence public DbSet InsigniaPeriods { get; set; } public DbSet InsigniaRequests { get; set; } + public DbSet InsigniaEmployees { get; set; } public DbSet InsigniaRequestProfiles { get; set; } public DbSet InsigniaManages { get; set; } public DbSet InsigniaNoteProfiles { get; set; } diff --git a/BMA.EHR.Insignia/Controllers/InsigniaPeriodController.cs b/BMA.EHR.Insignia/Controllers/InsigniaPeriodController.cs index b7c624cf..7bc85a49 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaPeriodController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaPeriodController.cs @@ -92,6 +92,7 @@ namespace BMA.EHR.Insignia.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var insigniaPeriods = await _context.InsigniaPeriods.AsQueryable() + .Include(x => x.InsigniaEmployees) .OrderByDescending(x => x.Year) .ThenByDescending(x => x.StartDate) .Select(p => new @@ -105,6 +106,7 @@ namespace BMA.EHR.Insignia.Service.Controllers period_status = p.IsLock == true ? "DONE" : (p.InsigniaRequests.Count() == 0 ? "WAITTING" : "PENDING"), period_year = p.Year, period_isActive = p.IsActive, + empPosId = p.InsigniaEmployees.Select(x => x.RefId), period_doc = p.ReliefDoc == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.ReliefDoc.Id, period_revision = p.RevisionId, }) @@ -123,6 +125,7 @@ namespace BMA.EHR.Insignia.Service.Controllers period_status = insigniaPeriod.period_status, period_year = insigniaPeriod.period_year, period_isActive = insigniaPeriod.period_isActive, + empPosId = insigniaPeriod.empPosId, period_doc = insigniaPeriod.period_doc == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(insigniaPeriod.period_doc), period_revision = insigniaPeriod.period_revision, }; @@ -151,6 +154,7 @@ namespace BMA.EHR.Insignia.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var data = await _context.InsigniaPeriods.AsQueryable() + .Include(x => x.InsigniaEmployees) .Where(x => x.Id == id) .Select(p => new { @@ -163,6 +167,7 @@ namespace BMA.EHR.Insignia.Service.Controllers period_status = p.IsLock == true ? "DONE" : (p.InsigniaRequests.Count() == 0 ? "WAITTING" : "PENDING"), period_year = p.Year, period_isActive = p.IsActive, + empPosId = p.InsigniaEmployees.Select(x => x.RefId), period_doc = p.ReliefDoc == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.ReliefDoc.Id, }) .FirstOrDefaultAsync(); @@ -180,6 +185,7 @@ namespace BMA.EHR.Insignia.Service.Controllers period_status = data.period_status, period_year = data.period_year, period_isActive = data.period_isActive, + empPosId = data.empPosId, period_doc = data.period_doc == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.period_doc), }; @@ -235,6 +241,23 @@ namespace BMA.EHR.Insignia.Service.Controllers LastUpdatedAt = DateTime.Now, RevisionId = revisionId ?? Guid.Empty }; + if (req.EmpPosId != null && req.EmpPosId.Count() != 0) + { + foreach (var item in req.EmpPosId) + { + period.InsigniaEmployees.Add( + new InsigniaEmployee + { + RefId = item, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }); + } + } await _context.InsigniaPeriods.AddAsync(period); await _context.SaveChangesAsync(); if (Request.Form.Files != null && Request.Form.Files.Count != 0) @@ -318,6 +341,7 @@ namespace BMA.EHR.Insignia.Service.Controllers return Error(GlobalMessages.InsigniaDupicate); var uppdated = await _context.InsigniaPeriods.AsQueryable() + .Include(x => x.InsigniaEmployees) .Include(x => x.ReliefDoc) .FirstOrDefaultAsync(x => x.Id == id); @@ -333,6 +357,24 @@ namespace BMA.EHR.Insignia.Service.Controllers uppdated.LastUpdateFullName = FullName ?? "System Administrator"; uppdated.LastUpdateUserId = UserId ?? ""; uppdated.LastUpdatedAt = DateTime.Now; + _context.InsigniaEmployees.RemoveRange(uppdated.InsigniaEmployees); + if (req.EmpPosId != null && req.EmpPosId.Count() != 0) + { + foreach (var item in req.EmpPosId) + { + uppdated.InsigniaEmployees.Add( + new InsigniaEmployee + { + RefId = item, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }); + } + } if (Request.Form.Files != null && Request.Form.Files.Count != 0) { From 87e8c17309830efa28a48265ff94a3e05d37f891 Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 27 Jan 2025 10:14:54 +0700 Subject: [PATCH 051/879] =?UTF-8?q?=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=AD=E0=B8=81=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88=E0=B9=89?= =?UTF-8?q?=E0=B8=B2=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/InsigniaPeriodsRepository.cs | 50 +- .../Repositories/UserProfileRepository.cs | 3 +- .../Requests/InsigniaPeriodRequest.cs | 2 +- .../Models/Insignias/InsigniaEmployee.cs | 8 +- ...iaPeriod add InsigniaEmployee1.Designer.cs | 19299 ++++++++++++++++ ...le InsigniaPeriod add InsigniaEmployee1.cs | 88 + .../ApplicationDBContextModelSnapshot.cs | 13 +- .../Controllers/InsigniaPeriodController.cs | 56 +- .../Controllers/RetirementOutController.cs | 5 +- 9 files changed, 19456 insertions(+), 68 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250125161403_update table InsigniaPeriod add InsigniaEmployee1.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250125161403_update table InsigniaPeriod add InsigniaEmployee1.cs diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 1f9e39f5..4965bc4a 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -243,6 +243,7 @@ namespace BMA.EHR.Application.Repositories { try { + Console.WriteLine(ocId); var period = await _dbContext.Set().FirstOrDefaultAsync(p => p.Id == periodId); if (period == null) @@ -293,7 +294,6 @@ namespace BMA.EHR.Application.Repositories Root = p.Root, }); - // check āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļ°āļ•āđ‰āļ­āļ‡āļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 29/5/āļ›āļĩ-8 āļ‚āļ­ āļšāļĄ. var s1 = ((from p in inst_profile where p.ProfileDateAppoint <= new DateTime(period.Year - 8, 5, 29) @@ -340,7 +340,7 @@ namespace BMA.EHR.Application.Repositories { Condition = $"2.āđ„āļ”āđ‰āļĢāļąāļšāļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ­āļąāļ•āļĢāļēāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļ‚āļąāđ‰āļ™āļ•āđˆāļģāļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļ‚āļāļēāļĢāļžāļĨāđ€āļĢāļ·āļ­āļ™āļĢāļ°āļ”āļąāļšāļ›āļāļīāļšāļąāļ•āļīāļāļēāļĢ (8,340) āđāļ•āđˆāđ„āļĄāđˆāļ–āļķāļ‡āļ‚āļąāđ‰āļ™āļ•āđˆāļģāļ‚āļ­āļ‡āļ­āļąāļ•āļĢāļēāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļžāļĨāđ€āļĢāļ·āļ­āļ™āļĢāļ°āļ”āļąāļšāļŠāļģāļ™āļēāļāļāļēāļĢ (15,050)", - Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p.SalaryCondition.Value.ToString("#,##0")}" + Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p?.SalaryCondition?.ToString("#,##0")??""}" }, } })).ToList(); @@ -445,7 +445,7 @@ namespace BMA.EHR.Application.Repositories { Condition = $"1.āđ„āļ”āđ‰āļĢāļąāļšāļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ­āļąāļ•āļĢāļēāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļ‚āļąāđ‰āļ™āļ•āđˆāļģāļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļ‚āļāļēāļĢāļžāļĨāđ€āļĢāļ·āļ­āļ™āļĢāļ°āļ”āļąāļšāļ›āļāļīāļšāļąāļ•āļīāļāļēāļĢ (8,340) āđāļ•āđˆāđ„āļĄāđˆāļ–āļķāļ‡āļ‚āļąāđ‰āļ™āļ•āđˆāļģāļ‚āļ­āļ‡āļ­āļąāļ•āļĢāļēāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļžāļĨāđ€āļĢāļ·āļ­āļ™āļĢāļ°āļ”āļąāļšāļŠāļģāļ™āļēāļāļāļēāļĢ (15,050)", - Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p.SalaryCondition.Value.ToString("#,##0")}" + Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p?.SalaryCondition?.ToString("#,##0")??""}" }, new MatchingCondition { @@ -548,7 +548,7 @@ namespace BMA.EHR.Application.Repositories { Condition = $"1.āđ„āļ”āđ‰āļĢāļąāļšāļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ­āļąāļ•āļĢāļēāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļ‚āļąāđ‰āļ™āļ•āđˆāļģāļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļ‚āļāļēāļĢāļžāļĨāđ€āļĢāļ·āļ­āļ™āļĢāļ°āļ”āļąāļšāļ›āļāļīāļšāļąāļ•āļīāļāļēāļĢ (8,340) āđāļ•āđˆāđ„āļĄāđˆāļ–āļķāļ‡āļ‚āļąāđ‰āļ™āļ•āđˆāļģāļ‚āļ­āļ‡āļ­āļąāļ•āļĢāļēāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļžāļĨāđ€āļĢāļ·āļ­āļ™āļĢāļ°āļ”āļąāļšāļŠāļģāļ™āļēāļāļāļēāļĢ (15,050)", - Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p.SalaryCondition.Value.ToString("#,##0")}" + Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p?.SalaryCondition?.ToString("#,##0")??""}" }, new MatchingCondition { @@ -734,7 +734,7 @@ namespace BMA.EHR.Application.Repositories { Condition = $"2.āđ„āļ”āđ‰āļĢāļąāļšāļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ­āļąāļ•āļĢāļēāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļ‚āļąāđ‰āļ™āļ•āđˆāļģāļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļ‚āļāļēāļĢāļžāļĨāđ€āļĢāļ·āļ­āļ™āļĢāļ°āļ”āļąāļšāļŠāļģāļ™āļēāļāļāļēāļĢāļ‚āļķāđ‰āļ™āđ„āļ› (15,050)", - Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p.SalaryCondition.Value.ToString("#,##0")}" + Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p?.SalaryCondition?.ToString("#,##0")??""}" }, } })).ToList(); @@ -841,7 +841,7 @@ namespace BMA.EHR.Application.Repositories { Condition = $"1.āđ„āļ”āđ‰āļĢāļąāļšāļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ­āļąāļ•āļĢāļēāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļ‚āļąāđ‰āļ™āļ•āđˆāļģāļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļ‚āļāļēāļĢāļžāļĨāđ€āļĢāļ·āļ­āļ™āļĢāļ°āļ”āļąāļšāļŠāļģāļ™āļēāļāļāļēāļĢāļ‚āļķāđ‰āļ™āđ„āļ› (15,050)", - Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p.SalaryCondition.Value.ToString("#,##0")}" + Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p?.SalaryCondition?.ToString("#,##0")??""}" }, new MatchingCondition { @@ -945,7 +945,7 @@ namespace BMA.EHR.Application.Repositories { Condition = $"1.āđ„āļ”āđ‰āļĢāļąāļšāļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ­āļąāļ•āļĢāļēāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļ‚āļąāđ‰āļ™āļ•āđˆāļģāļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļ‚āļāļēāļĢāļžāļĨāđ€āļĢāļ·āļ­āļ™āļĢāļ°āļ”āļąāļšāļŠāļģāļ™āļēāļāļāļēāļĢāļ‚āļķāđ‰āļ™āđ„āļ› (15,050)", - Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p.SalaryCondition.Value.ToString("#,##0")}" + Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p?.SalaryCondition?.ToString("#,##0")??""}" }, new MatchingCondition { @@ -6535,30 +6535,30 @@ namespace BMA.EHR.Application.Repositories if (period != null && period.InsigniaEmployees != null) { allEmployeeProfileByRoot = - (await _userProfileRepository.GetEmployeeProfileByPositionAsync(period.InsigniaEmployees.Select(x => x.RefId), AccessToken)); + (await _userProfileRepository.GetEmployeeProfileByPositionAsync(ocId, period.InsigniaEmployees.Select(x => x.RefId), AccessToken)); } - var type_coin = await GetCoinCandidate(periodId, ocId, allOfficerProfilesByRoot); - var type1_level1 = await GetInsigniaCandidate_Type1_Level1(periodId, ocId, allOfficerProfilesByRoot); - var type1_level2 = await GetInsigniaCandidate_Type1_Level2(periodId, ocId, allOfficerProfilesByRoot); - var type1_level3 = await GetInsigniaCandidate_Type1_Level3(periodId, ocId, allOfficerProfilesByRoot); - var type1_level4 = await GetInsigniaCandidate_Type1_Level4(periodId, ocId, allOfficerProfilesByRoot); - var type2_level5 = await GetInsigniaCandidate_Type2_Level5(periodId, ocId, allOfficerProfilesByRoot); - var type2_level6 = await GetInsigniaCandidate_Type2_Level6(periodId, ocId, allOfficerProfilesByRoot); - var type2_level7 = await GetInsigniaCandidate_Type2_Level7(periodId, ocId, allOfficerProfilesByRoot); - var type2_level8 = await GetInsigniaCandidate_Type2_Level8(periodId, ocId, allOfficerProfilesByRoot); + var type_coin = allOfficerProfilesByRoot.Count() > 0 ? await GetCoinCandidate(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type1_level1 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type1_Level1(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type1_level2 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type1_Level2(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type1_level3 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type1_Level3(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type1_level4 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type1_Level4(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type2_level5 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type2_Level5(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type2_level6 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type2_Level6(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type2_level7 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type2_Level7(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type2_level8 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type2_Level8(periodId, ocId, allOfficerProfilesByRoot) : new List(); var type2_level9_1 = - await GetInsigniaCandidate_Type2_Level9_1(periodId, ocId, allOfficerProfilesByRoot); + allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type2_Level9_1(periodId, ocId, allOfficerProfilesByRoot) : new List(); var type2_level9_2 = - await GetInsigniaCandidate_Type2_Level9_2(periodId, ocId, allOfficerProfilesByRoot); - var type3_level10 = await GetInsigniaCandidate_Type3_Level10(periodId, ocId, allOfficerProfilesByRoot); - var type3_level11 = await GetInsigniaCandidate_Type3_Level11(periodId, ocId, allOfficerProfilesByRoot); - var type4_level10 = await GetInsigniaCandidate_Type4_Level10(periodId, ocId, allOfficerProfilesByRoot); - var type4_level11 = await GetInsigniaCandidate_Type4_Level11(periodId, ocId, allOfficerProfilesByRoot); + allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type2_Level9_2(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type3_level10 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type3_Level10(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type3_level11 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type3_Level11(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type4_level10 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type4_Level10(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type4_level11 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type4_Level11(periodId, ocId, allOfficerProfilesByRoot) : new List(); - var employee_type1 = await GetEmployeeInsignia_Type1(periodId, ocId, allEmployeeProfileByRoot); - var employee_type2 = await GetEmployeeInsignia_Type2(periodId, ocId, allEmployeeProfileByRoot); + var employee_type1 = allEmployeeProfileByRoot.Count() > 0 ? await GetEmployeeInsignia_Type1(periodId, ocId, allEmployeeProfileByRoot) : new List(); + var employee_type2 = allEmployeeProfileByRoot.Count() > 0 ? await GetEmployeeInsignia_Type2(periodId, ocId, allEmployeeProfileByRoot) : new List(); // union result foreach (var r in type_coin) diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index b1511b07..7b859ef7 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -129,7 +129,7 @@ namespace BMA.EHR.Application.Repositories } } - public async Task> GetEmployeeProfileByPositionAsync(dynamic empPosId, string? accessToken) + public async Task> GetEmployeeProfileByPositionAsync(Guid rootId, dynamic empPosId, string? accessToken) { try { @@ -138,6 +138,7 @@ namespace BMA.EHR.Application.Repositories var body = new { + rootId, empPosId }; diff --git a/BMA.EHR.Application/Requests/InsigniaPeriodRequest.cs b/BMA.EHR.Application/Requests/InsigniaPeriodRequest.cs index e9befe3c..0dcb7fae 100644 --- a/BMA.EHR.Application/Requests/InsigniaPeriodRequest.cs +++ b/BMA.EHR.Application/Requests/InsigniaPeriodRequest.cs @@ -16,7 +16,7 @@ namespace BMA.EHR.Application.Requests public int Amount { get; set; } public int Round { get; set; } - public List? EmpPosId { get; set; } + public string[] EmpPosId { get; set; } public FormFile? File { get; set; } } } diff --git a/BMA.EHR.Domain/Models/Insignias/InsigniaEmployee.cs b/BMA.EHR.Domain/Models/Insignias/InsigniaEmployee.cs index 8719382b..e2494caf 100644 --- a/BMA.EHR.Domain/Models/Insignias/InsigniaEmployee.cs +++ b/BMA.EHR.Domain/Models/Insignias/InsigniaEmployee.cs @@ -1,15 +1,13 @@ ïŧŋusing Microsoft.EntityFrameworkCore; -using System.ComponentModel.DataAnnotations; using BMA.EHR.Domain.Models.Base; -using System.ComponentModel.DataAnnotations.Schema; -using BMA.EHR.Domain.Models.MetaData; -using BMA.EHR.Domain.Models.Organizations; -using BMA.EHR.Domain.Models.Documents; namespace BMA.EHR.Domain.Models.Insignias { public class InsigniaEmployee : EntityBase { + [Comment("Fk Table InsigniaPeriod")] + public InsigniaPeriod InsigniaPeriod { get; set; } + [Comment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡")] public string? RefId { get; set; } } } diff --git a/BMA.EHR.Infrastructure/Migrations/20250125161403_update table InsigniaPeriod add InsigniaEmployee1.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250125161403_update table InsigniaPeriod add InsigniaEmployee1.Designer.cs new file mode 100644 index 00000000..6a703b7d --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250125161403_update table InsigniaPeriod add InsigniaEmployee1.Designer.cs @@ -0,0 +1,19299 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250125161403_update table InsigniaPeriod add InsigniaEmployee1")] + partial class updatetableInsigniaPeriodaddInsigniaEmployee1 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250125161403_update table InsigniaPeriod add InsigniaEmployee1.cs b/BMA.EHR.Infrastructure/Migrations/20250125161403_update table InsigniaPeriod add InsigniaEmployee1.cs new file mode 100644 index 00000000..5488e64d --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250125161403_update table InsigniaPeriod add InsigniaEmployee1.cs @@ -0,0 +1,88 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class updatetableInsigniaPeriodaddInsigniaEmployee1 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropForeignKey( + name: "FK_InsigniaEmployees_InsigniaPeriods_InsigniaPeriodId", + table: "InsigniaEmployees"); + + migrationBuilder.AlterColumn( + name: "RefId", + table: "InsigniaEmployees", + type: "longtext", + nullable: true, + comment: "id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡", + oldClrType: typeof(string), + oldType: "longtext", + oldNullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + .OldAnnotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AlterColumn( + name: "InsigniaPeriodId", + table: "InsigniaEmployees", + type: "char(36)", + nullable: false, + defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AddForeignKey( + name: "FK_InsigniaEmployees_InsigniaPeriods_InsigniaPeriodId", + table: "InsigniaEmployees", + column: "InsigniaPeriodId", + principalTable: "InsigniaPeriods", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropForeignKey( + name: "FK_InsigniaEmployees_InsigniaPeriods_InsigniaPeriodId", + table: "InsigniaEmployees"); + + migrationBuilder.AlterColumn( + name: "RefId", + table: "InsigniaEmployees", + type: "longtext", + nullable: true, + oldClrType: typeof(string), + oldType: "longtext", + oldNullable: true, + oldComment: "id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡") + .Annotation("MySql:CharSet", "utf8mb4") + .OldAnnotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AlterColumn( + name: "InsigniaPeriodId", + table: "InsigniaEmployees", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AddForeignKey( + name: "FK_InsigniaEmployees_InsigniaPeriods_InsigniaPeriodId", + table: "InsigniaEmployees", + column: "InsigniaPeriodId", + principalTable: "InsigniaPeriods", + principalColumn: "Id"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 48d73db1..f3f20ca9 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -5676,7 +5676,7 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnOrder(101) .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); - b.Property("InsigniaPeriodId") + b.Property("InsigniaPeriodId") .HasColumnType("char(36)"); b.Property("LastUpdateFullName") @@ -5699,7 +5699,8 @@ namespace BMA.EHR.Infrastructure.Migrations .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); b.Property("RefId") - .HasColumnType("longtext"); + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); b.HasKey("Id"); @@ -18005,9 +18006,13 @@ namespace BMA.EHR.Infrastructure.Migrations modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => { - b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", null) + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") .WithMany("InsigniaEmployees") - .HasForeignKey("InsigniaPeriodId"); + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); }); modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => diff --git a/BMA.EHR.Insignia/Controllers/InsigniaPeriodController.cs b/BMA.EHR.Insignia/Controllers/InsigniaPeriodController.cs index 7bc85a49..c316b0ce 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaPeriodController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaPeriodController.cs @@ -241,22 +241,21 @@ namespace BMA.EHR.Insignia.Service.Controllers LastUpdatedAt = DateTime.Now, RevisionId = revisionId ?? Guid.Empty }; - if (req.EmpPosId != null && req.EmpPosId.Count() != 0) + foreach (var item in req.EmpPosId) { - foreach (var item in req.EmpPosId) - { - period.InsigniaEmployees.Add( - new InsigniaEmployee - { - RefId = item, - CreatedFullName = FullName ?? "System Administrator", - CreatedUserId = UserId ?? "", - CreatedAt = DateTime.Now, - LastUpdateFullName = FullName ?? "System Administrator", - LastUpdateUserId = UserId ?? "", - LastUpdatedAt = DateTime.Now, - }); - } + var insigniaEmployee = + new InsigniaEmployee + { + InsigniaPeriod = period, + RefId = item, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }; + await _context.InsigniaEmployees.AddAsync(insigniaEmployee); } await _context.InsigniaPeriods.AddAsync(period); await _context.SaveChangesAsync(); @@ -358,22 +357,19 @@ namespace BMA.EHR.Insignia.Service.Controllers uppdated.LastUpdateUserId = UserId ?? ""; uppdated.LastUpdatedAt = DateTime.Now; _context.InsigniaEmployees.RemoveRange(uppdated.InsigniaEmployees); - if (req.EmpPosId != null && req.EmpPosId.Count() != 0) + foreach (var item in req.EmpPosId) { - foreach (var item in req.EmpPosId) - { - uppdated.InsigniaEmployees.Add( - new InsigniaEmployee - { - RefId = item, - CreatedFullName = FullName ?? "System Administrator", - CreatedUserId = UserId ?? "", - CreatedAt = DateTime.Now, - LastUpdateFullName = FullName ?? "System Administrator", - LastUpdateUserId = UserId ?? "", - LastUpdatedAt = DateTime.Now, - }); - } + uppdated.InsigniaEmployees.Add( + new InsigniaEmployee + { + RefId = item, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }); } if (Request.Form.Files != null && Request.Form.Files.Count != 0) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index f63713b3..ef47cc1e 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -68,8 +68,8 @@ namespace BMA.EHR.Retirement.Service.Controllers /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpGet()] - public async Task> GetListByAdmin() + [HttpGet("{type}")] + public async Task> GetListByAdmin(string type) { var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_DISMISS"); var jsonData = JsonConvert.DeserializeObject(getPermission); @@ -103,6 +103,7 @@ namespace BMA.EHR.Retirement.Service.Controllers var retirementOuts = await _context.RetirementOuts.AsQueryable() .OrderByDescending(x => x.CreatedAt) + .Where(x => x.profileType.Trim().ToUpper().Contains(type.Trim().ToUpper())) // .Where(x => rootId == "" ? true : (child1Id == "" ? x.rootOldId == rootId : (child2Id == "" ? x.child1OldId == child1Id : (child3Id == "" ? x.child2OldId == child2Id : (child4Id == "" ? x.child3OldId == child3Id : x.child4OldId == child4Id))))) .Select(p => new { From 6616fc72a0f60e1d8dcd65b67444aad872d1bc47 Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 27 Jan 2025 10:49:44 +0700 Subject: [PATCH 052/879] no message --- .../Controllers/RetirementOutController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index ef47cc1e..501f6051 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -263,6 +263,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { var retirementOut = new RetirementOut { + profileType = req.profileType.Trim().ToUpper(), Status = "WAITTING", CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", From b07b75c6994377a3d6f1eea9e57b8a9854a6faca Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 27 Jan 2025 11:04:33 +0700 Subject: [PATCH 053/879] =?UTF-8?q?fix=20issue=20:=20SIT=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97?= =?UTF-8?q?=E0=B8=B6=E0=B8=81=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?>>=E0=B8=AA=E0=B8=B4=E0=B8=97=E0=B8=98=E0=B8=B4=E0=B9=8C?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2=20(=E0=B9=82?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=E0=B8=AA=E0=B8=B4=E0=B8=97=E0=B8=98=E0=B8=B4?= =?UTF-8?q?=E0=B9=8C=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2)=20#974?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 50223629..a4fc6fde 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -883,7 +883,7 @@ namespace BMA.EHR.Leave.Service.Controllers break; case "LV-005": // fix issue : āļĢāļ°āļšāļšāļĨāļē (āļ‚āļĢāļ.) >> āļĨāļēāļžāļąāļāļœāđˆāļ­āļ™ (āļāļĢāļ“āļĩāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāđ„āļĄāđˆāļ–āļķāļ‡ 6 āđ€āļ”āļ·āļ­āļ™) #838 - var leavePrevYear = (await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear)).Where(x => x.LeaveTypeCode == "LV-005" && x.KeycloakUserId == userId).FirstOrDefault(); + var leavePrevYear = (await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear -1)).Where(x => x.LeaveTypeCode == "LV-005" && x.KeycloakUserId == userId).FirstOrDefault(); //var leavePrevYearRemain = 10 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ if (govAge >= 180) From 7d4642a2f3c533fb531c13e5a8f204670d474176 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 27 Jan 2025 11:42:09 +0700 Subject: [PATCH 054/879] =?UTF-8?q?=20fix=20issue=20:=20SIT=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97?= =?UTF-8?q?=E0=B8=B6=E0=B8=81=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?>>=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=A5=E0=B8=B2=20(=E0=B8=81=E0=B8=A3=E0=B8=93=E0=B8=B5?= =?UTF-8?q?=E0=B8=82=E0=B8=AD=E0=B8=A2=E0=B8=81=E0=B9=80=E0=B8=A5=E0=B8=B4?= =?UTF-8?q?=E0=B8=81=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2)=20#935?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveRequestRepository.cs | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index f2a014bc..ee236abe 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -431,25 +431,23 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests await UpdateAsync(rawData); + // fix issue : SIT āļĢāļ°āļšāļšāļšāļąāļ™āļ—āļķāļāļāļēāļĢāļĨāļē>>āļĢāļēāļĒāļāļēāļĢāļĨāļē (āļāļĢāļ“āļĩāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļāļēāļĢāļĨāļē) #935 // TODO: remove āļ§āļąāļ™āļĨāļē - var leaveType = await _appDbContext.Set() - .FirstOrDefaultAsync(x => x.Name == rawData.Type.Name); - - + //var leaveType = await _appDbContext.Set() + // .FirstOrDefaultAsync(x => x.Name == rawData.Type.Name); + // insert to profile leave - var profileLeave = await _appDbContext.Set() - .Where(x => x.TypeLeave.Id == leaveType.Id) - .Where(x => x.ProfileId == profile.Id) - .Where(x => x.DateStartLeave == rawData.LeaveStartDate && x.DateEndLeave == rawData.LeaveEndDate) - .FirstOrDefaultAsync(); - if (profileLeave != null) - { - _appDbContext.Set().Remove(profileLeave); - await _appDbContext.SaveChangesAsync(); - } - - // insert into process timestamp + //var profileLeave = await _appDbContext.Set() + // .Where(x => x.TypeLeave.Id == leaveType.Id) + // .Where(x => x.ProfileId == profile.Id) + // .Where(x => x.DateStartLeave == rawData.LeaveStartDate && x.DateEndLeave == rawData.LeaveEndDate) + // .FirstOrDefaultAsync(); + //if (profileLeave != null) + //{ + // _appDbContext.Set().Remove(profileLeave); + // await _appDbContext.SaveChangesAsync(); + //} // Send Noti From 7d88493a547158102f82a41d79ad3332f3e3e6a1 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 27 Jan 2025 13:32:57 +0700 Subject: [PATCH 055/879] =?UTF-8?q?fix=20issue=20:=20=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=9A=E0=B8=9A=E0=B8=A5=E0=B8=87=E0=B9=80=E0=B8=A7=E0=B8=A5?= =?UTF-8?q?=E0=B8=B2=E0=B8=95=E0=B9=89=E0=B8=AD=E0=B8=87=E0=B8=A1=E0=B8=B5?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=80=E0=B8=8A=E0=B9=87=E0=B8=84?= =?UTF-8?q?=E0=B8=AA=E0=B8=96=E0=B8=B2=E0=B8=99=E0=B8=B0=E0=B9=83=E0=B8=99?= =?UTF-8?q?=20rabbitMQ=20=E0=B8=94=E0=B9=89=E0=B8=A7=E0=B8=A2=E0=B8=A7?= =?UTF-8?q?=E0=B9=88=E0=B8=B2=E0=B8=A1=E0=B8=B5=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=A3=E0=B8=AD=E0=B8=A3=E0=B8=B1=E0=B8=99=E0=B8=AD=E0=B8=A2?= =?UTF-8?q?=E0=B8=B9=E0=B9=88=E0=B9=84=E0=B8=AB=E0=B8=A1=20=E0=B8=A5?= =?UTF-8?q?=E0=B8=87=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2=E0=B9=80=E0=B8=82?= =?UTF-8?q?=E0=B9=89=E0=B8=B2/=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=87?= =?UTF-8?q?=E0=B8=B2=E0=B8=99=20#894?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveController.cs | 195 ++++++++++++++++--- BMA.EHR.Leave/Program.cs | 2 + BMA.EHR.Leave/appsettings.json | 3 +- 3 files changed, 175 insertions(+), 25 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index a742dcc2..9f915104 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -20,10 +20,12 @@ using Microsoft.Extensions.ObjectPool; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using RabbitMQ.Client; +using RabbitMQ.Client.Events; using Swashbuckle.AspNetCore.Annotations; using System.ComponentModel.DataAnnotations; using System.Security.Claims; using System.Text; +using System.Threading.Tasks; using SearchProfileResultDto = BMA.EHR.Leave.Service.DTOs.ChangeRound.SearchProfileResultDto; namespace BMA.EHR.Leave.Service.Controllers @@ -63,6 +65,8 @@ namespace BMA.EHR.Leave.Service.Controllers private readonly string _fakeCheckInQueue = "fake-bma-checkin-queue"; private readonly string _realCheckInQueue = "bma-checkin-queue"; + private readonly HttpClient _httpClient; + #endregion #region " Constuctor and Destructor " @@ -83,7 +87,8 @@ namespace BMA.EHR.Leave.Service.Controllers LeaveRequestRepository leaveRequestRepository, ObjectPool objectPool, PermissionRepository permission, - NotificationRepository notificationRepository) + NotificationRepository notificationRepository, + HttpClient httpClient) { _dutyTimeRepository = dutyTimeRepository; _context = context; @@ -103,6 +108,13 @@ namespace BMA.EHR.Leave.Service.Controllers _objectPool = objectPool; _permission = permission; + + _httpClient = httpClient; + var authString = $"{_configuration["Rabbit:User"] ?? ""}:{_configuration["Rabbit:Password"] ?? ""}"; + + var authToken = Convert.ToBase64String(Encoding.ASCII.GetBytes(authString)); + _httpClient.DefaultRequestHeaders.Authorization = + new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", authToken); } #endregion @@ -446,7 +458,7 @@ namespace BMA.EHR.Leave.Service.Controllers CheckInTime = null, CheckInId = null, }; - } + } } else { @@ -522,41 +534,97 @@ namespace BMA.EHR.Leave.Service.Controllers var serializedObject = JsonConvert.SerializeObject(checkData); var body = Encoding.UTF8.GetBytes(serializedObject); + // add task id for check in queue + string taskId = Guid.NewGuid().ToString(); + var properties = channel.CreateBasicProperties(); + properties.Persistent = true; + properties.MessageId = taskId; // āđāļ™āļš Message ID āđ€āļžāļ·āđˆāļ­āđƒāļŠāđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļš + channel.BasicPublish(exchange: "", routingKey: queue, - basicProperties: null, + basicProperties: properties, body: body); - return Success(new { date = currentDate }); + return Success(new { date = currentDate, taskId = taskId }); } finally { _objectPool.Return(channel); } + } - //// create connection - //var factory = new ConnectionFactory() - //{ - // HostName = _configuration["Rabbit:Host"], - // UserName = _configuration["Rabbit:User"], - // Password = _configuration["Rabbit:Password"], - //}; + [HttpGet("check-status/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + [AllowAnonymous] + public async Task> CheckInCheckStatus(Guid id) + { + var currentDate = DateTime.Now; + var channel = _objectPool.Get(); + try + { + var _url = _configuration["Rabbit:URL"] ?? ""; + var _queue = _configuration["Rabbit:Queue"] ?? "basic-queue"; - //// create channel - //using var connection = factory.CreateConnection(); - //using var channel = connection.CreateModel(); - //channel.QueueDeclare(queue: "checkin-queue", durable: false, exclusive: false, autoDelete: false, arguments: null); + // Step 1: āļ•āļĢāļ§āļˆāļŠāļ­āļšāļˆāļģāļ™āļ§āļ™ message āļ—āļąāđ‰āļ‡āļŦāļĄāļ”āđƒāļ™āļ„āļīāļ§ + string queueUrl = $"{_url}{_queue}"; + var queueResponse = await _httpClient.GetAsync(queueUrl); + if (!queueResponse.IsSuccessStatusCode) + { + return Error("Error accessing RabbitMQ API", (int)queueResponse.StatusCode); + } - //// āđāļ›āļĨāļ‡ Object āđ€āļ›āđ‡āļ™ JSON āļŠāļ•āļĢāļīāļ‡ - //var serializedObject = JsonConvert.SerializeObject(checkData); + var queueContent = await queueResponse.Content.ReadAsStringAsync(); + var queueData = JObject.Parse(queueContent); + int totalMessages = queueData["messages"]?.Value() ?? 0; - //// āđāļ›āļĨāļ‡ JSON āļŠāļ•āļĢāļīāļ‡āđ€āļ›āđ‡āļ™ byte array - //var body = Encoding.UTF8.GetBytes(serializedObject); + // Step 2: āļ§āļ™āļĨāļđāļ›āļ”āļķāļ‡ message āļ—āļĩāļĨāļ° 100 āļ‡āļēāļ™ + int batchSize = 100; + var allMessages = new List(); + int processedMessages = 0; - //channel.BasicPublish(exchange: "", routingKey: "checkin-queue", basicProperties: null, body: body); - //Console.WriteLine($"Send to Queue: {serializedObject}"); + while (processedMessages < totalMessages) + { + var requestBody = new StringContent( + $"{{\"count\":{batchSize},\"requeue\":true,\"encoding\":\"auto\",\"ackmode\":\"ack_requeue_true\"}}", + Encoding.UTF8, + "application/json" + ); - //return Success(new { date = currentDate }); + string getMessagesUrl = $"{_url}{_queue}/get"; + var response = await _httpClient.PostAsync(getMessagesUrl, requestBody); + if (!response.IsSuccessStatusCode) + { + return StatusCode((int)response.StatusCode, "Error retrieving messages from RabbitMQ."); + } + + var content = await response.Content.ReadAsStringAsync(); + var messages = JArray.Parse(content); + + if (messages.Count == 0) + { + break; + } + + processedMessages += messages.Count; + allMessages.AddRange(messages.Select(m => m["properties"].ToString())); + } + + // Step 3: āļ„āđ‰āļ™āļŦāļē taskIds āļ—āļĩāđˆāļ­āļĒāļđāđˆāđƒāļ™ messages āļ—āļąāđ‰āļ‡āļŦāļĄāļ” + var foundTasks = allMessages.FirstOrDefault(x => x.Contains(id.ToString("D"))); + + return Success(new { taskId = id, InQueue = foundTasks != null }); + + } + catch (Exception ex) + { + return Error(ex, ex.Message); + } + finally + { + _objectPool.Return(channel); + } } /// @@ -580,16 +648,95 @@ namespace BMA.EHR.Leave.Service.Controllers { channel.QueueDeclare(queue: _fakeCheckInQueue, durable: true, exclusive: false, autoDelete: false, arguments: null); + // Create Task ID + string taskId = Guid.NewGuid().ToString(); + var properties = channel.CreateBasicProperties(); + properties.Persistent = true; + properties.MessageId = taskId; // āđāļ™āļš Message ID āđ€āļžāļ·āđˆāļ­āđƒāļŠāđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļš + var serializedObject = JsonConvert.SerializeObject(data); var body = Encoding.UTF8.GetBytes(serializedObject); channel.BasicPublish(exchange: "", routingKey: _fakeCheckInQueue, - basicProperties: null, + basicProperties: properties, body: body); - return Success(new { date = currentDate }); + return Success(new { date = currentDate, taskId = taskId }); + } + finally + { + _objectPool.Return(channel); + } + } + + [HttpGet("fake-check-status/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + [AllowAnonymous] + public async Task> FakeCheckInCheckStatus(Guid id) + { + var currentDate = DateTime.Now; + var channel = _objectPool.Get(); + try + { + var _url = _configuration["Rabbit:URL"] ?? ""; + + // Step 1: āļ•āļĢāļ§āļˆāļŠāļ­āļšāļˆāļģāļ™āļ§āļ™ message āļ—āļąāđ‰āļ‡āļŦāļĄāļ”āđƒāļ™āļ„āļīāļ§ + string queueUrl = $"{_url}{_fakeCheckInQueue}"; + var queueResponse = await _httpClient.GetAsync(queueUrl); + if (!queueResponse.IsSuccessStatusCode) + { + return Error("Error accessing RabbitMQ API", (int)queueResponse.StatusCode); + } + + var queueContent = await queueResponse.Content.ReadAsStringAsync(); + var queueData = JObject.Parse(queueContent); + int totalMessages = queueData["messages"]?.Value() ?? 0; + + // Step 2: āļ§āļ™āļĨāļđāļ›āļ”āļķāļ‡ message āļ—āļĩāļĨāļ° 100 āļ‡āļēāļ™ + int batchSize = 100; + var allMessages = new List(); + int processedMessages = 0; + + while (processedMessages < totalMessages) + { + var requestBody = new StringContent( + $"{{\"count\":{batchSize},\"requeue\":true,\"encoding\":\"auto\",\"ackmode\":\"ack_requeue_true\"}}", + Encoding.UTF8, + "application/json" + ); + + string getMessagesUrl = $"{_url}{_fakeCheckInQueue}/get"; + var response = await _httpClient.PostAsync(getMessagesUrl, requestBody); + if (!response.IsSuccessStatusCode) + { + return StatusCode((int)response.StatusCode, "Error retrieving messages from RabbitMQ."); + } + + var content = await response.Content.ReadAsStringAsync(); + var messages = JArray.Parse(content); + + if (messages.Count == 0) + { + break; + } + + processedMessages += messages.Count; + allMessages.AddRange(messages.Select(m => m["properties"].ToString())); + } + + // Step 3: āļ„āđ‰āļ™āļŦāļē taskIds āļ—āļĩāđˆāļ­āļĒāļđāđˆāđƒāļ™ messages āļ—āļąāđ‰āļ‡āļŦāļĄāļ” + var foundTasks = allMessages.FirstOrDefault(x => x.Contains(id.ToString("D"))); + + return Success(new { taskId = id, InQueue = foundTasks != null }); + + } + catch (Exception ex) + { + return Error(ex, ex.Message); } finally { diff --git a/BMA.EHR.Leave/Program.cs b/BMA.EHR.Leave/Program.cs index 217aedaa..44bdd418 100644 --- a/BMA.EHR.Leave/Program.cs +++ b/BMA.EHR.Leave/Program.cs @@ -90,6 +90,8 @@ var builder = WebApplication.CreateBuilder(args); builder.Services.AddPersistence(builder.Configuration); builder.Services.AddLeavePersistence(builder.Configuration); + builder.Services.AddHttpClient(); + builder.Services.AddControllers(options => { options.SuppressAsyncSuffixInActionNames = false; diff --git a/BMA.EHR.Leave/appsettings.json b/BMA.EHR.Leave/appsettings.json index 7d2c53d1..662fd98f 100644 --- a/BMA.EHR.Leave/appsettings.json +++ b/BMA.EHR.Leave/appsettings.json @@ -45,7 +45,8 @@ "Host": "192.168.1.40", "User": "admin", "Password": "Test123456", - "Queue": "bma-checkin-queue" + "Queue": "bma-checkin-queue", + "URL": "https://edm-mq.frappet.synology.me/api/queues/%2F/" }, "Mail": { "Server": "mail.bangkok.go.th", From 8b7bfb5ea08b41ed7a70fb004416b7ea873cba1f Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 27 Jan 2025 14:18:22 +0700 Subject: [PATCH 056/879] =?UTF-8?q?fix=20issue=20:=20=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=9A=E0=B8=9A=E0=B8=A5=E0=B8=B2=E0=B9=81=E0=B8=A5=E0=B8=B0?= =?UTF-8?q?=E0=B8=A5=E0=B8=87=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2>>?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5?= =?UTF-8?q?=E0=B8=87=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2=E0=B8=9B=E0=B8=8F?= =?UTF-8?q?=E0=B8=B4=E0=B8=9A=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=87=E0=B8=B2?= =?UTF-8?q?=E0=B8=99=20(=E0=B8=AA=E0=B8=AD=E0=B8=9A=E0=B8=96=E0=B8=B2?= =?UTF-8?q?=E0=B8=A1)=20#1074?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveController.cs | 22 +++++++++++++++++++ .../DTOs/CheckIn/CheckInDetailForAdminDto.cs | 2 ++ .../DTOs/CheckIn/CheckInHistoryForAdminDto.cs | 2 ++ .../CheckInProcessHistoryForAdminDto.cs | 2 ++ 4 files changed, 28 insertions(+) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index 9f915104..7a8c1a1c 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -1234,6 +1234,7 @@ namespace BMA.EHR.Leave.Service.Controllers Id = d.Id, //FullName = _userProfileRepository.GetUserFullName(d.KeycloakUserId, AccessToken), FullName = $"{d.Prefix ?? ""}{d.FirstName ?? ""} {d.LastName ?? ""}", + ProfileType = d.ProfileType ?? "", CheckInDate = d.CheckIn.Date, CheckInTime = d.CheckIn.ToString("HH:mm:ss"), @@ -1331,6 +1332,8 @@ namespace BMA.EHR.Leave.Service.Controllers Id = d.Id, FullName = $"{d.Prefix}{d.FirstName} {d.LastName}", + ProfileType = (d.ProfileType != "" || d.ProfileType != null) ? d.ProfileType : (profile.ProfileType ?? ""), + //FullName = $"{profile.Prefix}{profile.FirstName} {profile.LastName}", // _userProfileRepository.GetUserFullName(d.KeycloakUserId, AccessToken), CheckInDate = d.CheckIn.Date, @@ -1458,6 +1461,8 @@ namespace BMA.EHR.Leave.Service.Controllers { Id = d.Id, FullName = $"{d.Prefix ?? ""}{d.FirstName ?? ""} {d.LastName ?? ""}", + ProfileType = d.ProfileType ?? "", + CheckInDate = d.CheckIn.Date, CheckInTime = d.CheckIn.ToString("HH:mm"), CheckInLocation = d.CheckInPOI, @@ -1941,6 +1946,23 @@ namespace BMA.EHR.Leave.Service.Controllers FirstName = profile.FirstName, LastName = profile.LastName, + // Add āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ profile + CitizenId = profile.CitizenId, + ProfileType = profile.ProfileType, + Root = profile.Root, + RootId = profile.RootId, + Child1 = profile.Child1, + Child1Id = profile.Child1Id, + Child2 = profile.Child2, + Child2Id = profile.Child2Id, + Child3 = profile.Child3, + Child3Id = profile.Child3Id, + Child4 = profile.Child4, + Child4Id = profile.Child4Id, + Gender = profile.Gender, + ProfileId = profile.Id, + + }; processTimeStamp.EditStatus = "APPROVE"; diff --git a/BMA.EHR.Leave/DTOs/CheckIn/CheckInDetailForAdminDto.cs b/BMA.EHR.Leave/DTOs/CheckIn/CheckInDetailForAdminDto.cs index a31d6f1c..a7c31ecb 100644 --- a/BMA.EHR.Leave/DTOs/CheckIn/CheckInDetailForAdminDto.cs +++ b/BMA.EHR.Leave/DTOs/CheckIn/CheckInDetailForAdminDto.cs @@ -45,5 +45,7 @@ public bool IsLocationCheckOut { get; set; } = true; public string? CheckOutLocationName { get; set; } = string.Empty; + + public string ProfileType { get; set; } = string.Empty; } } diff --git a/BMA.EHR.Leave/DTOs/CheckIn/CheckInHistoryForAdminDto.cs b/BMA.EHR.Leave/DTOs/CheckIn/CheckInHistoryForAdminDto.cs index 2e441558..ac4e0e9b 100644 --- a/BMA.EHR.Leave/DTOs/CheckIn/CheckInHistoryForAdminDto.cs +++ b/BMA.EHR.Leave/DTOs/CheckIn/CheckInHistoryForAdminDto.cs @@ -37,5 +37,7 @@ public bool IsLocationCheckOut { get; set; } = true; public string? CheckOutLocationName { get; set; } = string.Empty; + + public string ProfileType { get; set; } = string.Empty; } } diff --git a/BMA.EHR.Leave/DTOs/CheckIn/CheckInProcessHistoryForAdminDto.cs b/BMA.EHR.Leave/DTOs/CheckIn/CheckInProcessHistoryForAdminDto.cs index b284f587..be150bdc 100644 --- a/BMA.EHR.Leave/DTOs/CheckIn/CheckInProcessHistoryForAdminDto.cs +++ b/BMA.EHR.Leave/DTOs/CheckIn/CheckInProcessHistoryForAdminDto.cs @@ -37,5 +37,7 @@ public bool CheckOutIsLocation { get; set; } = false; public string? CheckOutLocationName { get; set; } = string.Empty; + + public string ProfileType { get; set; } = string.Empty; } } From 9f0c03921d5aee70d8cfbe7d2650d5ae14fc7f0f Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 27 Jan 2025 16:33:00 +0700 Subject: [PATCH 057/879] =?UTF-8?q?issue=20=E0=B8=A3=E0=B8=B0=E0=B8=9A?= =?UTF-8?q?=E0=B8=9A=E0=B8=A5=E0=B8=B2=E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B8=A5?= =?UTF-8?q?=E0=B8=87=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2>>=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=87?= =?UTF-8?q?=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2=E0=B8=9B=E0=B8=8F=E0=B8=B4?= =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=87=E0=B8=B2=E0=B8=99?= =?UTF-8?q?=20(=E0=B8=AA=E0=B8=AD=E0=B8=9A=E0=B8=96=E0=B8=B2=E0=B8=A1)=20#?= =?UTF-8?q?1074=20=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=20Query=20?= =?UTF-8?q?String=20Profile=20Type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveController.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index 7a8c1a1c..388f8f97 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -1210,7 +1210,7 @@ namespace BMA.EHR.Leave.Service.Controllers [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status401Unauthorized)] [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public async Task> LogRecordAsync([Required] DateTime startDate, [Required] DateTime endDate, int page = 1, int pageSize = 10, string keyword = "") + public async Task> LogRecordAsync([Required] DateTime startDate, [Required] DateTime endDate, int page = 1, int pageSize = 10, string keyword = "", string profileType = "ALL") { var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_CHECKIN"); var jsonData = JsonConvert.DeserializeObject(getPermission); @@ -1265,6 +1265,9 @@ namespace BMA.EHR.Leave.Service.Controllers data = data.Where(x => x.FullName.Contains(keyword)).ToList(); } + if (profileType.Trim().ToUpper() != "ALL") + data = data.Where(x => x.ProfileType == profileType.Trim().ToUpper()).ToList(); + var pageData = data .Skip((page - 1) * pageSize) .Take(pageSize) @@ -1396,7 +1399,7 @@ namespace BMA.EHR.Leave.Service.Controllers [ProducesResponseType(StatusCodes.Status401Unauthorized)] [ProducesResponseType(StatusCodes.Status500InternalServerError)] [AllowAnonymous] - public async Task> GetTimeRecordAsync([Required] DateTime startDate, [Required] DateTime endDate, int page = 1, int pageSize = 10, string status = "NORMAL", string keyword = "") + public async Task> GetTimeRecordAsync([Required] DateTime startDate, [Required] DateTime endDate, int page = 1, int pageSize = 10, string status = "NORMAL", string keyword = "", string profileType = "ALL") { var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_CHECKIN"); var jsonData = JsonConvert.DeserializeObject(getPermission); @@ -1557,6 +1560,9 @@ namespace BMA.EHR.Leave.Service.Controllers data = data.Where(x => x.CheckInStatus == status || x.CheckOutStatus == status).ToList(); } + if (profileType.Trim().ToUpper() != "ALL") + data = data.Where(x => x.ProfileType == profileType.Trim().ToUpper()).ToList(); + var pageData = data .Skip((page - 1) * pageSize) .Take(pageSize) From 204a1abc4d159fe90c9e1042849846c56d5bb541 Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 28 Jan 2025 13:11:20 +0700 Subject: [PATCH 058/879] add table RetirementRawProfile --- .../Models/Retirement/RetirementPeriod.cs | 2 + .../Models/Retirement/RetirementRawProfile.cs | 80 + ...add table RetirementRawProfile.Designer.cs | 19507 ++++++++++++++++ ...28060451_add table RetirementRawProfile.cs | 120 + .../ApplicationDBContextModelSnapshot.cs | 208 + .../Persistence/ApplicationDBContext.cs | 1 + 6 files changed, 19918 insertions(+) create mode 100644 BMA.EHR.Domain/Models/Retirement/RetirementRawProfile.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250128060451_add table RetirementRawProfile.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250128060451_add table RetirementRawProfile.cs diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementPeriod.cs b/BMA.EHR.Domain/Models/Retirement/RetirementPeriod.cs index c5326885..14c84b4f 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementPeriod.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementPeriod.cs @@ -23,5 +23,7 @@ namespace BMA.EHR.Domain.Models.Retirement public string Detail { get; set; } = "āļĄāļēāļ•āļĢāļē āđ‘āđ– āđāļĨāļ°āļĄāļēāļ•āļĢāļē āđ’āđ‘ āđāļŦāđˆāļ‡āļžāļĢāļ°āļĢāļēāļŠāļšāļąāļāļāļąāļ•āļīāļšāļģāđ€āļŦāļ™āđ‡āļˆāļšāļģāļ™āļēāļāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŠāđˆāļ§āļ™āļ—āđ‰āļ­āļ‡āļ–āļīāđˆāļ™ āļž.āļĻ.āđ’āđ•āđ—āđ— āļĄāļēāļ•āļĢāļē āđ˜ āđāļŦāđˆāļ‡āļžāļĢāļ°āļĢāļēāļŠāļšāļąāļāļāļąāļ•āļīāļšāļģāđ€āļŦāļ™āđ‡āļˆāļšāļģāļ™āļēāļāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ āļž.āļĻ.āđ’āđ•āđ•āđ” āļ›āļĢāļ°āļāļ­āļšāļāļąāļšāļĄāļ•āļī āļ.āļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāđ‘āđ‘/āđ’āđ•āđ•āđ• āđ€āļĄāļ·āđˆāļ­āļ§āļąāļ™āļ—āļĩāđˆ āđ‘āđ• āļžāļĪāļĻāļˆāļīāļāļēāļĒāļ™ āđ’āđ•āđ•āđ•āđāļĨāļ°āļĄāļ•āļī āļ­.āļ.āļ. āļŠāļēāļĄāļąāļāļ‚āđ‰āļēāļĢāļēāļĒāļāļēāļĢāļŠāļēāļĄāļąāļāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ āđ‘/āđ’āđ•āđ–āđ• āđ€āļĄāļ·āđˆāļ­āļ§āļąāļ™āļ—āļĩāđˆ āđ’āđ‘ āļāļļāļĄāļ āļēāļžāļąāļ™āļ˜āđŒ āđ’āđ•āđ–āđ•"; public virtual List RetirementPeriodHistorys { get; set; } = new List(); public virtual List RetirementProfiles { get; set; } = new List(); + public virtual List RetirementRawProfiles { get; set; } = new List(); + } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementRawProfile.cs b/BMA.EHR.Domain/Models/Retirement/RetirementRawProfile.cs new file mode 100644 index 00000000..e8242dd1 --- /dev/null +++ b/BMA.EHR.Domain/Models/Retirement/RetirementRawProfile.cs @@ -0,0 +1,80 @@ +ïŧŋusing Microsoft.EntityFrameworkCore; +using System.ComponentModel.DataAnnotations; +using BMA.EHR.Domain.Models.Base; +using BMA.EHR.Domain.Models.HR; + +namespace BMA.EHR.Domain.Models.Retirement +{ + public class RetirementRawProfile : EntityBase + { + [Comment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ")] + public int Order { get; set; } + [Required, Comment("āđ€āļŦāļ•āļļāļœāļĨ")] + public string Reason { get; set; } = string.Empty; + [Comment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ")] + public string Remove { get; set; } = "pending"; + public RetirementPeriod RetirementPeriod { get; set; } + [Comment("profile Id")] + public string? profileId { get; set; } + [Comment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē")] + public string? prefix { get; set; } + [Comment("āļŠāļ·āđˆāļ­")] + public string? firstName { get; set; } + [Comment("āļ™āļēāļĄāļŠāļāļļāļĨ")] + public string? lastName { get; set; } + [Comment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™")] + public string? citizenId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ")] + public string? root { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ")] + public string? rootId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ")] + public string? rootShortName { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ")] + public string? child1 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ")] + public string? child1Id { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ")] + public string? child1ShortName { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ")] + public string? child2 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ")] + public string? child2Id { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ")] + public string? child2ShortName { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ")] + public string? child3 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ")] + public string? child3Id { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ")] + public string? child3ShortName { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ")] + public string? child4 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ")] + public string? child4Id { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ")] + public string? child4ShortName { get; set; } + [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ ")] + public int? posMasterNo { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ ")] + public string? position { get; set; } + [Comment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ ")] + public string? posTypeId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ ")] + public string? posTypeName { get; set; } + [Comment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ ")] + public int? posTypeRank { get; set; } + [Comment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ ")] + public string? posLevelId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ ")] + public string? posLevelName { get; set; } + [Comment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ ")] + public int? posLevelRank { get; set; } + [Comment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ ")] + public string? posExecutiveId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ ")] + public string? posExecutiveName { get; set; } + [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ ")] + public string? posNo { get; set; } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250128060451_add table RetirementRawProfile.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250128060451_add table RetirementRawProfile.Designer.cs new file mode 100644 index 00000000..7c383594 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250128060451_add table RetirementRawProfile.Designer.cs @@ -0,0 +1,19507 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250128060451_add table RetirementRawProfile")] + partial class addtableRetirementRawProfile + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250128060451_add table RetirementRawProfile.cs b/BMA.EHR.Infrastructure/Migrations/20250128060451_add table RetirementRawProfile.cs new file mode 100644 index 00000000..9cef61aa --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250128060451_add table RetirementRawProfile.cs @@ -0,0 +1,120 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class addtableRetirementRawProfile : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "RetirementRawProfiles", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + Order = table.Column(type: "int", nullable: false, comment: "āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"), + Reason = table.Column(type: "longtext", nullable: false, comment: "āđ€āļŦāļ•āļļāļœāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + Remove = table.Column(type: "longtext", nullable: false, comment: "āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ") + .Annotation("MySql:CharSet", "utf8mb4"), + RetirementPeriodId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + profileId = table.Column(type: "longtext", nullable: true, comment: "profile Id") + .Annotation("MySql:CharSet", "utf8mb4"), + prefix = table.Column(type: "longtext", nullable: true, comment: "āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē") + .Annotation("MySql:CharSet", "utf8mb4"), + firstName = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­") + .Annotation("MySql:CharSet", "utf8mb4"), + lastName = table.Column(type: "longtext", nullable: true, comment: "āļ™āļēāļĄāļŠāļāļļāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + citizenId = table.Column(type: "longtext", nullable: true, comment: "āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™") + .Annotation("MySql:CharSet", "utf8mb4"), + root = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ") + .Annotation("MySql:CharSet", "utf8mb4"), + rootId = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ") + .Annotation("MySql:CharSet", "utf8mb4"), + rootShortName = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ") + .Annotation("MySql:CharSet", "utf8mb4"), + child1 = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child1Id = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child1ShortName = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child2 = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child2Id = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child2ShortName = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child3 = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child3Id = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child3ShortName = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child4 = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child4Id = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child4ShortName = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ") + .Annotation("MySql:CharSet", "utf8mb4"), + posMasterNo = table.Column(type: "int", nullable: true, comment: "āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "), + position = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ ") + .Annotation("MySql:CharSet", "utf8mb4"), + posTypeId = table.Column(type: "longtext", nullable: true, comment: "id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ ") + .Annotation("MySql:CharSet", "utf8mb4"), + posTypeName = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ ") + .Annotation("MySql:CharSet", "utf8mb4"), + posTypeRank = table.Column(type: "int", nullable: true, comment: "āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "), + posLevelId = table.Column(type: "longtext", nullable: true, comment: "id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ ") + .Annotation("MySql:CharSet", "utf8mb4"), + posLevelName = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ ") + .Annotation("MySql:CharSet", "utf8mb4"), + posLevelRank = table.Column(type: "int", nullable: true, comment: "āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "), + posExecutiveId = table.Column(type: "longtext", nullable: true, comment: "id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ ") + .Annotation("MySql:CharSet", "utf8mb4"), + posExecutiveName = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ ") + .Annotation("MySql:CharSet", "utf8mb4"), + posNo = table.Column(type: "longtext", nullable: true, comment: "āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ ") + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_RetirementRawProfiles", x => x.Id); + table.ForeignKey( + name: "FK_RetirementRawProfiles_RetirementPeriods_RetirementPeriodId", + column: x => x.RetirementPeriodId, + principalTable: "RetirementPeriods", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateIndex( + name: "IX_RetirementRawProfiles_RetirementPeriodId", + table: "RetirementRawProfiles", + column: "RetirementPeriodId"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "RetirementRawProfiles"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index f3f20ca9..796a74d3 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -15957,6 +15957,201 @@ namespace BMA.EHR.Infrastructure.Migrations b.ToTable("RetirementQuestionnaireQuestions"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => { b.Property("Id") @@ -18906,6 +19101,17 @@ namespace BMA.EHR.Infrastructure.Migrations b.Navigation("RetirementResign"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => { b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") @@ -19271,6 +19477,8 @@ namespace BMA.EHR.Infrastructure.Migrations b.Navigation("RetirementPeriodHistorys"); b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); }); modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => diff --git a/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs b/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs index 3e003e03..8e18b165 100644 --- a/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs +++ b/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs @@ -328,6 +328,7 @@ namespace BMA.EHR.Infrastructure.Persistence public DbSet RetirementPeriodHistorys { get; set; } public DbSet RetirementPeriods { get; set; } public DbSet RetirementProfiles { get; set; } + public DbSet RetirementRawProfiles { get; set; } public DbSet RetirementDeceaseds { get; set; } public DbSet RetirementDeceasedNotis { get; set; } public DbSet RetirementResigns { get; set; } From e42dd1926b0b8353a4aed6f8b73652aab353c561 Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 28 Jan 2025 16:26:43 +0700 Subject: [PATCH 059/879] no message --- .../Repositories/RetirementRepository.cs | 10 ++ .../Controllers/RetirementController.cs | 158 +++++++++++++++++- BMA.EHR.Retirement.Service/Program.cs | 1 + 3 files changed, 167 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 301fea1f..66b64ece 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -88,5 +88,15 @@ namespace BMA.EHR.Application.Repositories } await _dbContext.SaveChangesAsync(); } + + //āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ + public async Task ExecuteRetirement() + { + //var retirePeriodOfficer = await _dbContext.Set() + // .Include(x => x.RetirementRawProfiles.Where(y => y.Remove != "REMOVE")) + // .Where(x => x.Year == DateTime.Now.Year) + // .Where(x => x.Type.Trim().ToUpper().Contains("OFFICER")) + // .FirstOrDefaultAsync(); + } } } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index f1f88266..47927b4b 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -449,7 +449,51 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, }; + var dataRaw = new RetirementRawProfile + { + Order = order, + Remove = "PENDING", + RetirementPeriod = retire, + profileId = profile.profileId, + prefix = profile.prefix, + firstName = profile.firstName, + lastName = profile.lastName, + citizenId = profile.citizenId, + root = profile.root, + rootId = profile.rootId, + rootShortName = profile.rootShortName, + child1 = profile.child1, + child1Id = profile.child1Id, + child1ShortName = profile.child1ShortName, + child2 = profile.child2, + child2Id = profile.child2Id, + child2ShortName = profile.child2ShortName, + child3 = profile.child3, + child3Id = profile.child3Id, + child3ShortName = profile.child3ShortName, + child4 = profile.child4, + child4Id = profile.child4Id, + child4ShortName = profile.child4ShortName, + posMasterNo = profile.posMasterNo, + position = profile.position, + posTypeId = profile.posTypeId, + posTypeName = profile.posTypeName, + posTypeRank = profile.posTypeRank, + posLevelId = profile.posLevelId, + posLevelName = profile.posLevelName, + posLevelRank = profile.posLevelRank, + posExecutiveId = profile.posExecutiveId, + posExecutiveName = profile.posExecutiveName, + posNo = profile.posNo, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }; await _context.RetirementProfiles.AddAsync(data); + await _context.RetirementRawProfiles.AddAsync(dataRaw); order++; } await _context.SaveChangesAsync(); @@ -920,6 +964,9 @@ namespace BMA.EHR.Retirement.Service.Controllers } var num = 1; + var profileRawCount = await _context.RetirementRawProfiles + .CountAsync(x => x.RetirementPeriod.Id == retireId); + // var old_retire = retire.RetirementProfiles.OrderByDescending(x => x.Order).FirstOrDefault(); // if (old_retire != null) // num = old_retire.Order + 1; @@ -941,7 +988,18 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, }; - + var dataRaw = new RetirementRawProfile + { + Order = profileRawCount+1, + Remove = "ADD", + RetirementPeriod = retire, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }; client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); var _res = await client.SendAsync(_req); @@ -983,8 +1041,41 @@ namespace BMA.EHR.Retirement.Service.Controllers data.posExecutiveId = org.result.posExecutiveId; data.posExecutiveName = org.result.posExecutiveName; data.posNo = org.result.posNo; + + dataRaw.profileId = org.result.profileId; + dataRaw.prefix = org.result.prefix; + dataRaw.firstName = org.result.firstName; + dataRaw.lastName = org.result.lastName; + dataRaw.citizenId = org.result.citizenId; + dataRaw.root = org.result.root; + dataRaw.rootId = org.result.rootId; + dataRaw.rootShortName = org.result.rootShortName; + dataRaw.child1 = org.result.child1; + dataRaw.child1Id = org.result.child1Id; + dataRaw.child1ShortName = org.result.child1ShortName; + dataRaw.child2 = org.result.child2; + dataRaw.child2Id = org.result.child2Id; + dataRaw.child2ShortName = org.result.child2ShortName; + dataRaw.child3 = org.result.child3; + dataRaw.child3Id = org.result.child3Id; + dataRaw.child3ShortName = org.result.child3ShortName; + dataRaw.child4 = org.result.child4; + dataRaw.child4Id = org.result.child4Id; + dataRaw.child4ShortName = org.result.child4ShortName; + dataRaw.posMasterNo = org.result.posMasterNo; + dataRaw.position = org.result.position; + dataRaw.posTypeId = org.result.posTypeId; + dataRaw.posTypeName = org.result.posTypeName; + dataRaw.posTypeRank = org.result.posTypeRank; + dataRaw.posLevelId = org.result.posLevelId; + dataRaw.posLevelName = org.result.posLevelName; + dataRaw.posLevelRank = org.result.posLevelRank; + dataRaw.posExecutiveId = org.result.posExecutiveId; + dataRaw.posExecutiveName = org.result.posExecutiveName; + dataRaw.posNo = org.result.posNo; _context.RetirementProfiles.Add(data); + _context.RetirementRawProfiles.Add(dataRaw); await _context.SaveChangesAsync(); if (retire.RetirementPeriodHistorys.Count() == 0) { @@ -1010,7 +1101,18 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, }; - + var dataRaw = new RetirementRawProfile + { + Order = profileRawCount+1, + Remove = "ADD", + RetirementPeriod = retire, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }; client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); var _res = await client.SendAsync(_req); @@ -1053,7 +1155,38 @@ namespace BMA.EHR.Retirement.Service.Controllers //data.posExecutiveName = org.result.posExecutiveName; data.posNo = org.result.posNo; + dataRaw.profileId = org.result.profileId; + dataRaw.prefix = org.result.prefix; + dataRaw.firstName = org.result.firstName; + dataRaw.lastName = org.result.lastName; + dataRaw.citizenId = org.result.citizenId; + dataRaw.root = org.result.root; + dataRaw.rootId = org.result.rootId; + dataRaw.rootShortName = org.result.rootShortName; + dataRaw.child1 = org.result.child1; + dataRaw.child1Id = org.result.child1Id; + dataRaw.child1ShortName = org.result.child1ShortName; + dataRaw.child2 = org.result.child2; + dataRaw.child2Id = org.result.child2Id; + dataRaw.child2ShortName = org.result.child2ShortName; + dataRaw.child3 = org.result.child3; + dataRaw.child3Id = org.result.child3Id; + dataRaw.child3ShortName = org.result.child3ShortName; + dataRaw.child4 = org.result.child4; + dataRaw.child4Id = org.result.child4Id; + dataRaw.child4ShortName = org.result.child4ShortName; + dataRaw.posMasterNo = org.result.posMasterNo; + dataRaw.position = org.result.position; + dataRaw.posTypeId = org.result.posTypeId; + dataRaw.posTypeName = org.result.posTypeName; + dataRaw.posTypeRank = org.result.posTypeRank; + dataRaw.posLevelId = org.result.posLevelId; + dataRaw.posLevelName = org.result.posLevelName; + dataRaw.posLevelRank = org.result.posLevelRank; + dataRaw.posNo = org.result.posNo; + _context.RetirementProfiles.Add(data); + _context.RetirementRawProfiles.Add(dataRaw); await _context.SaveChangesAsync(); if (retire.RetirementPeriodHistorys.Count() == 0) { @@ -1088,11 +1221,22 @@ namespace BMA.EHR.Retirement.Service.Controllers if (profile == null) return Error(GlobalMessages.DataNotFound, 404); + var profileRaw = await _context.RetirementRawProfiles + .FirstOrDefaultAsync(x => x.profileId == profile.profileId); + if (profileRaw == null) + return Error(GlobalMessages.DataNotFound, 404); + profile.Remove = "EDIT"; profile.Reason = req.Reason; profile.LastUpdateFullName = FullName ?? "System Administrator"; profile.LastUpdateUserId = UserId ?? ""; profile.LastUpdatedAt = DateTime.Now; + + profileRaw.Remove = "EDIT"; + profileRaw.Reason = req.Reason; + profileRaw.LastUpdateFullName = FullName ?? "System Administrator"; + profileRaw.LastUpdateUserId = UserId ?? ""; + profileRaw.LastUpdatedAt = DateTime.Now; _context.SaveChanges(); return Success(); @@ -1118,6 +1262,11 @@ namespace BMA.EHR.Retirement.Service.Controllers if (profile == null) return Error(GlobalMessages.DataNotFound, 404); + var profileRaw = await _context.RetirementRawProfiles + .FirstOrDefaultAsync(x => x.profileId == profile.profileId); + if (profileRaw == null) + return Error(GlobalMessages.DataNotFound, 404); + if (profile.RetirementPeriod.RetirementPeriodHistorys.Count() == 0) { _context.RetirementProfiles.Remove(profile); @@ -1132,6 +1281,11 @@ namespace BMA.EHR.Retirement.Service.Controllers profile.LastUpdateUserId = UserId ?? ""; profile.LastUpdatedAt = DateTime.Now; } + profileRaw.Remove = "REMOVE"; + profileRaw.Reason = req.Reason; + profileRaw.LastUpdateFullName = FullName ?? "System Administrator"; + profileRaw.LastUpdateUserId = UserId ?? ""; + profileRaw.LastUpdatedAt = DateTime.Now; _context.SaveChanges(); return Success(); diff --git a/BMA.EHR.Retirement.Service/Program.cs b/BMA.EHR.Retirement.Service/Program.cs index 8460c0f5..064722b4 100644 --- a/BMA.EHR.Retirement.Service/Program.cs +++ b/BMA.EHR.Retirement.Service/Program.cs @@ -168,6 +168,7 @@ var app = builder.Build(); //manager.AddOrUpdate("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĢāļ°āļšāļšāļ›āļĨāļ”āļ­āļ­āļ", Job.FromExpression(x => x.NotifyDischarge()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); //manager.AddOrUpdate("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĢāļ°āļšāļšāđ„āļĨāđˆāļ­āļ­āļ", Job.FromExpression(x => x.NotifyExpulsion()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); //manager.AddOrUpdate("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĢāļ°āļšāļšāđƒāļŦāđ‰āļ­āļ­āļ", Job.FromExpression(x => x.NotifyOut()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); + manager.AddOrUpdate("āļ­āļąāļžāđ€āļ”āļ—āļŠāļ–āļēāļ™āļ°āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ", Job.FromExpression(x => x.ExecuteRetirement()), "*/2 * * * *", TimeZoneInfo.Local); } // apply migrations From 01f16eaef48aa82ac8f6e8ea57999b2f9b8b853e Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 29 Jan 2025 12:15:30 +0700 Subject: [PATCH 060/879] cronjob retirement (test) --- .../Repositories/RetirementRepository.cs | 45 ++++++++++++++++--- .../Controllers/RetirementController.cs | 39 ++++++++++++++++ BMA.EHR.Retirement.Service/Program.cs | 4 +- 3 files changed, 81 insertions(+), 7 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 66b64ece..19daf382 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -3,6 +3,7 @@ using BMA.EHR.Application.Repositories.MessageQueue; using BMA.EHR.Domain.Models.Retirement; using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.Configuration; namespace BMA.EHR.Application.Repositories { @@ -11,13 +12,16 @@ namespace BMA.EHR.Application.Repositories private readonly IApplicationDBContext _dbContext; private readonly IHttpContextAccessor _httpContextAccessor; private readonly NotificationRepository _repositoryNoti; + private readonly IConfiguration _configuration; public RetirementRepository(IApplicationDBContext dbContext, NotificationRepository repositoryNoti, - IHttpContextAccessor httpContextAccessor) : base(dbContext, httpContextAccessor) + IHttpContextAccessor httpContextAccessor, + IConfiguration configuration) : base(dbContext, httpContextAccessor) { _dbContext = dbContext; _httpContextAccessor = httpContextAccessor; _repositoryNoti = repositoryNoti; + _configuration = configuration; } //āļ›āļĨāļ”āļ­āļ­āļ @@ -92,11 +96,40 @@ namespace BMA.EHR.Application.Repositories //āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ public async Task ExecuteRetirement() { - //var retirePeriodOfficer = await _dbContext.Set() - // .Include(x => x.RetirementRawProfiles.Where(y => y.Remove != "REMOVE")) - // .Where(x => x.Year == DateTime.Now.Year) - // .Where(x => x.Type.Trim().ToUpper().Contains("OFFICER")) - // .FirstOrDefaultAsync(); + var retirePeriodOfficer = await _dbContext.Set() + .Include(x => x.RetirementRawProfiles.Where(y => y.Remove != "REMOVE")) + .Where(x => x.Year == /*DateTime.Now.Year*/2026) + .Where(x => x.Type.Trim().ToUpper().Contains("OFFICER")) + .FirstOrDefaultAsync(); + + var body = retirePeriodOfficer.RetirementProfiles + .Select(x => new { + profileId = x.profileId, + //lastUpdateUserId = UserId, + //lastUpdateFullName = FullName, + }) + .ToList(); + + //āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ + var apiUrl = $"{_configuration["API"]}/org/unauthorize/retirement"; + //var apiUrl = $"http://localhost:13001/api/v1/org/unauthorize/retirement"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var jsonBody = JsonConvert.SerializeObject(body); + var content = new StringContent(jsonBody, Encoding.UTF8, "application/json"); + var _req = new HttpRequestMessage(HttpMethod.Patch, apiUrl) + { + Content = content + }; + var response = await client.SendAsync(_req); + var responseContent = await response.Content.ReadAsStringAsync(); + if (!response.IsSuccessStatusCode) + { + + } + } } } } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index 47927b4b..54025830 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -1997,5 +1997,44 @@ namespace BMA.EHR.Retirement.Service.Controllers }; return Success(data); } + + //āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ + //public async Task ExecuteRetirement() + //{ + // var retirePeriodOfficer = await _context.RetirementPeriods + // .Include(x => x.RetirementRawProfiles.Where(y => y.Remove != "REMOVE")) + // .Where(x => x.Year == /*DateTime.Now.Year*/2026) + // .Where(x => x.Type.Trim().ToUpper().Contains("OFFICER")) + // .FirstOrDefaultAsync(); + + // var body = retirePeriodOfficer.RetirementProfiles + // .Select(x => new { + // profileId = x.profileId, + // //lastUpdateUserId = UserId, + // //lastUpdateFullName = FullName, + // }) + // .ToList(); + + // //āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ + // //var apiUrl = $"{_configuration["API"]}/org/unauthorize/retirement"; + // var apiUrl = $"http://localhost:13001/api/v1/org/unauthorize/retirement"; + // using (var client = new HttpClient()) + // { + // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + // var jsonBody = JsonConvert.SerializeObject(body); + // var content = new StringContent(jsonBody, Encoding.UTF8, "application/json"); + // var _req = new HttpRequestMessage(HttpMethod.Patch, apiUrl) + // { + // Content = content + // }; + // var response = await client.SendAsync(_req); + // var responseContent = await response.Content.ReadAsStringAsync(); + // if (!response.IsSuccessStatusCode) + // { + + // } + // } + //} } } diff --git a/BMA.EHR.Retirement.Service/Program.cs b/BMA.EHR.Retirement.Service/Program.cs index 064722b4..eb586a04 100644 --- a/BMA.EHR.Retirement.Service/Program.cs +++ b/BMA.EHR.Retirement.Service/Program.cs @@ -21,6 +21,7 @@ using System.Text; using System.Transactions; using BMA.EHR.Retirement.Service.Filters; using BMA.EHR.Application.Repositories; +using BMA.EHR.Retirement.Service.Controllers; var builder = WebApplication.CreateBuilder(args); { @@ -168,7 +169,8 @@ var app = builder.Build(); //manager.AddOrUpdate("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĢāļ°āļšāļšāļ›āļĨāļ”āļ­āļ­āļ", Job.FromExpression(x => x.NotifyDischarge()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); //manager.AddOrUpdate("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĢāļ°āļšāļšāđ„āļĨāđˆāļ­āļ­āļ", Job.FromExpression(x => x.NotifyExpulsion()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); //manager.AddOrUpdate("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĢāļ°āļšāļšāđƒāļŦāđ‰āļ­āļ­āļ", Job.FromExpression(x => x.NotifyOut()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); - manager.AddOrUpdate("āļ­āļąāļžāđ€āļ”āļ—āļŠāļ–āļēāļ™āļ°āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ", Job.FromExpression(x => x.ExecuteRetirement()), "*/2 * * * *", TimeZoneInfo.Local); + manager.AddOrUpdate("āļ­āļąāļžāđ€āļ”āļ—āļŠāļ–āļēāļ™āļ°āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ", Job.FromExpression(x => x.ExecuteRetirement()), Cron.Yearly(10, 1, 0, 0), TimeZoneInfo.Local); + //manager.AddOrUpdate("Test āļ­āļąāļžāđ€āļ”āļ—āļŠāļ–āļēāļ™āļ°āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ", Job.FromExpression(x => x.ExecuteRetirement()), Cron.Yearly(10, 1, 0, 0), TimeZoneInfo.Local); } // apply migrations From e7ba80227958b97dbe1ab2e005e86734c354af74 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 29 Jan 2025 13:25:38 +0700 Subject: [PATCH 061/879] no message --- .../Repositories/RetirementRepository.cs | 15 +++++++++++++-- .../Controllers/RetirementController.cs | 4 +++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 19daf382..20d96b3b 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -4,6 +4,10 @@ using BMA.EHR.Domain.Models.Retirement; using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; +using Newtonsoft.Json; +using System.Net.Http.Headers; +using System.Security.Claims; +using System.Text; namespace BMA.EHR.Application.Repositories { @@ -24,6 +28,13 @@ namespace BMA.EHR.Application.Repositories _configuration = configuration; } + #region " Properties " + private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; + private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; + private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + + #endregion + //āļ›āļĨāļ”āļ­āļ­āļ public async Task NotifyDischarge() { @@ -111,8 +122,8 @@ namespace BMA.EHR.Application.Repositories .ToList(); //āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ - var apiUrl = $"{_configuration["API"]}/org/unauthorize/retirement"; - //var apiUrl = $"http://localhost:13001/api/v1/org/unauthorize/retirement"; + //var apiUrl = $"{_configuration["API"]}/org/unauthorize/retirement"; + var apiUrl = $"http://localhost:13001/api/v1/org/unauthorize/retirement"; using (var client = new HttpClient()) { client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index 54025830..5d5b5306 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -14,6 +14,7 @@ using Newtonsoft.Json.Linq; using Swashbuckle.AspNetCore.Annotations; using System.Net.Http.Headers; using System.Security.Claims; +using System.Text; namespace BMA.EHR.Retirement.Service.Controllers { @@ -2008,7 +2009,8 @@ namespace BMA.EHR.Retirement.Service.Controllers // .FirstOrDefaultAsync(); // var body = retirePeriodOfficer.RetirementProfiles - // .Select(x => new { + // .Select(x => new + // { // profileId = x.profileId, // //lastUpdateUserId = UserId, // //lastUpdateFullName = FullName, From cec878cb94f2de5879e6d773a40175471dbe1447 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 29 Jan 2025 14:49:42 +0700 Subject: [PATCH 062/879] =?UTF-8?q?fix=20issue=20:=20SIT=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97?= =?UTF-8?q?=E0=B8=B6=E0=B8=81=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2=E0=B8=9B?= =?UTF-8?q?=E0=B8=8F=E0=B8=B4=E0=B8=9A=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=87?= =?UTF-8?q?=E0=B8=B2=E0=B8=99>>=E0=B8=A5=E0=B8=87=E0=B9=80=E0=B8=A7?= =?UTF-8?q?=E0=B8=A5=E0=B8=B2=E0=B9=80=E0=B8=82=E0=B9=89=E0=B8=B2-?= =?UTF-8?q?=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=87=E0=B8=B2=E0=B8=99=20(?= =?UTF-8?q?=E0=B8=81=E0=B8=A3=E0=B8=93=E0=B8=B5=E0=B8=A5=E0=B8=87=E0=B9=80?= =?UTF-8?q?=E0=B8=A7=E0=B8=A5=E0=B8=B2=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=AD?= =?UTF-8?q?=E0=B8=B5=E0=B8=81=E0=B8=A7=E0=B8=B1=E0=B8=99)=20#921=20?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=A5=E0=B8=87=E0=B9=80?= =?UTF-8?q?=E0=B8=A7=E0=B8=A5=E0=B8=B2=E0=B8=95=E0=B9=89=E0=B8=AD=E0=B8=87?= =?UTF-8?q?=E0=B8=A1=E0=B8=B5=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=80=E0=B8=8A?= =?UTF-8?q?=E0=B9=87=E0=B8=84=E0=B8=AA=E0=B8=96=E0=B8=B2=E0=B8=99=E0=B8=B0?= =?UTF-8?q?=E0=B9=83=E0=B8=99=20rabbitMQ=20=E0=B8=94=E0=B9=89=E0=B8=A7?= =?UTF-8?q?=E0=B8=A2=E0=B8=A7=E0=B9=88=E0=B8=B2=E0=B8=A1=E0=B8=B5=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B8=A3=E0=B8=AD=E0=B8=A3=E0=B8=B1=E0=B8=99?= =?UTF-8?q?=E0=B8=AD=E0=B8=A2=E0=B8=B9=E0=B9=88=E0=B9=84=E0=B8=AB=E0=B8=A1?= =?UTF-8?q?=20=E0=B8=A5=E0=B8=87=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?=E0=B9=80=E0=B8=82=E0=B9=89=E0=B8=B2/=E0=B8=AD=E0=B8=AD?= =?UTF-8?q?=E0=B8=81=E0=B8=87=E0=B8=B2=E0=B8=99=20#894?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveController.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index 388f8f97..28c11dc3 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -538,14 +538,14 @@ namespace BMA.EHR.Leave.Service.Controllers string taskId = Guid.NewGuid().ToString(); var properties = channel.CreateBasicProperties(); properties.Persistent = true; - properties.MessageId = taskId; // āđāļ™āļš Message ID āđ€āļžāļ·āđˆāļ­āđƒāļŠāđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļš + properties.MessageId = userId.ToString("D");// āļĢāļ°āļšāļšāļĨāļ‡āđ€āļ§āļĨāļēāļ•āđ‰āļ­āļ‡āļĄāļĩāļāļēāļĢāđ€āļŠāđ‡āļ„āļŠāļ–āļēāļ™āļ°āđƒāļ™ rabbitMQ āļ”āđ‰āļ§āļĒāļ§āđˆāļēāļĄāļĩāļāļēāļĢāļĢāļ­āļĢāļąāļ™āļ­āļĒāļđāđˆāđ„āļŦāļĄ āļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļē/āļ­āļ­āļāļ‡āļēāļ™ #894 channel.BasicPublish(exchange: "", routingKey: queue, basicProperties: properties, body: body); - return Success(new { date = currentDate, taskId = taskId }); + return Success(new { date = currentDate, taskId = taskId, keycloakId = userId }); } finally { @@ -908,10 +908,12 @@ namespace BMA.EHR.Leave.Service.Controllers { return Error(new Exception(GlobalMessages.DataNotFound), StatusCodes.Status404NotFound); } - + // fix issue : SIT āļĢāļ°āļšāļšāļšāļąāļ™āļ—āļķāļāđ€āļ§āļĨāļēāļ›āļāļīāļšāļąāļ•āļīāļ‡āļēāļ™>>āļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļē-āļ­āļ­āļāļ‡āļēāļ™ (āļāļĢāļ“āļĩāļĨāļ‡āđ€āļ§āļĨāļēāļ­āļ­āļāļ­āļĩāļāļ§āļąāļ™) #921 var checkOutStatus = DateTime.Parse(currentDate.ToString("yyyy-MM-dd HH:mm")) < DateTime.Parse($"{currentDate.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}") ? - "ABSENT" : + // "ABSENT" : + checkout.CheckIn.Date < currentDate.Date ? "NORMAL" : + "ABSENT" : DateTime.Parse(currentDate.ToString("yyyy-MM-dd HH:mm")) < DateTime.Parse($"{currentDate.ToString("yyyy-MM-dd")} {duty.EndTimeMorning}") ? "ABSENT" : From 049a2894678c96b6d81da01979e9a3007bd8c389 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 29 Jan 2025 16:49:28 +0700 Subject: [PATCH 063/879] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20?= =?UTF-8?q?api=20=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B8=A3=E0=B8=B1=E0=B8=9A=20?= =?UTF-8?q?keycloak=20id=20=E0=B8=88=E0=B8=B2=E0=B8=81=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveController.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index 28c11dc3..6e104be7 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -553,13 +553,13 @@ namespace BMA.EHR.Leave.Service.Controllers } } - [HttpGet("check-status/{id:guid}")] + [HttpGet("check-status")] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status401Unauthorized)] [ProducesResponseType(StatusCodes.Status500InternalServerError)] - [AllowAnonymous] - public async Task> CheckInCheckStatus(Guid id) + public async Task> CheckInCheckStatus() { + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); var currentDate = DateTime.Now; var channel = _objectPool.Get(); try @@ -612,9 +612,9 @@ namespace BMA.EHR.Leave.Service.Controllers } // Step 3: āļ„āđ‰āļ™āļŦāļē taskIds āļ—āļĩāđˆāļ­āļĒāļđāđˆāđƒāļ™ messages āļ—āļąāđ‰āļ‡āļŦāļĄāļ” - var foundTasks = allMessages.FirstOrDefault(x => x.Contains(id.ToString("D"))); + var foundTasks = allMessages.FirstOrDefault(x => x.Contains(userId.ToString("D"))); - return Success(new { taskId = id, InQueue = foundTasks != null }); + return Success(new { keycloakId = userId, InQueue = foundTasks != null }); } catch (Exception ex) From 339de6132efadb4802fb8227badaf20ac8fc4ef5 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 29 Jan 2025 20:25:19 +0700 Subject: [PATCH 064/879] TEST Retirement Hangfire --- BMA.EHR.Application/ApplicationServicesRegistration.cs | 2 +- BMA.EHR.Application/Repositories/RetirementRepository.cs | 5 +++++ BMA.EHR.Retirement.Service/Program.cs | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Application/ApplicationServicesRegistration.cs b/BMA.EHR.Application/ApplicationServicesRegistration.cs index aa47f71f..312a2597 100644 --- a/BMA.EHR.Application/ApplicationServicesRegistration.cs +++ b/BMA.EHR.Application/ApplicationServicesRegistration.cs @@ -27,7 +27,7 @@ namespace BMA.EHR.Application services.AddTransient(); services.AddTransient(); services.AddTransient(); - services.AddTransient(); + //services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 20d96b3b..ac0b27a0 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -142,5 +142,10 @@ namespace BMA.EHR.Application.Repositories } } } + + public void TestMethod() + { + return; + } } } diff --git a/BMA.EHR.Retirement.Service/Program.cs b/BMA.EHR.Retirement.Service/Program.cs index eb586a04..817b710a 100644 --- a/BMA.EHR.Retirement.Service/Program.cs +++ b/BMA.EHR.Retirement.Service/Program.cs @@ -82,6 +82,8 @@ var builder = WebApplication.CreateBuilder(args); .SetIsOriginAllowedToAllowWildcardSubdomains(); })); + builder.Services.AddHttpClient(); + // Add services to the container. builder.Services.AddApplication(); @@ -170,6 +172,7 @@ var app = builder.Build(); //manager.AddOrUpdate("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĢāļ°āļšāļšāđ„āļĨāđˆāļ­āļ­āļ", Job.FromExpression(x => x.NotifyExpulsion()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); //manager.AddOrUpdate("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĢāļ°āļšāļšāđƒāļŦāđ‰āļ­āļ­āļ", Job.FromExpression(x => x.NotifyOut()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); manager.AddOrUpdate("āļ­āļąāļžāđ€āļ”āļ—āļŠāļ–āļēāļ™āļ°āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ", Job.FromExpression(x => x.ExecuteRetirement()), Cron.Yearly(10, 1, 0, 0), TimeZoneInfo.Local); + manager.AddOrUpdate("āļ—āļ”āļŠāļ­āļš", Job.FromExpression(x => x.TestMethod()), Cron.Yearly(10, 1, 0, 0), TimeZoneInfo.Local); //manager.AddOrUpdate("Test āļ­āļąāļžāđ€āļ”āļ—āļŠāļ–āļēāļ™āļ°āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ", Job.FromExpression(x => x.ExecuteRetirement()), Cron.Yearly(10, 1, 0, 0), TimeZoneInfo.Local); } From a0cc5b62ff0cba3f95dcd7953441124dee1586aa Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 30 Jan 2025 11:33:00 +0700 Subject: [PATCH 065/879] fixing field --- .../Reports/ProbationReportRepository.cs | 4 ++-- .../Responses/EvaluateResultAssignResponse.cs | 20 +++++++++++-------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 57dd6284..8d55c8f5 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -949,8 +949,8 @@ namespace BMA.EHR.Application.Repositories.Reports ChairmanPosition = string.IsNullOrEmpty(evaluate_assign.result.chairman.Position) ? string.Empty : evaluate_assign.result.chairman.Position, ChairmanDate = string.IsNullOrEmpty(evaluate_assign.result.evaluate.chairman_dated.ToString()) ? "-" : evaluate_assign.result.evaluate?.chairman_dated?.ToThaiFullDate().ToString().ToThaiNumber(), CommanderName = string.IsNullOrEmpty(evaluate_assign.result.commander.name) ? string.Empty : evaluate_assign.result.commander.name, - CommanderPosition = string.IsNullOrEmpty(evaluate_assign.result.commander.Position) ? string.Empty : evaluate_assign.result.commander.Position, - CommanderDate = string.IsNullOrEmpty(evaluate_assign.result.evaluate.director1_dated.ToString()) ? "-" : evaluate_assign.result.evaluate?.director1_dated?.ToThaiFullDate().ToString().ToThaiNumber(), + CommanderPosition = string.IsNullOrEmpty(evaluate_assign.result.commander.position) ? string.Empty : evaluate_assign.result.commander.position, + CommanderDate = string.IsNullOrEmpty(evaluate_assign.result.commander.dated.ToString()) ? "-" : evaluate_assign.result.commander.dated?.ToThaiFullDate().ToString().ToThaiNumber(), Name = evaluate_assign.result.experimentee.name, RoundNo = no.ToString().ToThaiNumber(), DateStart = evaluate_assign.result.assign.date_start != string.Empty ? dateStart_ : "-", diff --git a/BMA.EHR.Application/Responses/EvaluateResultAssignResponse.cs b/BMA.EHR.Application/Responses/EvaluateResultAssignResponse.cs index ae940ec5..412e6bfc 100644 --- a/BMA.EHR.Application/Responses/EvaluateResultAssignResponse.cs +++ b/BMA.EHR.Application/Responses/EvaluateResultAssignResponse.cs @@ -19,15 +19,19 @@ namespace BMA.EHR.Application.Responses public class Commander { - public string personal_id { get; set; } + // public string personal_id { get; set; } public string name { get; set; } - public string PositionId { get; set; } - public string PositionLevelId { get; set; } - public string PositionLineId { get; set; } - public string Position { get; set; } - public string Department { get; set; } - public string OrganizationOrganization { get; set; } - public string Oc { get; set; } + // public string PositionId { get; set; } + // public string PositionLevelId { get; set; } + // public string PositionLineId { get; set; } + public string position { get; set; } + // public string Department { get; set; } + // public string OrganizationOrganization { get; set; } + // public string Oc { get; set; } + public DateTime? dated { get; set; } + public string posLevel { get; set; } + public string posType { get; set; } + } public class Chairman From 177cefccccd0b4c3ba89ba8fb434ec791ae7775e Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 30 Jan 2025 11:43:36 +0700 Subject: [PATCH 066/879] =?UTF-8?q?fix=20issue=20:=20=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=9A=E0=B8=9A=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?>>=E0=B8=AA=E0=B8=B1=E0=B8=87=E0=B8=81=E0=B8=B1=E0=B8=94=20?= =?UTF-8?q?=E0=B8=9D=E0=B9=88=E0=B8=B2=E0=B8=A2=20(=E0=B9=80=E0=B8=AD?= =?UTF-8?q?=E0=B8=B2=20/=20=E0=B8=AD=E0=B8=AD=E0=B8=81=20=E0=B9=80?= =?UTF-8?q?=E0=B8=9B=E0=B8=A5=E0=B8=B5=E0=B9=88=E0=B8=A2=E0=B8=99=E0=B9=80?= =?UTF-8?q?=E0=B8=9B=E0=B9=87=E0=B8=99=E0=B8=A7=E0=B9=88=E0=B8=B2=E0=B8=87?= =?UTF-8?q?)=20#1131?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 11 +++++++---- BMA.EHR.Retirement.Service/Program.cs | 10 ++++++---- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index a4fc6fde..dc581c20 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1827,15 +1827,18 @@ namespace BMA.EHR.Leave.Service.Controllers //var sumHoliday = await _holidayRepository.GetHolidayCountAsync(rawData.LeaveStartDate, rawData.LeaveEndDate, category); //var sumWeekend = _holidayRepository.GetWeekEndCount(rawData.LeaveStartDate, rawData.LeaveEndDate, category); + // fix issue : āļĢāļ°āļšāļšāļāļēāļĢāļĨāļē>>āļŠāļąāļ‡āļāļąāļ” āļāđˆāļēāļĒ (āđ€āļ­āļē / āļ­āļ­āļ āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ€āļ›āđ‡āļ™āļ§āđˆāļēāļ‡) #1131 + + var orgName = rawData.Root ?? ""; if (rawData.Child1 != null && rawData.Child1 != "") - orgName += $"/{rawData.Child1}"; + orgName += $" {rawData.Child1}"; if (rawData.Child2 != null && rawData.Child2 != "") - orgName += $"/{rawData.Child2}"; + orgName += $" {rawData.Child2}"; if (rawData.Child3 != null && rawData.Child3 != "") - orgName += $"/{rawData.Child3}"; + orgName += $" {rawData.Child3}"; if (rawData.Child4 != null && rawData.Child4 != "") - orgName += $"/{rawData.Child4}"; + orgName += $" {rawData.Child4}"; var result = new GetLeaveRequestForAdminByIdDto { diff --git a/BMA.EHR.Retirement.Service/Program.cs b/BMA.EHR.Retirement.Service/Program.cs index 817b710a..31c7ad92 100644 --- a/BMA.EHR.Retirement.Service/Program.cs +++ b/BMA.EHR.Retirement.Service/Program.cs @@ -82,15 +82,14 @@ var builder = WebApplication.CreateBuilder(args); .SetIsOriginAllowedToAllowWildcardSubdomains(); })); - builder.Services.AddHttpClient(); - - // Add services to the container. builder.Services.AddApplication(); - builder.Services.AddPersistence(builder.Configuration); builder.Services.AddLeaveApplication(); + builder.Services.AddPersistence(builder.Configuration); builder.Services.AddLeavePersistence(builder.Configuration); + builder.Services.AddHttpClient(); + builder.Services.AddControllers(options => { options.SuppressAsyncSuffixInActionNames = false; @@ -110,6 +109,7 @@ var builder = WebApplication.CreateBuilder(args); options.UseMySql(disciplineConnection, ServerVersion.AutoDetect(disciplineConnection))); builder.Services.AddHealthChecks(); + // Add Hangfire services. builder.Services.AddHangfire(configuration => configuration .SetDataCompatibilityLevel(CompatibilityLevel.Version_170) @@ -161,10 +161,12 @@ var app = builder.Build(); app.UseStaticFiles(); app.MapControllers(); app.UseMiddleware(); + app.UseHangfireDashboard("/hangfire", new DashboardOptions() { Authorization = new[] { new CustomAuthorizeFilter() } }); + var manager = new RecurringJobManager(); if (manager != null) { From e6a73f1d199f09e015b68ea157c9879d86e66793 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 30 Jan 2025 12:03:14 +0700 Subject: [PATCH 067/879] =?UTF-8?q?fix=20issue=20:=20SIT=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97?= =?UTF-8?q?=E0=B8=B6=E0=B8=81=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?>>=20=E0=B8=AA=E0=B8=B4=E0=B8=97=E0=B8=98=E0=B8=B4=E0=B9=8C?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2(=E0=B9=82?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=E0=B8=AA=E0=B8=B4=E0=B8=97=E0=B8=98=E0=B8=B4?= =?UTF-8?q?=E0=B9=8C=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2)=20#974?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/LeaveRequestController.cs | 40 +++++++++++++++++-- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index dc581c20..f7f322f3 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -18,6 +18,7 @@ using Newtonsoft.Json.Linq; using Swashbuckle.AspNetCore.Annotations; using System.Net.Http.Headers; using System.Security.Claims; +using System.Security.Policy; namespace BMA.EHR.Leave.Service.Controllers { @@ -883,7 +884,7 @@ namespace BMA.EHR.Leave.Service.Controllers break; case "LV-005": // fix issue : āļĢāļ°āļšāļšāļĨāļē (āļ‚āļĢāļ.) >> āļĨāļēāļžāļąāļāļœāđˆāļ­āļ™ (āļāļĢāļ“āļĩāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāđ„āļĄāđˆāļ–āļķāļ‡ 6 āđ€āļ”āļ·āļ­āļ™) #838 - var leavePrevYear = (await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear -1)).Where(x => x.LeaveTypeCode == "LV-005" && x.KeycloakUserId == userId).FirstOrDefault(); + var leavePrevYear = (await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear - 1)).Where(x => x.LeaveTypeCode == "LV-005" && x.KeycloakUserId == userId).FirstOrDefault(); //var leavePrevYearRemain = 10 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ if (govAge >= 180) @@ -1975,6 +1976,8 @@ namespace BMA.EHR.Leave.Service.Controllers var rejectList = await _leaveRequestRepository.GetSumRejectLeaveAsync(thisYear); var deleteList = await _leaveRequestRepository.GetSumDeleteLeaveAsync(thisYear); + var approvePrevYear = await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear - 1); + var result = new List(); foreach (var leaveType in leaveTypes) { @@ -1990,12 +1993,43 @@ namespace BMA.EHR.Leave.Service.Controllers var deleteData = deleteList.FirstOrDefault(x => x.KeycloakUserId == userId && x.LeaveTypeId == leaveType.Id); var delete = deleteData == null ? 0 : deleteData.SumLeaveDay; + // fix issue : SIT āļĢāļ°āļšāļšāļšāļąāļ™āļ—āļķāļāļāļēāļĢāļĨāļē>> āļŠāļīāļ—āļ˜āļīāđŒāļāļēāļĢāļĨāļē(āđ‚āļ­āļ™āļŠāļīāļ—āļ˜āļīāđŒāļāļēāļĢāļĨāļē) #974 + + var extendLeave = 0.0; + var leaveLimit = leaveType.Limit; + + if (leaveType.Code == "LV-005") + { + var apprvPrevData = approvePrevYear.FirstOrDefault(x => x.KeycloakUserId == userId && x.LeaveTypeId == leaveType.Id); + var apprvPrev = apprvPrevData == null ? 0 : approveData.SumLeaveDay; + + var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); + var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); + + if (govAge >= 180) + { + if (govAge >= 3650) + { + // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ + extendLeave = 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + if (extendLeave >= 20) extendLeave = 20; + } + else + { + extendLeave = 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + if (extendLeave >= 10) extendLeave = 10; + } + } + else + leaveLimit = 0; + } + var data = new { Id = leaveType.Id, LeaveTypeName = leaveType.Name, - LeaveLimit = leaveType.Limit, - LeaveExtend = 0, + LeaveLimit = leaveLimit, + LeaveExtend = extendLeave, leavePercent = Math.Round((approve * 100.0) / leaveType.Limit, 2), LeaveCountSend = send, LeaveCountApprove = approve, From f81806f59f5652d080f2696208b6b807c46ca1e4 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 30 Jan 2025 14:55:04 +0700 Subject: [PATCH 068/879] fixing date & status report probation --- .../Repositories/Reports/ProbationReportRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 8d55c8f5..9323788f 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -919,7 +919,7 @@ namespace BMA.EHR.Application.Repositories.Reports ? $"ðŸ—đ āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļēāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›āļ­āļĩāļ {expandMonth} āđ€āļ”āļ·āļ­āļ™" : "☐ āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļēāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›āļ­āļĩāļ.....āđ€āļ”āļ·āļ­āļ™"; - var passResult = evaluate_assign.result.evaluate.pass_result == 1 + var passResult = evaluate_assign.result.evaluate.pass_result == 4 ? no == 1 ? "āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" : "āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" : evaluate_assign.result.evaluate.pass_result == 2 ? "āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ" @@ -937,7 +937,7 @@ namespace BMA.EHR.Application.Repositories.Reports return new { EvaluateDateStart = string.IsNullOrEmpty(evaluate_assign.result.evaluate.date_start.ToString()) ? "-" : evaluate_assign.result.evaluate.date_start.ToThaiFullDate().ToString().ToThaiNumber(), - EvaluateDateFinish = string.IsNullOrEmpty(evaluate_assign.result.evaluate.date_start.ToString()) ? "-" : evaluate_assign.result.evaluate.date_start.ToThaiFullDate().ToString().ToThaiNumber(), + EvaluateDateFinish = string.IsNullOrEmpty(evaluate_assign.result.evaluate.date_finish.ToString()) ? "-" : evaluate_assign.result.evaluate.date_finish.ToThaiFullDate().ToString().ToThaiNumber(), Position = string.IsNullOrEmpty(evaluate_assign.result.experimentee.Position) ? string.Empty : evaluate_assign.result.experimentee.Position, PositionLevel = string.IsNullOrEmpty(evaluate_assign.result.experimentee.PositionLevelName) ? "-" : evaluate_assign.result.experimentee.PositionLevelName, Department = string.IsNullOrEmpty(evaluate_assign.result.experimentee.Department) ? string.Empty : evaluate_assign.result.experimentee.Department, From 59edf6a716dccc9a705afa698a210da37a6daa4d Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 30 Jan 2025 15:07:46 +0700 Subject: [PATCH 069/879] =?UTF-8?q?api=20get=20=E0=B8=A3=E0=B8=B2=E0=B8=A2?= =?UTF-8?q?=E0=B8=8A=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=9C=E0=B8=B9=E0=B9=89?= =?UTF-8?q?=E0=B9=80=E0=B8=81=E0=B8=A9=E0=B8=B5=E0=B8=A2=E0=B8=93=E0=B8=AD?= =?UTF-8?q?=E0=B8=B2=E0=B8=A2=E0=B8=B8=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/RetirementRepository.cs | 74 ++++++++++--------- .../Controllers/RetirementController.cs | 62 +++++++--------- BMA.EHR.Retirement.Service/Program.cs | 3 +- 3 files changed, 67 insertions(+), 72 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index ac0b27a0..a771b89e 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -105,43 +105,49 @@ namespace BMA.EHR.Application.Repositories } //āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ - public async Task ExecuteRetirement() - { - var retirePeriodOfficer = await _dbContext.Set() - .Include(x => x.RetirementRawProfiles.Where(y => y.Remove != "REMOVE")) - .Where(x => x.Year == /*DateTime.Now.Year*/2026) - .Where(x => x.Type.Trim().ToUpper().Contains("OFFICER")) - .FirstOrDefaultAsync(); + //public async Task ExecuteRetirement() + //{ + // var retirePeriodOfficer = await _dbContext.Set() + // .Include(x => x.RetirementRawProfiles.Where(y => y.Remove != "REMOVE")) + // .Where(x => x.Year == DateTime.Now.Year) + // .Where(x => x.Type.Trim().ToUpper().Contains("OFFICER")) + // .FirstOrDefaultAsync(); - var body = retirePeriodOfficer.RetirementProfiles - .Select(x => new { - profileId = x.profileId, - //lastUpdateUserId = UserId, - //lastUpdateFullName = FullName, - }) - .ToList(); + // if (retirePeriodOfficer == null) + // return; - //āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ - //var apiUrl = $"{_configuration["API"]}/org/unauthorize/retirement"; - var apiUrl = $"http://localhost:13001/api/v1/org/unauthorize/retirement"; - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var jsonBody = JsonConvert.SerializeObject(body); - var content = new StringContent(jsonBody, Encoding.UTF8, "application/json"); - var _req = new HttpRequestMessage(HttpMethod.Patch, apiUrl) - { - Content = content - }; - var response = await client.SendAsync(_req); - var responseContent = await response.Content.ReadAsStringAsync(); - if (!response.IsSuccessStatusCode) - { + // var body = new + // { + // data = retirePeriodOfficer.RetirementRawProfiles + // .Select(x => new + // { + // profileId = x.profileId + // }) + // .ToList() + // }; - } - } - } + // //āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ + // //var apiUrl = $"{_configuration["API"]}/org/unauthorize/retirement"; + // using (var client = new HttpClient()) + // { + // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + + // var jsonBody = JsonConvert.SerializeObject(body); + // var content = new StringContent(jsonBody, Encoding.UTF8, "application/json"); + + // var _req = new HttpRequestMessage(HttpMethod.Patch, apiUrl) + // { + // Content = content + // }; + // var response = await client.SendAsync(_req); + // var responseContent = await response.Content.ReadAsStringAsync(); + // if (!response.IsSuccessStatusCode) + // { + + // } + // } + //} public void TestMethod() { diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index 5d5b5306..4336ee79 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -1999,44 +1999,34 @@ namespace BMA.EHR.Retirement.Service.Controllers return Success(data); } - //āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ - //public async Task ExecuteRetirement() - //{ - // var retirePeriodOfficer = await _context.RetirementPeriods - // .Include(x => x.RetirementRawProfiles.Where(y => y.Remove != "REMOVE")) - // .Where(x => x.Year == /*DateTime.Now.Year*/2026) - // .Where(x => x.Type.Trim().ToUpper().Contains("OFFICER")) - // .FirstOrDefaultAsync(); + /// + /// āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ + /// + /// āļ›āļĢāļ°āđ€āļ āļ—User(officer,employee)(āļ•āļąāļ§āđƒāļŦāļāđˆāļŦāļĢāļ·āļ­āđ€āļĨāđ‡āļāļāđ‡āđ„āļ”āđ‰) + /// āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“(āļ„.āļĻ.) + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("update-status/{type}/{year}")] + public async Task> UpdateStatusRetirement(string type, int year) + { + var retirePeriodOfficer = await _context.RetirementPeriods + .Include(x => x.RetirementRawProfiles.Where(y => y.Remove != "REMOVE")) + .Where(x => x.Year == year && x.Type.Trim().ToUpper().Contains(type)) + .FirstOrDefaultAsync(); - // var body = retirePeriodOfficer.RetirementProfiles - // .Select(x => new - // { - // profileId = x.profileId, - // //lastUpdateUserId = UserId, - // //lastUpdateFullName = FullName, - // }) - // .ToList(); + if (retirePeriodOfficer == null) + return Error("āđ„āļĄāđˆāļžāļšāļĢāļ­āļšāļ›āļĢāļ°āļāļēāļĻāđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); - // //āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ - // //var apiUrl = $"{_configuration["API"]}/org/unauthorize/retirement"; - // var apiUrl = $"http://localhost:13001/api/v1/org/unauthorize/retirement"; - // using (var client = new HttpClient()) - // { - // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - // var jsonBody = JsonConvert.SerializeObject(body); - // var content = new StringContent(jsonBody, Encoding.UTF8, "application/json"); - // var _req = new HttpRequestMessage(HttpMethod.Patch, apiUrl) - // { - // Content = content - // }; - // var response = await client.SendAsync(_req); - // var responseContent = await response.Content.ReadAsStringAsync(); - // if (!response.IsSuccessStatusCode) - // { + var data = retirePeriodOfficer.RetirementRawProfiles + .Select(x => new { + profileId = x.profileId + }) + .ToList(); - // } - // } - //} + return Success(data); + } } } diff --git a/BMA.EHR.Retirement.Service/Program.cs b/BMA.EHR.Retirement.Service/Program.cs index 31c7ad92..fc121e82 100644 --- a/BMA.EHR.Retirement.Service/Program.cs +++ b/BMA.EHR.Retirement.Service/Program.cs @@ -173,9 +173,8 @@ var app = builder.Build(); //manager.AddOrUpdate("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĢāļ°āļšāļšāļ›āļĨāļ”āļ­āļ­āļ", Job.FromExpression(x => x.NotifyDischarge()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); //manager.AddOrUpdate("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĢāļ°āļšāļšāđ„āļĨāđˆāļ­āļ­āļ", Job.FromExpression(x => x.NotifyExpulsion()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); //manager.AddOrUpdate("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĢāļ°āļšāļšāđƒāļŦāđ‰āļ­āļ­āļ", Job.FromExpression(x => x.NotifyOut()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); - manager.AddOrUpdate("āļ­āļąāļžāđ€āļ”āļ—āļŠāļ–āļēāļ™āļ°āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ", Job.FromExpression(x => x.ExecuteRetirement()), Cron.Yearly(10, 1, 0, 0), TimeZoneInfo.Local); + //manager.AddOrUpdate("āļ­āļąāļžāđ€āļ”āļ—āļŠāļ–āļēāļ™āļ°āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ", Job.FromExpression(x => x.ExecuteRetirement()), Cron.Yearly(10, 1, 0, 0), TimeZoneInfo.Local); manager.AddOrUpdate("āļ—āļ”āļŠāļ­āļš", Job.FromExpression(x => x.TestMethod()), Cron.Yearly(10, 1, 0, 0), TimeZoneInfo.Local); - //manager.AddOrUpdate("Test āļ­āļąāļžāđ€āļ”āļ—āļŠāļ–āļēāļ™āļ°āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ", Job.FromExpression(x => x.ExecuteRetirement()), Cron.Yearly(10, 1, 0, 0), TimeZoneInfo.Local); } // apply migrations From 780eebea4de264a9dcb2b2d4842d3ee8a975dc8b Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 30 Jan 2025 15:35:16 +0700 Subject: [PATCH 070/879] updated --- .../Repositories/Reports/ProbationReportRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 9323788f..1092385f 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -909,7 +909,7 @@ namespace BMA.EHR.Application.Repositories.Reports var developComplete2 = evaluate_assign.result.evaluate.develop_complete == 0 ? "ðŸ—đ" : "☐"; - var passResult1 = evaluate_assign.result.evaluate.pass_result == 1 + var passResult1 = evaluate_assign.result.evaluate.pass_result == 1 || evaluate_assign.result.evaluate.pass_result == 4 ? no == 1 ? "ðŸ—đ āđ„āļĄāđˆāļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" : "ðŸ—đ āđ„āļĄāđˆāļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ” āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" : no == 1 ? "☐ āđ„āļĄāđˆāļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" : "☐ āđ„āļĄāđˆāļ•āđˆāļģāļāļ§āđˆāļēāļĄāļēāļ•āļĢāļāļēāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ” āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›"; var passResult2 = evaluate_assign.result.evaluate.pass_result == 2 @@ -919,7 +919,7 @@ namespace BMA.EHR.Application.Repositories.Reports ? $"ðŸ—đ āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļēāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›āļ­āļĩāļ {expandMonth} āđ€āļ”āļ·āļ­āļ™" : "☐ āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļēāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›āļ­āļĩāļ.....āđ€āļ”āļ·āļ­āļ™"; - var passResult = evaluate_assign.result.evaluate.pass_result == 4 + var passResult = evaluate_assign.result.evaluate.pass_result == 1 || evaluate_assign.result.evaluate.pass_result == 4 ? no == 1 ? "āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" : "āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ•āđˆāļ­āđ„āļ›" : evaluate_assign.result.evaluate.pass_result == 2 ? "āđ€āļŦāđ‡āļ™āļ„āļ§āļĢāđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ" From 8a27795586da42af30684e218c2d5e61ec91631b Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 3 Feb 2025 17:01:41 +0700 Subject: [PATCH 071/879] report placement --- .../PlacementTransferController.cs | 193 +++++++++++++++++- 1 file changed, 192 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index b9adcb9a..cc4e4d06 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -14,6 +14,7 @@ using Swashbuckle.AspNetCore.Annotations; using System.Net.Http.Headers; using System.Security.Claims; using Newtonsoft.Json.Linq; +using BMA.EHR.Application.Repositories.Reports; namespace BMA.EHR.Placement.Service.Controllers { @@ -32,6 +33,7 @@ namespace BMA.EHR.Placement.Service.Controllers private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; private readonly PermissionRepository _permission; + private readonly TransferReportRepository _service; public PlacementTransferController(PlacementRepository repository, NotificationRepository repositoryNoti, @@ -39,7 +41,8 @@ namespace BMA.EHR.Placement.Service.Controllers MinIOService documentService, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, - PermissionRepository permission) + PermissionRepository permission, + TransferReportRepository service) { _repository = repository; _repositoryNoti = repositoryNoti; @@ -48,6 +51,7 @@ namespace BMA.EHR.Placement.Service.Controllers _httpContextAccessor = httpContextAccessor; _configuration = configuration; _permission = permission; + _service = service; } #region " Properties " @@ -927,5 +931,192 @@ namespace BMA.EHR.Placement.Service.Controllers } return Success(); } + + + #region āļ„āđāļēāļĢāđ‰āļ­āļ‡āļ‚āļ­āđ‚āļ­āļ™āđ„āļ›āļ–āļķāļ‡āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ­āļ·āđˆāļ™āļ™āļ­āļ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļ—āļĩāđˆāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļ›āļĢāļ°āļŠāļ‡āļ„āđŒāļ‚āļ­āđ‚āļ­āļ™ + /// + /// āļ„āđāļēāļĢāđ‰āļ­āļ‡āļ‚āļ­āđ‚āļ­āļ™āđ„āļ›āļ–āļķāļ‡āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ­āļ·āđˆāļ™āļ™āļ­āļ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļ—āļĩāđˆāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļ›āļĢāļ°āļŠāļ‡āļ„āđŒāļ‚āļ­āđ‚āļ­āļ™ + /// + /// id + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("21/{exportType}/{id}")] + public async Task> GetTransfer1ConvertReportAsync(Guid id, string exportType = "pdf") + { + try + { + var data = await _service.GetData1Transfer(id); + var result = new + { + template = "transfer1", + reportName = "docx-report", + data = data + }; + return Success(result); + } + catch + { + throw; + } + } + #endregion + + #region āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđāļˆāđ‰āļ‡āļŠāđāļēāļ™āļąāļāļ‡āļēāļ™āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ āļŠāđāļēāļ™āļąāļāļ›āļĨāļąāļ”āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ āđƒāļŦāđ‰āļ—āļĢāļēāļšāļ•āđāļēāđāļŦāļ™āđˆāļ‡āđāļĨāļ°āļ•āđāļēāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāļ—āļĩāđˆāļ”āđāļēāđ€āļ™āļīāļ™āļāļēāļĢāđƒāļŦāđ‰āđ‚āļ­āļ™ + /// + /// āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđāļˆāđ‰āļ‡āļŠāđāļēāļ™āļąāļāļ‡āļēāļ™āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ āļŠāđāļēāļ™āļąāļāļ›āļĨāļąāļ”āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ āđƒāļŦāđ‰āļ—āļĢāļēāļšāļ•āđāļēāđāļŦāļ™āđˆāļ‡āđāļĨāļ°āļ•āđāļēāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāļ—āļĩāđˆāļ”āđāļēāđ€āļ™āļīāļ™āļāļēāļĢāđƒāļŦāđ‰āđ‚āļ­āļ™ + /// + /// id + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("22/{exportType}/{id}")] + public async Task> GetTransfer2ConvertReportAsync(Guid id, string exportType = "pdf") + { + try + { + var data = await _service.GetData2Transfer(id); + var result = new + { + template = "transfer2", + reportName = "docx-report", + data = data + }; + return Success(result); + } + catch + { + throw; + } + } + #endregion + + #region āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļĒāļīāļ™āļĒāļ­āļĄāđƒāļŦāđ‰āđ‚āļ­āļ™āđāļĨāļ°āļ§āļąāļ™āļ—āļĩāđˆāļžāļĢāđ‰āļ­āļĄāļˆāļ°āđƒāļŦāđ‰āđ‚āļ­āļ™āđ„āļ›āļĒāļąāļ‡ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™ + /// + /// āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļĒāļīāļ™āļĒāļ­āļĄāđƒāļŦāđ‰āđ‚āļ­āļ™āđāļĨāļ°āļ§āļąāļ™āļ—āļĩāđˆāļžāļĢāđ‰āļ­āļĄāļˆāļ°āđƒāļŦāđ‰āđ‚āļ­āļ™āđ„āļ›āļĒāļąāļ‡ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™ + /// + /// id + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("23/{exportType}/{id}")] + public async Task> GetTransfer3ConvertReportAsync(Guid id, string exportType = "pdf") + { + try + { + var data = await _service.GetData3Transfer(id); + var result = new + { + template = "transfer3", + reportName = "docx-report", + data = data + }; + return Success(result); + } + catch + { + throw; + } + } + #endregion + + #region āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđāļˆāđ‰āļ‡āļŠāļŦāļāļĢāļ“āđŒāļ­āļ­āļĄāļ—āļĢāļąāļžāļĒāđŒāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāđ€āļžāļ·āđˆāļ­āļ‚āļ­ āļ•āļĢāļ§āļˆāļŠāļ­āļšāļ āļēāļĢāļ°āļŦāļ™āļĩāđ‰āļŠāļīāļ™āļŠāļŦāļāļĢāļ“āđŒāļ­āļ­āļĄāļ—āļĢāļąāļžāļĒāđŒ + /// + /// āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđāļˆāđ‰āļ‡āļŠāļŦāļāļĢāļ“āđŒāļ­āļ­āļĄāļ—āļĢāļąāļžāļĒāđŒāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāđ€āļžāļ·āđˆāļ­āļ‚āļ­ āļ•āļĢāļ§āļˆāļŠāļ­āļšāļ āļēāļĢāļ°āļŦāļ™āļĩāđ‰āļŠāļīāļ™āļŠāļŦāļāļĢāļ“āđŒāļ­āļ­āļĄāļ—āļĢāļąāļžāļĒāđŒ + /// + /// id + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("24/{exportType}/{id}")] + public async Task> GetTransfer4ConvertReportAsync(Guid id, string exportType = "pdf") + { + try + { + var data = await _service.GetData4Transfer(id); + var result = new + { + template = "transfer4", + reportName = "docx-report", + data = data + }; + return Success(result); + } + catch + { + throw; + } + } + #endregion + + #region āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ–āļķāļ‡āļŠāđāļēāļ™āļąāļāļ‡āļēāļ™āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ āļŠāđāļēāļ™āļąāļāļ›āļĨāļąāļ”āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāđ€āļžāļ·āđˆāļ­āļ‚āļ­āļ•āļĢāļ§āļˆāļŠāļ­āļšāļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ āđāļĨāļ°āļ āļēāļĢāļ°āļŦāļ™āļĩāđ‰āļŠāļīāļ™āļŠāļ§āļąāļŠāļ”āļīāļāļēāļĢ + /// + /// āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ–āļķāļ‡āļŠāđāļēāļ™āļąāļāļ‡āļēāļ™āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ āļŠāđāļēāļ™āļąāļāļ›āļĨāļąāļ”āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāđ€āļžāļ·āđˆāļ­āļ‚āļ­āļ•āļĢāļ§āļˆāļŠāļ­āļšāļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ āđāļĨāļ°āļ āļēāļĢāļ°āļŦāļ™āļĩāđ‰āļŠāļīāļ™āļŠāļ§āļąāļŠāļ”āļīāļāļēāļĢ + /// + /// id + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("25/{exportType}/{id}")] + public async Task> GetTransfer5ConvertReportAsync(Guid id, string exportType = "pdf") + { + try + { + var data = await _service.GetData5Transfer(id); + var result = new + { + template = "transfer5", + reportName = "docx-report", + data = data + }; + return Success(result); + } + catch + { + throw; + } + } + #endregion + + #region āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ–āļķāļ‡āļŠāļ–āļēāļšāļąāļ™āļžāļąāļ’āļ™āļēāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāđ€āļžāļ·āđˆāļ­āļ‚āļ­āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļāļēāļĢāļĢāļąāļšāļ—āļļāļ™āđāļĨāļ°āļāļēāļĢāļĨāļē āļĻāļķāļāļĐāļēāļ•āđˆāļ­āļāļąāļšāļ—āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ + /// + /// āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ–āļķāļ‡āļŠāļ–āļēāļšāļąāļ™āļžāļąāļ’āļ™āļēāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāđ€āļžāļ·āđˆāļ­āļ‚āļ­āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļāļēāļĢāļĢāļąāļšāļ—āļļāļ™āđāļĨāļ°āļāļēāļĢāļĨāļē āļĻāļķāļāļĐāļēāļ•āđˆāļ­āļāļąāļšāļ—āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ + /// + /// id + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("26/{exportType}/{id}")] + public async Task> GetTransfer6ConvertReportAsync(Guid id, string exportType = "pdf") + { + try + { + var data = await _service.GetData6Transfer(id); + var result = new + { + template = "transfer6", + reportName = "docx-report", + data = data + }; + return Success(result); + } + catch + { + throw; + } + } + #endregion } } From 6d44f6e9c33c034025b92e5ea6d255bc86f06b98 Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 3 Feb 2025 17:09:43 +0700 Subject: [PATCH 072/879] retirement report --- .../Controllers/RetirementController.cs | 92 +++++++++++++++++-- .../Controllers/RetirementResignController.cs | 48 +++++++++- 2 files changed, 133 insertions(+), 7 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index 4336ee79..2927a3da 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -1,5 +1,6 @@ ïŧŋusing BMA.EHR.Application.Repositories; using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Application.Repositories.Reports; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Retirement; @@ -35,15 +36,17 @@ namespace BMA.EHR.Retirement.Service.Controllers private readonly IConfiguration _configuration; private readonly PermissionRepository _permission; private readonly DisciplineDbContext _contextDiscipline; + private readonly RetireReportRepository _service; public RetirementController(RetirementRepository repository, NotificationRepository repositoryNoti, ApplicationDBContext context, MinIOService documentService, IConfiguration configuration, - OrganizationCommonRepository organizationCommonRepository, + OrganizationCommonRepository organizationCommonRepository, IHttpContextAccessor httpContextAccessor, PermissionRepository permission, - DisciplineDbContext contextDiscipline) + DisciplineDbContext contextDiscipline, + RetireReportRepository service) { _repository = repository; _repositoryNoti = repositoryNoti; @@ -54,6 +57,7 @@ namespace BMA.EHR.Retirement.Service.Controllers _configuration = configuration; _permission = permission; _contextDiscipline = contextDiscipline; + _service = service; } #region " Properties " @@ -991,7 +995,7 @@ namespace BMA.EHR.Retirement.Service.Controllers }; var dataRaw = new RetirementRawProfile { - Order = profileRawCount+1, + Order = profileRawCount + 1, Remove = "ADD", RetirementPeriod = retire, CreatedFullName = FullName ?? "System Administrator", @@ -1042,7 +1046,7 @@ namespace BMA.EHR.Retirement.Service.Controllers data.posExecutiveId = org.result.posExecutiveId; data.posExecutiveName = org.result.posExecutiveName; data.posNo = org.result.posNo; - + dataRaw.profileId = org.result.profileId; dataRaw.prefix = org.result.prefix; dataRaw.firstName = org.result.firstName; @@ -1104,7 +1108,7 @@ namespace BMA.EHR.Retirement.Service.Controllers }; var dataRaw = new RetirementRawProfile { - Order = profileRawCount+1, + Order = profileRawCount + 1, Remove = "ADD", RetirementPeriod = retire, CreatedFullName = FullName ?? "System Administrator", @@ -2021,12 +2025,88 @@ namespace BMA.EHR.Retirement.Service.Controllers return Error("āđ„āļĄāđˆāļžāļšāļĢāļ­āļšāļ›āļĢāļ°āļāļēāļĻāđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); var data = retirePeriodOfficer.RetirementRawProfiles - .Select(x => new { + .Select(x => new + { profileId = x.profileId }) .ToList(); return Success(data); } + + #region 31-āļ›āļĢāļ°āļāļēāļĻāđ€āļāļĐāļĩāļĒāļ“āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ & 32-āļ›āļĢāļ°āļāļēāļĻāđ€āļāļĐāļĩāļĒāļ“āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ + /// + /// 31-āļ›āļĢāļ°āļāļēāļĻāđ€āļāļĐāļĩāļĒāļ“āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ & 32-āļ›āļĢāļ°āļāļēāļĻāđ€āļāļĐāļĩāļĒāļ“āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ + /// + /// Id āļ‚āļ­āļ‡āļĢāļ­āļšāđ€āļāļĐāļĩāļĒāļ“ + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("31/{exportType}/{Id}")] + public async Task> GetProfileRetirement([FromRoute] Guid Id, string exportType = "pdf") + { + var retire = await _service.GetProfileRetirementdAsync(Id); + if (retire != null) + { + var reportfile = string.Empty; + exportType = exportType.Trim(); + switch (retire.GetType().GetProperty("Type").GetValue(retire)) + { + case "OFFICER": + if (string.IsNullOrEmpty(retire.GetType().GetProperty("TypeReport").GetValue(retire))) + { + reportfile = $"retire-1"; + } + else if (retire.GetType().GetProperty("TypeReport").GetValue(retire) == "ADD" || retire.GetType().GetProperty("TypeReport").GetValue(retire) == "EDIT") + { + reportfile = $"retire-2"; + } + else if (retire.GetType().GetProperty("TypeReport").GetValue(retire) == "REMOVE") + { + reportfile = $"retire-3"; + } + else + { + return Error(retire.GetType().GetProperty("TypeReport").GetValue(retire)); + } + break; + case "EMPLOYEE": + if (string.IsNullOrEmpty(retire.GetType().GetProperty("TypeReport").GetValue(retire))) + { + reportfile = $"retire-emp-1"; + } + else if (retire.GetType().GetProperty("TypeReport").GetValue(retire) == "ADD" || retire.GetType().GetProperty("TypeReport").GetValue(retire) == "EDIT") + { + reportfile = $"retire-emp-2"; + } + else if (retire.GetType().GetProperty("TypeReport").GetValue(retire) == "REMOVE") + { + reportfile = $"retire-emp-3"; + } + else + { + return Error(retire.GetType().GetProperty("TypeReport").GetValue(retire)); + } + break; + default: + return Error(retire.GetType().GetProperty("Type").GetValue(retire)); + } + + var data = new + { + template = reportfile, + reportName = "docx-report", + data = retire + }; + return Success(data); + } + else + { + return NotFound(); + } + } + #endregion } } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 10a83322..5216110c 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -1,5 +1,7 @@ ïŧŋusing BMA.EHR.Application.Repositories; using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Application.Repositories.Reports; +using BMA.EHR.Application.Repositories.Reports; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Retirement; @@ -32,6 +34,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; private readonly PermissionRepository _permission; + private readonly RetireReportRepository _service; public RetirementResignController(RetirementRepository repository, NotificationRepository repositoryNoti, @@ -39,7 +42,8 @@ namespace BMA.EHR.Retirement.Service.Controllers MinIOService documentService, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, - PermissionRepository permission) + PermissionRepository permission, + RetireReportRepository service) { _repository = repository; _repositoryNoti = repositoryNoti; @@ -48,6 +52,7 @@ namespace BMA.EHR.Retirement.Service.Controllers _httpContextAccessor = httpContextAccessor; _configuration = configuration; _permission = permission; + _service = service; } #region " Properties " @@ -2642,5 +2647,46 @@ namespace BMA.EHR.Retirement.Service.Controllers } return Success(); } + + #region 33-āđāļšāļšāļŸāļ­āļĢāđŒāļĄāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ‚āļ­āļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ + /// + /// 33-āđāļšāļšāļŸāļ­āļĢāđŒāļĄāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ‚āļ­āļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ + /// + /// id + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("33/{exportType}/{id}")] + public async Task> GetResign33ConvertReportAsync(Guid id, string exportType = "pdf") + { + try + { + var resign = await _service.GetResignByUser(id); + if (resign == null) + return NotFound(); + + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + var data = new + { + template = "resign", + reportName = "docx-report", + data = resign + }; + return Success(data); + } + catch + { + throw; + } + } + #endregion } } From 056a768ac933ffc0596c7681b56f12135a4806cb Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 3 Feb 2025 17:18:50 +0700 Subject: [PATCH 073/879] report probation --- .../PlacementProbationController.cs | 404 ++++++++++++++++++ 1 file changed, 404 insertions(+) create mode 100644 BMA.EHR.Placement.Service/Controllers/PlacementProbationController.cs diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementProbationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementProbationController.cs new file mode 100644 index 00000000..e88b302b --- /dev/null +++ b/BMA.EHR.Placement.Service/Controllers/PlacementProbationController.cs @@ -0,0 +1,404 @@ +ïŧŋusing BMA.EHR.Application.Repositories; +using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Application.Repositories.Reports; +using BMA.EHR.Domain.Common; +using BMA.EHR.Domain.Extensions; +using BMA.EHR.Domain.Shared; +using BMA.EHR.Infrastructure.Persistence; +using BMA.EHR.Placement.Service.Requests; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using Swashbuckle.AspNetCore.Annotations; +using System.Net.Http.Headers; +using System.Security.Claims; + +namespace BMA.EHR.Placement.Service.Controllers +{ + [Route("api/v{version:apiVersion}/placement/probation")] + [ApiVersion("1.0")] + [ApiController] + [Produces("application/json")] + [Authorize] + [SwaggerTag("report āļ—āļ”āļĨāļ­āļ‡āļ‡āļēāļ™")] + public class PlacementProbationController : BaseController + { + private readonly ApplicationDBContext _context; + private readonly MinIOService _documentService; + private readonly IHttpContextAccessor _httpContextAccessor; + private readonly IConfiguration _configuration; + private readonly PermissionRepository _permission; + private readonly ProbationReportRepository _repository; + + public PlacementProbationController( + ApplicationDBContext context, + MinIOService documentService, + IHttpContextAccessor httpContextAccessor, + IConfiguration configuration, + PermissionRepository permiss, + ProbationReportRepository repository) + { + _context = context; + _documentService = documentService; + _httpContextAccessor = httpContextAccessor; + _configuration = configuration; + _permission = permiss; + _repository = repository; + } + + #region " Properties " + + private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; + + private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; + private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + + #endregion + + #region 13-āđāļšāļšāļĄāļ­āļšāļŦāļĄāļēāļĒāļ‡āļēāļ™āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ + /// + /// 13-āđāļšāļšāļĄāļ­āļšāļŦāļĄāļēāļĒāļ‡āļēāļ™āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ + /// + /// assign id āđāļšāļšāļĄāļ­āļšāļŦāļĄāļēāļĒāļ‡āļēāļ™āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("13/{exportType}/{id}")] + public async Task> GetProbationReportAsync(Guid id, string exportType = "pdf") + { + try + { + + string authorizationHeader = Request.Headers["Authorization"]; + string token = string.Empty; + + if (!string.IsNullOrEmpty(authorizationHeader) && authorizationHeader.StartsWith("Bearer ")) + { + token = authorizationHeader.Substring("Bearer ".Length).Trim(); + var probation = await _repository.GetProbationAssignAsync(id, token); + + if (probation != null) + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + var data = new + { + template = "probation-13", + reportName = "docx-report", + data = probation + }; + return Success(data); + } + else + { + return NotFound(); + } + } + else + { + return Unauthorized(); + } + } + catch + { + throw; + } + } + #endregion + + #region 14-āđāļšāļšāļšāļąāļ™āļ—āļķāļāļœāļĨāļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ āļŠāļģāļŦāļĢāļąāļšāļœāļđāđ‰āļ”āļđāđāļĨ + /// + /// 14-āđāļšāļšāļšāļąāļ™āļ—āļķāļāļœāļĨāļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ āļŠāļģāļŦāļĢāļąāļšāļœāļđāđ‰āļ”āļđāđāļĨ + /// + /// evaluate id + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("14/{exportType}/{id}")] + public async Task> GetProbation14ConvertReportAsync(Guid id, string exportType = "pdf") + { + try + { + string authorizationHeader = Request.Headers["Authorization"]; + string token = string.Empty; + + if (!string.IsNullOrEmpty(authorizationHeader) && authorizationHeader.StartsWith("Bearer ")) + { + token = authorizationHeader.Substring("Bearer ".Length).Trim(); + var evaluateRecord = await _repository.GetEvaluateRecord14_15Async(id, token); + + if (evaluateRecord != null) + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + var data = new + { + template = "probation-14", + reportName = "docx-report", + data = evaluateRecord + }; + return Success(data); + } + else + { + return NotFound(); + } + } + else + { + return Unauthorized(); + } + } + catch + { + throw; + } + } + #endregion + + #region 15-āđāļšāļšāļšāļąāļ™āļ—āļķāļāļœāļĨāļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ āļŠāļģāļŦāļĢāļąāļšāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē + /// + /// 15-āđāļšāļšāļšāļąāļ™āļ—āļķāļāļœāļĨāļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ āļŠāļģāļŦāļĢāļąāļšāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē + /// + /// evaluate id + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("15/{exportType}/{id}")] + public async Task> GetProbation15ConvertReportAsync(Guid id, string exportType = "pdf") + { + try + { + string authorizationHeader = Request.Headers["Authorization"]; + string token = string.Empty; + + if (!string.IsNullOrEmpty(authorizationHeader) && authorizationHeader.StartsWith("Bearer ")) + { + token = authorizationHeader.Substring("Bearer ".Length).Trim(); + var evaluateRecord = await _repository.GetEvaluateRecord14_15Async(id, token); + + if (evaluateRecord != null) + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var data = new + { + template = "probation-15", + reportName = "docx-report", + data = evaluateRecord + }; + return Success(data); + } + else + { + return NotFound(); + } + } + else + { + return Unauthorized(); + } + } + catch + { + throw; + } + } + #endregion + + #region 16-āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨāļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ āļŠāļģāļŦāļĢāļąāļšāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē + /// + /// 16-āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨāļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ āļŠāļģāļŦāļĢāļąāļšāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē + /// + /// evaluate id + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("16/{exportType}/{id}")] + public async Task> GetProbation16ConvertReportAsync(Guid id, string exportType = "pdf") + { + try + { + string authorizationHeader = Request.Headers["Authorization"]; + string token = string.Empty; + + if (!string.IsNullOrEmpty(authorizationHeader) && authorizationHeader.StartsWith("Bearer ")) + { + token = authorizationHeader.Substring("Bearer ".Length).Trim(); + var evaluateAssign = await _repository.GetEvaluateAssignAsync(id, token); + + if (evaluateAssign != null) + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + var data = new + { + template = "probation-16", + reportName = "docx-report", + data = evaluateAssign + }; + return Success(data); + } + else + { + return NotFound(); + } + } + else + { + return Unauthorized(); + } + } + catch + { + throw; + } + } + #endregion + + #region 17-āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨāļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ āļŠāļģāļŦāļĢāļąāļšāļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ + /// + /// 17-āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨāļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ āļŠāļģāļŦāļĢāļąāļšāļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ + /// + /// evaluate id + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("17/{exportType}/{id}")] + public async Task> GetProbation17ConvertReportAsync(Guid id, string exportType = "pdf") + { + try + { + string authorizationHeader = Request.Headers["Authorization"]; + string token = string.Empty; + + if (!string.IsNullOrEmpty(authorizationHeader) && authorizationHeader.StartsWith("Bearer ")) + { + token = authorizationHeader.Substring("Bearer ".Length).Trim(); + var evaluateAssign = await _repository.GetEvaluateChairmanAssignAsync(id, token); + + if (evaluateAssign != null) + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + var data = new + { + template = "probation-17", + reportName = "docx-report", + data = evaluateAssign + }; + return Success(data); + } + else + { + return NotFound(); + } + } + else + { + return Unauthorized(); + } + } + catch + { + throw; + } + } + #endregion + + #region 18-āđāļšāļšāļĢāļēāļĒāļ‡āļēāļ™āļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨāļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ āļŠāļģāļŦāļĢāļąāļšāļ›āļĢāļ°āļ˜āļēāļ™ āđāļĨāļ° āļāļĢāļ“āļĩāļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē + /// + /// 18-āđāļšāļšāļĢāļēāļĒāļ‡āļēāļ™āļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨāļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ āļŠāļģāļŦāļĢāļąāļšāļ›āļĢāļ°āļ˜āļēāļ™ āđāļĨāļ° āļāļĢāļ“āļĩāļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē + /// + /// assign id āđāļšāļšāļĄāļ­āļšāļŦāļĄāļēāļĒāļ‡āļēāļ™āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļĢāļēāļŠāļāļēāļĢ + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("18/{exportType}/{id}/{no}")] + public async Task> GetProbation19ConvertReportAsync(Guid id, int no, string exportType = "pdf") + { + try + { + string authorizationHeader = Request.Headers["Authorization"]; + string token = string.Empty; + + if (!string.IsNullOrEmpty(authorizationHeader) && authorizationHeader.StartsWith("Bearer ")) + { + token = authorizationHeader.Substring("Bearer ".Length).Trim(); + var evaluateAssign = await _repository.GetEvaluateResultAssignAsync(id, no, token); + + if (evaluateAssign != null) + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + var data = new + { + template = no == 1 ? "probation-18-1" : "probation-18-2", + reportName = "docx-report", + data = evaluateAssign + }; + return Success(data); + } + else + { + return NotFound(); + } + } + else + { + return Unauthorized(); + } + } + catch + { + throw; + } + } + #endregion + } +} From ce5f2e338928f261079ffe4a707eb609cd70a362 Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 3 Feb 2025 17:22:27 +0700 Subject: [PATCH 074/879] report de retire --- .../RetirementDeceasedController.cs | 65 +++++++++++++++++-- 1 file changed, 58 insertions(+), 7 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 9ebcf854..7f47b570 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -3,10 +3,6 @@ using BMA.EHR.Application.Repositories.MessageQueue; using BMA.EHR.Application.Repositories.Reports; using BMA.EHR.Application.Responses; using BMA.EHR.Domain.Common; -using BMA.EHR.Domain.Extensions; -using BMA.EHR.Domain.Models.HR; -using BMA.EHR.Domain.Models.MetaData; -using BMA.EHR.Domain.Models.Notifications; using BMA.EHR.Domain.Models.Retirement; using BMA.EHR.Domain.Shared; using BMA.EHR.Infrastructure.Persistence; @@ -18,10 +14,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Swashbuckle.AspNetCore.Annotations; using System.Net.Http.Headers; -using System.Reflection.Metadata; using System.Security.Claims; -using System.Security.Cryptography; -using static Microsoft.EntityFrameworkCore.DbLoggerCategory; namespace BMA.EHR.Retirement.Service.Controllers { @@ -747,5 +740,63 @@ namespace BMA.EHR.Retirement.Service.Controllers return Success(); } + /// + /// 36-āļšāļąāļ™āļ—āļķāļāđ€āļ§āļĩāļĒāļ™āđāļˆāđ‰āļ‡āļāļēāļĢāļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ + /// + /// Id āļĢāļēāļĒāļāļēāļĢāļšāļąāļ™āļ—āļķāļāđ€āļ§āļĩāļĒāļ™āđāļˆāđ‰āļ‡āļāļēāļĢāļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("36/{exportType}/{id}")] + public async Task> GetDeceasedReportAsync(Guid id, string exportType = "pdf") + { + try + { + var head = await _repositoryRetireReport.GetHeadRetirementDeceasedAsync(id); + var detail = await _repositoryRetireReport.GetRetirementDeceasedAsync(id); + if (detail != null && head != null) + { + var mergeData = new + { + Oc = head.GetType().GetProperty("Oc").GetValue(head), + Number = head.GetType().GetProperty("Number").GetValue(head), + Date = head.GetType().GetProperty("Date").GetValue(head), + Subject = head.GetType().GetProperty("Subject").GetValue(head), + Send = head.GetType().GetProperty("Send").GetValue(head), + FullName = detail.GetType().GetProperty("FullName").GetValue(detail), + Position = detail.GetType().GetProperty("Position").GetValue(detail), + Reason = detail.GetType().GetProperty("Reason").GetValue(detail), + DeceasedDate = detail.GetType().GetProperty("Date").GetValue(detail), + CurrentDate = detail.GetType().GetProperty("CurrentDate").GetValue(detail), + DeceasedNumber = detail.GetType().GetProperty("Number").GetValue(detail), + Location = detail.GetType().GetProperty("Location").GetValue(detail), + }; + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + var data = new + { + template = "deceased", + reportName = "docx-report", + data = mergeData + }; + return Success(data); + } + else + { + return NotFound(); + } + } + catch + { + throw; + } + } } } From 800a9a8f509a1b118811e33f7eb0adb656e0e3ee Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 3 Feb 2025 17:30:53 +0700 Subject: [PATCH 075/879] candidate report --- .../Controllers/PlacementController.cs | 95 ++++++++++++++++++- 1 file changed, 94 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 817aaa7d..9b2b3b88 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -15,6 +15,7 @@ using System.Net.Http.Headers; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using static Microsoft.EntityFrameworkCore.DbLoggerCategory; +using BMA.EHR.Application.Repositories.Reports; namespace BMA.EHR.Placement.Service.Controllers { @@ -33,6 +34,8 @@ namespace BMA.EHR.Placement.Service.Controllers private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; private readonly PermissionRepository _permission; + private readonly CandidateReportRepository _service; + private readonly MinIOExamService _minIOExamService; public PlacementController(PlacementRepository repository, NotificationRepository repositoryNoti, @@ -40,7 +43,9 @@ namespace BMA.EHR.Placement.Service.Controllers MinIOService documentService, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, - PermissionRepository permission) + PermissionRepository permission, + CandidateReportRepository service, + MinIOExamService minIOExamService) { _repository = repository; _repositoryNoti = repositoryNoti; @@ -49,6 +54,8 @@ namespace BMA.EHR.Placement.Service.Controllers _httpContextAccessor = httpContextAccessor; _configuration = configuration; _permission = permission; + _service = service; + _minIOExamService = minIOExamService; } #region " Properties " @@ -3281,5 +3288,91 @@ namespace BMA.EHR.Placement.Service.Controllers }; return Success(data); } + #region āđƒāļšāļŠāļĄāļąāļ„āļĢ + /// + /// āđƒāļšāļŠāļĄāļąāļ„āļĢ + /// + /// Id āļœāļđāđ‰āļŠāļĄāļąāļ„āļĢ + /// pdf, docx āļŦāļĢāļ·āļ­ xlsx + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("candidate/{exportType}/{Id}")] + [AllowAnonymous] + public async Task> GetExamCandidate([FromRoute] Guid Id, string exportType = "pdf") + { + var candidate = await _service.GetExamCandidateAsync(Id); + var careers = await _service.GetExamCareerCandidateAsync(Id); + var avatar = await _service.GetExamAvatarCandidateAsync(Id); + if (candidate != null) + { + var picContent = avatar == null ? null : await _minIOExamService.ImagesPath(avatar); + var mapData = new + { + Id = candidate.GetType().GetProperty("Id").GetValue(candidate), + AvatarId = candidate.GetType().GetProperty("AvatarId").GetValue(candidate), + PeriodExamName = candidate.GetType().GetProperty("PeriodExamName").GetValue(candidate), + PeriodExamRound = candidate.GetType().GetProperty("PeriodExamRound").GetValue(candidate), + PeriodExamYear = candidate.GetType().GetProperty("PeriodExamYear").GetValue(candidate), + PositionName = candidate.GetType().GetProperty("PositionName").GetValue(candidate), + PositionLevelName = candidate.GetType().GetProperty("PositionLevelName").GetValue(candidate), + FullName = candidate.GetType().GetProperty("FullName").GetValue(candidate), + Nationality = candidate.GetType().GetProperty("Nationality").GetValue(candidate), + Religion = candidate.GetType().GetProperty("Religion").GetValue(candidate), + CitizenId = candidate.GetType().GetProperty("CitizenId").GetValue(candidate), + DateOfBirth = candidate.GetType().GetProperty("DateOfBirth").GetValue(candidate), + Age = candidate.GetType().GetProperty("Age").GetValue(candidate), + EducationLevelExamName = candidate.GetType().GetProperty("EducationLevelExamName").GetValue(candidate), + EducationName = candidate.GetType().GetProperty("EducationName").GetValue(candidate), + EducationMajor = candidate.GetType().GetProperty("EducationMajor").GetValue(candidate), + EducationLocation = candidate.GetType().GetProperty("EducationLocation").GetValue(candidate), + EducationEndDate = candidate.GetType().GetProperty("EducationEndDate").GetValue(candidate), + EducationScores = candidate.GetType().GetProperty("EducationScores").GetValue(candidate), + EducationType = candidate.GetType().GetProperty("EducationType").GetValue(candidate), + EducationLevelHighName = candidate.GetType().GetProperty("EducationLevelHighName").GetValue(candidate), + ExamIdenNumber = candidate.GetType().GetProperty("ExamIdenNumber").GetValue(candidate), + OccupationPositionType = candidate.GetType().GetProperty("OccupationPositionType").GetValue(candidate), + OccupationPosition = candidate.GetType().GetProperty("OccupationPosition").GetValue(candidate), + OccupationSalary = candidate.GetType().GetProperty("OccupationSalary").GetValue(candidate), + OccupationGroup = candidate.GetType().GetProperty("OccupationGroup").GetValue(candidate), + OccupationPile = candidate.GetType().GetProperty("OccupationPile").GetValue(candidate), + OccupationOrg = candidate.GetType().GetProperty("OccupationOrg").GetValue(candidate), + OccupationTelephone = candidate.GetType().GetProperty("OccupationTelephone").GetValue(candidate), + CareersTotal = candidate.GetType().GetProperty("CareersTotal").GetValue(candidate), + RegistAddress = candidate.GetType().GetProperty("RegistAddress").GetValue(candidate), + RegistProvinceName = candidate.GetType().GetProperty("RegistProvinceName").GetValue(candidate), + RegistDistrictName = candidate.GetType().GetProperty("RegistDistrictName").GetValue(candidate), + RegistSubDistrictName = candidate.GetType().GetProperty("RegistSubDistrictName").GetValue(candidate), + RegistZipCode = candidate.GetType().GetProperty("RegistZipCode").GetValue(candidate), + CurrentAddress = candidate.GetType().GetProperty("CurrentAddress").GetValue(candidate), + CurrentProvinceName = candidate.GetType().GetProperty("CurrentProvinceName").GetValue(candidate), + CurrentDistrictName = candidate.GetType().GetProperty("CurrentDistrictName").GetValue(candidate), + CurrentSubDistrictName = candidate.GetType().GetProperty("CurrentSubDistrictName").GetValue(candidate), + CurrentZipCode = candidate.GetType().GetProperty("CurrentZipCode").GetValue(candidate), + Telephone = candidate.GetType().GetProperty("Telephone").GetValue(candidate), + Email = candidate.GetType().GetProperty("Email").GetValue(candidate), + ContactFullName = candidate.GetType().GetProperty("ContactFullName").GetValue(candidate), + ContactRelations = candidate.GetType().GetProperty("ContactRelations").GetValue(candidate), + ContactTel = candidate.GetType().GetProperty("ContactTel").GetValue(candidate), + RegisterDate = candidate.GetType().GetProperty("RegisterDate").GetValue(candidate), + Url = picContent ?? "https://bma-ehr.frappet.synology.me/assets/avatar_user-89f22423.jpg", + Careers = careers, + }; + + var data = new + { + template = "āļœāļĨāļŠāļ­āļšāļ„āļąāļ”āđ€āļĨāļ·āļ­āļāļĢāļēāļĒāļšāļļāļ„āļ„āļĨ", + reportName = "docx-report", + data = mapData + }; + return Success(data); + } + else + { + return NotFound(); + } + } + #endregion } } From 9ec411eebb03b18cf7018e064feb86d7dbc74b29 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 3 Feb 2025 18:15:18 +0700 Subject: [PATCH 076/879] add api report --- .../Controllers/LeaveReportController.cs | 183 ++++++++++++++++++ 1 file changed, 183 insertions(+) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 1cceb86f..83d3657b 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -920,6 +920,189 @@ namespace BMA.EHR.Leave.Service.Controllers } } + + /// + /// LV2_035 - āļĢāļēāļĒāļ‡āļēāļ™āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ-āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŠāļēāļĄāļąāļ āđāļĨāļ°āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("leavedayRetire")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> GetLeaveDayRetireReport([FromBody] GetLeaveDetailByNodeReportDto req) + { + try + { + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_LEAVE_REPORT"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + var profile = new List(); + profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficerRetireFilter(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.isRetirement??true); + + // get leave day + var leaveDays = await _leaveRequestRepository.GetSumApproveLeaveByTypeAndRange(req.StartDate, req.EndDate); + var leaveTypes = await _leaveTypeRepository.GetAllAsync(); + + var count = 1; + var employees = new List(); + + foreach (var p in profile) + { + var keycloakUserId = p.Keycloak ?? Guid.Empty; + + var sickDay = leaveDays.FirstOrDefault(x => x.KeycloakUserId == keycloakUserId && x.LeaveTypeCode == "LV-001"); + var sickDayCount = sickDay != null ? sickDay.SumLeaveDay : 0; + + var personalDay = leaveDays.FirstOrDefault(x => x.KeycloakUserId == keycloakUserId && x.LeaveTypeCode == "LV-002"); + var personalDayCount = personalDay != null ? personalDay.SumLeaveDay : 0; + + var maternityDay = leaveDays.FirstOrDefault(x => x.KeycloakUserId == keycloakUserId && x.LeaveTypeCode == "LV-003"); + var maternityDayCount = maternityDay != null ? maternityDay.SumLeaveDay : 0; + + var wifeDay = leaveDays.FirstOrDefault(x => x.KeycloakUserId == keycloakUserId && x.LeaveTypeCode == "LV-004"); + var wifeDayCount = wifeDay != null ? wifeDay.SumLeaveDay : 0; + + var restDay = leaveDays.FirstOrDefault(x => x.KeycloakUserId == keycloakUserId && x.LeaveTypeCode == "LV-005"); + var restDayCount = restDay != null ? restDay.SumLeaveDay : 0; + + var ordainDay = leaveDays.FirstOrDefault(x => x.KeycloakUserId == keycloakUserId && x.LeaveTypeCode == "LV-006"); + var ordainDayCount = ordainDay != null ? ordainDay.SumLeaveDay : 0; + + var absentDay = leaveDays.FirstOrDefault(x => x.KeycloakUserId == keycloakUserId && x.LeaveTypeCode == "LV-007"); + var absentDayCount = absentDay != null ? absentDay.SumLeaveDay : 0; + + var studyDay = leaveDays.FirstOrDefault(x => x.KeycloakUserId == keycloakUserId && x.LeaveTypeCode == "LV-008"); + var studyDayCount = studyDay != null ? studyDay.SumLeaveDay : 0; + + var agencyDay = leaveDays.FirstOrDefault(x => x.KeycloakUserId == keycloakUserId && x.LeaveTypeCode == "LV-009"); + var agencyDayCount = agencyDay != null ? agencyDay.SumLeaveDay : 0; + + var coupleDay = leaveDays.FirstOrDefault(x => x.KeycloakUserId == keycloakUserId && x.LeaveTypeCode == "LV-010"); + var coupleDayCount = coupleDay != null ? coupleDay.SumLeaveDay : 0; + + var therapyDay = leaveDays.FirstOrDefault(x => x.KeycloakUserId == keycloakUserId && x.LeaveTypeCode == "LV-011"); + var therapyDayCount = therapyDay != null ? therapyDay.SumLeaveDay : 0; + + var timeStamps = await _processUserTimeStampRepository.GetTimeStampHistoryByRangeForUserAsync(p.Keycloak ?? Guid.Empty, + req.StartDate, + req.EndDate); + + var defaultRound = await _dutyTimeRepository.GetDefaultAsync(); + if (defaultRound == null) + { + return Error("āđ„āļĄāđˆāļžāļšāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē Default", StatusCodes.Status404NotFound); + } + + //var userRound = await _dutyTimeRepository.GetByIdAsync(profile.DutyTimeId ?? Guid.Empty); + var effectiveDate = await _userDutyTimeRepository.GetLastEffectRound(p.Id); + var roundId = effectiveDate != null ? effectiveDate.DutyTimeId : Guid.Empty; + var userRound = await _dutyTimeRepository.GetByIdAsync(roundId); + + var duty = userRound ?? defaultRound; + + var processTimeStamps = timeStamps + .Select(d => new + { + d.Id, + CheckInStatus = DateTime.Parse(d.CheckIn.ToString("yyyy-MM-dd HH:mm")) > + DateTime.Parse($"{d.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.StartTimeMorning}") ? + "LATE" : + "NORMAL", + CheckOutStatus = d.CheckOut == null ? "" : + DateTime.Parse(d.CheckOut.Value.ToString("yyyy-MM-dd HH:mm")) < + DateTime.Parse($"{d.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}") ? + "LATE" : + DateTime.Parse(d.CheckOut.Value.ToString("yyyy-MM-dd HH:mm")) < + DateTime.Parse($"{d.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.EndTimeMorning}") ? + "ABSENT" : + "NORMAL", + }); + + var absentCount = processTimeStamps.Count(x => x.CheckOutStatus == "ABSENT"); + var lateCount = processTimeStamps.Count(x => x.CheckInStatus == "LATE"); + + var emp = new + { + no = count, + fullName = $"{p.Prefix}{p.FirstName} {p.LastName}", + position = p.Position == null ? "" : p.Position, + positionLevel = p.PositionLevel == null ? "" : p.PositionLevel, + posNo = p.PosNo == null ? "" : p.PosNo, + reason = "", + sickDayCount = sickDayCount, + maternityDayCount = maternityDayCount, + wifeDayCount = wifeDayCount, + personalDayCount = personalDayCount, + restDayCount = restDayCount, + ordainDayCount = ordainDayCount, + absentDayCount = absentDayCount, + studyDayCount = studyDayCount, + agencyDayCount = agencyDayCount, + coupleDayCount = coupleDayCount, + therapyDayCount = therapyDayCount, + absentTotal = absentCount, + lateTotal = lateCount, + + leaveTotal = sickDayCount + + maternityDayCount + + wifeDayCount + + personalDayCount + + restDayCount + + ordainDayCount + + absentDayCount + + studyDayCount + + agencyDayCount + + coupleDayCount + + therapyDayCount + }; + + employees.Add(emp); + count++; + } + + var leaveTitleType = ""; + if (req.Type.Trim().ToUpper() == "FULL") + { + leaveTitleType = "āļŦāļ™āļķāđˆāļ‡āļ›āļĩ"; + } + else if (req.Type.Trim().ToUpper() == "HAFT") + { + leaveTitleType = "āļ„āļĢāļķāđˆāļ‡āļ›āļĩ"; + } + else if (req.Type.Trim().ToUpper() == "MONTH") + { + leaveTitleType = "āļŦāļ™āļķāđˆāļ‡āđ€āļ”āļ·āļ­āļ™"; + } + var enddate = req.EndDate.Date == req.StartDate.Date ? "" : $" - {req.EndDate.Date.ToThaiShortDate().ToThaiNumber()}"; + var result = new + { + template = "LeaveYear-Officer", + reportName = "LeaveYear-Officer", + data = new + { + dateTimeStamp = $"āļ§āļąāļ™āļ—āļĩāđˆ {req.StartDate.Date.ToThaiShortDate().ToThaiNumber()}{enddate}", + organizationName = profile?.FirstOrDefault()?.Oc ?? "", + headerText = "āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŠāļēāļĄāļąāļ", + leaveTitleType = leaveTitleType, + employees = employees, + } + }; + + return Success(result); + } + catch (Exception ex) + { + return Error(ex); + } + } + /// /// LV2_037 - āļĢāļēāļĒāļ‡āļēāļ™āļāļēāļĢāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļˆāļģāđāļ™āļāļĢāļēāļĒāļ§āļąāļ™ āļĢāļēāļĒāļŠāļąāļ›āļ”āļēāļŦāđŒ āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™ āđāļĒāļāļĢāļēāļĒāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™/āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ /// From f3328238198153ae5ba6c4d7d8041f40daa1b20a Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 4 Feb 2025 11:14:27 +0700 Subject: [PATCH 077/879] add api report --- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 83d3657b..89d9c367 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -1083,8 +1083,8 @@ namespace BMA.EHR.Leave.Service.Controllers var enddate = req.EndDate.Date == req.StartDate.Date ? "" : $" - {req.EndDate.Date.ToThaiShortDate().ToThaiNumber()}"; var result = new { - template = "LeaveYear-Officer", - reportName = "LeaveYear-Officer", + template = "LeaveYear-OfficerRetire", + reportName = "LeaveYear-OfficerRetire", data = new { dateTimeStamp = $"āļ§āļąāļ™āļ—āļĩāđˆ {req.StartDate.Date.ToThaiShortDate().ToThaiNumber()}{enddate}", From 4988427f9f0b35f63fbd45e30250076ce33bc80a Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 4 Feb 2025 11:29:22 +0700 Subject: [PATCH 078/879] add api report(2) --- .../Repositories/UserProfileRepository.cs | 32 +++++++++++++++++++ .../Reports/GetLeaveDetailByNodeReportDto.cs | 1 + 2 files changed, 33 insertions(+) diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index 7b859ef7..db36e5c9 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -304,6 +304,38 @@ namespace BMA.EHR.Application.Repositories } } + public async Task> GetProfileWithKeycloakAllOfficerRetireFilter(string? accessToken, int? node, string? nodeId, bool isAll, bool? isRetirement) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/keycloak-all-officer"; + var apiKey = _configuration["API_KEY"]; + var body = new + { + node = node, + nodeId = nodeId, + isAll = isAll, + isRetirement = isRetirement, + }; + + var profiles = new List(); + + var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey); + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } + } + public async Task> GetProfileWithKeycloakAllEmployee(string? accessToken, int? node, string? nodeId, bool isAll) { try diff --git a/BMA.EHR.Leave/DTOs/Reports/GetLeaveDetailByNodeReportDto.cs b/BMA.EHR.Leave/DTOs/Reports/GetLeaveDetailByNodeReportDto.cs index 37275320..6d00f073 100644 --- a/BMA.EHR.Leave/DTOs/Reports/GetLeaveDetailByNodeReportDto.cs +++ b/BMA.EHR.Leave/DTOs/Reports/GetLeaveDetailByNodeReportDto.cs @@ -7,5 +7,6 @@ namespace BMA.EHR.Leave.Service.DTOs.Reports public string? Type { get; set; } = string.Empty; public int node { get; set; } public string nodeId { get; set; } + public bool? isRetirement { get; set; } = false; } } \ No newline at end of file From 5ec9580e96691a570a5b2871dc5258053d2f29af Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 4 Feb 2025 11:34:02 +0700 Subject: [PATCH 079/879] =?UTF-8?q?fix=20issue=20#1083=20:=20SIT=20?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=88?= =?UTF-8?q?=E0=B8=B8=20=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9?= =?UTF-8?q?=E0=B8=A5=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=96=E0=B8=B9=E0=B8=81?= =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B6=E0=B8=81=E0=B8=A5?= =?UTF-8?q?=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlacementAppointmentController.cs | 18 ++++++-- .../Controllers/PlacementController.cs | 46 +++++++++++++------ 2 files changed, 47 insertions(+), 17 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index ee60e8d9..9695f2e0 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -742,7 +742,11 @@ namespace BMA.EHR.Placement.Service.Controllers var placementProfiles = await _context.PlacementAppointments .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => + { + profile.Status = "REPORT"; + profile.typeCommand = "APPOINTED"; + }); await _context.SaveChangesAsync(); return Success(); } @@ -977,7 +981,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => req.refIds.Contains(x.Id.ToString())) // .Where(x => x.Status.ToUpper() == "REPORT") .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "PENDING"); + placementProfiles.ForEach(profile => + { + profile.Status = "REPORT"; + profile.typeCommand = "MOVE"; + }); await _context.SaveChangesAsync(); return Success(); } @@ -1587,7 +1595,11 @@ namespace BMA.EHR.Placement.Service.Controllers // .Where(x => x.Placement!.PlacementType!.Name == "āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ") // .Where(x => x.typeCommand.Trim().ToUpper() == "SLIP") .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => + { + profile.Status = "REPORT"; + profile.typeCommand = "SLIP"; + }); await _context.SaveChangesAsync(); return Success(); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 9b2b3b88..c1d26bd2 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1545,7 +1545,11 @@ namespace BMA.EHR.Placement.Service.Controllers // .Where(x => x.Placement!.PlacementType!.Name != "āļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™") // .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINTED") .ToListAsync(); - placementProfiles.ForEach(profile => profile.PlacementStatus = "REPORT"); + placementProfiles.ForEach(profile => + { + profile.PlacementStatus = "REPORT"; + profile.typeCommand = "APPOINTED"; + }); await _context.SaveChangesAsync(); return Success(); } @@ -1874,10 +1878,14 @@ namespace BMA.EHR.Placement.Service.Controllers // .Include(x => x.Placement) // .ThenInclude(x => x.PlacementType) .Where(x => req.refIds.Contains(x.Id.ToString())) - // .Where(x => x.Placement!.PlacementType!.Name != "āļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™") + // .Where(x => x.Placement!.PlacementType!.Name != "āļŠāļ­āļšāļ„āļąāļ”āđ€āļĨāļ·āļ­āļ") // .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINTED") .ToListAsync(); - placementProfiles.ForEach(profile => profile.PlacementStatus = "REPORT"); + placementProfiles.ForEach(profile => + { + profile.PlacementStatus = "REPORT"; + profile.typeCommand = "APPOINTED"; + }); await _context.SaveChangesAsync(); return Success(); } @@ -2200,6 +2208,12 @@ namespace BMA.EHR.Placement.Service.Controllers // .Where(x => x.typeCommand.Trim().ToUpper() == "APPOIN") .ToListAsync(); placementProfiles.ForEach(profile => profile.PlacementStatus = "REPORT"); + placementProfiles.ForEach(profile => + { + profile.PlacementStatus = "REPORT"; + profile.typeCommand = "APPOIN"; + }); + await _context.SaveChangesAsync(); return Success(); } @@ -2430,7 +2444,11 @@ namespace BMA.EHR.Placement.Service.Controllers // .Where(x => x.Placement!.PlacementType!.Name == "āļĒāđ‰āļēāļĒāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ") // .Where(x => x.typeCommand.Trim().ToUpper() == "MOVE") .ToListAsync(); - placementProfiles.ForEach(profile => profile.PlacementStatus = "REPORT"); + placementProfiles.ForEach(profile => + { + profile.PlacementStatus = "REPORT"; + profile.typeCommand = "MOVE"; + }); await _context.SaveChangesAsync(); return Success(); } @@ -2966,11 +2984,11 @@ namespace BMA.EHR.Placement.Service.Controllers x.Status.Trim().ToUpper() == "DONE") .Count(); - var pp_appoint = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; - var pp_slip = placementProfiles.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; + var pp_appoint = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; + var pp_slip = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; var pp_move = placementProfiles.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; - var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; + var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; @@ -3065,11 +3083,11 @@ namespace BMA.EHR.Placement.Service.Controllers x.Status.Trim().ToUpper() == "DONE") .Count(); - var pp_appoint = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; - var pp_slip = placementProfiles.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; + var pp_appoint = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; + var pp_slip = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOIN")?.Count ?? 0; var pp_move = placementProfiles.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; - var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; + var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; @@ -3194,7 +3212,7 @@ namespace BMA.EHR.Placement.Service.Controllers x.CreatedAt.Date <= endDate && x.rootId.Contains(item.rootId) && x.Status.Trim().ToUpper() == "DONE" && - x.type.Trim().ToUpper() == "OFFICER") + x.type.Trim().ToUpper() == "EMPLOYEE") .GroupBy(x => x.typeCommand.Trim().ToUpper()) .Select(g => new { @@ -3203,7 +3221,7 @@ namespace BMA.EHR.Placement.Service.Controllers }) .ToList(); - var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; + var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; @@ -3227,7 +3245,7 @@ namespace BMA.EHR.Placement.Service.Controllers x.CreatedAt.Date <= endDate && x.rootId.Contains(item.rootId) && x.Status.Trim().ToUpper() == "DONE" && - x.type.Trim().ToUpper() == "OFFICER") + x.type.Trim().ToUpper() == "EMPLOYEE") .GroupBy(x => x.typeCommand.Trim().ToUpper()) .Select(g => new { @@ -3236,7 +3254,7 @@ namespace BMA.EHR.Placement.Service.Controllers }) .ToList(); - var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; + var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; From 4fc2ee5ca0a087e21bbaefe45e661e488920311e Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 4 Feb 2025 13:26:25 +0700 Subject: [PATCH 080/879] =?UTF-8?q?fix=20issue=20#1083=20:=20SIT=20?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=88?= =?UTF-8?q?=E0=B8=B8=20=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9?= =?UTF-8?q?=E0=B8=A5=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=96=E0=B8=B9=E0=B8=81?= =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B6=E0=B8=81=E0=B8=A5?= =?UTF-8?q?=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlacementAppointmentController.cs | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 9695f2e0..02809ccb 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -961,7 +961,11 @@ namespace BMA.EHR.Placement.Service.Controllers var placementProfiles = await _context.PlacementAppointments .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => + { + profile.Status = "REPORT"; + profile.typeCommand = "MOVE"; + }); await _context.SaveChangesAsync(); return Success(); } @@ -981,11 +985,7 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => req.refIds.Contains(x.Id.ToString())) // .Where(x => x.Status.ToUpper() == "REPORT") .ToListAsync(); - placementProfiles.ForEach(profile => - { - profile.Status = "REPORT"; - profile.typeCommand = "MOVE"; - }); + placementProfiles.ForEach(profile => profile.Status = "PENDING"); await _context.SaveChangesAsync(); return Success(); } @@ -1181,7 +1181,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => req.refIds.Contains(x.Id.ToString())) // .Where(x => x.type == "EMPLOYEE") .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => + { + profile.Status = "REPORT"; + profile.typeCommand = "SLIP"; + }); await _context.SaveChangesAsync(); return Success(); } @@ -1384,7 +1388,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => req.refIds.Contains(x.Id.ToString())) // .Where(x => x.type == "EMPLOYEE") .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => + { + profile.Status = "REPORT"; + profile.typeCommand = "MOVE"; + }); await _context.SaveChangesAsync(); return Success(); } From a4447b9014ce61d57f68853c19b91ce1a9d7baa5 Mon Sep 17 00:00:00 2001 From: kittapath Date: Tue, 4 Feb 2025 15:37:14 +0700 Subject: [PATCH 081/879] =?UTF-8?q?=E0=B8=84=E0=B8=B3=E0=B8=AA=E0=B8=B1?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B8=A3=E0=B8=B1=E0=B8=81=E0=B8=A9=E0=B8=B2?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/PlacementOfficerController.cs | 3 +++ BMA.EHR.Placement.Service/appsettings.json | 1 + 2 files changed, 4 insertions(+) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 9db7af70..bb3c4798 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -689,6 +689,9 @@ namespace BMA.EHR.Placement.Service.Controllers templateDoc = r.templateDoc, refCommandCode = r.refCommandCode, refCommandName = r.refCommandName, + officerOrg = p.Organization, + dateStart = p.DateStart, + dateEnd = p.DateEnd, }).ToList(); var baseAPIOrg = _configuration["API"]; diff --git a/BMA.EHR.Placement.Service/appsettings.json b/BMA.EHR.Placement.Service/appsettings.json index 571cb1c8..f5dbcd8e 100644 --- a/BMA.EHR.Placement.Service/appsettings.json +++ b/BMA.EHR.Placement.Service/appsettings.json @@ -43,6 +43,7 @@ "Port": "587" }, "Protocol": "HTTPS", + "APIPROBATION": "https://bma-ehr.frappet.synology.me/api/v1/probation", "API": "https://bma-ehr.frappet.synology.me/api/v1", "API_KEY": "fKRL16yyEgbyTEJdsMw2h64tGSCmkW685PRtM3CygzX1JOSdptT9UJtpgWwKM8FybRTJups3GTFwj27ZRvlPdIkv3XgCoVJaD5LmR06ozuEPvCCRSdp2WFthg08V5xHc56fTPfZLpr1VmXrhd6dvYhHIqKkQUJR02Rlkss11cLRWEQOssEFVA4xdu2J5DIRO1EM5m7wRRvEwcDB4mYRXD9HH52SMq6iYqUWEWsMwLdbk7QW9yYESUEuzMW5gWrb6vIeWZxJV5bTz1PcWUyR7eO9Fyw1F5DiQYc9JgzTC1mW7cv31fEtTtrfbJYKIb5EbWilqIEUKC6A0UKBDDek35ML0006cqRVm0pvdOH6jeq7VQyYrhdXe59dBEyhYGUIfozoVBvW7Up4QBuOMjyPjSqJPlMBKwaseptfrblxQV1AOOivSBpf1ZcQyOZ8JktRtKUDSuXsmG0lsXwFlI3JCeSHdpVdgZWFYcJPegqfrB6KotR02t9AVkpLs1ZWrixwz" } \ No newline at end of file From 74281c697cc7e73f988eeb01bf1d33df4e580de9 Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 4 Feb 2025 16:30:08 +0700 Subject: [PATCH 082/879] migrate (add table PlacementAppointmentEmployee) --- .../Placement/PlacementAppointmentEmployee.cs | 29 + ...table placementAppointEmployee.Designer.cs | 19591 ++++++++++++++++ ...2259_add table placementAppointEmployee.cs | 60 + .../ApplicationDBContextModelSnapshot.cs | 84 + .../Persistence/ApplicationDBContext.cs | 1 + .../ReportExecutePlacementAppointRequest.cs | 21 + 6 files changed, 19786 insertions(+) create mode 100644 BMA.EHR.Domain/Models/Placement/PlacementAppointmentEmployee.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250204092259_add table placementAppointEmployee.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250204092259_add table placementAppointEmployee.cs create mode 100644 BMA.EHR.Placement.Service/Requests/ReportExecutePlacementAppointRequest.cs diff --git a/BMA.EHR.Domain/Models/Placement/PlacementAppointmentEmployee.cs b/BMA.EHR.Domain/Models/Placement/PlacementAppointmentEmployee.cs new file mode 100644 index 00000000..0b4a0721 --- /dev/null +++ b/BMA.EHR.Domain/Models/Placement/PlacementAppointmentEmployee.cs @@ -0,0 +1,29 @@ +ïŧŋusing Microsoft.EntityFrameworkCore; +using BMA.EHR.Domain.Models.Base; + +namespace BMA.EHR.Domain.Models.Placement +{ + public class PlacementAppointmentEmployee : EntityBase + { + [Comment("profile Id")] + public string? profileId { get; set; } + [Comment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē")] + public string? prefix { get; set; } + [Comment("āļŠāļ·āđˆāļ­")] + public string? firstName { get; set; } + [Comment("āļ™āļēāļĄāļŠāļāļļāļĨ")] + public string? lastName { get; set; } + [Comment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™")] + public string? citizenId { get; set; } + + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? root { get; set; } + + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? rootId { get; set; } + + [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? rootShortName { get; set; } + + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250204092259_add table placementAppointEmployee.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250204092259_add table placementAppointEmployee.Designer.cs new file mode 100644 index 00000000..b750c1ee --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250204092259_add table placementAppointEmployee.Designer.cs @@ -0,0 +1,19591 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250204092259_add table placementAppointEmployee")] + partial class addtableplacementAppointEmployee + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250204092259_add table placementAppointEmployee.cs b/BMA.EHR.Infrastructure/Migrations/20250204092259_add table placementAppointEmployee.cs new file mode 100644 index 00000000..26ae23fd --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250204092259_add table placementAppointEmployee.cs @@ -0,0 +1,60 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class addtableplacementAppointEmployee : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "PlacementAppointmentEmployee", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + profileId = table.Column(type: "longtext", nullable: true, comment: "profile Id") + .Annotation("MySql:CharSet", "utf8mb4"), + prefix = table.Column(type: "longtext", nullable: true, comment: "āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē") + .Annotation("MySql:CharSet", "utf8mb4"), + firstName = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­") + .Annotation("MySql:CharSet", "utf8mb4"), + lastName = table.Column(type: "longtext", nullable: true, comment: "āļ™āļēāļĄāļŠāļāļļāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + citizenId = table.Column(type: "longtext", nullable: true, comment: "āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™") + .Annotation("MySql:CharSet", "utf8mb4"), + root = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4"), + rootId = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4"), + rootShortName = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_PlacementAppointmentEmployee", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "PlacementAppointmentEmployee"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 796a74d3..cb636588 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -11723,6 +11723,90 @@ namespace BMA.EHR.Infrastructure.Migrations b.ToTable("PlacementAppointmentDocs"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => { b.Property("Id") diff --git a/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs b/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs index 8e18b165..b6e1fb75 100644 --- a/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs +++ b/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs @@ -262,6 +262,7 @@ namespace BMA.EHR.Infrastructure.Persistence public DbSet PlacementReceives { get; set; } public DbSet PlacementRelocations { get; set; } public DbSet PlacementAppointments { get; set; } + public DbSet PlacementAppointmentEmployee { get; set; } public DbSet PlacementTransferDocs { get; set; } public DbSet PlacementReceiveDocs { get; set; } public DbSet PlacementRelocationDocs { get; set; } diff --git a/BMA.EHR.Placement.Service/Requests/ReportExecutePlacementAppointRequest.cs b/BMA.EHR.Placement.Service/Requests/ReportExecutePlacementAppointRequest.cs new file mode 100644 index 00000000..d19dfb81 --- /dev/null +++ b/BMA.EHR.Placement.Service/Requests/ReportExecutePlacementAppointRequest.cs @@ -0,0 +1,21 @@ +using BMA.EHR.Domain.Models.MetaData; +using Microsoft.EntityFrameworkCore; + +namespace BMA.EHR.Placement.Service.Requests +{ + public class ReportExecutePlacementAppointRequest + { + public ReportExecutePlacementAppointRequestObj[] profileEmps { get; set; } + } + public class ReportExecutePlacementAppointRequestObj + { + public string? profileId { get; set; } + public string? prefix { get; set; } + public string? firstName { get; set; } + public string? lastName { get; set; } + public string? citizenId { get; set; } + public string? root { get; set; } + public string? rootId { get; set; } + public string? rootShortName { get; set; } + } +} From 08c144066b26bd37168ecae0fead67824c6264f1 Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 4 Feb 2025 17:20:40 +0700 Subject: [PATCH 083/879] =?UTF-8?q?fix=20SIT=20=E0=B8=A3=E0=B8=B2=E0=B8=A2?= =?UTF-8?q?=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A?= =?UTF-8?q?=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=88=E0=B8=B8=20=E0=B9=81?= =?UTF-8?q?=E0=B8=95=E0=B9=88=E0=B8=87=E0=B8=95=E0=B8=B1=E0=B9=89=E0=B8=87?= =?UTF-8?q?=20=E0=B8=A2=E0=B9=89=E0=B8=B2=E0=B8=A2=20=E0=B9=82=E0=B8=AD?= =?UTF-8?q?=E0=B8=99>>=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2?= =?UTF-8?q?=E0=B8=99=E0=B8=88=E0=B8=B3=E0=B8=99=E0=B8=A7=E0=B8=99=E0=B8=A5?= =?UTF-8?q?=E0=B8=B9=E0=B8=81=E0=B8=88=E0=B9=89=E0=B8=B2=E0=B8=87=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B8=88=E0=B8=B3=20=E0=B8=81=E0=B8=97?= =?UTF-8?q?=E0=B8=A1.=20=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B9=84=E0=B8=94?= =?UTF-8?q?=E0=B9=89=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=88=E0=B9=89=E0=B8=B2=E0=B8=87=20=E0=B9=81=E0=B8=95?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B8=95=E0=B8=B1=E0=B9=89=E0=B8=87=E0=B9=81?= =?UTF-8?q?=E0=B8=A5=E0=B8=B0=E0=B8=A2=E0=B9=89=E0=B8=B2=E0=B8=A2=20(?= =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B9=84?= =?UTF-8?q?=E0=B8=A1=E0=B9=88=E0=B8=96=E0=B8=B9=E0=B8=81=E0=B8=9A=E0=B8=B1?= =?UTF-8?q?=E0=B8=99=E0=B8=97=E0=B8=B6=E0=B8=81=E0=B8=A5=E0=B8=87=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99)=20#1085?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlacementAppointmentController.cs | 41 +++++++++++++++++++ .../Controllers/PlacementController.cs | 20 ++++++++- 2 files changed, 59 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 02809ccb..57fbd85e 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -1815,5 +1815,46 @@ namespace BMA.EHR.Placement.Service.Controllers } return Success(); } + + /// + /// āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡ C-PM-21 āļ„āļģāļŠāļąāđˆāļ‡āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļŠāļąāđˆāļ§āļ„āļĢāļēāļ§āđ€āļ›āđ‡āļ™āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ (āđƒāļŠāđ‰āļŠāļģāļŦāļĢāļąāļšāļĢāļēāļĒāļ‡āļēāļ™āļˆāļģāļ™āļ§āļ™āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ āļāļ—āļĄ. āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļˆāđ‰āļēāļ‡ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āđāļĨāļ°āļĒāđ‰āļēāļĒ) + /// + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("employee-appoint-21/report/excecute")] + public async Task> PostReportAppointExecute([FromBody] ReportExecutePlacementAppointRequest req) + { + + if (req == null || req.profileEmps.Length == 0) + return Error("āđ„āļĄāđˆāļžāļšāļĢāļēāļĒāļŠāļ·āđˆāļ­āļĢāļēāļĒāļāļēāļĢāđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļŠāļąāđˆāļ§āļ„āļĢāļēāļ§āđ€āļ›āđ‡āļ™āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ", 404); + + foreach (var profile in req.profileEmps) + { + var placementAppointEmployee = new PlacementAppointmentEmployee + { + profileId = profile.profileId, + prefix = profile.prefix, + firstName = profile.firstName, + lastName = profile.lastName, + citizenId = profile.citizenId, + root = profile.root, + rootId = profile.rootId, + rootShortName = profile.rootShortName, + + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }; + await _context.PlacementAppointmentEmployee.AddAsync(placementAppointEmployee); + } + await _context.SaveChangesAsync(); + return Success(); + } } } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index c1d26bd2..6fe0ae1d 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -3221,7 +3221,15 @@ namespace BMA.EHR.Placement.Service.Controllers }) .ToList(); - var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; + var pae_count = _context.PlacementAppointmentEmployee + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootId.Contains(item.rootId)) + .Count(); + + //var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; + var pa_appoint = pae_count; var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; @@ -3254,7 +3262,15 @@ namespace BMA.EHR.Placement.Service.Controllers }) .ToList(); - var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; + var pae_count = _context.PlacementAppointmentEmployee + .Where(x => + x.CreatedAt.Date >= startDate && + x.CreatedAt.Date <= endDate && + x.rootId.Contains(item.rootId)) + .Count(); + + //var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; + var pa_appoint = pae_count; var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; From dbe69167826460e1b4885d1d882733b3bf4aac06 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 5 Feb 2025 09:25:33 +0700 Subject: [PATCH 084/879] add field rootDnaId --- .../Models/Placement/PlacementAppointmentEmployee.cs | 3 +++ .../Controllers/PlacementAppointmentController.cs | 1 + .../Requests/ReportExecutePlacementAppointRequest.cs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/BMA.EHR.Domain/Models/Placement/PlacementAppointmentEmployee.cs b/BMA.EHR.Domain/Models/Placement/PlacementAppointmentEmployee.cs index 0b4a0721..e6d22771 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementAppointmentEmployee.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementAppointmentEmployee.cs @@ -25,5 +25,8 @@ namespace BMA.EHR.Domain.Models.Placement [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootShortName { get; set; } + [Comment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰")] + public string? rootDnaId { get; set; } + } } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 57fbd85e..87cecbea 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -1843,6 +1843,7 @@ namespace BMA.EHR.Placement.Service.Controllers root = profile.root, rootId = profile.rootId, rootShortName = profile.rootShortName, + rootDnaId = profile.rootDnaId, CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", diff --git a/BMA.EHR.Placement.Service/Requests/ReportExecutePlacementAppointRequest.cs b/BMA.EHR.Placement.Service/Requests/ReportExecutePlacementAppointRequest.cs index d19dfb81..96f0905a 100644 --- a/BMA.EHR.Placement.Service/Requests/ReportExecutePlacementAppointRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/ReportExecutePlacementAppointRequest.cs @@ -17,5 +17,7 @@ namespace BMA.EHR.Placement.Service.Requests public string? root { get; set; } public string? rootId { get; set; } public string? rootShortName { get; set; } + public string? rootDnaId { get; set; } + } } From 2490c549e1cdb384e9f14da5a04e7a733397769b Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 5 Feb 2025 13:40:12 +0700 Subject: [PATCH 085/879] =?UTF-8?q?fix=20=E0=B8=A3=E0=B8=B2=E0=B8=A2?= =?UTF-8?q?=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A?= =?UTF-8?q?=E0=B8=A7=E0=B8=B4=E0=B8=99=E0=B8=B1=E0=B8=A2=E0=B9=84=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B8=AA=E0=B8=B2=E0=B8=A1=E0=B8=B2=E0=B8=A3=E0=B8=96?= =?UTF-8?q?=E0=B8=94=E0=B8=B2=E0=B8=A7=E0=B8=99=E0=B9=8C=E0=B9=82=E0=B8=AB?= =?UTF-8?q?=E0=B8=A5=E0=B8=94=E0=B9=80=E0=B8=AD=E0=B8=81=E0=B8=AA=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B9=84=E0=B8=94=E0=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/DisciplineReportController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs index 599a0ae8..f819e6a0 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs @@ -95,13 +95,13 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers .ToListAsync(); if (req.status.Trim().ToUpper() != "ALL") - data_search = data_search.Where(x => x.Status.Contains(req.status.Trim().ToUpper())).ToList(); + data_search = data_search.Where(x => x.Status != null && x.Status.Contains(req.status.Trim().ToUpper())).ToList(); if (req.offenseDetail.Trim().ToUpper() != "ALL") - data_search = data_search.Where(x => x.OffenseDetails.Contains(req.status.Trim().ToUpper())).ToList(); + data_search = data_search.Where(x => x.OffenseDetails != null && x.OffenseDetails.Contains(req.status.Trim().ToUpper())).ToList(); if (req.disciplinaryFaultLevel.Trim().ToUpper() != "ALL") - data_search = data_search.Where(x => x.DisciplinaryFaultLevel.Contains(req.status.Trim().ToUpper())).ToList(); + data_search = data_search.Where(x => x.DisciplinaryFaultLevel != null && x.DisciplinaryFaultLevel.Contains(req.status.Trim().ToUpper())).ToList(); var mapData = data_search .SelectMany((d) => d.DisciplineDisciplinary_ProfileComplaintInvestigates.Select((profile) => new From 5ea175ca774bb9d62b9c120bed3b760863c40545 Mon Sep 17 00:00:00 2001 From: kittapath Date: Wed, 5 Feb 2025 17:48:58 +0700 Subject: [PATCH 086/879] add dna --- .../Repositories/InsigniaPeriodsRepository.cs | 1118 + .../Reports/InsigniaReportRepository.cs | 114 +- .../Requests/InsigniaResultSet.cs | 13 + .../Profiles/GetProfileByKeycloakIdDto.cs | 5 + .../Profiles/GetProfileByRootIdDto.cs | 13 + .../DisciplineComplaintController.cs | 20 + .../DisciplineDisciplinaryController.cs | 15 + .../DisciplineInvestigateController.cs | 45 +- .../Controllers/DisciplineResultController.cs | 5 + .../DisciplineSuspendController.cs | 12 +- .../Requests/DisciplineComplaintRequest.cs | 5 + .../DisciplineDisciplinaryComplaintRequest.cs | 5 + .../DisciplineInvestigateComplaintRequest.cs | 5 + .../Discipline/DisciplineComplaint_Profile.cs | 10 + ...isciplinary_ProfileComplaintInvestigate.cs | 10 + .../DisciplineInvestigate_ProfileComplaint.cs | 10 + .../Discipline/DisciplineReport_Profile.cs | 10 + .../Models/Insignias/InsigniaNoteProfile.cs | 5 + .../Insignias/InsigniaRequestProfile.cs | 5 + .../Models/Placement/PlacementAppointment.cs | 10 + .../Placement/PlacementAppointmentEmployee.cs | 8 + .../Models/Placement/PlacementOfficer.cs | 10 + .../Models/Placement/PlacementProfile.cs | 10 + .../Models/Placement/PlacementReceive.cs | 10 + .../Models/Placement/PlacementRepatriation.cs | 10 + .../Models/Placement/PlacementTransfer.cs | 10 + .../Models/Retirement/RetirementDeceased.cs | 10 + .../Models/Retirement/RetirementOther.cs | 10 + .../Models/Retirement/RetirementOut.cs | 9 + .../Models/Retirement/RetirementProfile.cs | 10 + .../Models/Retirement/RetirementResign.cs | 10 + .../Retirement/RetirementResignEmployee.cs | 10 + ...e placementProfile add dnaroot.Designer.cs | 19751 +++++++++++++++ ...date table placementProfile add dnaroot.cs | 498 + ... placementProfile add dnaroot1.Designer.cs | 19850 +++++++++++++++ ...ate table placementProfile add dnaroot1.cs | 317 + ... placementProfile add dnaroot2.Designer.cs | 19880 ++++++++++++++++ ...ate table placementProfile add dnaroot2.cs | 129 + .../ApplicationDBContextModelSnapshot.cs | 289 + ...te table disciplinecom add dna.Designer.cs | 3459 +++ ...4627_update table disciplinecom add dna.cs | 258 + .../DisciplineDbContextModelSnapshot.cs | 80 + .../Controllers/InsigniaRequestController.cs | 20 + .../PlacementAppointmentController.cs | 19 +- .../PlacementAppointmentEmployeeController.cs | 5 + .../Controllers/PlacementController.cs | 123 +- .../Controllers/PlacementOfficerController.cs | 5 + .../Controllers/PlacementReceiveController.cs | 5 + .../PlacementRepatriationController.cs | 5 + .../PlacementTransferController.cs | 5 + .../Requests/NodeAllRequest.cs | 5 + .../Requests/OrgRequest.cs | 5 + .../ReportExecutePlacementAppointRequest.cs | 4 + .../Controllers/RetirementController.cs | 154 +- .../RetirementDeceasedController.cs | 10 + .../Controllers/RetirementOtherController.cs | 5 + .../Controllers/RetirementOutController.cs | 5 + .../Controllers/RetirementResignController.cs | 5 + .../RetirementResignEmployeeController.cs | 5 + .../Requests/NodeAllRequest.cs | 5 + .../Requests/OrgRequest.cs | 5 + 61 files changed, 66329 insertions(+), 129 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250205065119_update table placementProfile add dnaroot.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250205065119_update table placementProfile add dnaroot.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250205090626_update table placementProfile add dnaroot1.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250205090626_update table placementProfile add dnaroot1.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250205102008_update table placementProfile add dnaroot2.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250205102008_update table placementProfile add dnaroot2.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250205104627_update table disciplinecom add dna.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250205104627_update table disciplinecom add dna.cs diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 4965bc4a..f11ba201 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -291,7 +291,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount ?? 0, Amount = p.Amount ?? 0, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }); // check āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļ°āļ•āđ‰āļ­āļ‡āļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 29/5/āļ›āļĩ-8 āļ‚āļ­ āļšāļĄ. @@ -325,7 +338,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, RequestInsignia = GetInsigniaByName("āđ€āļšāļāļˆāļĄāļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), Seq = 1, Gender = p.Gender, @@ -383,7 +409,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount ?? 0, Amount = p.Amount ?? 0, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, LastInsignia = p.ProfileInsignia == null || p.ProfileInsignia.Count == 0 ? null : p.ProfileInsignia!.OrderByDescending(x => x.Year).FirstOrDefault()! @@ -435,7 +474,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, RequestInsignia = GetInsigniaByName("āđ€āļšāļāļˆāļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), Seq = 2, Gender = p.Gender, @@ -514,7 +566,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount ?? 0, Amount = p.Amount ?? 0, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(x => (x.SalaryCondition >= 8340 && x.SalaryCondition < 10150) && !x.IsHigherLevel) @@ -560,7 +625,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList(); @@ -687,7 +765,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount ?? 0, Amount = p.Amount ?? 0, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }); var s1 = ((from p in inst_profile @@ -722,7 +813,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -803,7 +907,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount ?? 0, Amount = p.Amount ?? 0, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(x => (x.SalaryCondition >= 10150) && !x.IsHigherLevel) @@ -834,7 +951,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -907,7 +1037,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(x => (x.SalaryCondition >= 10150) && !x.IsHigherLevel) @@ -938,7 +1081,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount ?? 0, Amount = p.Amount ?? 0, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -1087,7 +1243,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }); // check āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļ°āļ•āđ‰āļ­āļ‡āļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 29/5/āļ›āļĩ-5 @@ -1124,7 +1293,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -1194,7 +1376,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(x => x.SalaryCondition < 10190 && !x.IsHigherLevel) @@ -1225,7 +1420,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -1309,7 +1517,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(x => x.SalaryCondition >= 10190 && !x.IsHigherLevel) @@ -1339,7 +1560,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -1417,7 +1651,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(x => x.SalaryCondition >= 10190 && !x.IsHigherLevel) @@ -1448,7 +1695,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -1634,7 +1894,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Select(p => new InsigniaResultSet @@ -1663,7 +1936,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -1747,7 +2033,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(x => x.FirstPositonLevelDate < new DateTime(period.Year - 5, 5, 29)) @@ -1777,7 +2076,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -1927,7 +2239,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Select(p => new InsigniaResultSet @@ -1956,7 +2281,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -2040,7 +2378,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(x => x.FirstPositonLevelDate < new DateTime(period.Year - 5, 5, 29)) @@ -2070,7 +2421,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -2221,7 +2585,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Select(p => new InsigniaResultSet @@ -2250,7 +2627,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -2342,7 +2732,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(x => x.FirstRecvInsigniaYear != 0 && x.FirstRecvInsigniaYear <= period.Year - 3) @@ -2372,7 +2775,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -2465,7 +2881,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(x => x.FirstRecvInsigniaYear != 0 && x.FirstRecvInsigniaYear <= period.Year - 5) @@ -2495,7 +2924,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -2673,7 +3115,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Select(p => new InsigniaResultSet @@ -2702,7 +3157,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -2840,7 +3308,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Select(p => new InsigniaResultSet @@ -2869,7 +3350,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -2960,7 +3454,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.SalaryCondition >= 22140) @@ -2990,7 +3497,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -3083,7 +3603,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.SalaryCondition >= 22140) @@ -3113,7 +3646,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -3290,7 +3836,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Select(p => new InsigniaResultSet @@ -3407,7 +3966,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.SalaryCondition >= 58390) @@ -3438,7 +4010,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -3602,7 +4187,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Select(p => new InsigniaResultSet @@ -3631,7 +4229,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -3724,7 +4335,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -3754,7 +4378,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -3846,7 +4483,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -3876,7 +4526,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -4052,7 +4715,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(x => x.FirstRecvInsigniaYear != 0 && x.FirstRecvInsigniaYear <= period.Year - 3) @@ -4083,7 +4759,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -4181,7 +4870,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -4212,7 +4914,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -4310,7 +5025,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -4341,7 +5069,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -4520,7 +5261,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(x => x.FirstRecvInsigniaYear != 0 && x.FirstRecvInsigniaYear <= period.Year - 3) @@ -4551,7 +5305,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -4649,7 +5416,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -4680,7 +5460,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -4776,7 +5569,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -4807,7 +5613,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -4983,7 +5802,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Select(p => new InsigniaResultSet @@ -5012,7 +5844,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -5104,7 +5949,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.SalaryCondition >= 58390) @@ -5135,7 +5993,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -5294,7 +6165,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -5324,7 +6208,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -5417,7 +6314,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -5447,7 +6357,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -5541,7 +6464,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -5571,7 +6507,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -5744,7 +6693,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -5774,7 +6736,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -5867,7 +6842,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -5897,7 +6885,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -5990,7 +6991,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -6020,7 +7034,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -6164,7 +7191,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -6195,7 +7235,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -6293,7 +7346,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -6324,7 +7390,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -6420,7 +7499,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -6451,7 +7543,20 @@ namespace BMA.EHR.Application.Repositories PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, RootId = p.RootId, + RootDnaId = p.RootDnaId, Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, MatchingConditions = new List { new MatchingCondition @@ -7151,6 +8256,19 @@ namespace BMA.EHR.Application.Repositories LastInsigniaName = item.LastInsignia, Root = item.Root, RootId = item.RootId, + RootDnaId = item.RootDnaId, + Child1 = item.Child1, + Child1Id = item.Child1Id, + Child1DnaId = item.Child1DnaId, + Child2 = item.Child2, + Child2Id = item.Child2Id, + Child2DnaId = item.Child2DnaId, + Child3 = item.Child3, + Child3Id = item.Child3Id, + Child3DnaId = item.Child3DnaId, + Child4 = item.Child4, + Child4Id = item.Child4Id, + Child4DnaId = item.Child4DnaId, }); } diff --git a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs index da4809da..3910c8ab 100644 --- a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs @@ -776,40 +776,40 @@ namespace BMA.EHR.Application.Repositories.Reports .Where(x => x.RequestInsignia.InsigniaType != null) .Where(x => x.RequestInsignia.InsigniaType.Name == "āđ€āļŦāļĢāļĩāļĒāļāļšāļģāđ€āļŦāļ™āđ‡āļˆāđƒāļ™āļĢāļēāļŠāļāļēāļĢ"); - if (type == "officer") - { - data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "officer"); - } - else if (type == "employee") - { - data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "employee"); - } + if (type == "officer") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "officer"); + } + else if (type == "employee") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "employee"); + } - switch (node) - { - case 0: - data_insigniaQuery = data_insigniaQuery.Where(r => r.RootId == nodeId); - break; + switch (node) + { + case 0: + data_insigniaQuery = data_insigniaQuery.Where(r => r.RootDnaId == nodeId); + break; - case 1: - data_insigniaQuery = data_insigniaQuery.Where(r => r.Child1Id == nodeId); - break; + case 1: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child1DnaId == nodeId); + break; - case 2: - data_insigniaQuery = data_insigniaQuery.Where(r => r.Child2Id == nodeId); - break; + case 2: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child2DnaId == nodeId); + break; - case 3: - data_insigniaQuery = data_insigniaQuery.Where(r => r.Child3Id == nodeId); - break; + case 3: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child3DnaId == nodeId); + break; - case 4: - data_insigniaQuery = data_insigniaQuery.Where(r => r.Child4Id == nodeId); - break; + case 4: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child4DnaId == nodeId); + break; - default: - break; - } + default: + break; + } var data = await data_insigniaQuery .Select(x => new { @@ -909,7 +909,7 @@ namespace BMA.EHR.Application.Repositories.Reports && r.Status == "PENDING" && r.RequestInsignia.InsigniaType != null && r.RequestInsignia.InsigniaType.Name != "āđ€āļŦāļĢāļĩāļĒāļāļšāļģāđ€āļŦāļ™āđ‡āļˆāđƒāļ™āļĢāļēāļŠāļāļēāļĢ" - select new + select new { Male = r.Gender == "āļŠāļēāļĒ" ? 1 : 0, Female = r.Gender == "āļŦāļāļīāļ‡" ? 1 : 0, @@ -920,7 +920,7 @@ namespace BMA.EHR.Application.Repositories.Reports .Include(x => x.Request) .ThenInclude(x => x.Period) .Include(x => x.Request) - /*.ThenInclude(x => x.Organization)*/ + /*.ThenInclude(x => x.Organization)*/ .Include(x => x.RequestInsignia) .ThenInclude(x => x.InsigniaType) .Where(r => r.Request.Period == period @@ -941,23 +941,23 @@ namespace BMA.EHR.Application.Repositories.Reports switch (node) { case 0: - dataQuery = dataQuery.Where(r => r.RootId == nodeId); + dataQuery = dataQuery.Where(r => r.RootDnaId == nodeId); break; case 1: - dataQuery = dataQuery.Where(r => r.Child1Id == nodeId); + dataQuery = dataQuery.Where(r => r.Child1DnaId == nodeId); break; case 2: - dataQuery = dataQuery.Where(r => r.Child2Id == nodeId); + dataQuery = dataQuery.Where(r => r.Child2DnaId == nodeId); break; case 3: - dataQuery = dataQuery.Where(r => r.Child3Id == nodeId); + dataQuery = dataQuery.Where(r => r.Child3DnaId == nodeId); break; case 4: - dataQuery = dataQuery.Where(r => r.Child4Id == nodeId); + dataQuery = dataQuery.Where(r => r.Child4DnaId == nodeId); break; default: @@ -1069,7 +1069,7 @@ namespace BMA.EHR.Application.Repositories.Reports .Where(x => x.IsApprove == true) .Where(x => x.Status == "PENDING") .Where(x => x.RequestInsignia.InsigniaType != null); - /*.Where(x => x.RequestInsignia.InsigniaType.Name == "āđ€āļŦāļĢāļĩāļĒāļāļšāļģāđ€āļŦāļ™āđ‡āļˆāđƒāļ™āļĢāļēāļŠāļāļēāļĢ");*/ + /*.Where(x => x.RequestInsignia.InsigniaType.Name == "āđ€āļŦāļĢāļĩāļĒāļāļšāļģāđ€āļŦāļ™āđ‡āļˆāđƒāļ™āļĢāļēāļŠāļāļēāļĢ");*/ if (type == "officer") { @@ -1083,23 +1083,23 @@ namespace BMA.EHR.Application.Repositories.Reports switch (node) { case 0: - data_insigniaQuery = data_insigniaQuery.Where(r => r.RootId == nodeId); + data_insigniaQuery = data_insigniaQuery.Where(r => r.RootDnaId == nodeId); break; case 1: - data_insigniaQuery = data_insigniaQuery.Where(r => r.Child1Id == nodeId); + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child1DnaId == nodeId); break; case 2: - data_insigniaQuery = data_insigniaQuery.Where(r => r.Child2Id == nodeId); + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child2DnaId == nodeId); break; case 3: - data_insigniaQuery = data_insigniaQuery.Where(r => r.Child3Id == nodeId); + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child3DnaId == nodeId); break; case 4: - data_insigniaQuery = data_insigniaQuery.Where(r => r.Child4Id == nodeId); + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child4DnaId == nodeId); break; default: @@ -1145,22 +1145,22 @@ namespace BMA.EHR.Application.Repositories.Reports } }*/ var insignia = data.Select((r, index) => new - { - RowNo = (index + 1).ToNumericText().ToThaiNumber(), - FullName = r.FullName, - RequestInsigniaName = r.RequestInsigniaName, - ResultY1APR = "-", - ResultY1OCT = "-", - ResultY2APR = "-", - ResultY2OCT = "-", - ResultY3APR = "-", - ResultY3OCT = "-", - ResultY4APR = "-", - ResultY4OCT = "-", - ResultY5APR = "-", - ResultY5OCT = "-", - Remark = "", - }).ToList(); + { + RowNo = (index + 1).ToNumericText().ToThaiNumber(), + FullName = r.FullName, + RequestInsigniaName = r.RequestInsigniaName, + ResultY1APR = "-", + ResultY1OCT = "-", + ResultY2APR = "-", + ResultY2OCT = "-", + ResultY3APR = "-", + ResultY3OCT = "-", + ResultY4APR = "-", + ResultY4OCT = "-", + ResultY5APR = "-", + ResultY5OCT = "-", + Remark = "", + }).ToList(); return insignia; } diff --git a/BMA.EHR.Application/Requests/InsigniaResultSet.cs b/BMA.EHR.Application/Requests/InsigniaResultSet.cs index 608e9b4c..35dbb596 100644 --- a/BMA.EHR.Application/Requests/InsigniaResultSet.cs +++ b/BMA.EHR.Application/Requests/InsigniaResultSet.cs @@ -52,7 +52,20 @@ namespace BMA.EHR.Application.Requests public double? Amount { get; set; } public double? PositionSalaryAmount { get; set; } public Guid? RootId { get; set; } + public Guid? RootDnaId { get; set; } public string? Root { get; set; } + public Guid? Child1Id { get; set; } + public Guid? Child1DnaId { get; set; } + public string? Child1 { get; set; } + public Guid? Child2Id { get; set; } + public Guid? Child2DnaId { get; set; } + public string? Child2 { get; set; } + public Guid? Child3Id { get; set; } + public Guid? Child3DnaId { get; set; } + public string? Child3 { get; set; } + public Guid? Child4Id { get; set; } + public Guid? Child4DnaId { get; set; } + public string? Child4 { get; set; } public List MatchingConditions { get; set; } = new List(); } diff --git a/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs b/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs index 12641e9d..669d75ef 100644 --- a/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs +++ b/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs @@ -54,6 +54,11 @@ namespace BMA.EHR.Application.Responses.Profiles public Guid? Child2Id { get; set; } public Guid? Child3Id { get; set; } public Guid? Child4Id { get; set; } + public Guid? RootDnaId { get; set; } + public Guid? Child1DnaId { get; set; } + public Guid? Child2DnaId { get; set; } + public Guid? Child3DnaId { get; set; } + public Guid? Child4DnaId { get; set; } public double? Amount { get; set; } public double? PositionSalaryAmount { get; set; } public string? Commander { get; set; } diff --git a/BMA.EHR.Application/Responses/Profiles/GetProfileByRootIdDto.cs b/BMA.EHR.Application/Responses/Profiles/GetProfileByRootIdDto.cs index 76061a30..fa649550 100644 --- a/BMA.EHR.Application/Responses/Profiles/GetProfileByRootIdDto.cs +++ b/BMA.EHR.Application/Responses/Profiles/GetProfileByRootIdDto.cs @@ -49,6 +49,19 @@ namespace BMA.EHR.Application.Responses.Profiles public double? Amount { get; set; } public double? PositionSalaryAmount { get; set; } public Guid? RootId { get; set; } + public Guid? RootDnaId { get; set; } public string? Root { get; set; } + public Guid? Child1Id { get; set; } + public Guid? Child1DnaId { get; set; } + public string? Child1 { get; set; } + public Guid? Child2Id { get; set; } + public Guid? Child2DnaId { get; set; } + public string? Child2 { get; set; } + public Guid? Child3Id { get; set; } + public Guid? Child3DnaId { get; set; } + public string? Child3 { get; set; } + public Guid? Child4Id { get; set; } + public Guid? Child4DnaId { get; set; } + public string? Child4 { get; set; } } } diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaintController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaintController.cs index 74792193..973aa781 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaintController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaintController.cs @@ -192,18 +192,23 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers root = p.root, rootId = p.rootId, + rootDnaId = p.rootDnaId, rootShortName = p.rootShortName, child1 = p.child1, child1Id = p.child1Id, + child1DnaId = p.child1DnaId, child1ShortName = p.child1ShortName, child2 = p.child2, child2Id = p.child2Id, + child2DnaId = p.child2DnaId, child2ShortName = p.child2ShortName, child3 = p.child3, child3Id = p.child3Id, + child3DnaId = p.child3DnaId, child3ShortName = p.child3ShortName, child4 = p.child4, child4Id = p.child4Id, + child4DnaId = p.child4DnaId, child4ShortName = p.child4ShortName, posMasterNo = p.posMasterNo, posTypeId = p.posTypeId, @@ -330,18 +335,23 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers root = item.root, rootId = item.rootId, + rootDnaId = item.rootDnaId, rootShortName = item.rootShortName, child1 = item.child1, child1Id = item.child1Id, + child1DnaId = item.child1DnaId, child1ShortName = item.child1ShortName, child2 = item.child2, child2Id = item.child2Id, + child2DnaId = item.child2DnaId, child2ShortName = item.child2ShortName, child3 = item.child3, child3Id = item.child3Id, + child3DnaId = item.child3DnaId, child3ShortName = item.child3ShortName, child4 = item.child4, child4Id = item.child4Id, + child4DnaId = item.child4DnaId, child4ShortName = item.child4ShortName, posMasterNo = item.posMasterNo, posTypeId = item.posTypeId, @@ -439,18 +449,23 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers root = item.root, rootId = item.rootId, + rootDnaId = item.rootDnaId, rootShortName = item.rootShortName, child1 = item.child1, child1Id = item.child1Id, + child1DnaId = item.child1DnaId, child1ShortName = item.child1ShortName, child2 = item.child2, child2Id = item.child2Id, + child2DnaId = item.child2DnaId, child2ShortName = item.child2ShortName, child3 = item.child3, child3Id = item.child3Id, + child3DnaId = item.child3DnaId, child3ShortName = item.child3ShortName, child4 = item.child4, child4Id = item.child4Id, + child4DnaId = item.child4DnaId, child4ShortName = item.child4ShortName, posMasterNo = item.posMasterNo, posTypeId = item.posTypeId, @@ -612,18 +627,23 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers root = item.root, rootId = item.rootId, + rootDnaId = item.rootDnaId, rootShortName = item.rootShortName, child1 = item.child1, child1Id = item.child1Id, + child1DnaId = item.child1DnaId, child1ShortName = item.child1ShortName, child2 = item.child2, child2Id = item.child2Id, + child2DnaId = item.child2DnaId, child2ShortName = item.child2ShortName, child3 = item.child3, child3Id = item.child3Id, + child3DnaId = item.child3DnaId, child3ShortName = item.child3ShortName, child4 = item.child4, child4Id = item.child4Id, + child4DnaId = item.child4DnaId, child4ShortName = item.child4ShortName, posMasterNo = item.posMasterNo, posTypeId = item.posTypeId, diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs index 5690f9d7..efd0f3b5 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs @@ -501,18 +501,23 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers root = p.root, rootId = p.rootId, + rootDnaId = p.rootDnaId, rootShortName = p.rootShortName, child1 = p.child1, child1Id = p.child1Id, + child1DnaId = p.child1DnaId, child1ShortName = p.child1ShortName, child2 = p.child2, child2Id = p.child2Id, + child2DnaId = p.child2DnaId, child2ShortName = p.child2ShortName, child3 = p.child3, child3Id = p.child3Id, + child3DnaId = p.child3DnaId, child3ShortName = p.child3ShortName, child4 = p.child4, child4Id = p.child4Id, + child4DnaId = p.child4DnaId, child4ShortName = p.child4ShortName, posMasterNo = p.posMasterNo, posTypeId = p.posTypeId, @@ -762,18 +767,23 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers root = item.root, rootId = item.rootId, + rootDnaId = item.rootDnaId, rootShortName = item.rootShortName, child1 = item.child1, child1Id = item.child1Id, + child1DnaId = item.child1DnaId, child1ShortName = item.child1ShortName, child2 = item.child2, child2Id = item.child2Id, + child2DnaId = item.child2DnaId, child2ShortName = item.child2ShortName, child3 = item.child3, child3Id = item.child3Id, + child3DnaId = item.child3DnaId, child3ShortName = item.child3ShortName, child4 = item.child4, child4Id = item.child4Id, + child4DnaId = item.child4DnaId, child4ShortName = item.child4ShortName, posMasterNo = item.posMasterNo, posTypeId = item.posTypeId, @@ -1754,18 +1764,23 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers root = item.root, rootId = item.rootId, + rootDnaId = item.rootDnaId, rootShortName = item.rootShortName, child1 = item.child1, child1Id = item.child1Id, + child1DnaId = item.child1DnaId, child1ShortName = item.child1ShortName, child2 = item.child2, child2Id = item.child2Id, + child2DnaId = item.child2DnaId, child2ShortName = item.child2ShortName, child3 = item.child3, child3Id = item.child3Id, + child3DnaId = item.child3DnaId, child3ShortName = item.child3ShortName, child4 = item.child4, child4Id = item.child4Id, + child4DnaId = item.child4DnaId, child4ShortName = item.child4ShortName, posMasterNo = item.posMasterNo, posTypeId = item.posTypeId, diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs index f4e58d19..1ee349b0 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs @@ -248,7 +248,7 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet("{page}/{id:guid}")] - public async Task> GetByDisciplineInvestigate(string page,Guid id) + public async Task> GetByDisciplineInvestigate(string page, Guid id) { page = page.Trim().ToUpper(); string getPermission; @@ -268,7 +268,7 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers { getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_DISCIPLINE_INVESTIGATE"); } - + var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { @@ -334,25 +334,30 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers root = p.root, rootId = p.rootId, + rootDnaId = p.rootDnaId, rootShortName = p.rootShortName, child1 = p.child1, child1Id = p.child1Id, + child1DnaId = p.child1DnaId, child1ShortName = p.child1ShortName, child2 = p.child2, child2Id = p.child2Id, + child2DnaId = p.child2DnaId, child2ShortName = p.child2ShortName, child3 = p.child3, child3Id = p.child3Id, + child3DnaId = p.child3DnaId, child3ShortName = p.child3ShortName, child4 = p.child4, child4Id = p.child4Id, + child4DnaId = p.child4DnaId, child4ShortName = p.child4ShortName, posMasterNo = p.posMasterNo, posTypeId = p.posTypeId, posTypeName = p.posTypeName, posLevelId = p.posLevelId, posLevelName = p.posLevelName, - + IsSend = p.IsReport, IsDisciplinary = p.IsDisciplinary, profileType = p.profileType, @@ -532,18 +537,23 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers root = item.root, rootId = item.rootId, + rootDnaId = item.rootDnaId, rootShortName = item.rootShortName, child1 = item.child1, child1Id = item.child1Id, + child1DnaId = item.child1DnaId, child1ShortName = item.child1ShortName, child2 = item.child2, child2Id = item.child2Id, + child2DnaId = item.child2DnaId, child2ShortName = item.child2ShortName, child3 = item.child3, child3Id = item.child3Id, + child3DnaId = item.child3DnaId, child3ShortName = item.child3ShortName, child4 = item.child4, child4Id = item.child4Id, + child4DnaId = item.child4DnaId, child4ShortName = item.child4ShortName, posMasterNo = item.posMasterNo, posTypeId = item.posTypeId, @@ -582,12 +592,12 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "SYS_DISCIPLINE_INVESTIGATE"); if (getWorkflow == false) { - var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_DISCIPLINE_INVESTIGATE"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") - { - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - } + var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_DISCIPLINE_INVESTIGATE"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } } var data = await _context.DisciplineInvestigates .Where(x => x.Id == id) @@ -692,18 +702,23 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers root = item.root, rootId = item.rootId, + rootDnaId = item.rootDnaId, rootShortName = item.rootShortName, child1 = item.child1, child1Id = item.child1Id, + child1DnaId = item.child1DnaId, child1ShortName = item.child1ShortName, child2 = item.child2, child2Id = item.child2Id, + child2DnaId = item.child2DnaId, child2ShortName = item.child2ShortName, child3 = item.child3, child3Id = item.child3Id, + child3DnaId = item.child3DnaId, child3ShortName = item.child3ShortName, child4 = item.child4, child4Id = item.child4Id, + child4DnaId = item.child4DnaId, child4ShortName = item.child4ShortName, posMasterNo = item.posMasterNo, posTypeId = item.posTypeId, @@ -805,12 +820,12 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "SYS_DISCIPLINE_INVESTIGATE"); if (getWorkflow == false) { - var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_DISCIPLINE_INVESTIGATE"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") - { - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - } + var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_DISCIPLINE_INVESTIGATE"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } } var data = await _context.DisciplineInvestigates .Where(x => x.Id == id) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs index 475c4667..56c96ab3 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs @@ -167,18 +167,23 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers Organization = p.Organization, root = p.root, rootId = p.rootId, + rootDnaId = p.rootDnaId, rootShortName = p.rootShortName, child1 = p.child1, child1Id = p.child1Id, + child1DnaId = p.child1DnaId, child1ShortName = p.child1ShortName, child2 = p.child2, child2Id = p.child2Id, + child2DnaId = p.child2DnaId, child2ShortName = p.child2ShortName, child3 = p.child3, child3Id = p.child3Id, + child3DnaId = p.child3DnaId, child3ShortName = p.child3ShortName, child4 = p.child4, child4Id = p.child4Id, + child4DnaId = p.child4DnaId, child4ShortName = p.child4ShortName, posMasterNo = p.posMasterNo, posTypeId = p.posTypeId, diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineSuspendController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineSuspendController.cs index 51dd0655..a3ac490d 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineSuspendController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineSuspendController.cs @@ -96,25 +96,30 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers Organization = x.Organization, root = x.root, rootId = x.rootId, + rootDnaId = x.rootDnaId, rootShortName = x.rootShortName, child1 = x.child1, child1Id = x.child1Id, + child1DnaId = x.child1DnaId, child1ShortName = x.child1ShortName, child2 = x.child2, child2Id = x.child2Id, + child2DnaId = x.child2DnaId, child2ShortName = x.child2ShortName, child3 = x.child3, child3Id = x.child3Id, + child3DnaId = x.child3DnaId, child3ShortName = x.child3ShortName, child4 = x.child4, child4Id = x.child4Id, + child4DnaId = x.child4DnaId, child4ShortName = x.child4ShortName, posMasterNo = x.posMasterNo, posTypeId = x.posTypeId, posTypeName = x.posTypeName, posLevelId = x.posLevelId, posLevelName = x.posLevelName, - + Position = x.Position, PosNo = x.PosNo, PositionLevel = x.PositionLevel == null ? "" : x.PositionLevel, @@ -173,18 +178,23 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers Organization = x.Organization, root = x.root, rootId = x.rootId, + rootDnaId = x.rootDnaId, rootShortName = x.rootShortName, child1 = x.child1, child1Id = x.child1Id, + child1DnaId = x.child1DnaId, child1ShortName = x.child1ShortName, child2 = x.child2, child2Id = x.child2Id, + child2DnaId = x.child2DnaId, child2ShortName = x.child2ShortName, child3 = x.child3, child3Id = x.child3Id, + child3DnaId = x.child3DnaId, child3ShortName = x.child3ShortName, child4 = x.child4, child4Id = x.child4Id, + child4DnaId = x.child4DnaId, child4ShortName = x.child4ShortName, posMasterNo = x.posMasterNo, posTypeId = x.posTypeId, diff --git a/BMA.EHR.Discipline.Service/Requests/DisciplineComplaintRequest.cs b/BMA.EHR.Discipline.Service/Requests/DisciplineComplaintRequest.cs index 2b791da1..43beb9fa 100644 --- a/BMA.EHR.Discipline.Service/Requests/DisciplineComplaintRequest.cs +++ b/BMA.EHR.Discipline.Service/Requests/DisciplineComplaintRequest.cs @@ -38,18 +38,23 @@ namespace BMA.EHR.Discipline.Service.Requests public string? root { get; set; } public string? rootId { get; set; } + public string? rootDnaId { get; set; } public string? rootShortName { get; set; } public string? child1 { get; set; } public string? child1Id { get; set; } + public string? child1DnaId { get; set; } public string? child1ShortName { get; set; } public string? child2 { get; set; } public string? child2Id { get; set; } + public string? child2DnaId { get; set; } public string? child2ShortName { get; set; } public string? child3 { get; set; } public string? child3Id { get; set; } + public string? child3DnaId { get; set; } public string? child3ShortName { get; set; } public string? child4 { get; set; } public string? child4Id { get; set; } + public string? child4DnaId { get; set; } public string? child4ShortName { get; set; } public int? posMasterNo { get; set; } public string? posTypeId { get; set; } diff --git a/BMA.EHR.Discipline.Service/Requests/DisciplineDisciplinaryComplaintRequest.cs b/BMA.EHR.Discipline.Service/Requests/DisciplineDisciplinaryComplaintRequest.cs index b6ec418b..766679b4 100644 --- a/BMA.EHR.Discipline.Service/Requests/DisciplineDisciplinaryComplaintRequest.cs +++ b/BMA.EHR.Discipline.Service/Requests/DisciplineDisciplinaryComplaintRequest.cs @@ -24,18 +24,23 @@ namespace BMA.EHR.Discipline.Service.Requests public string? root { get; set; } public string? rootId { get; set; } + public string? rootDnaId { get; set; } public string? rootShortName { get; set; } public string? child1 { get; set; } public string? child1Id { get; set; } + public string? child1DnaId { get; set; } public string? child1ShortName { get; set; } public string? child2 { get; set; } public string? child2Id { get; set; } + public string? child2DnaId { get; set; } public string? child2ShortName { get; set; } public string? child3 { get; set; } public string? child3Id { get; set; } + public string? child3DnaId { get; set; } public string? child3ShortName { get; set; } public string? child4 { get; set; } public string? child4Id { get; set; } + public string? child4DnaId { get; set; } public string? child4ShortName { get; set; } public int? posMasterNo { get; set; } public string? posTypeId { get; set; } diff --git a/BMA.EHR.Discipline.Service/Requests/DisciplineInvestigateComplaintRequest.cs b/BMA.EHR.Discipline.Service/Requests/DisciplineInvestigateComplaintRequest.cs index 73b0098f..382ffd70 100644 --- a/BMA.EHR.Discipline.Service/Requests/DisciplineInvestigateComplaintRequest.cs +++ b/BMA.EHR.Discipline.Service/Requests/DisciplineInvestigateComplaintRequest.cs @@ -24,18 +24,23 @@ namespace BMA.EHR.Discipline.Service.Requests public string? root { get; set; } public string? rootId { get; set; } + public string? rootDnaId { get; set; } public string? rootShortName { get; set; } public string? child1 { get; set; } public string? child1Id { get; set; } + public string? child1DnaId { get; set; } public string? child1ShortName { get; set; } public string? child2 { get; set; } public string? child2Id { get; set; } + public string? child2DnaId { get; set; } public string? child2ShortName { get; set; } public string? child3 { get; set; } public string? child3Id { get; set; } + public string? child3DnaId { get; set; } public string? child3ShortName { get; set; } public string? child4 { get; set; } public string? child4Id { get; set; } + public string? child4DnaId { get; set; } public string? child4ShortName { get; set; } public int? posMasterNo { get; set; } public string? posTypeId { get; set; } diff --git a/BMA.EHR.Domain/Models/Discipline/DisciplineComplaint_Profile.cs b/BMA.EHR.Domain/Models/Discipline/DisciplineComplaint_Profile.cs index 02f00cc4..8f7f1964 100644 --- a/BMA.EHR.Domain/Models/Discipline/DisciplineComplaint_Profile.cs +++ b/BMA.EHR.Domain/Models/Discipline/DisciplineComplaint_Profile.cs @@ -25,30 +25,40 @@ namespace BMA.EHR.Domain.Models.Discipline public string? root { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? rootDnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] + public string? child1DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] + public string? child2DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] + public string? child3DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] + public string? child4DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4ShortName { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡")] diff --git a/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs b/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs index 0c70e22d..049893b1 100644 --- a/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs +++ b/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs @@ -25,30 +25,40 @@ namespace BMA.EHR.Domain.Models.Discipline public string? root { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? rootDnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] + public string? child1DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] + public string? child2DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] + public string? child3DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] + public string? child4DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4ShortName { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡")] diff --git a/BMA.EHR.Domain/Models/Discipline/DisciplineInvestigate_ProfileComplaint.cs b/BMA.EHR.Domain/Models/Discipline/DisciplineInvestigate_ProfileComplaint.cs index b12defbd..f94f1fa1 100644 --- a/BMA.EHR.Domain/Models/Discipline/DisciplineInvestigate_ProfileComplaint.cs +++ b/BMA.EHR.Domain/Models/Discipline/DisciplineInvestigate_ProfileComplaint.cs @@ -25,30 +25,40 @@ namespace BMA.EHR.Domain.Models.Discipline public string? root { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? rootDnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] + public string? child1DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] + public string? child2DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] + public string? child3DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] + public string? child4DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4ShortName { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡")] diff --git a/BMA.EHR.Domain/Models/Discipline/DisciplineReport_Profile.cs b/BMA.EHR.Domain/Models/Discipline/DisciplineReport_Profile.cs index f1c44696..5afbdc6a 100644 --- a/BMA.EHR.Domain/Models/Discipline/DisciplineReport_Profile.cs +++ b/BMA.EHR.Domain/Models/Discipline/DisciplineReport_Profile.cs @@ -25,30 +25,40 @@ namespace BMA.EHR.Domain.Models.Discipline public string? root { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? rootDnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] + public string? child1DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] + public string? child2DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] + public string? child3DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] + public string? child4DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4ShortName { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡")] diff --git a/BMA.EHR.Domain/Models/Insignias/InsigniaNoteProfile.cs b/BMA.EHR.Domain/Models/Insignias/InsigniaNoteProfile.cs index edf1710e..7428481c 100644 --- a/BMA.EHR.Domain/Models/Insignias/InsigniaNoteProfile.cs +++ b/BMA.EHR.Domain/Models/Insignias/InsigniaNoteProfile.cs @@ -81,14 +81,19 @@ namespace BMA.EHR.Domain.Models.Insignias public double? Amount { get; set; } public double? PositionSalaryAmount { get; set; } public Guid? RootId { get; set; } + public Guid? RootDnaId { get; set; } public string? Root { get; set; } public Guid? Child1Id { get; set; } + public Guid? Child1DnaId { get; set; } public string? Child1 { get; set; } public Guid? Child2Id { get; set; } + public Guid? Child2DnaId { get; set; } public string? Child2 { get; set; } public Guid? Child3Id { get; set; } + public Guid? Child3DnaId { get; set; } public string? Child3 { get; set; } public Guid? Child4Id { get; set; } + public Guid? Child4DnaId { get; set; } public string? Child4 { get; set; } } } diff --git a/BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs b/BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs index 007c9b3d..32cfdb79 100644 --- a/BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs +++ b/BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs @@ -73,14 +73,19 @@ namespace BMA.EHR.Domain.Models.Insignias public double? PositionSalaryAmount { get; set; } public string? LastInsigniaName { get; set; } public Guid? RootId { get; set; } + public Guid? RootDnaId { get; set; } public string? Root { get; set; } public Guid? Child1Id { get; set; } + public Guid? Child1DnaId { get; set; } public string? Child1 { get; set; } public Guid? Child2Id { get; set; } + public Guid? Child2DnaId { get; set; } public string? Child2 { get; set; } public Guid? Child3Id { get; set; } + public Guid? Child3DnaId { get; set; } public string? Child3 { get; set; } public Guid? Child4Id { get; set; } + public Guid? Child4DnaId { get; set; } public string? Child4 { get; set; } } } diff --git a/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs b/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs index ce5bcffa..af05a754 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs @@ -65,30 +65,40 @@ namespace BMA.EHR.Domain.Models.Placement public string? root { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna")] + public string? rootDnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna")] + public string? child1DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna")] + public string? child2DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna")] + public string? child3DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna")] + public string? child4DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4ShortName { get; set; } [Comment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡")] diff --git a/BMA.EHR.Domain/Models/Placement/PlacementAppointmentEmployee.cs b/BMA.EHR.Domain/Models/Placement/PlacementAppointmentEmployee.cs index e6d22771..152c38ba 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementAppointmentEmployee.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementAppointmentEmployee.cs @@ -27,6 +27,14 @@ namespace BMA.EHR.Domain.Models.Placement [Comment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰")] public string? rootDnaId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna")] + public string? child1DnaId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna")] + public string? child2DnaId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna")] + public string? child3DnaId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna")] + public string? child4DnaId { get; set; } } } diff --git a/BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs b/BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs index 77e8f057..6eeab00c 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs @@ -50,30 +50,40 @@ namespace BMA.EHR.Domain.Models.Placement public string? rootOld { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old")] + public string? rootDnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old")] + public string? child1DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old")] + public string? child2DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old")] + public string? child3DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old")] + public string? child4DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4ShortNameOld { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old")] diff --git a/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs b/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs index 707914fb..c0190cbb 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs @@ -275,30 +275,40 @@ namespace BMA.EHR.Domain.Models.Placement public string? root { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna")] + public string? rootDnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna")] + public string? child1DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna")] + public string? child2DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna")] + public string? child3DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna")] + public string? child4DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4ShortName { get; set; } [Comment("id revision")] diff --git a/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs b/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs index 6a3b084e..8f72706c 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs @@ -72,30 +72,40 @@ namespace BMA.EHR.Domain.Models.Placement public string? root { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna")] + public string? rootDnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna")] + public string? child1DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna")] + public string? child2DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna")] + public string? child3DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna")] + public string? child4DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4ShortName { get; set; } [Comment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡")] diff --git a/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs b/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs index 23e24290..7ee144bd 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs @@ -51,30 +51,40 @@ namespace BMA.EHR.Domain.Models.Placement public string? rootOld { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old")] + public string? rootDnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old")] + public string? child1DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old")] + public string? child2DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old")] + public string? child3DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old")] + public string? child4DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4ShortNameOld { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old")] diff --git a/BMA.EHR.Domain/Models/Placement/PlacementTransfer.cs b/BMA.EHR.Domain/Models/Placement/PlacementTransfer.cs index abe2d7c7..759ec7b6 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementTransfer.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementTransfer.cs @@ -48,30 +48,40 @@ namespace BMA.EHR.Domain.Models.Placement public string? rootOld { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old")] + public string? rootDnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old")] + public string? child1DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old")] + public string? child2DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old")] + public string? child3DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old")] + public string? child4DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4ShortNameOld { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old")] diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs b/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs index 34f4023f..93f2744c 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs @@ -39,30 +39,40 @@ namespace BMA.EHR.Domain.Models.Retirement public string? root { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? rootDnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] public string? rootShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] + public string? child1DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] public string? child1ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] + public string? child2DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] public string? child2ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] + public string? child3DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] public string? child3ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] + public string? child4DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] public string? child4ShortName { get; set; } // [Comment("id revision")] diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs b/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs index 0d995512..d469323c 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs @@ -61,30 +61,40 @@ namespace BMA.EHR.Domain.Models.Retirement public string? rootOld { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old")] + public string? rootDnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old")] + public string? child1DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old")] + public string? child2DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old")] + public string? child3DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old")] + public string? child4DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4ShortNameOld { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old")] diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs b/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs index 9c4e18e1..c3be3868 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs @@ -47,30 +47,39 @@ namespace BMA.EHR.Domain.Models.Retirement public string? rootOld { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootOldId { get; set; } + public string? rootDnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] + public string? child1DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] + public string? child2DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] + public string? child3DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] + public string? child4DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4ShortNameOld { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old")] diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementProfile.cs b/BMA.EHR.Domain/Models/Retirement/RetirementProfile.cs index 1ff93bde..7951476e 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementProfile.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementProfile.cs @@ -29,30 +29,40 @@ namespace BMA.EHR.Domain.Models.Retirement public string? root { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ")] public string? rootId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ")] + public string? rootDnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ")] public string? rootShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ")] public string? child1 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ")] public string? child1Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ")] + public string? child1DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ")] public string? child1ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ")] public string? child2 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ")] public string? child2Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ")] + public string? child2DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ")] public string? child2ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ")] public string? child3 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ")] public string? child3Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ")] + public string? child3DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ")] public string? child3ShortName { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ")] public string? child4 { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ")] public string? child4Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ")] + public string? child4DnaId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ")] public string? child4ShortName { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ ")] diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs index 7760cd36..79cb6a61 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs @@ -100,30 +100,40 @@ namespace BMA.EHR.Domain.Models.Retirement public string? rootOld { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] + public string? rootDnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] + public string? child1DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] + public string? child2DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] + public string? child3DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] + public string? child4DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4ShortNameOld { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old")] diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs index 82ba9da4..09d4faca 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs @@ -100,30 +100,40 @@ namespace BMA.EHR.Domain.Models.Retirement public string? rootOld { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] + public string? rootDnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] public string? rootShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] + public string? child1DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] public string? child1ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] + public string? child2DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] public string? child2ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] + public string? child3DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] public string? child3ShortNameOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4Old { get; set; } [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4OldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] + public string? child4DnaOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] public string? child4ShortNameOld { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old")] diff --git a/BMA.EHR.Infrastructure/Migrations/20250205065119_update table placementProfile add dnaroot.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250205065119_update table placementProfile add dnaroot.Designer.cs new file mode 100644 index 00000000..84ffe833 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250205065119_update table placementProfile add dnaroot.Designer.cs @@ -0,0 +1,19751 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250205065119_update table placementProfile add dnaroot")] + partial class updatetableplacementProfileadddnaroot + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250205065119_update table placementProfile add dnaroot.cs b/BMA.EHR.Infrastructure/Migrations/20250205065119_update table placementProfile add dnaroot.cs new file mode 100644 index 00000000..bc06eaa0 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250205065119_update table placementProfile add dnaroot.cs @@ -0,0 +1,498 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class updatetableplacementProfileadddnaroot : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "child1DnaOldId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaOldId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaOldId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaOldId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaOldId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaOldId", + table: "PlacementTransfers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaOldId", + table: "PlacementTransfers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaOldId", + table: "PlacementTransfers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaOldId", + table: "PlacementTransfers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaOldId", + table: "PlacementTransfers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaOldId", + table: "PlacementRepatriations", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaOldId", + table: "PlacementRepatriations", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaOldId", + table: "PlacementRepatriations", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaOldId", + table: "PlacementRepatriations", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaOldId", + table: "PlacementRepatriations", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaId", + table: "PlacementReceives", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaId", + table: "PlacementReceives", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaId", + table: "PlacementReceives", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaId", + table: "PlacementReceives", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaId", + table: "PlacementReceives", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaId", + table: "PlacementProfiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaId", + table: "PlacementProfiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaId", + table: "PlacementProfiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaId", + table: "PlacementProfiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaId", + table: "PlacementProfiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaOldId", + table: "PlacementOfficers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaOldId", + table: "PlacementOfficers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaOldId", + table: "PlacementOfficers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaOldId", + table: "PlacementOfficers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaOldId", + table: "PlacementOfficers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaId", + table: "PlacementAppointments", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaId", + table: "PlacementAppointments", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaId", + table: "PlacementAppointments", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaId", + table: "PlacementAppointments", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaId", + table: "PlacementAppointments", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaId", + table: "PlacementAppointmentEmployee", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaId", + table: "PlacementAppointmentEmployee", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaId", + table: "PlacementAppointmentEmployee", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaId", + table: "PlacementAppointmentEmployee", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaId", + table: "PlacementAppointmentEmployee", + type: "longtext", + nullable: true, + comment: "id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "child1DnaOldId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child2DnaOldId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child3DnaOldId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child4DnaOldId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "rootDnaOldId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child1DnaOldId", + table: "PlacementTransfers"); + + migrationBuilder.DropColumn( + name: "child2DnaOldId", + table: "PlacementTransfers"); + + migrationBuilder.DropColumn( + name: "child3DnaOldId", + table: "PlacementTransfers"); + + migrationBuilder.DropColumn( + name: "child4DnaOldId", + table: "PlacementTransfers"); + + migrationBuilder.DropColumn( + name: "rootDnaOldId", + table: "PlacementTransfers"); + + migrationBuilder.DropColumn( + name: "child1DnaOldId", + table: "PlacementRepatriations"); + + migrationBuilder.DropColumn( + name: "child2DnaOldId", + table: "PlacementRepatriations"); + + migrationBuilder.DropColumn( + name: "child3DnaOldId", + table: "PlacementRepatriations"); + + migrationBuilder.DropColumn( + name: "child4DnaOldId", + table: "PlacementRepatriations"); + + migrationBuilder.DropColumn( + name: "rootDnaOldId", + table: "PlacementRepatriations"); + + migrationBuilder.DropColumn( + name: "child1DnaId", + table: "PlacementReceives"); + + migrationBuilder.DropColumn( + name: "child2DnaId", + table: "PlacementReceives"); + + migrationBuilder.DropColumn( + name: "child3DnaId", + table: "PlacementReceives"); + + migrationBuilder.DropColumn( + name: "child4DnaId", + table: "PlacementReceives"); + + migrationBuilder.DropColumn( + name: "rootDnaId", + table: "PlacementReceives"); + + migrationBuilder.DropColumn( + name: "child1DnaId", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "child2DnaId", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "child3DnaId", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "child4DnaId", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "rootDnaId", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "child1DnaOldId", + table: "PlacementOfficers"); + + migrationBuilder.DropColumn( + name: "child2DnaOldId", + table: "PlacementOfficers"); + + migrationBuilder.DropColumn( + name: "child3DnaOldId", + table: "PlacementOfficers"); + + migrationBuilder.DropColumn( + name: "child4DnaOldId", + table: "PlacementOfficers"); + + migrationBuilder.DropColumn( + name: "rootDnaOldId", + table: "PlacementOfficers"); + + migrationBuilder.DropColumn( + name: "child1DnaId", + table: "PlacementAppointments"); + + migrationBuilder.DropColumn( + name: "child2DnaId", + table: "PlacementAppointments"); + + migrationBuilder.DropColumn( + name: "child3DnaId", + table: "PlacementAppointments"); + + migrationBuilder.DropColumn( + name: "child4DnaId", + table: "PlacementAppointments"); + + migrationBuilder.DropColumn( + name: "rootDnaId", + table: "PlacementAppointments"); + + migrationBuilder.DropColumn( + name: "child1DnaId", + table: "PlacementAppointmentEmployee"); + + migrationBuilder.DropColumn( + name: "child2DnaId", + table: "PlacementAppointmentEmployee"); + + migrationBuilder.DropColumn( + name: "child3DnaId", + table: "PlacementAppointmentEmployee"); + + migrationBuilder.DropColumn( + name: "child4DnaId", + table: "PlacementAppointmentEmployee"); + + migrationBuilder.DropColumn( + name: "rootDnaId", + table: "PlacementAppointmentEmployee"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250205090626_update table placementProfile add dnaroot1.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250205090626_update table placementProfile add dnaroot1.Designer.cs new file mode 100644 index 00000000..6fd0e053 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250205090626_update table placementProfile add dnaroot1.Designer.cs @@ -0,0 +1,19850 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250205090626_update table placementProfile add dnaroot1")] + partial class updatetableplacementProfileadddnaroot1 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250205090626_update table placementProfile add dnaroot1.cs b/BMA.EHR.Infrastructure/Migrations/20250205090626_update table placementProfile add dnaroot1.cs new file mode 100644 index 00000000..492584a7 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250205090626_update table placementProfile add dnaroot1.cs @@ -0,0 +1,317 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class updatetableplacementProfileadddnaroot1 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "child1DnaOldId", + table: "RetirementResigns", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaOldId", + table: "RetirementResigns", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaOldId", + table: "RetirementResigns", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaOldId", + table: "RetirementResigns", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaOldId", + table: "RetirementResigns", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaOldId", + table: "RetirementResignEmployees", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaOldId", + table: "RetirementResignEmployees", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaOldId", + table: "RetirementResignEmployees", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaOldId", + table: "RetirementResignEmployees", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaOldId", + table: "RetirementResignEmployees", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaId", + table: "RetirementProfiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaId", + table: "RetirementProfiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaId", + table: "RetirementProfiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaId", + table: "RetirementProfiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaId", + table: "RetirementProfiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaOldId", + table: "RetirementOuts", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaOldId", + table: "RetirementOuts", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaOldId", + table: "RetirementOuts", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaOldId", + table: "RetirementOuts", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaOldId", + table: "RetirementOuts", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaId", + table: "RetirementDeceaseds", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaId", + table: "RetirementDeceaseds", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaId", + table: "RetirementDeceaseds", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaId", + table: "RetirementDeceaseds", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaId", + table: "RetirementDeceaseds", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "child1DnaOldId", + table: "RetirementResigns"); + + migrationBuilder.DropColumn( + name: "child2DnaOldId", + table: "RetirementResigns"); + + migrationBuilder.DropColumn( + name: "child3DnaOldId", + table: "RetirementResigns"); + + migrationBuilder.DropColumn( + name: "child4DnaOldId", + table: "RetirementResigns"); + + migrationBuilder.DropColumn( + name: "rootDnaOldId", + table: "RetirementResigns"); + + migrationBuilder.DropColumn( + name: "child1DnaOldId", + table: "RetirementResignEmployees"); + + migrationBuilder.DropColumn( + name: "child2DnaOldId", + table: "RetirementResignEmployees"); + + migrationBuilder.DropColumn( + name: "child3DnaOldId", + table: "RetirementResignEmployees"); + + migrationBuilder.DropColumn( + name: "child4DnaOldId", + table: "RetirementResignEmployees"); + + migrationBuilder.DropColumn( + name: "rootDnaOldId", + table: "RetirementResignEmployees"); + + migrationBuilder.DropColumn( + name: "child1DnaId", + table: "RetirementProfiles"); + + migrationBuilder.DropColumn( + name: "child2DnaId", + table: "RetirementProfiles"); + + migrationBuilder.DropColumn( + name: "child3DnaId", + table: "RetirementProfiles"); + + migrationBuilder.DropColumn( + name: "child4DnaId", + table: "RetirementProfiles"); + + migrationBuilder.DropColumn( + name: "rootDnaId", + table: "RetirementProfiles"); + + migrationBuilder.DropColumn( + name: "child1DnaOldId", + table: "RetirementOuts"); + + migrationBuilder.DropColumn( + name: "child2DnaOldId", + table: "RetirementOuts"); + + migrationBuilder.DropColumn( + name: "child3DnaOldId", + table: "RetirementOuts"); + + migrationBuilder.DropColumn( + name: "child4DnaOldId", + table: "RetirementOuts"); + + migrationBuilder.DropColumn( + name: "rootDnaOldId", + table: "RetirementOuts"); + + migrationBuilder.DropColumn( + name: "child1DnaId", + table: "RetirementDeceaseds"); + + migrationBuilder.DropColumn( + name: "child2DnaId", + table: "RetirementDeceaseds"); + + migrationBuilder.DropColumn( + name: "child3DnaId", + table: "RetirementDeceaseds"); + + migrationBuilder.DropColumn( + name: "child4DnaId", + table: "RetirementDeceaseds"); + + migrationBuilder.DropColumn( + name: "rootDnaId", + table: "RetirementDeceaseds"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250205102008_update table placementProfile add dnaroot2.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250205102008_update table placementProfile add dnaroot2.Designer.cs new file mode 100644 index 00000000..454486ba --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250205102008_update table placementProfile add dnaroot2.Designer.cs @@ -0,0 +1,19880 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250205102008_update table placementProfile add dnaroot2")] + partial class updatetableplacementProfileadddnaroot2 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250205102008_update table placementProfile add dnaroot2.cs b/BMA.EHR.Infrastructure/Migrations/20250205102008_update table placementProfile add dnaroot2.cs new file mode 100644 index 00000000..5732dadf --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250205102008_update table placementProfile add dnaroot2.cs @@ -0,0 +1,129 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class updatetableplacementProfileadddnaroot2 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "Child1DnaId", + table: "InsigniaRequestProfiles", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "Child2DnaId", + table: "InsigniaRequestProfiles", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "Child3DnaId", + table: "InsigniaRequestProfiles", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "Child4DnaId", + table: "InsigniaRequestProfiles", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "RootDnaId", + table: "InsigniaRequestProfiles", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "Child1DnaId", + table: "InsigniaNoteProfiles", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "Child2DnaId", + table: "InsigniaNoteProfiles", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "Child3DnaId", + table: "InsigniaNoteProfiles", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "Child4DnaId", + table: "InsigniaNoteProfiles", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "RootDnaId", + table: "InsigniaNoteProfiles", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Child1DnaId", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "Child2DnaId", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "Child3DnaId", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "Child4DnaId", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "RootDnaId", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "Child1DnaId", + table: "InsigniaNoteProfiles"); + + migrationBuilder.DropColumn( + name: "Child2DnaId", + table: "InsigniaNoteProfiles"); + + migrationBuilder.DropColumn( + name: "Child3DnaId", + table: "InsigniaNoteProfiles"); + + migrationBuilder.DropColumn( + name: "Child4DnaId", + table: "InsigniaNoteProfiles"); + + migrationBuilder.DropColumn( + name: "RootDnaId", + table: "InsigniaNoteProfiles"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index cb636588..f8abecb6 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -6082,24 +6082,36 @@ namespace BMA.EHR.Infrastructure.Migrations b.Property("Child1") .HasColumnType("longtext"); + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + b.Property("Child1Id") .HasColumnType("char(36)"); b.Property("Child2") .HasColumnType("longtext"); + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + b.Property("Child2Id") .HasColumnType("char(36)"); b.Property("Child3") .HasColumnType("longtext"); + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + b.Property("Child3Id") .HasColumnType("char(36)"); b.Property("Child4") .HasColumnType("longtext"); + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + b.Property("Child4Id") .HasColumnType("char(36)"); @@ -6261,6 +6273,9 @@ namespace BMA.EHR.Infrastructure.Migrations b.Property("Root") .HasColumnType("longtext"); + b.Property("RootDnaId") + .HasColumnType("char(36)"); + b.Property("RootId") .HasColumnType("char(36)"); @@ -6491,24 +6506,36 @@ namespace BMA.EHR.Infrastructure.Migrations b.Property("Child1") .HasColumnType("longtext"); + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + b.Property("Child1Id") .HasColumnType("char(36)"); b.Property("Child2") .HasColumnType("longtext"); + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + b.Property("Child2Id") .HasColumnType("char(36)"); b.Property("Child3") .HasColumnType("longtext"); + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + b.Property("Child3Id") .HasColumnType("char(36)"); b.Property("Child4") .HasColumnType("longtext"); + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + b.Property("Child4Id") .HasColumnType("char(36)"); @@ -6631,6 +6658,9 @@ namespace BMA.EHR.Infrastructure.Migrations b.Property("Root") .HasColumnType("longtext"); + b.Property("RootDnaId") + .HasColumnType("char(36)"); + b.Property("RootId") .HasColumnType("char(36)"); @@ -11440,6 +11470,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + b.Property("child1Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); @@ -11464,6 +11498,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + b.Property("child2Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); @@ -11488,6 +11526,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + b.Property("child3Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); @@ -11512,6 +11554,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + b.Property("child4Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); @@ -11628,6 +11674,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + b.Property("rootId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); @@ -11770,6 +11820,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnOrder(102) .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + b.Property("citizenId") .HasColumnType("longtext") .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); @@ -11794,6 +11860,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + b.Property("rootId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); @@ -12182,6 +12252,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + b.Property("child1Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); @@ -12194,6 +12268,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + b.Property("child2Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); @@ -12206,6 +12284,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + b.Property("child3Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); @@ -12218,6 +12300,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + b.Property("child4Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); @@ -12274,6 +12360,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("profile Id"); + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + b.Property("rootOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); @@ -12710,6 +12800,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + b.Property("child1Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); @@ -12734,6 +12828,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + b.Property("child2Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); @@ -12758,6 +12856,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + b.Property("child3Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); @@ -12782,6 +12884,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + b.Property("child4Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); @@ -12939,6 +13045,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + b.Property("rootId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); @@ -13184,6 +13294,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + b.Property("child1Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); @@ -13208,6 +13322,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + b.Property("child2Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); @@ -13232,6 +13350,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + b.Property("child3Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); @@ -13256,6 +13378,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + b.Property("child4Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); @@ -13368,6 +13494,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + b.Property("rootId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); @@ -13817,6 +13947,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + b.Property("child1Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); @@ -13829,6 +13963,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + b.Property("child2Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); @@ -13841,6 +13979,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + b.Property("child3Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); @@ -13853,6 +13995,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + b.Property("child4Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); @@ -13905,6 +14051,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("profile Id"); + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + b.Property("rootOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); @@ -14018,6 +14168,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + b.Property("child1Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); @@ -14030,6 +14184,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + b.Property("child2Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); @@ -14042,6 +14200,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + b.Property("child3Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); @@ -14054,6 +14216,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + b.Property("child4Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); @@ -14106,6 +14272,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("profile Id"); + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + b.Property("rootOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); @@ -14411,6 +14581,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); @@ -14423,6 +14597,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); @@ -14435,6 +14613,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); @@ -14447,6 +14629,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); @@ -14507,6 +14693,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); @@ -14947,6 +15137,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + b.Property("child1Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); @@ -14959,6 +15153,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + b.Property("child2Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); @@ -14971,6 +15169,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + b.Property("child3Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); @@ -14983,6 +15185,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + b.Property("child4Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); @@ -15035,6 +15241,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("profile Id"); + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + b.Property("rootOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); @@ -15212,6 +15422,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child1Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); @@ -15224,6 +15438,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child2Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); @@ -15236,6 +15454,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child3Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); @@ -15248,6 +15470,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + b.Property("child4Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); @@ -15304,6 +15530,9 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + b.Property("rootOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); @@ -15569,6 +15798,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + b.Property("child1Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); @@ -15581,6 +15814,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + b.Property("child2Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); @@ -15593,6 +15830,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + b.Property("child3Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); @@ -15605,6 +15846,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + b.Property("child4Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); @@ -15681,6 +15926,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + b.Property("rootId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); @@ -16423,6 +16672,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child1Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); @@ -16435,6 +16688,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child2Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); @@ -16447,6 +16704,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child3Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); @@ -16459,6 +16720,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + b.Property("child4Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); @@ -16511,6 +16776,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("profile Id"); + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + b.Property("rootOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); @@ -17128,6 +17397,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child1Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); @@ -17140,6 +17413,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child2Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); @@ -17152,6 +17429,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child3Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); @@ -17164,6 +17445,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + b.Property("child4Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); @@ -17216,6 +17501,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("profile Id"); + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + b.Property("rootOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250205104627_update table disciplinecom add dna.Designer.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250205104627_update table disciplinecom add dna.Designer.cs new file mode 100644 index 00000000..4bf62961 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250205104627_update table disciplinecom add dna.Designer.cs @@ -0,0 +1,3459 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + [DbContext(typeof(DisciplineDbContext))] + [Migration("20250205104627_update table disciplinecom add dna")] + partial class updatetabledisciplinecomadddna + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CaseNumber") + .HasColumnType("longtext") + .HasComment("āļ„āļ”āļĩāđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("CaseType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļ”āļĩ"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Fullname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļ™āļēāļĄāļŠāļāļļāļĨāļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("ProfileId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("ProfileId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļļāļ—āļ˜āļĢāļ“āđŒāļŦāļĢāļ·āļ­āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Appeals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Appeal_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.ToTable("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Channel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Channels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineComplaint_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Email") + .HasColumnType("longtext") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Phone") + .HasColumnType("longtext") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("Position") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.ToTable("DisciplineDirectors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryCauseText") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨ"); + + b.Property("DisciplinaryDateAllegation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāļ—āļĢāļēāļšāļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateEvident") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™"); + + b.Property("DisciplinaryDateInvestigation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļ„āļģāļŠāļąāđˆāļ‡āđƒāļŦāđ‰āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateResult") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplinaryExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplinaryFaultLevelOther") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ”āļāļĢāļ“āļĩāļ­āļ·āđˆāļ™āđ†"); + + b.Property("DisciplinaryInvestigateAt") + .HasColumnType("longtext") + .HasComment("āļŠāļ­āļšāļŠāļ§āļ™āļ—āļĩāđˆ"); + + b.Property("DisciplinaryRecordAccuser") + .HasColumnType("longtext") + .HasComment("āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļ‚āļ­āļ‡āļœāļđāđ‰āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryRefLaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļŽāļŦāļĄāļēāļĒ"); + + b.Property("DisciplinaryResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("DisciplinaryStatusResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļœāļĨ"); + + b.Property("DisciplinarySummaryEvidence") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™āļŠāļ™āļąāļšāļŠāļ™āļļāļ™āļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryWitnesses") + .HasColumnType("longtext") + .HasComment("āļžāļĒāļēāļ™āđāļĨāļ°āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļžāļĒāļēāļ™"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (APPOINT_DIRECTORS āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, SECRET_INVESTIGATION āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, OTHER āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, HAVE_CAUSE āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, NO_CAUSE āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ResultDescription") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļœāļĨāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("ResultDisciplineType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ§āļīāļ™āļąāļĒ"); + + b.Property("ResultInvestigate") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("ResultOc") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļĒ/āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ResultTitleType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("ResultYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineDisciplinarys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinaryExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_DirectorInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigateRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRecordAccusers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocResults"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocSummaryEvidences"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocWitnessess"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandTypeDiscardId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("IsSuspend") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļžāļąāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("StatusDiscard") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (appoint_directors āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, secret_investigation āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, other āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (not_specified āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, have_cause āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, no_cause āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigateExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigateRelevant_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_DocComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsDisciplinary") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigate_ProfileComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DescriptionSuspend") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļ—āļĩāđˆāļ–āļđāļāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("EndDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("StartDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineReport_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Docs") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Historys") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Docs") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Profiles") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineDisciplinarys") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinaryExtends") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigateRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocOthers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRecordAccusers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocResults") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocSummaryEvidences") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocWitnessess") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_ProfileComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineInvestigates") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateExtends") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateRelevant_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_DocComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_ProfileComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany() + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Navigation("DisciplineComplaint_Docs"); + + b.Navigation("DisciplineComplaint_Profiles"); + + b.Navigation("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Navigation("DisciplineComplaint_Appeal_Docs"); + + b.Navigation("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Navigation("DisciplineDisciplinaryExtends"); + + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocComplaintInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocInvestigateRelevants"); + + b.Navigation("DisciplineDisciplinary_DocInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocOthers"); + + b.Navigation("DisciplineDisciplinary_DocRecordAccusers"); + + b.Navigation("DisciplineDisciplinary_DocRelevants"); + + b.Navigation("DisciplineDisciplinary_DocResults"); + + b.Navigation("DisciplineDisciplinary_DocSummaryEvidences"); + + b.Navigation("DisciplineDisciplinary_DocWitnessess"); + + b.Navigation("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Navigation("DisciplineDisciplinarys"); + + b.Navigation("DisciplineInvestigateExtends"); + + b.Navigation("DisciplineInvestigateRelevant_Docs"); + + b.Navigation("DisciplineInvestigate_Directors"); + + b.Navigation("DisciplineInvestigate_DocComplaints"); + + b.Navigation("DisciplineInvestigate_Docs"); + + b.Navigation("DisciplineInvestigate_ProfileComplaints"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250205104627_update table disciplinecom add dna.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250205104627_update table disciplinecom add dna.cs new file mode 100644 index 00000000..cc9f561b --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250205104627_update table disciplinecom add dna.cs @@ -0,0 +1,258 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + /// + public partial class updatetabledisciplinecomadddna : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "child1DnaId", + table: "DisciplineReport_Profiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaId", + table: "DisciplineReport_Profiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaId", + table: "DisciplineReport_Profiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaId", + table: "DisciplineReport_Profiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaId", + table: "DisciplineReport_Profiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaId", + table: "DisciplineInvestigate_ProfileComplaints", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaId", + table: "DisciplineInvestigate_ProfileComplaints", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaId", + table: "DisciplineInvestigate_ProfileComplaints", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaId", + table: "DisciplineInvestigate_ProfileComplaints", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaId", + table: "DisciplineInvestigate_ProfileComplaints", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaId", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaId", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaId", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaId", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaId", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaId", + table: "DisciplineComplaint_Profiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaId", + table: "DisciplineComplaint_Profiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaId", + table: "DisciplineComplaint_Profiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaId", + table: "DisciplineComplaint_Profiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaId", + table: "DisciplineComplaint_Profiles", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "child1DnaId", + table: "DisciplineReport_Profiles"); + + migrationBuilder.DropColumn( + name: "child2DnaId", + table: "DisciplineReport_Profiles"); + + migrationBuilder.DropColumn( + name: "child3DnaId", + table: "DisciplineReport_Profiles"); + + migrationBuilder.DropColumn( + name: "child4DnaId", + table: "DisciplineReport_Profiles"); + + migrationBuilder.DropColumn( + name: "rootDnaId", + table: "DisciplineReport_Profiles"); + + migrationBuilder.DropColumn( + name: "child1DnaId", + table: "DisciplineInvestigate_ProfileComplaints"); + + migrationBuilder.DropColumn( + name: "child2DnaId", + table: "DisciplineInvestigate_ProfileComplaints"); + + migrationBuilder.DropColumn( + name: "child3DnaId", + table: "DisciplineInvestigate_ProfileComplaints"); + + migrationBuilder.DropColumn( + name: "child4DnaId", + table: "DisciplineInvestigate_ProfileComplaints"); + + migrationBuilder.DropColumn( + name: "rootDnaId", + table: "DisciplineInvestigate_ProfileComplaints"); + + migrationBuilder.DropColumn( + name: "child1DnaId", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); + + migrationBuilder.DropColumn( + name: "child2DnaId", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); + + migrationBuilder.DropColumn( + name: "child3DnaId", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); + + migrationBuilder.DropColumn( + name: "child4DnaId", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); + + migrationBuilder.DropColumn( + name: "rootDnaId", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); + + migrationBuilder.DropColumn( + name: "child1DnaId", + table: "DisciplineComplaint_Profiles"); + + migrationBuilder.DropColumn( + name: "child2DnaId", + table: "DisciplineComplaint_Profiles"); + + migrationBuilder.DropColumn( + name: "child3DnaId", + table: "DisciplineComplaint_Profiles"); + + migrationBuilder.DropColumn( + name: "child4DnaId", + table: "DisciplineComplaint_Profiles"); + + migrationBuilder.DropColumn( + name: "rootDnaId", + table: "DisciplineComplaint_Profiles"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs index 5e6e4c43..2d4afd53 100644 --- a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs @@ -592,6 +592,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); @@ -604,6 +608,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); @@ -616,6 +624,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); @@ -628,6 +640,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); @@ -664,6 +680,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); @@ -1859,6 +1879,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); @@ -1871,6 +1895,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); @@ -1883,6 +1911,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); @@ -1895,6 +1927,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); @@ -1931,6 +1967,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); @@ -2554,6 +2594,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); @@ -2566,6 +2610,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); @@ -2578,6 +2626,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); @@ -2590,6 +2642,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); @@ -2626,6 +2682,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); @@ -2780,6 +2840,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); @@ -2792,6 +2856,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); @@ -2804,6 +2872,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); @@ -2816,6 +2888,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4Id") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); @@ -2852,6 +2928,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 07026e48..0957865b 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -936,14 +936,19 @@ namespace BMA.EHR.Insignia.Service.Controllers LastInsigniaName = lastInsignia, Root = profile.Root, RootId = profile.RootId, + RootDnaId = profile.RootDnaId, Child1 = profile.Child1, Child1Id = profile.Child1Id, + Child1DnaId = profile.Child1DnaId, Child2 = profile.Child2, Child2Id = profile.Child2Id, + Child2DnaId = profile.Child2DnaId, Child3 = profile.Child3, Child3Id = profile.Child3Id, + Child3DnaId = profile.Child3DnaId, Child4 = profile.Child4, Child4Id = profile.Child4Id, + Child4DnaId = profile.Child4DnaId, }); await _context.SaveChangesAsync(); @@ -1091,14 +1096,19 @@ namespace BMA.EHR.Insignia.Service.Controllers PositionSalaryAmount = profileOld.PositionSalaryAmount, Root = profileOld.Root, RootId = profileOld.RootId, + RootDnaId = profileOld.RootDnaId, Child1 = profileOld.Child1, Child1Id = profileOld.Child1Id, + Child1DnaId = profileOld.Child1Id, Child2 = profileOld.Child2, Child2Id = profileOld.Child2Id, + Child2DnaId = profileOld.Child2DnaId, Child3 = profileOld.Child3, Child3Id = profileOld.Child3Id, + Child3DnaId = profileOld.Child3DnaId, Child4 = profileOld.Child4, Child4Id = profileOld.Child4Id, + Child4DnaId = profileOld.Child4DnaId, }); } } @@ -1856,15 +1866,20 @@ namespace BMA.EHR.Insignia.Service.Controllers Amount = pf.Amount, PositionSalaryAmount = pf.PositionSalaryAmount, RootId = pf.RootId, + RootDnaId = pf.RootDnaId, Root = pf.Root, Child1 = pf.Child1, Child1Id = pf.Child1Id, + Child1DnaId = pf.Child1DnaId, Child2 = pf.Child2, Child2Id = pf.Child2Id, + Child2DnaId = pf.Child2DnaId, Child3 = pf.Child3, Child3Id = pf.Child3Id, + Child3DnaId = pf.Child3DnaId, Child4 = pf.Child4, Child4Id = pf.Child4Id, + Child4DnaId = pf.Child4DnaId, LastUpdateFullName = FullName ?? "System Administrator", LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, @@ -2041,14 +2056,19 @@ namespace BMA.EHR.Insignia.Service.Controllers PositionSalaryAmount = _profile.PositionSalaryAmount, Root = _profile.Root, RootId = _profile.RootId, + RootDnaId = _profile.RootDnaId, Child1 = _profile.Child1, Child1Id = _profile.Child1Id, + Child1DnaId = _profile.Child1DnaId, Child2 = _profile.Child2, Child2Id = _profile.Child2Id, + Child2DnaId = _profile.Child2DnaId, Child3 = _profile.Child3, Child3Id = _profile.Child3Id, + Child3DnaId = _profile.Child3DnaId, Child4 = _profile.Child4, Child4Id = _profile.Child4Id, + Child4DnaId = _profile.Child4DnaId, }; } else diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 87cecbea..8511c34b 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -527,18 +527,23 @@ namespace BMA.EHR.Placement.Service.Controllers return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ™āļĩāđ‰āđƒāļ™āļĢāļ°āļšāļš", 404); uppdated.root = org.result.root; uppdated.rootId = org.result.rootId; + uppdated.rootDnaId = org.result.rootDnaId; uppdated.rootShortName = org.result.rootShortName; uppdated.child1 = req.node <= 0 ? null : org.result.child1; uppdated.child1Id = req.node <= 0 ? null : org.result.child1Id; + uppdated.child1DnaId = req.node <= 0 ? null : org.result.child1DnaId; uppdated.child1ShortName = req.node <= 0 ? null : org.result.child1ShortName; uppdated.child2 = req.node <= 1 ? null : org.result.child2; uppdated.child2Id = req.node <= 1 ? null : org.result.child2Id; + uppdated.child2DnaId = req.node <= 1 ? null : org.result.child2DnaId; uppdated.child2ShortName = req.node <= 1 ? null : org.result.child2ShortName; uppdated.child3 = req.node <= 2 ? null : org.result.child3; uppdated.child3Id = req.node <= 2 ? null : org.result.child3Id; + uppdated.child3DnaId = req.node <= 2 ? null : org.result.child3DnaId; uppdated.child3ShortName = req.node <= 2 ? null : org.result.child3ShortName; uppdated.child4 = req.node <= 3 ? null : org.result.child4; uppdated.child4Id = req.node <= 3 ? null : org.result.child4Id; + uppdated.child4DnaId = req.node <= 3 ? null : org.result.child4DnaId; uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; } @@ -961,11 +966,11 @@ namespace BMA.EHR.Placement.Service.Controllers var placementProfiles = await _context.PlacementAppointments .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => - { - profile.Status = "REPORT"; - profile.typeCommand = "MOVE"; - }); + placementProfiles.ForEach(profile => + { + profile.Status = "REPORT"; + profile.typeCommand = "MOVE"; + }); await _context.SaveChangesAsync(); return Success(); } @@ -1844,6 +1849,10 @@ namespace BMA.EHR.Placement.Service.Controllers rootId = profile.rootId, rootShortName = profile.rootShortName, rootDnaId = profile.rootDnaId, + child1DnaId = profile.child1DnaId, + child2DnaId = profile.child2DnaId, + child3DnaId = profile.child3DnaId, + child4DnaId = profile.child4DnaId, CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index ed223f86..4e7f40dd 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -559,18 +559,23 @@ namespace BMA.EHR.Placement.Service.Controllers uppdated.root = org.result.root; uppdated.rootId = org.result.rootId; + uppdated.rootDnaId = org.result.rootDnaId; uppdated.rootShortName = org.result.rootShortName; uppdated.child1 = req.node <= 0 ? null : org.result.child1; uppdated.child1Id = req.node <= 0 ? null : org.result.child1Id; + uppdated.child1DnaId = req.node <= 0 ? null : org.result.child1DnaId; uppdated.child1ShortName = req.node <= 0 ? null : org.result.child1ShortName; uppdated.child2 = req.node <= 1 ? null : org.result.child2; uppdated.child2Id = req.node <= 1 ? null : org.result.child2Id; + uppdated.child2DnaId = req.node <= 1 ? null : org.result.child2DnaId; uppdated.child2ShortName = req.node <= 1 ? null : org.result.child2ShortName; uppdated.child3 = req.node <= 2 ? null : org.result.child3; uppdated.child3Id = req.node <= 2 ? null : org.result.child3Id; + uppdated.child3DnaId = req.node <= 2 ? null : org.result.child3DnaId; uppdated.child3ShortName = req.node <= 2 ? null : org.result.child3ShortName; uppdated.child4 = req.node <= 3 ? null : org.result.child4; uppdated.child4Id = req.node <= 3 ? null : org.result.child4Id; + uppdated.child4DnaId = req.node <= 3 ? null : org.result.child4DnaId; uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 6fe0ae1d..12fec625 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -810,18 +810,23 @@ namespace BMA.EHR.Placement.Service.Controllers person.LastUpdatedAt = DateTime.Now; person.root = null; person.rootId = null; + person.rootDnaId = null; person.rootShortName = null; person.child1 = null; person.child1Id = null; + person.child1DnaId = null; person.child1ShortName = null; person.child2 = null; person.child2Id = null; + person.child2Id = null; person.child2ShortName = null; person.child3 = null; person.child3Id = null; + person.child3DnaId = null; person.child3ShortName = null; person.child4 = null; person.child4Id = null; + person.child4DnaId = null; person.child4ShortName = null; person.orgRevisionId = null; person.posMasterNo = null; @@ -920,18 +925,23 @@ namespace BMA.EHR.Placement.Service.Controllers person.root = org.result.root; person.rootId = org.result.rootId; + person.rootDnaId = org.result.rootDnaId; person.rootShortName = org.result.rootShortName; person.child1 = req.node <= 0 ? null : org.result.child1; person.child1Id = req.node <= 0 ? null : org.result.child1Id; + person.child1DnaId = req.node <= 0 ? null : org.result.child1DnaId; person.child1ShortName = req.node <= 0 ? null : org.result.child1ShortName; person.child2 = req.node <= 1 ? null : org.result.child2; person.child2Id = req.node <= 1 ? null : org.result.child2Id; + person.child2DnaId = req.node <= 1 ? null : org.result.child2DnaId; person.child2ShortName = req.node <= 1 ? null : org.result.child2ShortName; person.child3 = req.node <= 2 ? null : org.result.child3; person.child3Id = req.node <= 2 ? null : org.result.child3Id; + person.child3DnaId = req.node <= 2 ? null : org.result.child3DnaId; person.child3ShortName = req.node <= 2 ? null : org.result.child3ShortName; person.child4 = req.node <= 3 ? null : org.result.child4; person.child4Id = req.node <= 3 ? null : org.result.child4Id; + person.child4DnaId = req.node <= 3 ? null : org.result.child4DnaId; person.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; } @@ -1314,18 +1324,23 @@ namespace BMA.EHR.Placement.Service.Controllers } profile.root = null; profile.rootId = null; + profile.rootDnaId = null; profile.rootShortName = null; profile.child1 = null; profile.child1Id = null; + profile.child1DnaId = null; profile.child1ShortName = null; profile.child2 = null; profile.child2Id = null; + profile.child2DnaId = null; profile.child2ShortName = null; profile.child3 = null; profile.child3Id = null; + profile.child3DnaId = null; profile.child3ShortName = null; profile.child4 = null; profile.child4Id = null; + profile.child4DnaId = null; profile.child4ShortName = null; profile.orgRevisionId = null; profile.posMasterNo = null; @@ -2919,7 +2934,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootId.Contains(item.rootId) && + (node == 0 ? x.rootDnaId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(item.child4DnaId) : true) && x.PlacementStatus.Trim().ToUpper() == "DONE") .GroupBy(x => x.typeCommand.Trim().ToUpper()) .Select(g => new @@ -2933,7 +2952,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootId.Contains(item.rootId) && + (node == 0 ? x.rootDnaId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE" && x.type.Trim().ToUpper() == "OFFICER") .GroupBy(x => x.typeCommand.Trim().ToUpper()) @@ -2948,7 +2971,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootOldId.Contains(item.rootId) && + (node == 0 ? x.rootDnaOldId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaOldId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaOldId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaOldId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaOldId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE") .Count(); @@ -2956,7 +2983,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootId.Contains(item.rootId) && + (node == 0 ? x.rootDnaId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE") .Count(); @@ -2964,7 +2995,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootOldId.Contains(item.rootId) && + (node == 0 ? x.rootDnaOldId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaOldId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaOldId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaOldId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaOldId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE") .Count(); @@ -2972,7 +3007,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootOldId.Contains(item.rootId) && + (node == 0 ? x.rootDnaOldId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaOldId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaOldId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaOldId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaOldId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE") .Count(); @@ -2980,7 +3019,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootOldId.Contains(item.rootId) && + (node == 0 ? x.rootDnaOldId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaOldId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaOldId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaOldId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaOldId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE") .Count(); @@ -3018,7 +3061,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootId.Contains(item.rootId) && + (node == 0 ? x.rootDnaId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(item.child4DnaId) : true) && x.PlacementStatus.Trim().ToUpper() == "DONE") .GroupBy(x => x.typeCommand.Trim().ToUpper()) .Select(g => new @@ -3032,7 +3079,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootId.Contains(item.rootId) && + (node == 0 ? x.rootDnaId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE" && x.type.Trim().ToUpper() == "OFFICER") .GroupBy(x => x.typeCommand.Trim().ToUpper()) @@ -3047,7 +3098,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootOldId.Contains(item.rootId) && + (node == 0 ? x.rootDnaOldId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaOldId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaOldId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaOldId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaOldId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE") .Count(); @@ -3055,7 +3110,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootId.Contains(item.rootId) && + (node == 0 ? x.rootDnaId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE") .Count(); @@ -3063,7 +3122,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootOldId.Contains(item.rootId) && + (node == 0 ? x.rootDnaOldId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaOldId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaOldId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaOldId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaOldId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE") .Count(); @@ -3071,7 +3134,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootOldId.Contains(item.rootId) && + (node == 0 ? x.rootDnaOldId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaOldId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaOldId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaOldId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaOldId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE") .Count(); @@ -3079,7 +3146,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootOldId.Contains(item.rootId) && + (node == 0 ? x.rootDnaOldId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaOldId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaOldId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaOldId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaOldId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE") .Count(); @@ -3210,7 +3281,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootId.Contains(item.rootId) && + (node == 0 ? x.rootDnaId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE" && x.type.Trim().ToUpper() == "EMPLOYEE") .GroupBy(x => x.typeCommand.Trim().ToUpper()) @@ -3225,7 +3300,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootId.Contains(item.rootId)) + (node == 0 ? x.rootDnaId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(item.child4DnaId) : true)) .Count(); //var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; @@ -3251,7 +3330,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootId.Contains(item.rootId) && + (node == 0 ? x.rootDnaId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(item.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE" && x.type.Trim().ToUpper() == "EMPLOYEE") .GroupBy(x => x.typeCommand.Trim().ToUpper()) @@ -3266,7 +3349,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootId.Contains(item.rootId)) + (node == 0 ? x.rootDnaId.Contains(item.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(item.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(item.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(item.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(item.child4DnaId) : true)) .Count(); //var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index bb3c4798..bfb7ec9b 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -372,18 +372,23 @@ namespace BMA.EHR.Placement.Service.Controllers placementOfficer.citizenId = org.result.citizenId; placementOfficer.rootOld = org.result.root; placementOfficer.rootOldId = org.result.rootId; + placementOfficer.rootDnaOldId = org.result.rootDnaId; placementOfficer.rootShortNameOld = org.result.rootShortName; placementOfficer.child1Old = org.result.child1; placementOfficer.child1OldId = org.result.child1Id; + placementOfficer.child1DnaOldId = org.result.child1DnaId; placementOfficer.child1ShortNameOld = org.result.child1ShortName; placementOfficer.child2Old = org.result.child2; placementOfficer.child2OldId = org.result.child2Id; + placementOfficer.child2DnaOldId = org.result.child2DnaId; placementOfficer.child2ShortNameOld = org.result.child2ShortName; placementOfficer.child3Old = org.result.child3; placementOfficer.child3OldId = org.result.child3Id; + placementOfficer.child3DnaOldId = org.result.child3DnaId; placementOfficer.child3ShortNameOld = org.result.child3ShortName; placementOfficer.child4Old = org.result.child4; placementOfficer.child4OldId = org.result.child4Id; + placementOfficer.child4DnaOldId = org.result.child4DnaId; placementOfficer.child4ShortNameOld = org.result.child4ShortName; placementOfficer.posMasterNoOld = org.result.posMasterNo; placementOfficer.posTypeOldId = org.result.posTypeId; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 0676d102..102c5dcc 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -628,18 +628,23 @@ namespace BMA.EHR.Placement.Service.Controllers uppdated.root = org.result.root; uppdated.rootId = org.result.rootId; + uppdated.rootDnaId = org.result.rootDnaId; uppdated.rootShortName = org.result.rootShortName; uppdated.child1 = req.node <= 0 ? null : org.result.child1; uppdated.child1Id = req.node <= 0 ? null : org.result.child1Id; + uppdated.child1DnaId = req.node <= 0 ? null : org.result.child1DnaId; uppdated.child1ShortName = req.node <= 0 ? null : org.result.child1ShortName; uppdated.child2 = req.node <= 1 ? null : org.result.child2; uppdated.child2Id = req.node <= 1 ? null : org.result.child2Id; + uppdated.child2DnaId = req.node <= 1 ? null : org.result.child2DnaId; uppdated.child2ShortName = req.node <= 1 ? null : org.result.child2ShortName; uppdated.child3 = req.node <= 2 ? null : org.result.child3; uppdated.child3Id = req.node <= 2 ? null : org.result.child3Id; + uppdated.child3DnaId = req.node <= 2 ? null : org.result.child3DnaId; uppdated.child3ShortName = req.node <= 2 ? null : org.result.child3ShortName; uppdated.child4 = req.node <= 3 ? null : org.result.child4; uppdated.child4Id = req.node <= 3 ? null : org.result.child4Id; + uppdated.child4DnaId = req.node <= 3 ? null : org.result.child4DnaId; uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index 7db7fec8..0dfd8e8c 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -250,18 +250,23 @@ namespace BMA.EHR.Placement.Service.Controllers placementRepatriation.citizenId = org.result.citizenId; placementRepatriation.rootOld = org.result.root; placementRepatriation.rootOldId = org.result.rootId; + placementRepatriation.rootDnaOldId = org.result.rootDnaId; placementRepatriation.rootShortNameOld = org.result.rootShortName; placementRepatriation.child1Old = org.result.child1; placementRepatriation.child1OldId = org.result.child1Id; + placementRepatriation.child1DnaOldId = org.result.child1DnaId; placementRepatriation.child1ShortNameOld = org.result.child1ShortName; placementRepatriation.child2Old = org.result.child2; placementRepatriation.child2OldId = org.result.child2Id; + placementRepatriation.child2DnaOldId = org.result.child2DnaId; placementRepatriation.child2ShortNameOld = org.result.child2ShortName; placementRepatriation.child3Old = org.result.child3; placementRepatriation.child3OldId = org.result.child3Id; + placementRepatriation.child3DnaOldId = org.result.child3DnaId; placementRepatriation.child3ShortNameOld = org.result.child3ShortName; placementRepatriation.child4Old = org.result.child4; placementRepatriation.child4OldId = org.result.child4Id; + placementRepatriation.child4DnaOldId = org.result.child4DnaId; placementRepatriation.child4ShortNameOld = org.result.child4ShortName; placementRepatriation.posMasterNoOld = org.result.posMasterNo; placementRepatriation.posTypeOldId = org.result.posTypeId; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index cc4e4d06..f420effd 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -505,18 +505,23 @@ namespace BMA.EHR.Placement.Service.Controllers placementTransfer.citizenId = org.result.citizenId; placementTransfer.rootOld = org.result.root; placementTransfer.rootOldId = org.result.rootId; + placementTransfer.rootDnaOldId = org.result.rootDnaId; placementTransfer.rootShortNameOld = org.result.rootShortName; placementTransfer.child1Old = org.result.child1; placementTransfer.child1OldId = org.result.child1Id; + placementTransfer.child1DnaOldId = org.result.child1DnaId; placementTransfer.child1ShortNameOld = org.result.child1ShortName; placementTransfer.child2Old = org.result.child2; placementTransfer.child2OldId = org.result.child2Id; + placementTransfer.child2DnaOldId = org.result.child2DnaId; placementTransfer.child2ShortNameOld = org.result.child2ShortName; placementTransfer.child3Old = org.result.child3; placementTransfer.child3OldId = org.result.child3Id; + placementTransfer.child3DnaOldId = org.result.child3DnaId; placementTransfer.child3ShortNameOld = org.result.child3ShortName; placementTransfer.child4Old = org.result.child4; placementTransfer.child4OldId = org.result.child4Id; + placementTransfer.child4DnaOldId = org.result.child4DnaId; placementTransfer.child4ShortNameOld = org.result.child4ShortName; placementTransfer.posMasterNoOld = org.result.posMasterNo; placementTransfer.posTypeOldId = org.result.posTypeId; diff --git a/BMA.EHR.Placement.Service/Requests/NodeAllRequest.cs b/BMA.EHR.Placement.Service/Requests/NodeAllRequest.cs index d1c4f7cf..c7306459 100644 --- a/BMA.EHR.Placement.Service/Requests/NodeAllRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/NodeAllRequest.cs @@ -16,9 +16,14 @@ namespace BMA.EHR.Placement.Service.Requests { public string? name { get; set; } public string? rootId { get; set; } + public string? rootDnaId { get; set; } public string? child1Id { get; set; } + public string? child1DnaId { get; set; } public string? child2Id { get; set; } + public string? child2DnaId { get; set; } public string? child3Id { get; set; } + public string? child3DnaId { get; set; } public string? child4Id { get; set; } + public string? child4DnaId { get; set; } } } \ No newline at end of file diff --git a/BMA.EHR.Placement.Service/Requests/OrgRequest.cs b/BMA.EHR.Placement.Service/Requests/OrgRequest.cs index 219566df..9fa91594 100644 --- a/BMA.EHR.Placement.Service/Requests/OrgRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/OrgRequest.cs @@ -18,18 +18,23 @@ namespace BMA.EHR.Placement.Service.Requests public DateTime? birthDate { get; set; } public string? root { get; set; } public string? rootId { get; set; } + public string? rootDnaId { get; set; } public string? rootShortName { get; set; } public string? child1 { get; set; } public string? child1Id { get; set; } + public string? child1DnaId { get; set; } public string? child1ShortName { get; set; } public string? child2 { get; set; } public string? child2Id { get; set; } + public string? child2DnaId { get; set; } public string? child2ShortName { get; set; } public string? child3 { get; set; } public string? child3Id { get; set; } + public string? child3DnaId { get; set; } public string? child3ShortName { get; set; } public string? child4 { get; set; } public string? child4Id { get; set; } + public string? child4DnaId { get; set; } public string? child4ShortName { get; set; } public string? node { get; set; } public string? nodeId { get; set; } diff --git a/BMA.EHR.Placement.Service/Requests/ReportExecutePlacementAppointRequest.cs b/BMA.EHR.Placement.Service/Requests/ReportExecutePlacementAppointRequest.cs index 96f0905a..48ac74e0 100644 --- a/BMA.EHR.Placement.Service/Requests/ReportExecutePlacementAppointRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/ReportExecutePlacementAppointRequest.cs @@ -18,6 +18,10 @@ namespace BMA.EHR.Placement.Service.Requests public string? rootId { get; set; } public string? rootShortName { get; set; } public string? rootDnaId { get; set; } + public string? child1DnaId { get; set; } + public string? child2DnaId { get; set; } + public string? child3DnaId { get; set; } + public string? child4DnaId { get; set; } } } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index 2927a3da..984afb0d 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -1480,7 +1480,12 @@ namespace BMA.EHR.Retirement.Service.Controllers { //āđ€āļāļĐāļĩāļĒāļ“ var retire = _context.RetirementPeriods - .Include(x => x.RetirementProfiles.Where(x => x.rootId == org.rootId)) + .Include(x => x.RetirementProfiles.Where(x => + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true))) .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && @@ -1509,7 +1514,11 @@ namespace BMA.EHR.Retirement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootOldId.Contains(org.rootId) && + (node == 0 ? x.rootDnaOldId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaOldId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaOldId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaOldId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaOldId.Contains(org.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE") .Count(); @@ -1519,7 +1528,11 @@ namespace BMA.EHR.Retirement.Service.Controllers x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && x.profileType.Trim().ToUpper() == "OFFICER" && - x.rootId.Contains(org.rootId)) + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true)) .Count(); //āđƒāļŦāđ‰āļ­āļ­āļ @@ -1529,7 +1542,11 @@ namespace BMA.EHR.Retirement.Service.Controllers x.CreatedAt.Date <= endDate && x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "OFFICER" && - x.rootOldId.Contains(org.rootId)) + (node == 0 ? x.rootDnaOldId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaOldId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaOldId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaOldId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaOldId.Contains(org.child4DnaId) : true)) .Count(); //āļ›āļĨāļ”āļ­āļ­āļ @@ -1540,7 +1557,11 @@ namespace BMA.EHR.Retirement.Service.Controllers x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "OFFICER" && x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") && - x.rootId.Contains(org.rootId)) + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true)) .Count(); //āđ„āļĨāđˆāļ­āļ­āļ @@ -1551,7 +1572,11 @@ namespace BMA.EHR.Retirement.Service.Controllers x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "OFFICER" && x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") && - x.rootId.Contains(org.rootId)) + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true)) .Count(); data1.Add(new @@ -1579,7 +1604,12 @@ namespace BMA.EHR.Retirement.Service.Controllers { //āđ€āļāļĐāļĩāļĒāļ“ var retire = _context.RetirementPeriods - .Include(x => x.RetirementProfiles.Where(x => x.rootId == org.rootId)) + .Include(x => x.RetirementProfiles.Where(x => + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true))) .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && @@ -1593,7 +1623,11 @@ namespace BMA.EHR.Retirement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootOldId == org.rootId && + (node == 0 ? x.rootDnaOldId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaOldId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaOldId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaOldId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaOldId.Contains(org.child4DnaId) : true) && x.IsCancel == false && x.Status == "DONE") .ToList(); @@ -1608,7 +1642,11 @@ namespace BMA.EHR.Retirement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.rootOldId.Contains(org.rootId) && + (node == 0 ? x.rootDnaOldId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaOldId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaOldId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaOldId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaOldId.Contains(org.child4DnaId) : true) && x.Status.Trim().ToUpper() == "DONE") .Count(); @@ -1618,7 +1656,11 @@ namespace BMA.EHR.Retirement.Service.Controllers x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && x.profileType.Trim().ToUpper() == "OFFICER" && - x.rootId.Contains(org.rootId)) + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true)) .Count(); //āđƒāļŦāđ‰āļ­āļ­āļ @@ -1628,7 +1670,11 @@ namespace BMA.EHR.Retirement.Service.Controllers x.CreatedAt.Date <= endDate && x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "OFFICER" && - x.rootOldId.Contains(org.rootId)) + (node == 0 ? x.rootDnaOldId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaOldId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaOldId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaOldId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaOldId.Contains(org.child4DnaId) : true)) .Count(); //āļ›āļĨāļ”āļ­āļ­āļ @@ -1639,7 +1685,11 @@ namespace BMA.EHR.Retirement.Service.Controllers x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "OFFICER" && x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") && - x.rootId.Contains(org.rootId)) + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true)) .Count(); //āđ„āļĨāđˆāļ­āļ­āļ @@ -1650,7 +1700,11 @@ namespace BMA.EHR.Retirement.Service.Controllers x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "OFFICER" && x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") && - x.rootId.Contains(org.rootId)) + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true)) .Count(); data2.Add(new @@ -1772,17 +1826,22 @@ namespace BMA.EHR.Retirement.Service.Controllers { //āđ€āļāļĐāļĩāļĒāļ“ var retire = _context.RetirementPeriods - .Include(x => x.RetirementProfiles.Where(x => x.rootId == org.rootId)) + .Include(x => x.RetirementProfiles.Where(x => + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true))) .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.Type.Trim().ToUpper() == "OFFICER") + x.Type.Trim().ToUpper() == "EMPLOYEE") .FirstOrDefault(); var rt_count = retire != null ? retire.RetirementProfiles.Count() : 0; //āļĨāļēāļ­āļ­āļ - var retirementResigns = _context.RetirementResigns + var retirementResigns = _context.RetirementResignEmployees .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && @@ -1801,8 +1860,12 @@ namespace BMA.EHR.Retirement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.profileType.Trim().ToUpper() == "OFFICER" && - x.rootId.Contains(org.rootId)) + x.profileType.Trim().ToUpper() == "EMPLOYEE" && + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true)) .Count(); //āđƒāļŦāđ‰āļ­āļ­āļ @@ -1811,7 +1874,7 @@ namespace BMA.EHR.Retirement.Service.Controllers x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && x.Status.Trim().ToUpper() == "DONE" && - x.profileType.Trim().ToUpper() == "OFFICER" && + x.profileType.Trim().ToUpper() == "EMPLOYEE" && x.rootOldId.Contains(org.rootId)) .Count(); @@ -1821,9 +1884,13 @@ namespace BMA.EHR.Retirement.Service.Controllers x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && x.Status.Trim().ToUpper() == "DONE" && - x.profileType.Trim().ToUpper() == "OFFICER" && + x.profileType.Trim().ToUpper() == "EMPLOYEE" && x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") && - x.rootId.Contains(org.rootId)) + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true)) .Count(); //āđ„āļĨāđˆāļ­āļ­āļ @@ -1832,9 +1899,13 @@ namespace BMA.EHR.Retirement.Service.Controllers x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && x.Status.Trim().ToUpper() == "DONE" && - x.profileType.Trim().ToUpper() == "OFFICER" && + x.profileType.Trim().ToUpper() == "EMPLOYEE" && x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") && - x.rootId.Contains(org.rootId)) + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true)) .Count(); data1.Add(new @@ -1861,17 +1932,22 @@ namespace BMA.EHR.Retirement.Service.Controllers { //āđ€āļāļĐāļĩāļĒāļ“ var retire = _context.RetirementPeriods - .Include(x => x.RetirementProfiles.Where(x => x.rootId == org.rootId)) + .Include(x => x.RetirementProfiles.Where(x => + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true))) .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.Type.Trim().ToUpper() == "OFFICER") + x.Type.Trim().ToUpper() == "EMPLOYEE") .FirstOrDefault(); var rt_count = retire != null ? retire.RetirementProfiles.Count() : 0; //āļĨāļēāļ­āļ­āļ - var retirementResigns = _context.RetirementResigns + var retirementResigns = _context.RetirementResignEmployees .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && @@ -1890,8 +1966,12 @@ namespace BMA.EHR.Retirement.Service.Controllers .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.profileType.Trim().ToUpper() == "OFFICER" && - x.rootId.Contains(org.rootId)) + x.profileType.Trim().ToUpper() == "EMPLOYEE" && + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true)) .Count(); //āđƒāļŦāđ‰āļ­āļ­āļ @@ -1900,7 +1980,7 @@ namespace BMA.EHR.Retirement.Service.Controllers x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && x.Status.Trim().ToUpper() == "DONE" && - x.profileType.Trim().ToUpper() == "OFFICER" && + x.profileType.Trim().ToUpper() == "EMPLOYEE" && x.rootOldId.Contains(org.rootId)) .Count(); @@ -1910,9 +1990,13 @@ namespace BMA.EHR.Retirement.Service.Controllers x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && x.Status.Trim().ToUpper() == "DONE" && - x.profileType.Trim().ToUpper() == "OFFICER" && + x.profileType.Trim().ToUpper() == "EMPLOYEE" && x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") && - x.rootId.Contains(org.rootId)) + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true)) .Count(); //āđ„āļĨāđˆāļ­āļ­āļ @@ -1921,9 +2005,13 @@ namespace BMA.EHR.Retirement.Service.Controllers x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && x.Status.Trim().ToUpper() == "DONE" && - x.profileType.Trim().ToUpper() == "OFFICER" && + x.profileType.Trim().ToUpper() == "EMPLOYEE" && x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") && - x.rootId.Contains(org.rootId)) + (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && + (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && + (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && + (node == 3 ? x.child3DnaId.Contains(org.child3DnaId) : true) && + (node == 4 ? x.child4DnaId.Contains(org.child4DnaId) : true)) .Count(); data2.Add(new diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 7f47b570..a61a90b6 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -267,18 +267,23 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceased.citizenId = org.result.citizenId; retirementDeceased.root = org.result.root; retirementDeceased.rootId = org.result.rootId; + retirementDeceased.rootDnaId = org.result.rootDnaId; retirementDeceased.rootShortName = org.result.rootShortName; retirementDeceased.child1 = org.result.child1; retirementDeceased.child1Id = org.result.child1Id; + retirementDeceased.child1DnaId = org.result.child1DnaId; retirementDeceased.child1ShortName = org.result.child1ShortName; retirementDeceased.child2 = org.result.child2; retirementDeceased.child2Id = org.result.child2Id; + retirementDeceased.child2DnaId = org.result.child2DnaId; retirementDeceased.child2ShortName = org.result.child2ShortName; retirementDeceased.child3 = org.result.child3; retirementDeceased.child3Id = org.result.child3Id; + retirementDeceased.child3DnaId = org.result.child3DnaId; retirementDeceased.child3ShortName = org.result.child3ShortName; retirementDeceased.child4 = org.result.child4; retirementDeceased.child4Id = org.result.child4Id; + retirementDeceased.child4DnaId = org.result.child4DnaId; retirementDeceased.child4ShortName = org.result.child4ShortName; retirementDeceased.posMasterNo = org.result.posMasterNo; retirementDeceased.position = org.result.position; @@ -329,18 +334,23 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceased.citizenId = org.result.citizenId; retirementDeceased.root = org.result.root; retirementDeceased.rootId = org.result.rootId; + retirementDeceased.rootDnaId = org.result.rootDnaId; retirementDeceased.rootShortName = org.result.rootShortName; retirementDeceased.child1 = org.result.child1; retirementDeceased.child1Id = org.result.child1Id; + retirementDeceased.child1DnaId = org.result.child1DnaId; retirementDeceased.child1ShortName = org.result.child1ShortName; retirementDeceased.child2 = org.result.child2; retirementDeceased.child2Id = org.result.child2Id; + retirementDeceased.child2DnaId = org.result.child2DnaId; retirementDeceased.child2ShortName = org.result.child2ShortName; retirementDeceased.child3 = org.result.child3; retirementDeceased.child3Id = org.result.child3Id; + retirementDeceased.child3DnaId = org.result.child3DnaId; retirementDeceased.child3ShortName = org.result.child3ShortName; retirementDeceased.child4 = org.result.child4; retirementDeceased.child4Id = org.result.child4Id; + retirementDeceased.child4DnaId = org.result.child4DnaId; retirementDeceased.child4ShortName = org.result.child4ShortName; retirementDeceased.posMasterNo = org.result.posMasterNo; retirementDeceased.position = org.result.position; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 97580f4e..c0495421 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -372,18 +372,23 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOther.citizenId = org.result.citizenId; retirementOther.rootOld = org.result.root; retirementOther.rootOldId = org.result.rootId; + retirementOther.rootDnaOldId = org.result.rootDnaId; retirementOther.rootShortNameOld = org.result.rootShortName; retirementOther.child1Old = org.result.child1; retirementOther.child1OldId = org.result.child1Id; + retirementOther.child1DnaOldId = org.result.child1DnaId; retirementOther.child1ShortNameOld = org.result.child1ShortName; retirementOther.child2Old = org.result.child2; retirementOther.child2OldId = org.result.child2Id; + retirementOther.child2DnaOldId = org.result.child2DnaId; retirementOther.child2ShortNameOld = org.result.child2ShortName; retirementOther.child3Old = org.result.child3; retirementOther.child3OldId = org.result.child3Id; + retirementOther.child3DnaOldId = org.result.child3DnaId; retirementOther.child3ShortNameOld = org.result.child3ShortName; retirementOther.child4Old = org.result.child4; retirementOther.child4OldId = org.result.child4Id; + retirementOther.child4DnaOldId = org.result.child4DnaId; retirementOther.child4ShortNameOld = org.result.child4ShortName; retirementOther.posMasterNoOld = org.result.posMasterNo; retirementOther.posTypeOldId = org.result.posTypeId; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index 501f6051..58577de3 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -295,18 +295,23 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOut.citizenId = org.result.citizenId; retirementOut.rootOld = org.result.root; retirementOut.rootOldId = org.result.rootId; + retirementOut.rootDnaOldId = org.result.rootDnaId; retirementOut.rootShortNameOld = org.result.rootShortName; retirementOut.child1Old = org.result.child1; retirementOut.child1OldId = org.result.child1Id; + retirementOut.child1DnaOldId = org.result.child1DnaId; retirementOut.child1ShortNameOld = org.result.child1ShortName; retirementOut.child2Old = org.result.child2; retirementOut.child2OldId = org.result.child2Id; + retirementOut.child2DnaOldId = org.result.child2DnaId; retirementOut.child2ShortNameOld = org.result.child2ShortName; retirementOut.child3Old = org.result.child3; retirementOut.child3OldId = org.result.child3Id; + retirementOut.child3DnaOldId = org.result.child3DnaId; retirementOut.child3ShortNameOld = org.result.child3ShortName; retirementOut.child4Old = org.result.child4; retirementOut.child4OldId = org.result.child4Id; + retirementOut.child4DnaOldId = org.result.child4DnaId; retirementOut.child4ShortNameOld = org.result.child4ShortName; retirementOut.posMasterNoOld = org.result.posMasterNo; retirementOut.posTypeOldId = org.result.posTypeId; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 5216110c..93b395b2 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -934,18 +934,23 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementResign.citizenId = org.result.citizenId; retirementResign.rootOld = org.result.root; retirementResign.rootOldId = org.result.rootId; + retirementResign.rootDnaOldId = org.result.rootDnaId; retirementResign.rootShortNameOld = org.result.rootShortName; retirementResign.child1Old = org.result.child1; retirementResign.child1OldId = org.result.child1Id; + retirementResign.child1DnaOldId = org.result.child1DnaId; retirementResign.child1ShortNameOld = org.result.child1ShortName; retirementResign.child2Old = org.result.child2; retirementResign.child2OldId = org.result.child2Id; + retirementResign.child2DnaOldId = org.result.child2DnaId; retirementResign.child2ShortNameOld = org.result.child2ShortName; retirementResign.child3Old = org.result.child3; retirementResign.child3OldId = org.result.child3Id; + retirementResign.child3DnaOldId = org.result.child3DnaId; retirementResign.child3ShortNameOld = org.result.child3ShortName; retirementResign.child4Old = org.result.child4; retirementResign.child4OldId = org.result.child4Id; + retirementResign.child4DnaOldId = org.result.child4DnaId; retirementResign.child4ShortNameOld = org.result.child4ShortName; retirementResign.posMasterNoOld = org.result.posMasterNo; retirementResign.posTypeOldId = org.result.posTypeId; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index b484414c..8759b5d6 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -871,18 +871,23 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementResignEmployee.citizenId = org.result.citizenId; retirementResignEmployee.rootOld = org.result.root; retirementResignEmployee.rootOldId = org.result.rootId; + retirementResignEmployee.rootDnaOldId = org.result.rootDnaId; retirementResignEmployee.rootShortNameOld = org.result.rootShortName; retirementResignEmployee.child1Old = org.result.child1; retirementResignEmployee.child1OldId = org.result.child1Id; + retirementResignEmployee.child1DnaOldId = org.result.child1DnaId; retirementResignEmployee.child1ShortNameOld = org.result.child1ShortName; retirementResignEmployee.child2Old = org.result.child2; retirementResignEmployee.child2OldId = org.result.child2Id; + retirementResignEmployee.child2DnaOldId = org.result.child2DnaId; retirementResignEmployee.child2ShortNameOld = org.result.child2ShortName; retirementResignEmployee.child3Old = org.result.child3; retirementResignEmployee.child3OldId = org.result.child3Id; + retirementResignEmployee.child3DnaOldId = org.result.child3DnaId; retirementResignEmployee.child3ShortNameOld = org.result.child3ShortName; retirementResignEmployee.child4Old = org.result.child4; retirementResignEmployee.child4OldId = org.result.child4Id; + retirementResignEmployee.child4DnaOldId = org.result.child4DnaId; retirementResignEmployee.child4ShortNameOld = org.result.child4ShortName; retirementResignEmployee.posMasterNoOld = org.result.posMasterNo; retirementResignEmployee.posTypeOldId = org.result.posTypeId; diff --git a/BMA.EHR.Retirement.Service/Requests/NodeAllRequest.cs b/BMA.EHR.Retirement.Service/Requests/NodeAllRequest.cs index 0e5b46b3..c0e4486b 100644 --- a/BMA.EHR.Retirement.Service/Requests/NodeAllRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/NodeAllRequest.cs @@ -16,9 +16,14 @@ namespace BMA.EHR.Retirement.Service.Requests { public string? name { get; set; } public string? rootId { get; set; } + public string? rootDnaId { get; set; } public string? child1Id { get; set; } + public string? child1DnaId { get; set; } public string? child2Id { get; set; } + public string? child2DnaId { get; set; } public string? child3Id { get; set; } + public string? child3DnaId { get; set; } public string? child4Id { get; set; } + public string? child4DnaId { get; set; } } } \ No newline at end of file diff --git a/BMA.EHR.Retirement.Service/Requests/OrgRequest.cs b/BMA.EHR.Retirement.Service/Requests/OrgRequest.cs index 15986e02..c859378c 100644 --- a/BMA.EHR.Retirement.Service/Requests/OrgRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/OrgRequest.cs @@ -16,18 +16,23 @@ namespace BMA.EHR.Retirement.Service.Requests public string? citizenId { get; set; } public string? root { get; set; } public string? rootId { get; set; } + public string? rootDnaId { get; set; } public string? rootShortName { get; set; } public string? child1 { get; set; } public string? child1Id { get; set; } + public string? child1DnaId { get; set; } public string? child1ShortName { get; set; } public string? child2 { get; set; } public string? child2Id { get; set; } + public string? child2DnaId { get; set; } public string? child2ShortName { get; set; } public string? child3 { get; set; } public string? child3Id { get; set; } + public string? child3DnaId { get; set; } public string? child3ShortName { get; set; } public string? child4 { get; set; } public string? child4Id { get; set; } + public string? child4DnaId { get; set; } public string? child4ShortName { get; set; } public string? node { get; set; } public string? nodeId { get; set; } From 98f493ec9769128e4039b3600af3c97b4cea1db3 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 6 Feb 2025 18:17:32 +0700 Subject: [PATCH 087/879] =?UTF-8?q?fix=20=E0=B8=AD=E0=B8=AD=E0=B8=81?= =?UTF-8?q?=E0=B8=84=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=E0=B8=9A?= =?UTF-8?q?=E0=B8=A3=E0=B8=A3=E0=B8=88=E0=B8=B8=E0=B9=80=E0=B8=AA=E0=B8=A3?= =?UTF-8?q?=E0=B9=87=E0=B8=88=E0=B8=AA=E0=B8=B4=E0=B9=89=E0=B8=99=20(?= =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B8=97?= =?UTF-8?q?=E0=B8=B5=E0=B9=88=E0=B8=AD=E0=B8=A2=E0=B8=B9=E0=B9=88=E0=B9=84?= =?UTF-8?q?=E0=B8=A1=E0=B9=88=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B6?= =?UTF-8?q?=E0=B8=81=E0=B8=A5=E0=B8=87=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A?= =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2=E0=B8=99?= =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4?= =?UTF-8?q?)=20UAT=20#889?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/PlacementController.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 12fec625..074291af 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1762,14 +1762,14 @@ namespace BMA.EHR.Placement.Service.Controllers religion = p.Religion == null ? string.Empty : p.Religion, bloodGroup = string.Empty, registrationAddress = p.RegistAddress == null ? string.Empty : p.RegistAddress, - registrationProvinceId = (String?)null, - registrationDistrictId = (String?)null, - registrationSubDistrictId = (String?)null, + registrationProvinceId = p.RegistProvinceId ?? null, + registrationDistrictId = p.RegistDistrictId ?? null, + registrationSubDistrictId = p.RegistSubDistrictId ?? null, registrationZipCode = p.RegistZipCode == null ? string.Empty : p.RegistZipCode, currentAddress = p.CurrentAddress == null ? string.Empty : p.CurrentAddress, - currentProvinceId = (String?)null, - currentDistrictId = (String?)null, - currentSubDistrictId = (String?)null, + currentProvinceId = p.CurrentProvinceId ?? null, + currentDistrictId = p.CurrentDistrictId ?? null, + currentSubDistrictId = p.CurrentSubDistrictId ?? null, currentZipCode = p.CurrentZipCode == null ? string.Empty : p.CurrentZipCode, amount = r.amount, amountSpecial = r.amountSpecial, From 45e4402b136be9ae03df7fcf84daf0572c5de266 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 7 Feb 2025 10:18:54 +0700 Subject: [PATCH 088/879] =?UTF-8?q?=E0=B9=80=E0=B8=9A=E0=B8=AD=E0=B8=A3?= =?UTF-8?q?=E0=B9=8C=E0=B9=82=E0=B8=97=E0=B8=A3=E0=B8=9B=E0=B8=A3=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B9=80=E0=B8=81=E0=B9=87?= =?UTF-8?q?=E0=B8=9A=E0=B9=81=E0=B8=84=E0=B9=88=E0=B8=95=E0=B8=B1=E0=B8=A7?= =?UTF-8?q?=E0=B9=80=E0=B8=A5=E0=B8=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Placement.Service/Controllers/PlacementController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 074291af..ac13682b 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -16,6 +16,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; using static Microsoft.EntityFrameworkCore.DbLoggerCategory; using BMA.EHR.Application.Repositories.Reports; +using System.Text.RegularExpressions; namespace BMA.EHR.Placement.Service.Controllers { @@ -1743,7 +1744,7 @@ namespace BMA.EHR.Placement.Service.Controllers posLevelId = p.posLevelId == null ? string.Empty : p.posLevelId, posTypeId = p.posTypeId == null ? string.Empty : p.posTypeId, email = p.Email == null ? string.Empty : p.Email, - phone = p.MobilePhone == null ? string.Empty : p.MobilePhone, + phone = p.MobilePhone == null ? string.Empty : Regex.Replace(p.MobilePhone, @"\D", ""), keycloak = string.Empty, isProbation = true, isLeave = false, @@ -1755,7 +1756,7 @@ namespace BMA.EHR.Placement.Service.Controllers birthDate = p.DateOfBirth == null ? (DateTime?)null : p.DateOfBirth, reasonSameDate = (DateTime?)null, ethnicity = p.Race == null ? string.Empty : p.Race, - telephoneNumber = p.Telephone == null ? string.Empty : p.Telephone, + telephoneNumber = p.Telephone == null ? string.Empty : Regex.Replace(p.Telephone, @"\D", ""), nationality = p.Nationality == null ? string.Empty : p.Nationality, gender = p.Gender == null ? string.Empty : p.Gender, relationship = p.Relationship == null ? string.Empty : p.Relationship, From 970e368ce4e099ee14661341a9356c7989511b7c Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 7 Feb 2025 16:52:49 +0700 Subject: [PATCH 089/879] no message --- ...isciplinary_ProfileComplaintInvestigate.cs | 4 + .../Discipline/DisciplineReport_Profile.cs | 2 + ...e table disciplinecom add dna1.Designer.cs | 3471 +++++++++++++++++ ...332_update table disciplinecom add dna1.cs | 54 + .../DisciplineDbContextModelSnapshot.cs | 12 + 5 files changed, 3543 insertions(+) create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250206061332_update table disciplinecom add dna1.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250206061332_update table disciplinecom add dna1.cs diff --git a/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs b/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs index 049893b1..27d1126e 100644 --- a/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs +++ b/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs @@ -83,10 +83,14 @@ namespace BMA.EHR.Domain.Models.Discipline public string? Status { get; set; } = "NEW"; [Comment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡")] public Guid? CommandTypeId { get; set; } + [Comment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡")] + public string? CommandCode { get; set; } [Comment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”")] public string? StatusDiscard { get; set; } = "NEW"; [Comment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”")] public Guid? CommandTypeDiscardId { get; set; } + [Comment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”")] + public string? CommandDiscardCode { get; set; } [Comment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡")] public string? IsReport { get; set; } = "NEW"; [Comment("āļŠāđˆāļ‡āđ„āļ›āļžāļąāļāļĢāļēāļŠāļāļēāļĢ")] diff --git a/BMA.EHR.Domain/Models/Discipline/DisciplineReport_Profile.cs b/BMA.EHR.Domain/Models/Discipline/DisciplineReport_Profile.cs index 5afbdc6a..6a5c75b9 100644 --- a/BMA.EHR.Domain/Models/Discipline/DisciplineReport_Profile.cs +++ b/BMA.EHR.Domain/Models/Discipline/DisciplineReport_Profile.cs @@ -85,6 +85,8 @@ namespace BMA.EHR.Domain.Models.Discipline public string? Status { get; set; } [Comment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡")] public Guid? CommandTypeId { get; set; } + [Comment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡")] + public string? CommandCode { get; set; } [Comment("āđ€āļŦāļ•āļļāļ—āļĩāđˆāļ–āļđāļāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™")] public string? DescriptionSuspend { get; set; } [Comment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™")] diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250206061332_update table disciplinecom add dna1.Designer.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250206061332_update table disciplinecom add dna1.Designer.cs new file mode 100644 index 00000000..f9dd4005 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250206061332_update table disciplinecom add dna1.Designer.cs @@ -0,0 +1,3471 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + [DbContext(typeof(DisciplineDbContext))] + [Migration("20250206061332_update table disciplinecom add dna1")] + partial class updatetabledisciplinecomadddna1 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CaseNumber") + .HasColumnType("longtext") + .HasComment("āļ„āļ”āļĩāđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("CaseType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļ”āļĩ"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Fullname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļ™āļēāļĄāļŠāļāļļāļĨāļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("ProfileId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("ProfileId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļļāļ—āļ˜āļĢāļ“āđŒāļŦāļĢāļ·āļ­āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Appeals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Appeal_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.ToTable("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Channel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Channels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineComplaint_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Email") + .HasColumnType("longtext") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Phone") + .HasColumnType("longtext") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("Position") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.ToTable("DisciplineDirectors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryCauseText") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨ"); + + b.Property("DisciplinaryDateAllegation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāļ—āļĢāļēāļšāļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateEvident") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™"); + + b.Property("DisciplinaryDateInvestigation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļ„āļģāļŠāļąāđˆāļ‡āđƒāļŦāđ‰āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateResult") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplinaryExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplinaryFaultLevelOther") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ”āļāļĢāļ“āļĩāļ­āļ·āđˆāļ™āđ†"); + + b.Property("DisciplinaryInvestigateAt") + .HasColumnType("longtext") + .HasComment("āļŠāļ­āļšāļŠāļ§āļ™āļ—āļĩāđˆ"); + + b.Property("DisciplinaryRecordAccuser") + .HasColumnType("longtext") + .HasComment("āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļ‚āļ­āļ‡āļœāļđāđ‰āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryRefLaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļŽāļŦāļĄāļēāļĒ"); + + b.Property("DisciplinaryResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("DisciplinaryStatusResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļœāļĨ"); + + b.Property("DisciplinarySummaryEvidence") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™āļŠāļ™āļąāļšāļŠāļ™āļļāļ™āļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryWitnesses") + .HasColumnType("longtext") + .HasComment("āļžāļĒāļēāļ™āđāļĨāļ°āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļžāļĒāļēāļ™"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (APPOINT_DIRECTORS āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, SECRET_INVESTIGATION āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, OTHER āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, HAVE_CAUSE āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, NO_CAUSE āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ResultDescription") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļœāļĨāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("ResultDisciplineType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ§āļīāļ™āļąāļĒ"); + + b.Property("ResultInvestigate") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("ResultOc") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļĒ/āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ResultTitleType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("ResultYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineDisciplinarys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinaryExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_DirectorInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigateRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRecordAccusers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocResults"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocSummaryEvidences"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocWitnessess"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandDiscardCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("CommandTypeDiscardId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("IsSuspend") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļžāļąāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("StatusDiscard") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (appoint_directors āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, secret_investigation āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, other āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (not_specified āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, have_cause āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, no_cause āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigateExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigateRelevant_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_DocComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsDisciplinary") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigate_ProfileComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DescriptionSuspend") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļ—āļĩāđˆāļ–āļđāļāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("EndDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("StartDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineReport_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Docs") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Historys") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Docs") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Profiles") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineDisciplinarys") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinaryExtends") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigateRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocOthers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRecordAccusers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocResults") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocSummaryEvidences") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocWitnessess") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_ProfileComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineInvestigates") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateExtends") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateRelevant_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_DocComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_ProfileComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany() + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Navigation("DisciplineComplaint_Docs"); + + b.Navigation("DisciplineComplaint_Profiles"); + + b.Navigation("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Navigation("DisciplineComplaint_Appeal_Docs"); + + b.Navigation("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Navigation("DisciplineDisciplinaryExtends"); + + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocComplaintInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocInvestigateRelevants"); + + b.Navigation("DisciplineDisciplinary_DocInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocOthers"); + + b.Navigation("DisciplineDisciplinary_DocRecordAccusers"); + + b.Navigation("DisciplineDisciplinary_DocRelevants"); + + b.Navigation("DisciplineDisciplinary_DocResults"); + + b.Navigation("DisciplineDisciplinary_DocSummaryEvidences"); + + b.Navigation("DisciplineDisciplinary_DocWitnessess"); + + b.Navigation("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Navigation("DisciplineDisciplinarys"); + + b.Navigation("DisciplineInvestigateExtends"); + + b.Navigation("DisciplineInvestigateRelevant_Docs"); + + b.Navigation("DisciplineInvestigate_Directors"); + + b.Navigation("DisciplineInvestigate_DocComplaints"); + + b.Navigation("DisciplineInvestigate_Docs"); + + b.Navigation("DisciplineInvestigate_ProfileComplaints"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250206061332_update table disciplinecom add dna1.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250206061332_update table disciplinecom add dna1.cs new file mode 100644 index 00000000..6e648c23 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250206061332_update table disciplinecom add dna1.cs @@ -0,0 +1,54 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + /// + public partial class updatetabledisciplinecomadddna1 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "CommandCode", + table: "DisciplineReport_Profiles", + type: "longtext", + nullable: true, + comment: "āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "CommandCode", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates", + type: "longtext", + nullable: true, + comment: "āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "CommandDiscardCode", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates", + type: "longtext", + nullable: true, + comment: "āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "CommandCode", + table: "DisciplineReport_Profiles"); + + migrationBuilder.DropColumn( + name: "CommandCode", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); + + migrationBuilder.DropColumn( + name: "CommandDiscardCode", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs index 2d4afd53..e1dab5a1 100644 --- a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs @@ -1770,6 +1770,14 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("varchar(13)") .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandDiscardCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + b.Property("CommandTypeDiscardId") .HasColumnType("char(36)") .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); @@ -2715,6 +2723,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("varchar(13)") .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + b.Property("CommandTypeId") .HasColumnType("char(36)") .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); From fd17afb14593870d1a16f5515f9e0833a80c7394 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 10 Feb 2025 10:20:49 +0700 Subject: [PATCH 090/879] migrate (add table ProfileComplaintInvestigate) --- .../Discipline/ProfileComplaintInvestigate.cs | 49 + ...le ProfileComplaintInvestigate.Designer.cs | 19880 ++++++++++++++++ ...3_add table ProfileComplaintInvestigate.cs | 22 + .../Persistence/DisciplineDbContext.cs | 1 + .../Controllers/RetirementController.cs | 40 +- 5 files changed, 19968 insertions(+), 24 deletions(-) create mode 100644 BMA.EHR.Domain/Models/Discipline/ProfileComplaintInvestigate.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250210025433_add table ProfileComplaintInvestigate.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250210025433_add table ProfileComplaintInvestigate.cs diff --git a/BMA.EHR.Domain/Models/Discipline/ProfileComplaintInvestigate.cs b/BMA.EHR.Domain/Models/Discipline/ProfileComplaintInvestigate.cs new file mode 100644 index 00000000..d3ea3bff --- /dev/null +++ b/BMA.EHR.Domain/Models/Discipline/ProfileComplaintInvestigate.cs @@ -0,0 +1,49 @@ +ïŧŋusing System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using BMA.EHR.Domain.Models.Base; +using BMA.EHR.Domain.Models.MetaData; +using BMA.EHR.Domain.Models.Organizations; +using Microsoft.EntityFrameworkCore; + +namespace BMA.EHR.Domain.Models.Discipline +{ + public class ProfileComplaintInvestigate : EntityBase + { + [Comment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile")] + public string? PersonId { get; set; } + + [MaxLength(13), Comment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™")] + public string? CitizenId { get; set; } + + [Comment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē")] + public string? Prefix { get; set; } + + [Required, MaxLength(100), Comment("āļŠāļ·āđˆāļ­")] + public string? FirstName { get; set; } + + [Required, MaxLength(100), Comment("āļ™āļēāļĄāļŠāļāļļāļĨ")] + public string? LastName { get; set; } + + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna")] + public string? rootDnaId { get; set; } + + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna")] + public string? child1DnaId { get; set; } + + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna")] + public string? child2DnaId { get; set; } + + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna")] + public string? child3DnaId { get; set; } + + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna")] + public string? child4DnaId { get; set; } + + [Comment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ (C-PM-19->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ›āļĨāļ”āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ C-PM-20->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāđ„āļĨāđˆāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ)")] + public string? commandType { get; set; } + + [Comment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)")] + public string? profileType { get; set; } + + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250210025433_add table ProfileComplaintInvestigate.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250210025433_add table ProfileComplaintInvestigate.Designer.cs new file mode 100644 index 00000000..e84d62ce --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250210025433_add table ProfileComplaintInvestigate.Designer.cs @@ -0,0 +1,19880 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250210025433_add table ProfileComplaintInvestigate")] + partial class addtableProfileComplaintInvestigate + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250210025433_add table ProfileComplaintInvestigate.cs b/BMA.EHR.Infrastructure/Migrations/20250210025433_add table ProfileComplaintInvestigate.cs new file mode 100644 index 00000000..65c8ead1 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250210025433_add table ProfileComplaintInvestigate.cs @@ -0,0 +1,22 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class addtableProfileComplaintInvestigate : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/BMA.EHR.Infrastructure/Persistence/DisciplineDbContext.cs b/BMA.EHR.Infrastructure/Persistence/DisciplineDbContext.cs index 23154115..e205e525 100644 --- a/BMA.EHR.Infrastructure/Persistence/DisciplineDbContext.cs +++ b/BMA.EHR.Infrastructure/Persistence/DisciplineDbContext.cs @@ -31,6 +31,7 @@ namespace BMA.EHR.Infrastructure.Persistence public DbSet DisciplineDisciplinarys { get; set; } public DbSet DisciplineDisciplinaryExtends { get; set; } public DbSet DisciplineDisciplinary_ProfileComplaintInvestigates { get; set; } + public DbSet ProfileComplaintInvestigate { get; set; } public DbSet DisciplineDisciplinary_DocInvestigateRelevants { get; set; } public DbSet DisciplineDisciplinary_DocInvestigates { get; set; } public DbSet DisciplineDisciplinary_DocResults { get; set; } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index 984afb0d..aa9f1c0a 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -1550,13 +1550,12 @@ namespace BMA.EHR.Retirement.Service.Controllers .Count(); //āļ›āļĨāļ”āļ­āļ­āļ - var dl_cm19_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + var dl_cm19_count = _contextDiscipline.ProfileComplaintInvestigate .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "OFFICER" && - x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") && + x.commandType.Trim().ToUpper() == "C-PM-19" && (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && @@ -1565,13 +1564,12 @@ namespace BMA.EHR.Retirement.Service.Controllers .Count(); //āđ„āļĨāđˆāļ­āļ­āļ - var dl_cm20_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + var dl_cm20_count = _contextDiscipline.ProfileComplaintInvestigate .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "OFFICER" && - x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") && + x.commandType.Trim().ToUpper() == "C-PM-20" && (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && @@ -1678,13 +1676,12 @@ namespace BMA.EHR.Retirement.Service.Controllers .Count(); //āļ›āļĨāļ”āļ­āļ­āļ - var dl_cm19_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + var dl_cm19_count = _contextDiscipline.ProfileComplaintInvestigate .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "OFFICER" && - x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") && + x.commandType.Trim().ToUpper() == "C-PM-19" && (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && @@ -1693,13 +1690,12 @@ namespace BMA.EHR.Retirement.Service.Controllers .Count(); //āđ„āļĨāđˆāļ­āļ­āļ - var dl_cm20_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + var dl_cm20_count = _contextDiscipline.ProfileComplaintInvestigate .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "OFFICER" && - x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") && + x.commandType.Trim().ToUpper() == "C-PM-20" && (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && @@ -1879,13 +1875,12 @@ namespace BMA.EHR.Retirement.Service.Controllers .Count(); //āļ›āļĨāļ”āļ­āļ­āļ - var dl_cm19_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + var dl_cm19_count = _contextDiscipline.ProfileComplaintInvestigate .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "EMPLOYEE" && - x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") && + x.commandType.Trim().ToUpper() == "C-PM-19" && (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && @@ -1894,13 +1889,12 @@ namespace BMA.EHR.Retirement.Service.Controllers .Count(); //āđ„āļĨāđˆāļ­āļ­āļ - var dl_cm20_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + var dl_cm20_count = _contextDiscipline.ProfileComplaintInvestigate .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "EMPLOYEE" && - x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") && + x.commandType.Trim().ToUpper() == "C-PM-20" && (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && @@ -1985,13 +1979,12 @@ namespace BMA.EHR.Retirement.Service.Controllers .Count(); //āļ›āļĨāļ”āļ­āļ­āļ - var dl_cm19_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + var dl_cm19_count = _contextDiscipline.ProfileComplaintInvestigate .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "EMPLOYEE" && - x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") && + x.commandType.Trim().ToUpper() == "C-PM-19" && (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && @@ -2000,13 +1993,12 @@ namespace BMA.EHR.Retirement.Service.Controllers .Count(); //āđ„āļĨāđˆāļ­āļ­āļ - var dl_cm20_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates + var dl_cm20_count = _contextDiscipline.ProfileComplaintInvestigate .Where(x => x.CreatedAt.Date >= startDate && x.CreatedAt.Date <= endDate && - x.Status.Trim().ToUpper() == "DONE" && x.profileType.Trim().ToUpper() == "EMPLOYEE" && - x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") && + x.commandType.Trim().ToUpper() == "C-PM-20" && (node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) && (node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) && (node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) && From e1e9a89d6d2135acb276c63c4243ad188a34259f Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 10 Feb 2025 11:13:05 +0700 Subject: [PATCH 091/879] update migrate --- ...le ProfileComplaintInvestigate.Designer.cs | 3576 +++++++++++++++++ ...pdate table ProfileComplaintInvestigate.cs | 68 + .../DisciplineDbContextModelSnapshot.cs | 105 + 3 files changed, 3749 insertions(+) create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250210034513_update table ProfileComplaintInvestigate.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250210034513_update table ProfileComplaintInvestigate.cs diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250210034513_update table ProfileComplaintInvestigate.Designer.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250210034513_update table ProfileComplaintInvestigate.Designer.cs new file mode 100644 index 00000000..6941b98e --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250210034513_update table ProfileComplaintInvestigate.Designer.cs @@ -0,0 +1,3576 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + [DbContext(typeof(DisciplineDbContext))] + [Migration("20250210034513_update table ProfileComplaintInvestigate")] + partial class updatetableProfileComplaintInvestigate + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CaseNumber") + .HasColumnType("longtext") + .HasComment("āļ„āļ”āļĩāđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("CaseType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļ”āļĩ"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Fullname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļ™āļēāļĄāļŠāļāļļāļĨāļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("ProfileId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("ProfileId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļļāļ—āļ˜āļĢāļ“āđŒāļŦāļĢāļ·āļ­āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Appeals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Appeal_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.ToTable("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Channel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Channels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineComplaint_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Email") + .HasColumnType("longtext") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Phone") + .HasColumnType("longtext") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("Position") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.ToTable("DisciplineDirectors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryCauseText") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨ"); + + b.Property("DisciplinaryDateAllegation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāļ—āļĢāļēāļšāļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateEvident") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™"); + + b.Property("DisciplinaryDateInvestigation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļ„āļģāļŠāļąāđˆāļ‡āđƒāļŦāđ‰āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateResult") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplinaryExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplinaryFaultLevelOther") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ”āļāļĢāļ“āļĩāļ­āļ·āđˆāļ™āđ†"); + + b.Property("DisciplinaryInvestigateAt") + .HasColumnType("longtext") + .HasComment("āļŠāļ­āļšāļŠāļ§āļ™āļ—āļĩāđˆ"); + + b.Property("DisciplinaryRecordAccuser") + .HasColumnType("longtext") + .HasComment("āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļ‚āļ­āļ‡āļœāļđāđ‰āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryRefLaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļŽāļŦāļĄāļēāļĒ"); + + b.Property("DisciplinaryResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("DisciplinaryStatusResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļœāļĨ"); + + b.Property("DisciplinarySummaryEvidence") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™āļŠāļ™āļąāļšāļŠāļ™āļļāļ™āļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryWitnesses") + .HasColumnType("longtext") + .HasComment("āļžāļĒāļēāļ™āđāļĨāļ°āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļžāļĒāļēāļ™"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (APPOINT_DIRECTORS āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, SECRET_INVESTIGATION āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, OTHER āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, HAVE_CAUSE āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, NO_CAUSE āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ResultDescription") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļœāļĨāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("ResultDisciplineType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ§āļīāļ™āļąāļĒ"); + + b.Property("ResultInvestigate") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("ResultOc") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļĒ/āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ResultTitleType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("ResultYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineDisciplinarys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinaryExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_DirectorInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigateRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRecordAccusers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocResults"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocSummaryEvidences"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocWitnessess"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandDiscardCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("CommandTypeDiscardId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("IsSuspend") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļžāļąāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("StatusDiscard") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (appoint_directors āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, secret_investigation āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, other āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (not_specified āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, have_cause āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, no_cause āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigateExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigateRelevant_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_DocComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsDisciplinary") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigate_ProfileComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DescriptionSuspend") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļ—āļĩāđˆāļ–āļđāļāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("EndDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("StartDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineReport_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.ProfileComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("commandType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ (C-PM-19->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ›āļĨāļ”āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ C-PM-20->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāđ„āļĨāđˆāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.HasKey("Id"); + + b.ToTable("ProfileComplaintInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Docs") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Historys") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Docs") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Profiles") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineDisciplinarys") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinaryExtends") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigateRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocOthers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRecordAccusers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocResults") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocSummaryEvidences") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocWitnessess") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_ProfileComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineInvestigates") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateExtends") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateRelevant_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_DocComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_ProfileComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany() + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Navigation("DisciplineComplaint_Docs"); + + b.Navigation("DisciplineComplaint_Profiles"); + + b.Navigation("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Navigation("DisciplineComplaint_Appeal_Docs"); + + b.Navigation("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Navigation("DisciplineDisciplinaryExtends"); + + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocComplaintInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocInvestigateRelevants"); + + b.Navigation("DisciplineDisciplinary_DocInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocOthers"); + + b.Navigation("DisciplineDisciplinary_DocRecordAccusers"); + + b.Navigation("DisciplineDisciplinary_DocRelevants"); + + b.Navigation("DisciplineDisciplinary_DocResults"); + + b.Navigation("DisciplineDisciplinary_DocSummaryEvidences"); + + b.Navigation("DisciplineDisciplinary_DocWitnessess"); + + b.Navigation("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Navigation("DisciplineDisciplinarys"); + + b.Navigation("DisciplineInvestigateExtends"); + + b.Navigation("DisciplineInvestigateRelevant_Docs"); + + b.Navigation("DisciplineInvestigate_Directors"); + + b.Navigation("DisciplineInvestigate_DocComplaints"); + + b.Navigation("DisciplineInvestigate_Docs"); + + b.Navigation("DisciplineInvestigate_ProfileComplaints"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250210034513_update table ProfileComplaintInvestigate.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250210034513_update table ProfileComplaintInvestigate.cs new file mode 100644 index 00000000..9d66376b --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250210034513_update table ProfileComplaintInvestigate.cs @@ -0,0 +1,68 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + /// + public partial class updatetableProfileComplaintInvestigate : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "ProfileComplaintInvestigate", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + PersonId = table.Column(type: "longtext", nullable: true, comment: "id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile") + .Annotation("MySql:CharSet", "utf8mb4"), + CitizenId = table.Column(type: "varchar(13)", maxLength: 13, nullable: true, comment: "āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™") + .Annotation("MySql:CharSet", "utf8mb4"), + Prefix = table.Column(type: "longtext", nullable: true, comment: "āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē") + .Annotation("MySql:CharSet", "utf8mb4"), + FirstName = table.Column(type: "varchar(100)", maxLength: 100, nullable: false, comment: "āļŠāļ·āđˆāļ­") + .Annotation("MySql:CharSet", "utf8mb4"), + LastName = table.Column(type: "varchar(100)", maxLength: 100, nullable: false, comment: "āļ™āļēāļĄāļŠāļāļļāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + rootDnaId = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna") + .Annotation("MySql:CharSet", "utf8mb4"), + child1DnaId = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna") + .Annotation("MySql:CharSet", "utf8mb4"), + child2DnaId = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna") + .Annotation("MySql:CharSet", "utf8mb4"), + child3DnaId = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna") + .Annotation("MySql:CharSet", "utf8mb4"), + child4DnaId = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna") + .Annotation("MySql:CharSet", "utf8mb4"), + commandType = table.Column(type: "longtext", nullable: true, comment: "āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ (C-PM-19->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ›āļĨāļ”āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ C-PM-20->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāđ„āļĨāđˆāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ)") + .Annotation("MySql:CharSet", "utf8mb4"), + profileType = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)") + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_ProfileComplaintInvestigate", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "ProfileComplaintInvestigate"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs index e1dab5a1..26d50619 100644 --- a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs @@ -2993,6 +2993,111 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb b.ToTable("Documents"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.ProfileComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("commandType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ (C-PM-19->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ›āļĨāļ”āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ C-PM-20->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāđ„āļĨāđˆāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.HasKey("Id"); + + b.ToTable("ProfileComplaintInvestigate"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => { b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") From b40e6ad19833970ba1cdebfa74c57c3d6f19e3e5 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 10 Feb 2025 15:09:33 +0700 Subject: [PATCH 092/879] =?UTF-8?q?fix=20=E0=B8=A3=E0=B8=B0=E0=B8=9A?= =?UTF-8?q?=E0=B8=9A=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=AF=20(insignia1)>>?= =?UTF-8?q?=E0=B8=88=E0=B8=B1=E0=B8=94=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=82=E0=B8=AD=20(=E0=B8=AD=E0=B8=B1=E0=B8=9B?= =?UTF-8?q?=E0=B9=82=E0=B8=AB=E0=B8=A5=E0=B8=94=E0=B9=84=E0=B8=9F=E0=B8=A5?= =?UTF-8?q?=E0=B9=8C)=20=20#502?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 0957865b..b354a858 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -2400,7 +2400,9 @@ namespace BMA.EHR.Insignia.Service.Controllers [HttpPut("upload/{requestId:length(36)}"), DisableRequestSizeLimit] public async Task> UpdatePersonDeferment([FromForm] ImportFileRequest req, Guid requestId) { - var insigniaRequest = await _context.InsigniaRequests.AsNoTracking().Include(x => x.Document).Where(x => x.Id == requestId).FirstOrDefaultAsync(); + var insigniaRequest = await _context.InsigniaRequests + //.AsNoTracking() + .Include(x => x.Document).Where(x => x.Id == requestId).FirstOrDefaultAsync(); if (insigniaRequest == null) return Error(GlobalMessages.InsigniaRequestNotFound, 404); From b6aa239b577e2f38c2f80cd4cecd5d693209a3cb Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 10 Feb 2025 16:02:54 +0700 Subject: [PATCH 093/879] =?UTF-8?q?fix=20=E0=B8=A3=E0=B8=B0=E0=B8=9A?= =?UTF-8?q?=E0=B8=9A=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=AF>>=E0=B8=88?= =?UTF-8?q?=E0=B8=B1=E0=B8=94=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=84=E0=B8=B3?= =?UTF-8?q?=E0=B8=82=E0=B8=AD=20(=E0=B8=AD=E0=B8=B1=E0=B8=9B=E0=B9=82?= =?UTF-8?q?=E0=B8=AB=E0=B8=A5=E0=B8=94=E0=B9=84=E0=B8=9F=E0=B8=A5=E0=B9=8C?= =?UTF-8?q?)=20#1066?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index b354a858..d03b7b53 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -2408,15 +2408,21 @@ namespace BMA.EHR.Insignia.Service.Controllers if (Request.Form.Files != null && Request.Form.Files.Count != 0) { + var oldDocId = ""; if (insigniaRequest.Document != null) { - await _documentService.DeleteFileAsync(insigniaRequest.Document.Id); + oldDocId = insigniaRequest.Document.Id.ToString("D"); + //await _documentService.DeleteFileAsync(insigniaRequest.Document.Id); } var file = Request.Form.Files[0]; var fileExtension = Path.GetExtension(file.FileName); var doc = await _documentService.UploadFileAsync(file, file.FileName); insigniaRequest.Document = doc; + + //if(oldDocId != "") + // await _documentService.DeleteFileAsync(Guid.Parse(oldDocId)); + } insigniaRequest.LastUpdateFullName = FullName ?? "System Administrator"; insigniaRequest.LastUpdateUserId = UserId ?? ""; From e77757e324665a4fbb2ece1bc233a4fca80789e6 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 10 Feb 2025 17:27:13 +0700 Subject: [PATCH 094/879] fix issue #116, #1173, #1174 --- .../Controllers/DisciplineResultController.cs | 55 +++++++++++++++++++ .../PlacementAppointmentEmployeeController.cs | 1 + 2 files changed, 56 insertions(+) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs index 56c96ab3..1ca01a7a 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs @@ -17,6 +17,7 @@ using System.Net.Http.Headers; using System.Security.Claims; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using System.Data; namespace BMA.EHR.DisciplineResult.Service.Controllers { @@ -849,6 +850,33 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers if (_res.IsSuccessStatusCode) { data.ForEach(profile => { profile.Status = "NEW"; profile.CommandTypeId = null; }); + var _profile = new List(); + DateTime _date = DateTime.Now; + foreach (var item in data) + { + _profile.Add(new ProfileComplaintInvestigate + { + PersonId = item.PersonId, + Prefix = item.Prefix, + FirstName = item.FirstName, + LastName = item.LastName, + CitizenId = item.CitizenId, + rootDnaId = item.rootDnaId, + child1DnaId = item.child1DnaId, + child2DnaId = item.child2DnaId, + child3DnaId = item.child3DnaId, + child4DnaId = item.child4DnaId, + profileType = item.profileType, + commandType = "C-PM-19", + CreatedAt = _date, + CreatedUserId = UserId, + CreatedFullName = FullName, + LastUpdatedAt = _date, + LastUpdateUserId = UserId, + LastUpdateFullName = FullName, + }); + } + _context.ProfileComplaintInvestigate.AddRange(_profile); await _context.SaveChangesAsync(); } } @@ -950,6 +978,33 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers if (_res.IsSuccessStatusCode) { data.ForEach(profile => { profile.Status = "NEW"; profile.CommandTypeId = null; }); + var _profile = new List(); + DateTime _date = DateTime.Now; + foreach (var item in data) + { + _profile.Add(new ProfileComplaintInvestigate + { + PersonId = item.PersonId, + Prefix = item.Prefix, + FirstName = item.FirstName, + LastName = item.LastName, + CitizenId = item.CitizenId, + rootDnaId = item.rootDnaId, + child1DnaId = item.child1DnaId, + child2DnaId = item.child2DnaId, + child3DnaId = item.child3DnaId, + child4DnaId = item.child4DnaId, + profileType = item.profileType, + commandType = "C-PM-20", + CreatedAt = _date, + CreatedUserId = UserId, + CreatedFullName = FullName, + LastUpdatedAt = _date, + LastUpdateUserId = UserId, + LastUpdateFullName = FullName, + }); + } + _context.ProfileComplaintInvestigate.AddRange(_profile); await _context.SaveChangesAsync(); } } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index 4e7f40dd..11aaef01 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -476,6 +476,7 @@ namespace BMA.EHR.Placement.Service.Controllers placementAppointment.EducationOld = org.result.education; // placementAppointment.EducationOld = profile.Educations.Count() == 0 ? null : $"{profile.Educations.OrderByDescending(x => x.FinishDate).FirstOrDefault().Degree}-{profile.Educations.OrderByDescending(x => x.FinishDate).FirstOrDefault().Field}"; // placementAppointment.AmountOld = profile.Salaries.Count() == 0 ? null : profile.Salaries.OrderByDescending(x => x.Order).FirstOrDefault().Amount; + placementAppointment.AmountOld = org.result.salary; placementAppointment.positionOld = org.result.position; placementAppointment.PositionLevelOld = org.result.posLevelName; From 7843da3bdebfb1b307ac105ffa7a9309b39e24b6 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 11 Feb 2025 20:21:49 +0700 Subject: [PATCH 095/879] add endpoint report --- .../Reports/InsigniaReportRepository.cs | 139 +++++++++------- .../Controllers/InsigniaReportController.cs | 149 +++++++++++++++++- 2 files changed, 230 insertions(+), 58 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs index 3910c8ab..7bb786c8 100644 --- a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs @@ -13,7 +13,9 @@ using BMA.EHR.Domain.Shared; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Metadata; +using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.Configuration; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System.Net; @@ -30,6 +32,7 @@ namespace BMA.EHR.Application.Repositories.Reports private readonly OrganizationCommonRepository _organizationCommonRepository; private readonly NotificationRepository _repositoryNoti; private readonly InsigniaPeriodsRepository _repositoryInsignia; + private readonly IConfiguration _configuration; private readonly string CRLF = "\r\n"; private readonly UserProfileRepository _userProfileRepository; @@ -44,6 +47,7 @@ namespace BMA.EHR.Application.Repositories.Reports InsigniaPeriodsRepository repositoryInsignia, NotificationRepository repositoryNoti, IWebHostEnvironment hostEnvironment, + IConfiguration configuration, UserProfileRepository userProfileRepository, IHttpContextAccessor httpContextAccessor) { @@ -54,6 +58,7 @@ namespace BMA.EHR.Application.Repositories.Reports _repositoryInsignia = repositoryInsignia; _userProfileRepository = userProfileRepository; _httpContextAccessor = httpContextAccessor; + _configuration = configuration; } #endregion @@ -1070,7 +1075,6 @@ namespace BMA.EHR.Application.Repositories.Reports .Where(x => x.Status == "PENDING") .Where(x => x.RequestInsignia.InsigniaType != null); /*.Where(x => x.RequestInsignia.InsigniaType.Name == "āđ€āļŦāļĢāļĩāļĒāļāļšāļģāđ€āļŦāļ™āđ‡āļˆāđƒāļ™āļĢāļēāļŠāļāļēāļĢ");*/ - if (type == "officer") { data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "officer"); @@ -1080,6 +1084,8 @@ namespace BMA.EHR.Application.Repositories.Reports data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "employee"); } + Console.WriteLine(">>>>>>>logs", data_insigniaQuery.ToQueryString); + switch (node) { case 0: @@ -1106,63 +1112,84 @@ namespace BMA.EHR.Application.Repositories.Reports break; } var data = await data_insigniaQuery - .Select(x => new - { - FullName = $"{x.Prefix}{x.FirstName} {x.LastName}", - RequestInsigniaName = x.RequestInsignia.Name, // Name of the Insignia - }) - .ToListAsync(); - - /* var seq = 1; - foreach (var d in response!.result) - { - var _baseAPI = _configuration["API"]; - var _apiUrl = $"{_baseAPI}/org/profile/profileid/position/{d.person.id}"; - using (var _client = new HttpClient()) - { - _client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token); - _client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _req = new HttpRequestMessage(HttpMethod.Get, _apiUrl); - var _res = await _client.SendAsync(_req); - var _result = await _res.Content.ReadAsStringAsync(); - - var org = JsonConvert.DeserializeObject(_result); - - if (org == null || org.result == null) - continue; - - var receiver = new CommandReceiver - { - Sequence = seq, - CitizenId = org.result.citizenId == null ? "" : org.result.citizenId, - Prefix = org.result.prefix == null ? "" : org.result.prefix, - FirstName = org.result.firstName == null ? "" : org.result.firstName, - LastName = org.result.lastName == null ? "" : org.result.lastName, - RefPlacementProfileId = org.result.profileId == null ? null : Guid.Parse(org.result.profileId), - }; - seq++; - resultData.Add(receiver); - } - }*/ - var insignia = data.Select((r, index) => new + .Select(x => new { - RowNo = (index + 1).ToNumericText().ToThaiNumber(), - FullName = r.FullName, - RequestInsigniaName = r.RequestInsigniaName, - ResultY1APR = "-", - ResultY1OCT = "-", - ResultY2APR = "-", - ResultY2OCT = "-", - ResultY3APR = "-", - ResultY3OCT = "-", - ResultY4APR = "-", - ResultY4OCT = "-", - ResultY5APR = "-", - ResultY5OCT = "-", - Remark = "", - }).ToList(); + ProfileId = x.ProfileId, + FullName = $"{x.Prefix}{x.FirstName} {x.LastName}", + RequestInsigniaName = x.RequestInsignia.Name, // Name of the Insignia + }) + .ToListAsync(); - return insignia; + var seq = 1; + foreach (var d in data) + { + var _baseAPI = _configuration["API"]; + var _apiUrl = $"{_baseAPI}/org/unauthorize/calculateEvaluation"; + using (var _client = new HttpClient()) + { + _client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, _apiUrl); + var _res = await _client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + if (_res.IsSuccessStatusCode) + { + /*var orgResponse = JsonConvert.DeserializeObject(_result);*/ + var orgResponse = JObject.Parse(_result); + var resultItems = orgResponse["result"]; + /* if (orgResponse != null && orgResponse.result != null) + {*/ + var matchedData = resultItems + .Where(item => item["profileId"].ToString() == d.ProfileId.ToString()) + .FirstOrDefault(); + /* + if (matchedData != null) + { + // āđāļŠāļ”āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ—āļĩāđˆāļ•āļĢāļ‡āļāļąāļ™ + var receiver = new CommandReceiver + { + Sequence = seq, + CitizenId = matchedData.citizenId ?? "", + Prefix = matchedData.prefix ?? "", + FirstName = matchedData.firstName ?? "", + LastName = matchedData.lastName ?? "", + RefPlacementProfileId = Guid.Parse(matchedData.profileId.ToString()), + }; + + seq++; + resultData.Add(receiver); + }*/ + /*}*/ + + return matchedData; + } + else + { + return $"Error: {_res.StatusCode} - {_res.ReasonPhrase}"; + } + } + } + + /* var insignia = data.Select((r, index) => new + { + RowNo = (index + 1).ToNumericText().ToThaiNumber(), + ProfileId = r., + FullName = r.FullName, + RequestInsigniaName = r.RequestInsigniaName, + ResultY1APR = "-", + ResultY1OCT = "-", + ResultY2APR = "-", + ResultY2OCT = "-", + ResultY3APR = "-", + ResultY3OCT = "-", + ResultY4APR = "-", + ResultY4OCT = "-", + ResultY5APR = "-", + ResultY5OCT = "-", + Remark = "", + }).ToList();*/ + + return data; } //noti āļĒāļ·āđˆāļ™āđ€āļŠāļ™āļ­āļ„āļ™ diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index daf4c18e..efd173aa 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -219,7 +219,7 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpPost("report2/{type}")] - public async Task> GetInsigniaReport3Async([FromBody] GetInsigniaDetailByNodeReportDto req, string type) + public async Task> GetInsigniaReport2Async([FromBody] GetInsigniaDetailByNodeReportDto req, string type) { try { @@ -265,7 +265,7 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpPost("report3/{type}")] - public async Task> GetInsigniaReport2Async([FromBody] GetInsigniaDetailByNodeReportDto req, string type) + public async Task> GetInsigniaReport3Async([FromBody] GetInsigniaDetailByNodeReportDto req, string type) { try { @@ -316,6 +316,151 @@ namespace BMA.EHR.Insignia.Service.Controllers } #endregion + #region āļĢāļēāļĒāļŠāļ·āđˆāļ­āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš/āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļšāļŊ + /// + /// āļĢāļēāļĒāļŠāļ·āđˆāļ­āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš/āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļšāļŊ + /// + /// type + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("report4/{type}")] + public async Task> GetInsigniaReport4Async([FromBody] GetInsigniaDetailByNodeReportDto req, string type) + { + try + { + var date = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}"; + var result = new + { + template = "reportInsignia4", + reportName = "reportInsignia4", + data = new + { + yearInsignalPeriod = "", + date = date, + data = "", + } + }; + return Success(result); + + } + catch + { + throw; + } + } + #endregion + + + #region āļĢāļēāļĒāļ‡āļēāļ™āļŠāļ–āļīāļ•āļīāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļ­āļīāļŠāļĢāļīāļĒāļēāļ āļĢāļ“āđŒāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ āļŊ + /// + /// āļĢāļēāļĒāļ‡āļēāļ™āļŠāļ–āļīāļ•āļīāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļ­āļīāļŠāļĢāļīāļĒāļēāļ āļĢāļ“āđŒāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ āļŊ + /// + /// type + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("report5/{type}")] + public async Task> GetInsigniaReport5Async([FromBody] GetInsigniaDetailByNodeReportDto req, string type) + { + try + { + var date = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}"; + var result = new + { + template = "reportInsignia5", + reportName = "reportInsignia5", + data = new + { + yearInsignalPeriod = "", + date = date, + data = "", + } + }; + return Success(result); + + } + catch + { + throw; + } + } + #endregion + + + #region āļĢāļēāļĒāļ‡āļēāļ™āļœāļĨāļāļēāļĢāļˆāđˆāļēāļĒāļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļ­āļīāļŠāļĢāļīāļĒāļēāļ āļĢāļ“āđŒ āđāļĒāļāļĢāļēāļĒāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ + /// + /// āļĢāļēāļĒāļ‡āļēāļ™āļœāļĨāļāļēāļĢāļˆāđˆāļēāļĒāļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļ­āļīāļŠāļĢāļīāļĒāļēāļ āļĢāļ“āđŒ āđāļĒāļāļĢāļēāļĒāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ + /// + /// type + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("report6/{type}")] + public async Task> GetInsigniaReport6Async([FromBody] GetInsigniaDetailByNodeReportDto req, string type) + { + try + { + var date = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}"; + var result = new + { + template = "reportInsignia6", + reportName = "reportInsignia6", + data = new + { + yearInsignalPeriod = "", + date = date, + data = "", + } + }; + return Success(result); + + } + catch + { + throw; + } + } + #endregion + + #region āļĢāļēāļĒāļ‡āļēāļ™āļœāļĨāļāļēāļĢāļˆāđˆāļēāļĒāļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļ­āļīāļŠāļĢāļīāļĒāļēāļ āļĢāļ“āđŒ āđāļĒāļāļĢāļēāļĒāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ + /// + /// āļĢāļēāļĒāļ‡āļēāļ™āļœāļĨāļāļēāļĢāļˆāđˆāļēāļĒāļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļ­āļīāļŠāļĢāļīāļĒāļēāļ āļĢāļ“āđŒ āđāļĒāļāļĢāļēāļĒāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ + /// + /// type + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("report7/{type}")] + public async Task> GetInsigniaReport7Async([FromBody] GetInsigniaDetailByNodeReportDto req, string type) + { + try + { + var date = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}"; + var result = new + { + template = "reportInsignia7", + reportName = "reportInsignia7", + data = new + { + yearInsignalPeriod = "", + date = date, + data = "", + } + }; + return Success(result); + + } + catch + { + throw; + } + } + #endregion } } From f6c6fe069d2226bc0d125385b99fa9897beb305a Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 12 Feb 2025 18:33:19 +0700 Subject: [PATCH 096/879] fix issue : #1067 --- .../Controllers/InsigniaRequestController.cs | 60 ++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index d03b7b53..97a891ed 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -388,6 +388,16 @@ namespace BMA.EHR.Insignia.Service.Controllers return Success(); } + + [HttpGet("cal-test/{period:guid}/{oc:guid}")] + public async Task> GetTestInsigniaRequest(Guid period, Guid oc) + { + var candidate = await _repository.GetInsigniaCandidateBKK(period, oc); + await _repository.InsertCandidate(period, oc, "āļŠāļģāļ™āļąāļāļ‡āļēāļ™āđ€āļ‚āļ•āļžāļĢāļ°āļ™āļ„āļĢ", candidate); + + return Success(candidate); + } + /// /// āļ„āļģāļ™āļ§āļ“āļĢāļēāļŠāļŠāļ·āđˆāļ­āļœāļđāđ‰āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ /// @@ -1062,6 +1072,50 @@ namespace BMA.EHR.Insignia.Service.Controllers { if (profileOld.ProfileId == null) continue; + + var pf = _userProfileRepository.GetOfficerProfileById(profileOld.ProfileId, AccessToken); + if (pf == null) + pf = _userProfileRepository.GetEmployeeProfileById(profileOld.ProfileId, AccessToken); + + var orgSend = ""; + var orgRecv = ""; + + if (profileOld.Child4 != null || profileOld.Child4 != "") + orgSend += $"{profileOld.Child4}"; + if (profileOld.Child3 != null || profileOld.Child3 != "") + orgSend += $" {profileOld.Child3}"; + if (profileOld.Child2 != null || profileOld.Child2 != "") + orgSend += $" {profileOld.Child2}"; + if (profileOld.Child1 != null || profileOld.Child1 != "") + orgSend += $" {profileOld.Child1}"; + if (profileOld.Root != null || profileOld.Root != "") + orgSend += $" {profileOld.Root}"; + + orgSend = orgSend.Trim(); + + if (pf != null) + { + var kk = pf.Keycloak == null ? Guid.Empty : pf.Keycloak.Value; + var pfData = await _userProfileRepository.GetProfileByKeycloakIdAsync(kk, AccessToken); + if (pfData != null) + { + if (pfData.Child4 != null || pfData.Child4 != "") + orgRecv += $"{pfData.Child4}"; + if (pfData.Child3 != null || pfData.Child3 != "") + orgRecv += $" {pfData.Child3}"; + if (pfData.Child2 != null || pfData.Child2 != "") + orgRecv += $" {pfData.Child2}"; + if (pfData.Child1 != null || pfData.Child1 != "") + orgRecv += $" {pfData.Child1}"; + if (pfData.Root != null || pfData.Root != "") + orgRecv += $" {pfData.Root}"; + + + orgRecv = orgRecv.Trim(); + } + } + + await _context.InsigniaNoteProfiles.AddAsync(new InsigniaNoteProfile { RequestDate = profileOld.RequestDate, @@ -1070,7 +1124,11 @@ namespace BMA.EHR.Insignia.Service.Controllers Status = "PENDING", ProfileId = profileOld.ProfileId, RequestInsignia = profileOld.RequestInsignia, - OrganizationOrganizationSend = null, + + + OrganizationOrganizationSend = orgSend, + OrganizationOrganizationReceive = orgRecv, + InsigniaNote = insigniaNote, CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", From f953e245158090c257b9b34a2aa4091d62abb77f Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 13 Feb 2025 11:43:26 +0700 Subject: [PATCH 097/879] fix add person witth issue #1067 --- .../Controllers/InsigniaRequestController.cs | 50 +++++++++++++++++-- 1 file changed, 45 insertions(+), 5 deletions(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 97a891ed..18e9641b 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -6,6 +6,7 @@ using BMA.EHR.Application.Responses.Insignias; using BMA.EHR.Application.Responses.Organizations; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; +using BMA.EHR.Domain.Models.HR; using BMA.EHR.Domain.Models.Insignias; using BMA.EHR.Domain.Shared; using BMA.EHR.Infrastructure.Persistence; @@ -1658,9 +1659,9 @@ namespace BMA.EHR.Insignia.Service.Controllers if (profileInsignia == null) { - /* var insigniaNoteProfile = new InsigniaNoteProfile + var insigniaNoteProfile = new InsigniaNoteProfile { - Salary = profile.ProfileSalary == null || profile.ProfileSalary.Count() == 0 ? null : profile.ProfileSalary.OrderByDescending(x => x.Order).FirstOrDefault().Amount, + Salary = profile.ProfileSalary == null ? 0 : profile.ProfileSalary.Amount, IsApprove = true, Status = "PENDING", ProfileId = profile.Id, @@ -1677,7 +1678,7 @@ namespace BMA.EHR.Insignia.Service.Controllers Address = req.Address, RequestInsignia = insignia, OrganizationOrganizationReceive = req.OrganizationOrganizationReceive, - req.OrganizationOrganizationSend, + OrganizationOrganizationSend = req.OrganizationOrganizationSend, InsigniaNote = insigniaNote, CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", @@ -1685,10 +1686,49 @@ namespace BMA.EHR.Insignia.Service.Controllers LastUpdateFullName = FullName ?? "System Administrator", LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, - };*/ + + + Amount = profile.ProfileSalary == null ? 0 : profile.ProfileSalary.Amount, + CitizenId = profile.CitizenId, + DateAppoint = profile.DateAppoint, + Prefix = profile.Prefix, + FirstName = profile.FirstName, + LastName = profile.LastName, + Gender = profile.Gender, + PosLevelName = profile.PosLevel, + PosNo = profile.PosNo, + PosTypeName = profile.PosType, + Position = profile.Position, + ProfileType = profile.ProfileType, + PositionSalaryAmount = profile.ProfileSalary == null ? 0 : profile.ProfileSalary.PositionSalaryAmount, + + + Root = profile.Root, + RootId = profile.RootId, + RootDnaId = profile.RootDnaId, + Child1 = profile.Child1, + Child1Id = profile.Child1Id, + Child1DnaId = profile.Child1DnaId, + Child2 = profile.Child2, + Child2Id = profile.Child2Id, + Child2DnaId = profile.Child2DnaId, + Child3 = profile.Child3, + Child3Id = profile.Child3Id, + Child3DnaId = profile.Child3DnaId, + Child4 = profile.Child4, + Child4Id = profile.Child4Id, + Child4DnaId = profile.Child4DnaId, + + + }; + + + insigniaNote.InsigniaNoteProfiles.Add(insigniaNoteProfile); + if (req.DateReceive != null && req.Date != null && profile.Id != null) { - /*insigniaNoteProfile.Status = "DONE";*/ + insigniaNoteProfile.Status = "DONE"; + var profileInsigniaBody = new PostProfileInsigniaDto { profileId = profile.Id, From da9ed437dcc801f44b93eec101d70fa57d6229ba Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 13 Feb 2025 15:42:15 +0700 Subject: [PATCH 098/879] report insignia5 --- .../Reports/InsigniaReportRepository.cs | 116 ++++++++++++++---- .../Controllers/InsigniaReportController.cs | 69 ++++++++++- 2 files changed, 162 insertions(+), 23 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs index 7bb786c8..e2f1713b 100644 --- a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs @@ -1137,28 +1137,28 @@ namespace BMA.EHR.Application.Repositories.Reports /*var orgResponse = JsonConvert.DeserializeObject(_result);*/ var orgResponse = JObject.Parse(_result); var resultItems = orgResponse["result"]; - /* if (orgResponse != null && orgResponse.result != null) - {*/ - var matchedData = resultItems - .Where(item => item["profileId"].ToString() == d.ProfileId.ToString()) - .FirstOrDefault(); - /* - if (matchedData != null) - { - // āđāļŠāļ”āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ—āļĩāđˆāļ•āļĢāļ‡āļāļąāļ™ - var receiver = new CommandReceiver - { - Sequence = seq, - CitizenId = matchedData.citizenId ?? "", - Prefix = matchedData.prefix ?? "", - FirstName = matchedData.firstName ?? "", - LastName = matchedData.lastName ?? "", - RefPlacementProfileId = Guid.Parse(matchedData.profileId.ToString()), - }; + /* if (orgResponse != null && orgResponse.result != null) + {*/ + var matchedData = resultItems + .Where(item => item["profileId"].ToString() == d.ProfileId.ToString()) + .FirstOrDefault(); + /* + if (matchedData != null) + { + // āđāļŠāļ”āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ—āļĩāđˆāļ•āļĢāļ‡āļāļąāļ™ + var receiver = new CommandReceiver + { + Sequence = seq, + CitizenId = matchedData.citizenId ?? "", + Prefix = matchedData.prefix ?? "", + FirstName = matchedData.firstName ?? "", + LastName = matchedData.lastName ?? "", + RefPlacementProfileId = Guid.Parse(matchedData.profileId.ToString()), + }; - seq++; - resultData.Add(receiver); - }*/ + seq++; + resultData.Add(receiver); + }*/ /*}*/ return matchedData; @@ -1369,6 +1369,80 @@ namespace BMA.EHR.Application.Repositories.Reports } } } + public async Task GetKhr5TotalReport(Guid id, string type = null, int node = -1, Guid nodeId = default) + { + var period = await _dbContext.Set() + .FirstOrDefaultAsync(x => x.Id == id); + if (period == null) + throw new Exception(GlobalMessages.InsigniaPeriodNotFound); + + var data_insigniaQuery = _dbContext.Set() + .Include(x => x.Request) + .Include(x => x.RequestInsignia) + .ThenInclude(x => x.InsigniaType) + .Where(x => x.Request.Period.Id == period.Id) + .Where(x => x.IsApprove == true) + .Where(x => x.Status == "PENDING") + .Where(x => x.RequestInsignia.InsigniaType != null); + + if (type == "officer") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "officer"); + } + else if (type == "employee") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "employee"); + } + + switch (node) + { + case 0: + data_insigniaQuery = data_insigniaQuery.Where(r => r.RootDnaId == nodeId); + break; + + case 1: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child1DnaId == nodeId); + break; + + case 2: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child2DnaId == nodeId); + break; + + case 3: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child3DnaId == nodeId); + break; + + case 4: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child4DnaId == nodeId); + break; + + default: + break; + } + + var data = await data_insigniaQuery.Select(x => new + { + Gendor = x.Gender ?? "", + InsigniaTypeName = x.RequestInsignia.InsigniaType.Name, + RequestInsigniaName = x.RequestInsignia.Name, + InsigniaInitial = $"{x.RequestInsignia.Name}({x.RequestInsignia.ShortName})", // Insignia's full name and short name + OcId = x.Request.OrganizationId + }).ToListAsync(); + var insignia = (from r in data + group r by new { OcId = r.OcId, r.InsigniaTypeName, r.RequestInsigniaName } into g + select new + { + RowNo = 1, + DepartmentName = _userProfileRepository.GetOc(g.Key.OcId, 0, AccessToken).Root,// _organizationCommonRepository.GetOrganizationNameFullPath(g.Key.OcId, false, false), + InsigniaTypeName = g.Key.InsigniaTypeName, + RequestInsigniaName = g.Key.RequestInsigniaName, + Male = g.Sum(x => x.Gendor == "āļŠāļēāļĒ" ? 1 : 0), + Female = g.Sum(x => x.Gendor == "āļŦāļāļīāļ‡" ? 1 : 0), + Remark = "", + }).ToList(); + + return insignia; + } #endregion } } diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index efd173aa..29c1103a 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -367,6 +367,69 @@ namespace BMA.EHR.Insignia.Service.Controllers { try { + var insignalPeriod = await _repository.GetKhr5TotalReport(req.roundId, type, req.node, req.nodeId); + var yearInsignalPeriod = await _repository.GetYearInsigniaPeriod(req.roundId); + var detailList = new List(); + var male = 0; + var feMale = 0; + var _male = 0; + var _feMale = 0; + var maleSum = 0; + var feMaleSum = 0; + var nameType = ""; + var org = ""; + foreach (var _data in insignalPeriod) + { + if (nameType != "" && nameType != _data.GetType().GetProperty("InsigniaTypeName").GetValue(_data)) + { + org = _data.GetType().GetProperty("DepartmentName").GetValue(_data); + detailList.Add(new + { + type = "", + name = "āļĢāļ§āļĄ", + male = male.ToString().ToThaiNumber(), + feMale = feMale.ToString().ToThaiNumber(), + sum = (male + feMale).ToString().ToThaiNumber(), + }); + maleSum = maleSum + male; + feMaleSum = maleSum + feMale; + male = 0; + feMale = 0; + } + nameType = _data.GetType().GetProperty("InsigniaTypeName").GetValue(_data); + + _male = _data.GetType().GetProperty("Male").GetValue(_data); + _feMale = _data.GetType().GetProperty("Female").GetValue(_data); + detailList.Add(new + { + type = _data.GetType().GetProperty("InsigniaTypeName").GetValue(_data), + name = _data.GetType().GetProperty("RequestInsigniaName").GetValue(_data), + male = _male.ToString().ToThaiNumber(), + feMale = _feMale.ToString().ToThaiNumber(), + sum = (_male + _feMale).ToString().ToThaiNumber(), + }); + male = male + _data.GetType().GetProperty("Male").GetValue(_data); + feMale = feMale + _data.GetType().GetProperty("Female").GetValue(_data); + } + detailList.Add(new + { + type = "", + name = "āļĢāļ§āļĄ", + male = male.ToString().ToThaiNumber(), + feMale = feMale.ToString().ToThaiNumber(), + sum = (male + feMale).ToString().ToThaiNumber(), + }); + maleSum = maleSum + male; + feMaleSum = maleSum + feMale; + detailList.Add(new + { + type = "", + name = "āļĢāļ§āļĄāļ—āļąāđ‰āļ‡āļŦāļĄāļ”", + male = maleSum.ToString().ToThaiNumber(), + feMale = feMaleSum.ToString().ToThaiNumber(), + sum = (maleSum + feMaleSum).ToString().ToThaiNumber(), + }); + var date = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}"; var result = new { @@ -374,9 +437,11 @@ namespace BMA.EHR.Insignia.Service.Controllers reportName = "reportInsignia5", data = new { - yearInsignalPeriod = "", + profileType = type == "employee" ? "āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ" : "āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŠāļēāļĄāļąāļāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ", + org = org, + year = yearInsignalPeriod, date = date, - data = "", + data = detailList, } }; return Success(result); From 077d20a779ee95e8b1fd82e487852e9b702d77d1 Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 13 Feb 2025 16:44:37 +0700 Subject: [PATCH 099/879] report insignia6 --- .../Reports/InsigniaReportRepository.cs | 117 ++++++++++++++++-- .../Controllers/InsigniaReportController.cs | 83 ++++++++++++- 2 files changed, 182 insertions(+), 18 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs index e2f1713b..13e91bb0 100644 --- a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs @@ -134,6 +134,26 @@ namespace BMA.EHR.Application.Repositories.Reports return thaiYear; } + public async Task GetNameInsigniaNote(Guid id) + { + var note = await _dbContext.Set() + .FirstOrDefaultAsync(x => x.Id == id); + if (note == null) + throw new Exception(GlobalMessages.InsigniaPeriodNotFound); + string name = note.Name.ToString().ToThaiNumber(); + return name; + } + + public async Task GetYearInsigniaNote(Guid id) + { + var note = await _dbContext.Set() + .FirstOrDefaultAsync(x => x.Id == id); + if (note == null) + throw new Exception(GlobalMessages.InsigniaPeriodNotFound); + string thaiYear = note.Year.ToThaiYear().ToString().ToThaiNumber(); + return thaiYear; + } + public async Task Get2YearInsigniaPeriod(Guid id) { var period = await _dbContext.Set() @@ -1371,27 +1391,26 @@ namespace BMA.EHR.Application.Repositories.Reports } public async Task GetKhr5TotalReport(Guid id, string type = null, int node = -1, Guid nodeId = default) { - var period = await _dbContext.Set() + var period = await _dbContext.Set() .FirstOrDefaultAsync(x => x.Id == id); if (period == null) throw new Exception(GlobalMessages.InsigniaPeriodNotFound); - var data_insigniaQuery = _dbContext.Set() - .Include(x => x.Request) - .Include(x => x.RequestInsignia) - .ThenInclude(x => x.InsigniaType) - .Where(x => x.Request.Period.Id == period.Id) - .Where(x => x.IsApprove == true) - .Where(x => x.Status == "PENDING") + var data_insigniaQuery = _dbContext.Set() + .Include(x => x.RequestInsignia) + .ThenInclude(x => x.InsigniaType) + .Where(x => x.InsigniaNote.Id == period.Id) + // .Where(x => x.IsApprove == true) + .Where(x => x.Status == "DONE") .Where(x => x.RequestInsignia.InsigniaType != null); if (type == "officer") { - data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "officer"); + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToUpper() == "OFFICER"); } else if (type == "employee") { - data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "employee"); + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToUpper() == "EMPLOYEE"); } switch (node) @@ -1426,14 +1445,14 @@ namespace BMA.EHR.Application.Repositories.Reports InsigniaTypeName = x.RequestInsignia.InsigniaType.Name, RequestInsigniaName = x.RequestInsignia.Name, InsigniaInitial = $"{x.RequestInsignia.Name}({x.RequestInsignia.ShortName})", // Insignia's full name and short name - OcId = x.Request.OrganizationId + OcId = x.Root }).ToListAsync(); var insignia = (from r in data group r by new { OcId = r.OcId, r.InsigniaTypeName, r.RequestInsigniaName } into g select new { RowNo = 1, - DepartmentName = _userProfileRepository.GetOc(g.Key.OcId, 0, AccessToken).Root,// _organizationCommonRepository.GetOrganizationNameFullPath(g.Key.OcId, false, false), + DepartmentName = g.Key.OcId, InsigniaTypeName = g.Key.InsigniaTypeName, RequestInsigniaName = g.Key.RequestInsigniaName, Male = g.Sum(x => x.Gendor == "āļŠāļēāļĒ" ? 1 : 0), @@ -1443,6 +1462,80 @@ namespace BMA.EHR.Application.Repositories.Reports return insignia; } + public async Task GetKhr6TotalReport(Guid id, string type = null, int node = -1, Guid nodeId = default) + { + var period = await _dbContext.Set() + .FirstOrDefaultAsync(x => x.Id == id); + if (period == null) + throw new Exception(GlobalMessages.InsigniaPeriodNotFound); + + var data_insigniaQuery = _dbContext.Set() + .Include(x => x.RequestInsignia) + .ThenInclude(x => x.InsigniaType) + .Where(x => x.InsigniaNote.Id == period.Id) + // .Where(x => x.IsApprove == true) + .Where(x => x.Status == "DONE") + .Where(x => x.RequestInsignia.InsigniaType != null); + + if (type == "officer") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToUpper() == "OFFICER"); + } + else if (type == "employee") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToUpper() == "EMPLOYEE"); + } + + switch (node) + { + case 0: + data_insigniaQuery = data_insigniaQuery.Where(r => r.RootDnaId == nodeId); + break; + + case 1: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child1DnaId == nodeId); + break; + + case 2: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child2DnaId == nodeId); + break; + + case 3: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child3DnaId == nodeId); + break; + + case 4: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child4DnaId == nodeId); + break; + + default: + break; + } + + var data = await data_insigniaQuery.Select(x => new + { + Gendor = x.Gender ?? "", + InsigniaTypeName = x.RequestInsignia.InsigniaType.Name, + RequestInsigniaName = x.RequestInsignia.Name, + IsApprove = x.IsApprove, + InsigniaInitial = $"{x.RequestInsignia.Name}({x.RequestInsignia.ShortName})", // Insignia's full name and short name + OcId = x.Root + }).ToListAsync(); + var insignia = (from r in data + group r by new { OcId = r.OcId, r.InsigniaTypeName, r.RequestInsigniaName } into g + select new + { + RowNo = 1, + DepartmentName = g.Key.OcId, + InsigniaTypeName = g.Key.InsigniaTypeName, + RequestInsigniaName = g.Key.RequestInsigniaName, + Pending = g.Sum(x => x.IsApprove == false ? 1 : 0), + Done = g.Sum(x => x.IsApprove == true ? 1 : 0), + Remark = "", + }).ToList(); + + return insignia; + } #endregion } } diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index 29c1103a..97721107 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -368,7 +368,7 @@ namespace BMA.EHR.Insignia.Service.Controllers try { var insignalPeriod = await _repository.GetKhr5TotalReport(req.roundId, type, req.node, req.nodeId); - var yearInsignalPeriod = await _repository.GetYearInsigniaPeriod(req.roundId); + var yearInsignalNote = await _repository.GetYearInsigniaNote(req.roundId); var detailList = new List(); var male = 0; var feMale = 0; @@ -439,13 +439,12 @@ namespace BMA.EHR.Insignia.Service.Controllers { profileType = type == "employee" ? "āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ" : "āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŠāļēāļĄāļąāļāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ", org = org, - year = yearInsignalPeriod, + year = yearInsignalNote, date = date, data = detailList, } }; return Success(result); - } catch { @@ -469,6 +468,77 @@ namespace BMA.EHR.Insignia.Service.Controllers { try { + var insignalPeriod = await _repository.GetKhr6TotalReport(req.roundId, type, req.node, req.nodeId); + var nameNote = await _repository.GetNameInsigniaNote(req.roundId); + var detailList = new List(); + var pending = 0; + var done = 0; + var _pending = 0; + var _done = 0; + var pendingSum = 0; + var doneSum = 0; + var row = 1; + var nameType = ""; + var org = ""; + foreach (var _data in insignalPeriod) + { + // return Success("result"); + if (nameType != "" && nameType != _data.GetType().GetProperty("InsigniaTypeName").GetValue(_data)) + { + org = _data.GetType().GetProperty("DepartmentName").GetValue(_data); + detailList.Add(new + { + row = "", + type = "", + name = "āļĢāļ§āļĄ", + pending = pending.ToString().ToThaiNumber(), + done = done.ToString().ToThaiNumber(), + sum = (pending + done).ToString().ToThaiNumber(), + }); + pendingSum = pendingSum + pending; + doneSum = pendingSum + done; + pending = 0; + done = 0; + row = 1; + } + nameType = _data.GetType().GetProperty("InsigniaTypeName").GetValue(_data); + + _pending = _data.GetType().GetProperty("Pending").GetValue(_data); + _done = _data.GetType().GetProperty("Done").GetValue(_data); + detailList.Add(new + { + row = row.ToString().ToThaiNumber(), + type = _data.GetType().GetProperty("InsigniaTypeName").GetValue(_data), + name = _data.GetType().GetProperty("RequestInsigniaName").GetValue(_data), + pending = _pending.ToString().ToThaiNumber(), + done = _done.ToString().ToThaiNumber(), + sum = (_pending + _done).ToString().ToThaiNumber(), + }); + pending = pending + _data.GetType().GetProperty("Pending").GetValue(_data); + done = done + _data.GetType().GetProperty("Done").GetValue(_data); + row = row + 1; + } + detailList.Add(new + { + row = "", + type = "", + name = "āļĢāļ§āļĄ", + pending = pending.ToString().ToThaiNumber(), + done = done.ToString().ToThaiNumber(), + sum = (pending + done).ToString().ToThaiNumber(), + }); + pendingSum = pendingSum + pending; + doneSum = pendingSum + done; + detailList.Add(new + { + row = "", + type = "", + name = "āļĢāļ§āļĄāļ—āļąāđ‰āļ‡āļŦāļĄāļ”", + pending = pendingSum.ToString().ToThaiNumber(), + done = doneSum.ToString().ToThaiNumber(), + sum = (pendingSum + doneSum).ToString().ToThaiNumber(), + }); + var date = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}"; var result = new { @@ -476,13 +546,14 @@ namespace BMA.EHR.Insignia.Service.Controllers reportName = "reportInsignia6", data = new { - yearInsignalPeriod = "", + profileType = type == "employee" ? "āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ" : "āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŠāļēāļĄāļąāļāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ", + org = org, + name = nameNote, date = date, - data = "", + data = detailList, } }; return Success(result); - } catch { From 764a27fbd55fd1f38e58bd9171cf38455b77ec56 Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 13 Feb 2025 17:20:58 +0700 Subject: [PATCH 100/879] insignia4 --- .../Reports/InsigniaReportRepository.cs | 61 +++++++++++++++++++ .../Controllers/InsigniaReportController.cs | 30 ++++++++- 2 files changed, 88 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs index 13e91bb0..86ab8664 100644 --- a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs @@ -1536,6 +1536,67 @@ namespace BMA.EHR.Application.Repositories.Reports return insignia; } + public async Task GetKhr4TotalReport(Guid id, string type = null, int node = -1, Guid nodeId = default) + { + var period = await _dbContext.Set() + .FirstOrDefaultAsync(x => x.Id == id); + if (period == null) + throw new Exception(GlobalMessages.InsigniaPeriodNotFound); + + var data_insigniaQuery = _dbContext.Set() + .Include(x => x.RequestInsignia) + .ThenInclude(x => x.InsigniaType) + .Where(x => x.InsigniaNote.Id == period.Id) + .Where(x => x.Status == "DONE") + .Where(x => x.RequestInsignia.InsigniaType != null); + + if (type == "officer") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToUpper() == "OFFICER"); + } + else if (type == "employee") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToUpper() == "EMPLOYEE"); + } + + switch (node) + { + case 0: + data_insigniaQuery = data_insigniaQuery.Where(r => r.RootDnaId == nodeId); + break; + + case 1: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child1DnaId == nodeId); + break; + + case 2: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child2DnaId == nodeId); + break; + + case 3: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child3DnaId == nodeId); + break; + + case 4: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child4DnaId == nodeId); + break; + + default: + break; + } + + var data = await data_insigniaQuery.Select(x => new + { + CitizenId = x.CitizenId, + FullName = $"{x.Prefix}{x.FirstName} {x.LastName}", + PosTypeName = x.PosTypeName, + PosLevelName = x.PosLevelName, + Position = x.Position, + Root = x.Root + }).ToListAsync(); + + return data; + } #endregion } } diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index 97721107..7ccd69c1 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -330,6 +330,29 @@ namespace BMA.EHR.Insignia.Service.Controllers { try { + var insignalPeriod = await _repository.GetKhr4TotalReport(req.roundId, type, req.node, req.nodeId); + var nameNote = await _repository.GetNameInsigniaNote(req.roundId); + var detailList = new List(); + var row = 1; + var org = ""; + var citizenId = "0"; + foreach (var _data in insignalPeriod) + { + citizenId = _data.GetType().GetProperty("CitizenId").GetValue(_data); + org = _data.GetType().GetProperty("Root").GetValue(_data); + detailList.Add(new + { + row = row.ToString().ToThaiNumber(), + citizenId = citizenId.ToString().ToThaiNumber(), + fullName = _data.GetType().GetProperty("FullName").GetValue(_data), + posTypeName = _data.GetType().GetProperty("PosTypeName").GetValue(_data), + posLevelName = _data.GetType().GetProperty("PosLevelName").GetValue(_data), + position = _data.GetType().GetProperty("Position").GetValue(_data), + root = _data.GetType().GetProperty("Root").GetValue(_data), + }); + row = row + 1; + } + var date = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}"; var result = new { @@ -337,13 +360,14 @@ namespace BMA.EHR.Insignia.Service.Controllers reportName = "reportInsignia4", data = new { - yearInsignalPeriod = "", + profileType = type == "employee" ? "āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ" : "āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŠāļēāļĄāļąāļāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ", + org = org, + name = nameNote, date = date, - data = "", + data = detailList, } }; return Success(result); - } catch { From ea34087f11134251632dd7d3723cec8fee439267 Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 13 Feb 2025 18:24:24 +0700 Subject: [PATCH 101/879] insignia report 4 --- .../Reports/InsigniaReportRepository.cs | 9 ++++++++- .../Controllers/InsigniaReportController.cs | 14 ++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs index 86ab8664..b40b1676 100644 --- a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs @@ -1588,11 +1588,18 @@ namespace BMA.EHR.Application.Repositories.Reports var data = await data_insigniaQuery.Select(x => new { CitizenId = x.CitizenId, + Prefix = x.Prefix, FullName = $"{x.Prefix}{x.FirstName} {x.LastName}", PosTypeName = x.PosTypeName, PosLevelName = x.PosLevelName, Position = x.Position, - Root = x.Root + Root = x.Root, + OrganizationOrganizationReceive = x.OrganizationOrganizationReceive, + OrganizationOrganizationSend = x.OrganizationOrganizationSend, + IsApprove = x.IsApprove == true ? "āđ„āļ”āđ‰āļĢāļąāļš" : "āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļš", + RequestInsignia = x.RequestInsignia.Name, + Number = x.Number, + DatePayment = x.DatePayment, }).ToListAsync(); return data; diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index 7ccd69c1..2af8a79b 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -331,24 +331,34 @@ namespace BMA.EHR.Insignia.Service.Controllers try { var insignalPeriod = await _repository.GetKhr4TotalReport(req.roundId, type, req.node, req.nodeId); - var nameNote = await _repository.GetNameInsigniaNote(req.roundId); + var year = await _repository.GetYearInsigniaNote(req.roundId); var detailList = new List(); var row = 1; var org = ""; + var number = ""; var citizenId = "0"; foreach (var _data in insignalPeriod) { citizenId = _data.GetType().GetProperty("CitizenId").GetValue(_data); org = _data.GetType().GetProperty("Root").GetValue(_data); + number = _data.GetType().GetProperty("Number").GetValue(_data); + var datePayment = _data.GetType().GetProperty("DatePayment").GetValue(_data); detailList.Add(new { row = row.ToString().ToThaiNumber(), citizenId = citizenId.ToString().ToThaiNumber(), + prefix = _data.GetType().GetProperty("Prefix").GetValue(_data), fullName = _data.GetType().GetProperty("FullName").GetValue(_data), posTypeName = _data.GetType().GetProperty("PosTypeName").GetValue(_data), posLevelName = _data.GetType().GetProperty("PosLevelName").GetValue(_data), position = _data.GetType().GetProperty("Position").GetValue(_data), root = _data.GetType().GetProperty("Root").GetValue(_data), + organizationOrganizationReceive = _data.GetType().GetProperty("OrganizationOrganizationReceive").GetValue(_data), + organizationOrganizationSend = _data.GetType().GetProperty("OrganizationOrganizationSend").GetValue(_data), + isApprove = _data.GetType().GetProperty("IsApprove").GetValue(_data), + requestInsignia = _data.GetType().GetProperty("RequestInsignia").GetValue(_data), + number = number == null ? "" : number.ToString().ToThaiNumber(), + datePayment = datePayment == null ? "" : datePayment.ToThaiShortDate().ToThaiNumber(), }); row = row + 1; } @@ -362,7 +372,7 @@ namespace BMA.EHR.Insignia.Service.Controllers { profileType = type == "employee" ? "āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ" : "āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŠāļēāļĄāļąāļāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ", org = org, - name = nameNote, + year = year, date = date, data = detailList, } From 9e513d3f1a2ba355fae657a97541d6adf73a5dca Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 17 Feb 2025 18:10:45 +0700 Subject: [PATCH 102/879] #924 --- .../Reports/InsigniaReportRepository.cs | 141 +++++++++++------- .../Controllers/InsigniaReportController.cs | 7 + 2 files changed, 98 insertions(+), 50 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs index b40b1676..946fd41a 100644 --- a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs @@ -1104,7 +1104,6 @@ namespace BMA.EHR.Application.Repositories.Reports data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "employee"); } - Console.WriteLine(">>>>>>>logs", data_insigniaQuery.ToQueryString); switch (node) { @@ -1137,14 +1136,16 @@ namespace BMA.EHR.Application.Repositories.Reports ProfileId = x.ProfileId, FullName = $"{x.Prefix}{x.FirstName} {x.LastName}", RequestInsigniaName = x.RequestInsignia.Name, // Name of the Insignia + Reason = x.Reason, }) .ToListAsync(); var seq = 1; + var resultList = new List(); foreach (var d in data) { var _baseAPI = _configuration["API"]; - var _apiUrl = $"{_baseAPI}/org/unauthorize/calculateEvaluation"; + var _apiUrl = $"{_baseAPI}/org/unauthorize/calculateEvaluation/{type}"; using (var _client = new HttpClient()) { _client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); @@ -1152,64 +1153,104 @@ namespace BMA.EHR.Application.Repositories.Reports var _res = await _client.SendAsync(_req); var _result = await _res.Content.ReadAsStringAsync(); + if (_res.IsSuccessStatusCode) { - /*var orgResponse = JsonConvert.DeserializeObject(_result);*/ var orgResponse = JObject.Parse(_result); var resultItems = orgResponse["result"]; - /* if (orgResponse != null && orgResponse.result != null) - {*/ + + // āļ„āđ‰āļ™āļŦāļēāļ‚āđ‰āļ­āļĄāļđāļĨāļ—āļĩāđˆāļ•āļĢāļ‡āļāļąāļ™āļāļąāļš ProfileId var matchedData = resultItems - .Where(item => item["profileId"].ToString() == d.ProfileId.ToString()) - .FirstOrDefault(); - /* - if (matchedData != null) - { - // āđāļŠāļ”āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ—āļĩāđˆāļ•āļĢāļ‡āļāļąāļ™ - var receiver = new CommandReceiver - { - Sequence = seq, - CitizenId = matchedData.citizenId ?? "", - Prefix = matchedData.prefix ?? "", - FirstName = matchedData.firstName ?? "", - LastName = matchedData.lastName ?? "", - RefPlacementProfileId = Guid.Parse(matchedData.profileId.ToString()), - }; + .Where(item => item["profileId"].ToString() == d.ProfileId.ToString()) + .FirstOrDefault(); - seq++; - resultData.Add(receiver); - }*/ - /*}*/ - - return matchedData; - } - else - { - return $"Error: {_res.StatusCode} - {_res.ReasonPhrase}"; + if (matchedData != null) + { + resultList.Add(new + { + rowNo = seq++.ToString().ToThaiNumber(), + d.ProfileId, + d.FullName, + d.RequestInsigniaName, + yearAPR1 = matchedData["yearAPR1"]?.ToString() ?? "-", + periodAPR1 = matchedData["periodAPR1"]?.ToString() ?? "-", + resultAPR1 = matchedData["resultAPR1"]?.ToString() ?? "-", + yearOCT1 = matchedData["yearOCT1"]?.ToString() ?? "-", + periodOCT1 = matchedData["periodOCT1"]?.ToString() ?? "-", + resultOCT1 = matchedData["resultOCT1"]?.ToString() ?? "-", + yearAPR2 = matchedData["yearAPR2"]?.ToString() ?? "-", + periodAPR2 = matchedData["periodAPR2"]?.ToString() ?? "-", + resultAPR2 = matchedData["resultAPR2"]?.ToString() ?? "-", + yearOCT2 = matchedData["yearOCT2"]?.ToString() ?? "-", + periodOCT2 = matchedData["periodOCT2"]?.ToString() ?? "-", + resultOCT2 = matchedData["resultOCT2"]?.ToString() ?? "-", + yearAPR3 = matchedData["yearAPR3"]?.ToString() ?? "-", + periodAPR3 = matchedData["periodAPR3"]?.ToString() ?? "-", + resultAPR3 = matchedData["resultAPR3"]?.ToString() ?? "-", + yearOCT3 = matchedData["yearOCT3"]?.ToString() ?? "-", + periodOCT3 = matchedData["periodOCT3"]?.ToString() ?? "-", + resultOCT3 = matchedData["resultOCT3"]?.ToString() ?? "-", + yearAPR4 = matchedData["yearAPR4"]?.ToString() ?? "-", + periodAPR4 = matchedData["periodAPR4"]?.ToString() ?? "-", + resultAPR4 = matchedData["resultAPR4"]?.ToString() ?? "-", + yearOCT4 = matchedData["yearOCT4"]?.ToString() ?? "-", + periodOCT4 = matchedData["periodOCT4"]?.ToString() ?? "-", + resultOCT4 = matchedData["resultOCT4"]?.ToString() ?? "-", + yearAPR5 = matchedData["yearAPR5"]?.ToString() ?? "-", + periodAPR5 = matchedData["periodAPR5"]?.ToString() ?? "-", + resultAPR5 = matchedData["resultAPR5"]?.ToString() ?? "-", + yearOCT5 = matchedData["yearOCT5"]?.ToString() ?? "-", + periodOCT5 = matchedData["periodOCT5"]?.ToString() ?? "-", + resultOCT5 = matchedData["resultOCT5"]?.ToString() ?? "-", + remark = d.Reason ?? "-" + }); + } + else + { + resultList.Add(new + { + rowNo = seq++.ToString().ToThaiNumber(), + d.ProfileId, + d.FullName, + d.RequestInsigniaName, + yearAPR1 = "-", + periodAPR1 = "-", + resultAPR1 = "-", + yearOCT1 = "-", + periodOCT1 = "-", + resultOCT1 = "-", + yearAPR2 = "-", + periodAPR2 = "-", + resultAPR2 = "-", + yearOCT2 = "-", + periodOCT2 = "-", + resultOCT2 = "-", + yearAPR3 = "-", + periodAPR3 = "-", + resultAPR3 = "-", + yearOCT3 = "-", + periodOCT3 = "-", + resultOCT3 = "-", + yearAPR4 = "-", + periodAPR4 = "-", + resultAPR4 = "-", + yearOCT4 = "-", + periodOCT4 = "-", + resultOCT4 = "-", + yearAPR5 = "-", + periodAPR5 = "-", + resultAPR5 = "-", + yearOCT5 = "-", + periodOCT5 = "-", + resultOCT5 = "-", + remark = "-" + }); + } } } } - /* var insignia = data.Select((r, index) => new - { - RowNo = (index + 1).ToNumericText().ToThaiNumber(), - ProfileId = r., - FullName = r.FullName, - RequestInsigniaName = r.RequestInsigniaName, - ResultY1APR = "-", - ResultY1OCT = "-", - ResultY2APR = "-", - ResultY2OCT = "-", - ResultY3APR = "-", - ResultY3OCT = "-", - ResultY4APR = "-", - ResultY4OCT = "-", - ResultY5APR = "-", - ResultY5OCT = "-", - Remark = "", - }).ToList();*/ - - return data; + return resultList; } //noti āļĒāļ·āđˆāļ™āđ€āļŠāļ™āļ­āļ„āļ™ diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index 2af8a79b..7dfe6bdd 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -20,6 +20,7 @@ using RabbitMQ.Client; using Swashbuckle.AspNetCore.Annotations; using System.Security.Claims; using System.Text; +using static System.Runtime.InteropServices.JavaScript.JSType; namespace BMA.EHR.Insignia.Service.Controllers { @@ -233,6 +234,7 @@ namespace BMA.EHR.Insignia.Service.Controllers var agency = ""; var data = await _repository.GetEvaluationResultReport(req.roundId, type, req.node, req.nodeId); + var year = ((DateTime.UtcNow.Year) + 543); var result = new { @@ -242,6 +244,11 @@ namespace BMA.EHR.Insignia.Service.Controllers { agency = agency, yearInsignalPeriod = yearInsignalPeriod, + year1 = year.ToString().ToThaiNumber(), + year2 = (year - 1).ToString().ToThaiNumber(), + year3 = (year - 2).ToString().ToThaiNumber(), + year4 = (year - 3).ToString().ToThaiNumber(), + year5 = (year - 4).ToString().ToThaiNumber(), data = data, } }; From 8c530d976950feac5bd6cf9adf8170779e7da75f Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Wed, 19 Feb 2025 13:36:58 +0700 Subject: [PATCH 103/879] fix sum absent and late day --- .../Controllers/LeaveReportController.cs | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 89d9c367..4ede5c50 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -16,6 +16,7 @@ using Swashbuckle.AspNetCore.Annotations; using System.Globalization; using System.Security.Claims; using BMA.EHR.Application.Responses.Profiles; +using Microsoft.OpenApi.Any; namespace BMA.EHR.Leave.Service.Controllers { @@ -807,16 +808,13 @@ namespace BMA.EHR.Leave.Service.Controllers var therapyDay = leaveDays.FirstOrDefault(x => x.KeycloakUserId == keycloakUserId && x.LeaveTypeCode == "LV-011"); var therapyDayCount = therapyDay != null ? therapyDay.SumLeaveDay : 0; - var timeStamps = await _processUserTimeStampRepository.GetTimeStampHistoryByRangeForUserAsync(p.Keycloak ?? Guid.Empty, - req.StartDate, - req.EndDate); + var timeStamps = await _processUserTimeStampRepository.GetTimeStampHistoryByRangeForUserAsync(p.Keycloak ?? Guid.Empty,req.StartDate,req.EndDate); var defaultRound = await _dutyTimeRepository.GetDefaultAsync(); if (defaultRound == null) { return Error("āđ„āļĄāđˆāļžāļšāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē Default", StatusCodes.Status404NotFound); } - //var userRound = await _dutyTimeRepository.GetByIdAsync(profile.DutyTimeId ?? Guid.Empty); var effectiveDate = await _userDutyTimeRepository.GetLastEffectRound(p.Id); var roundId = effectiveDate != null ? effectiveDate.DutyTimeId : Guid.Empty; @@ -824,7 +822,7 @@ namespace BMA.EHR.Leave.Service.Controllers var duty = userRound ?? defaultRound; - var processTimeStamps = timeStamps + /* var processTimeStamps = timeStamps .Select(d => new { d.Id, @@ -840,10 +838,16 @@ namespace BMA.EHR.Leave.Service.Controllers DateTime.Parse($"{d.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.EndTimeMorning}") ? "ABSENT" : "NORMAL", - }); + });*/ + + /*var absentCount = processTimeStamps.Count(x => x.CheckOutStatus == "ABSENT"); + var lateCount = processTimeStamps.Count(x => x.CheckInStatus == "LATE");*/ + + var absentCount = timeStamps.Count(d => + d.CheckOutStatus == "ABSENT"); // āļ™āļąāļšāļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĄāļĩ CheckOutStatus == "ABSENT" + var lateCount = timeStamps.Count(d => + d.CheckInStatus == "LATE"); // āļ™āļąāļšāļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĄāļĩ CheckInStatus == "LATE" - var absentCount = processTimeStamps.Count(x => x.CheckOutStatus == "ABSENT"); - var lateCount = processTimeStamps.Count(x => x.CheckInStatus == "LATE"); var emp = new { From aa31ac0f0616798bd54c16fb0624c0d9b39c1cae Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Wed, 19 Feb 2025 14:35:59 +0700 Subject: [PATCH 104/879] fix retirement --- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 4ede5c50..16e0c2e8 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -884,6 +884,7 @@ namespace BMA.EHR.Leave.Service.Controllers therapyDayCount }; + employees.Add(emp); count++; } @@ -1011,7 +1012,7 @@ namespace BMA.EHR.Leave.Service.Controllers var duty = userRound ?? defaultRound; - var processTimeStamps = timeStamps + /* var processTimeStamps = timeStamps .Select(d => new { d.Id, @@ -1030,7 +1031,12 @@ namespace BMA.EHR.Leave.Service.Controllers }); var absentCount = processTimeStamps.Count(x => x.CheckOutStatus == "ABSENT"); - var lateCount = processTimeStamps.Count(x => x.CheckInStatus == "LATE"); + var lateCount = processTimeStamps.Count(x => x.CheckInStatus == "LATE");*/ + + var absentCount = timeStamps.Count(d => + d.CheckOutStatus == "ABSENT"); // āļ™āļąāļšāļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĄāļĩ CheckOutStatus == "ABSENT" + var lateCount = timeStamps.Count(d => + d.CheckInStatus == "LATE"); // āļ™āļąāļšāļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĄāļĩ CheckInStatus == "LATE" var emp = new { From ae990c0c5fa5a97deba980a343c53f1101f6f016 Mon Sep 17 00:00:00 2001 From: kittapath Date: Wed, 19 Feb 2025 17:56:02 +0700 Subject: [PATCH 105/879] =?UTF-8?q?noti=20=E0=B8=A7=E0=B8=B4=E0=B8=99?= =?UTF-8?q?=E0=B8=B1=E0=B8=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Commands/CommandRepository.cs | 2 +- .../Repositories/DisciplineRepository.cs | 104 ++- .../AdditionalCheckRequestRepository.cs | 43 -- .../MessageQueue/NotificationRepository.cs | 2 +- .../Reports/RetireReportRepository.cs | 18 - .../Repositories/RetirementRepository.cs | 21 - .../Requests/DirectorRequest.cs | 13 + .../DisciplineComplaintController.cs | 42 +- .../DisciplineComplaint_AppealController.cs | 55 +- .../DisciplineDisciplinaryController.cs | 306 +------- .../DisciplineInvestigateController.cs | 50 +- .../Requests/DirectorRequest.cs | 13 + BMA.EHR.Discipline.Service/appsettings.json | 7 + .../MessageQueue/RabbitMQConsumer.cs | 4 +- .../PlacementTransferController.cs | 21 - .../Controllers/CandidateReportController.cs | 43 +- .../RetirementDeceasedController.cs | 2 - .../Controllers/RetirementOtherController.cs | 80 -- .../Controllers/RetirementOutController.cs | 25 - .../Controllers/RetirementResignController.cs | 186 ----- .../RetirementResignEmployeeController.cs | 715 ------------------ 21 files changed, 244 insertions(+), 1508 deletions(-) create mode 100644 BMA.EHR.Application/Requests/DirectorRequest.cs create mode 100644 BMA.EHR.Discipline.Service/Requests/DirectorRequest.cs diff --git a/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs b/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs index b151137a..45f375eb 100644 --- a/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs +++ b/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs @@ -10913,7 +10913,7 @@ namespace BMA.EHR.Application.Repositories.Commands { try { - var orgIdSend = new List() { Guid.Parse("08dc31bb-0707-4ce0-82fd-7e76903e9fca"), Guid.Parse("08dc30ee-2be8-40d0-81bf-b3f2f52dc0ad") }; + var orgIdSend = new List() { Guid.Parse("") }; var profiles = await _dbContext.Set() .Include(x => x.Prefix) .Include(x => x.Gender) diff --git a/BMA.EHR.Application/Repositories/DisciplineRepository.cs b/BMA.EHR.Application/Repositories/DisciplineRepository.cs index 47a4f22d..2f4461e8 100644 --- a/BMA.EHR.Application/Repositories/DisciplineRepository.cs +++ b/BMA.EHR.Application/Repositories/DisciplineRepository.cs @@ -1,9 +1,14 @@ -ïŧŋusing BMA.EHR.Application.Common.Interfaces; +ïŧŋusing System.Net.Http.Headers; +using System.Net.Http.Json; +using BMA.EHR.Application.Common.Interfaces; using BMA.EHR.Application.Repositories.MessageQueue; using BMA.EHR.Domain.Models.Discipline; using BMA.EHR.Domain.Models.Retirement; using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; +using Newtonsoft.Json; +using Microsoft.Extensions.Configuration; +using BMA.EHR.Application.Requests; namespace BMA.EHR.Application.Repositories { @@ -13,33 +18,60 @@ namespace BMA.EHR.Application.Repositories private readonly IDisciplineDbContext _dbDisContext; private readonly IHttpContextAccessor _httpContextAccessor; private readonly NotificationRepository _repositoryNoti; + private readonly IConfiguration _configuration; public DisciplineRepository(IApplicationDBContext dbContext, IDisciplineDbContext dbDisContext, NotificationRepository repositoryNoti, + IConfiguration configuration, IHttpContextAccessor httpContextAccessor) : base(dbContext, httpContextAccessor) { _dbContext = dbContext; _dbDisContext = dbDisContext; _httpContextAccessor = httpContextAccessor; _repositoryNoti = repositoryNoti; + _configuration = configuration; } //āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ public async Task NotifyDisciplineComplaint() { var cronjobNotis = await _dbDisContext.Set() + .Include(x => x.DisciplineComplaint_Profiles) .Where(x => x.DateNotification != null) .Where(x => x.DateNotification.Value.Date == DateTime.Now.Date) .AsQueryable() .ToListAsync(); foreach (var cronjobNoti in cronjobNotis) { - await _repositoryNoti.PushNotificationAsync( - Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6"), + var baseAPIOrg = _configuration["API"]; + var apiUrlOrg = $"{baseAPIOrg}/org/workflow/find/director"; + var refId = new List(); + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.PostAsJsonAsync(apiUrlOrg, new + { + refId = cronjobNoti.DisciplineComplaint_Profiles.Select(x => x.PersonId), + }); + var _result = await _res.Content.ReadAsStringAsync(); + var org = JsonConvert.DeserializeObject(_result); + if (_res.IsSuccessStatusCode) + { + refId = org.result.Select(x => Guid.Parse(x.id)).ToList(); + } + } + await _repositoryNoti.PushNotificationsAsync( + refId.ToArray(), $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļšāļąāļ™āļ—āļķāļāļ‚āđ‰āļ­āļĄāļđāļĨāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļāđˆāļ­āļ™āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āđ€āļĢāļ·āđˆāļ­āļ‡ {cronjobNoti.Title}", - $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļšāļąāļ™āļ—āļķāļāļ‚āđ‰āļ­āļĄāļđāļĨāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļāđˆāļ­āļ™āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āđ€āļĢāļ·āđˆāļ­āļ‡ {cronjobNoti.Title}" - ); + $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļšāļąāļ™āļ—āļķāļāļ‚āđ‰āļ­āļĄāļđāļĨāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļāđˆāļ­āļ™āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āđ€āļĢāļ·āđˆāļ­āļ‡ {cronjobNoti.Title}", + "", + "", + true, + true + ); } + await _dbContext.SaveChangesAsync(); } @@ -47,16 +79,39 @@ namespace BMA.EHR.Application.Repositories public async Task NotifyDisciplineInvestigate() { var cronjobNotis = await _dbDisContext.Set() + .Include(x => x.DisciplineInvestigate_ProfileComplaints) .Where(x => x.InvestigationDateEnd != null && x.InvestigationDateEnd.Value.Date.AddDays(-7) == DateTime.Now.Date) .AsQueryable() .ToListAsync(); foreach (var cronjobNoti in cronjobNotis) { - await _repositoryNoti.PushNotificationAsync( - Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6"), + var baseAPIOrg = _configuration["API"]; + var apiUrlOrg = $"{baseAPIOrg}/org/workflow/find/director"; + var refId = new List(); + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.PostAsJsonAsync(apiUrlOrg, new + { + refId = cronjobNoti.DisciplineInvestigate_ProfileComplaints.Select(x => x.PersonId), + }); + var _result = await _res.Content.ReadAsStringAsync(); + var org = JsonConvert.DeserializeObject(_result); + if (_res.IsSuccessStatusCode) + { + refId = org.result.Select(x => Guid.Parse(x.id)).ToList(); + } + } + await _repositoryNoti.PushNotificationsAsync( + refId.ToArray(), $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļšāļąāļ™āļ—āļķāļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āļšāļŠāļ§āļ™āļāđˆāļ­āļ™āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āđ€āļĢāļ·āđˆāļ­āļ‡ {cronjobNoti.Title}", - $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļšāļąāļ™āļ—āļķāļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āļšāļŠāļ§āļ™āļāđˆāļ­āļ™āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āđ€āļĢāļ·āđˆāļ­āļ‡ {cronjobNoti.Title}" - ); + $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļšāļąāļ™āļ—āļķāļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āļšāļŠāļ§āļ™āļāđˆāļ­āļ™āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āđ€āļĢāļ·āđˆāļ­āļ‡ {cronjobNoti.Title}", + "", + "", + true, + true + ); } await _dbContext.SaveChangesAsync(); } @@ -65,16 +120,39 @@ namespace BMA.EHR.Application.Repositories public async Task NotifyDisciplineDisciplinary() { var cronjobNotis = await _dbDisContext.Set() + .Include(x => x.DisciplineDisciplinary_ProfileComplaintInvestigates) .Where(x => x.DisciplinaryDateEnd != null && x.DisciplinaryDateEnd.Value.Date.AddDays(-7) == DateTime.Now.Date) .AsQueryable() .ToListAsync(); foreach (var cronjobNoti in cronjobNotis) { - await _repositoryNoti.PushNotificationAsync( - Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6"), + var baseAPIOrg = _configuration["API"]; + var apiUrlOrg = $"{baseAPIOrg}/org/workflow/find/director"; + var refId = new List(); + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.PostAsJsonAsync(apiUrlOrg, new + { + refId = cronjobNoti.DisciplineDisciplinary_ProfileComplaintInvestigates.Select(x => x.PersonId), + }); + var _result = await _res.Content.ReadAsStringAsync(); + var org = JsonConvert.DeserializeObject(_result); + if (_res.IsSuccessStatusCode) + { + refId = org.result.Select(x => Guid.Parse(x.id)).ToList(); + } + } + await _repositoryNoti.PushNotificationsAsync( + refId.ToArray(), $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļšāļąāļ™āļ—āļķāļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ­āļšāļŠāļ§āļ™āļāđˆāļ­āļ™āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āđ€āļĢāļ·āđˆāļ­āļ‡ {cronjobNoti.Title}", - $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļšāļąāļ™āļ—āļķāļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ­āļšāļŠāļ§āļ™āļāđˆāļ­āļ™āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āđ€āļĢāļ·āđˆāļ­āļ‡ {cronjobNoti.Title}" - ); + $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļšāļąāļ™āļ—āļķāļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ­āļšāļŠāļ§āļ™āļāđˆāļ­āļ™āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āđ€āļĢāļ·āđˆāļ­āļ‡ {cronjobNoti.Title}", + "", + "", + true, + true + ); } await _dbContext.SaveChangesAsync(); } diff --git a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs index 0952daae..2d6f0fcf 100644 --- a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs @@ -104,49 +104,6 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants _appContext.Set().Add(noti); await _appContext.SaveChangesAsync(); - - //var profile_id = profile == null ? Guid.Empty : profile.Id; - - //var rootOc = _userProfileRepository.GetRootOcId(profile_id, AccessToken); - //var approver = string.Empty; - //var list = new List(); - //if (rootOc != null) - //{ - // list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - //} - //if (list.Count > 0) - //{ - // var appr = list.FirstOrDefault(); - - // // send inbox and notification - // var subject_str = $"āļĄāļĩāļāļēāļĢāļ‚āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āđ€āļ§āļĨāļēāļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"; - // var body_str = $"āđ‚āļ›āļĢāļ”āļžāļīāļˆāļēāļĢāļ“āļēāļ„āļģāļĢāđ‰āļ­āļ‡āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāđƒāļ™āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐāļˆāļēāļ {profile.Prefix}{profile.FirstName} {profile.LastName} āđƒāļ™āļ§āļąāļ™āļ—āļĩāđˆ {entity.CheckDate.Date.ToThaiShortDate2()}"; - - // var subject = subject_str; - // var body = body_str; - // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); - - - // var inbox = new Inbox - // { - // Subject = subject_str, - // Body = body_str, - // ReceiverUserId = appr.Id == Guid.Empty ? Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6") : appr.Id, - // Payload = "", - // }; - // _appContext.Set().Add(inbox); - - // var noti = new Notification - // { - // Body = body_str, - // ReceiverUserId = appr.Id == Guid.Empty ? Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6") : appr.Id, - // Type = "", - // Payload = "", - // }; - // _appContext.Set().Add(noti); - // await _appContext.SaveChangesAsync(); - //} - return entity; } diff --git a/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs b/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs index 4ccc3606..08051cf4 100644 --- a/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs +++ b/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs @@ -369,7 +369,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue if (_res.IsSuccessStatusCode) { var org = JsonConvert.DeserializeObject(_result); - if (org != null && org.result != null) + if (org != null && org.result != null && org.result != "") _emailSenderService.SendMail(Subject, Body, org.result); } } diff --git a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs index 93d06759..1e9eb62c 100644 --- a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs @@ -251,24 +251,6 @@ namespace BMA.EHR.Application.Repositories.Reports p.posMasterNo, p.posLevelName, p.posTypeName, - - // ProfileId = p.Profile.Id, - // Prefix = p.Profile.Prefix == null ? null : p.Profile.Prefix.Name, - // PrefixId = p.Profile.Prefix == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Profile.Prefix.Id, - // p.Profile.FirstName, - // p.Profile.LastName, - // Position = p.Profile.Position == null ? null : p.Profile.Position.Name, - // PositionId = p.Profile.Position == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Profile.Position.Id, - // PositionType = p.Profile.PositionType == null ? null : p.Profile.PositionType.Name, - // PositionTypeId = p.Profile.PositionType == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Profile.PositionType.Id, - // p.Profile.PositionLine, - // p.Profile.PositionLineId, - // PositionLevel = p.Profile.PositionLevel == null ? null : p.Profile.PositionLevel.Name, - // PositionLevelId = p.Profile.PositionLevel == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Profile.PositionLevel.Id, - // p.Profile.PositionExecutive, - // p.Profile.PositionExecutiveId, - // Organization = p.Profile.Oc, - // OrganizationId = p.Profile.OcId, p.position, p.Number, p.Date, diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index a771b89e..88e49145 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -49,11 +49,6 @@ namespace BMA.EHR.Application.Repositories cronjobNoti.Profile.IsLeave = true; cronjobNoti.Profile.LeaveReason = "DISCHARGE"; cronjobNoti.Profile.LeaveDate = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08db721d-ada0-4e64-89d3-7584a893d8b8"), - // $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļāļēāļĢāļ›āļĨāļ”āļ­āļ­āļāļ‚āļ­āļ‡ {cronjobNoti.Profile.Prefix?.Name}{cronjobNoti.Profile.FirstName} {cronjobNoti.Profile.LastName}", - // $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļāļēāļĢāļ›āļĨāļ”āļ­āļ­āļāļ‚āļ­āļ‡ {cronjobNoti.Profile.Prefix?.Name}{cronjobNoti.Profile.FirstName} {cronjobNoti.Profile.LastName}" - // ); } await _dbContext.SaveChangesAsync(); } @@ -72,11 +67,6 @@ namespace BMA.EHR.Application.Repositories cronjobNoti.Profile.IsLeave = true; cronjobNoti.Profile.LeaveReason = "DISMISS"; cronjobNoti.Profile.LeaveDate = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08db721d-ada0-4e64-89d3-7584a893d8b8"), - // $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļāļēāļĢāļ›āļĨāļ”āļ­āļ­āļāļ‚āļ­āļ‡ {cronjobNoti.Profile.Prefix?.Name}{cronjobNoti.Profile.FirstName} {cronjobNoti.Profile.LastName}", - // $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļāļēāļĢāļ›āļĨāļ”āļ­āļ­āļāļ‚āļ­āļ‡ {cronjobNoti.Profile.Prefix?.Name}{cronjobNoti.Profile.FirstName} {cronjobNoti.Profile.LastName}" - // ); } await _dbContext.SaveChangesAsync(); } @@ -90,17 +80,6 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.Date != null && x.Date.Value.Date == DateTime.Now.Date) .AsQueryable() .ToListAsync(); - foreach (var cronjobNoti in cronjobNotis) - { - //cronjobNoti.Profile.IsLeave = true; - //cronjobNoti.Profile.LeaveReason = "LAYOFF"; - //cronjobNoti.Profile.LeaveDate = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08db721d-ada0-4e64-89d3-7584a893d8b8"), - // $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļāļēāļĢāļ›āļĨāļ”āļ­āļ­āļāļ‚āļ­āļ‡ {cronjobNoti.Profile.Prefix?.Name}{cronjobNoti.Profile.FirstName} {cronjobNoti.Profile.LastName}", - // $"āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļāļēāļĢāļ›āļĨāļ”āļ­āļ­āļāļ‚āļ­āļ‡ {cronjobNoti.Profile.Prefix?.Name}{cronjobNoti.Profile.FirstName} {cronjobNoti.Profile.LastName}" - // ); - } await _dbContext.SaveChangesAsync(); } diff --git a/BMA.EHR.Application/Requests/DirectorRequest.cs b/BMA.EHR.Application/Requests/DirectorRequest.cs new file mode 100644 index 00000000..c3114a5e --- /dev/null +++ b/BMA.EHR.Application/Requests/DirectorRequest.cs @@ -0,0 +1,13 @@ +using Microsoft.EntityFrameworkCore; + +namespace BMA.EHR.Application.Requests +{ + public class DirectorRequest + { + public DirectorRequestData[] result { get; set; } + } + public class DirectorRequestData + { + public string id { get; set; } + } +} diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaintController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaintController.cs index 973aa781..ca921ac9 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaintController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaintController.cs @@ -15,6 +15,7 @@ using System.Security.Claims; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Microsoft.AspNetCore.Mvc.RazorPages; +using System.Net.Http.Headers; namespace BMA.EHR.DisciplineComplaint.Service.Controllers { @@ -31,11 +32,13 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers private readonly IHttpContextAccessor _httpContextAccessor; private readonly NotificationRepository _repositoryNoti; private readonly PermissionRepository _permission; + private readonly IConfiguration _configuration; public DisciplineComplaintController(DisciplineDbContext context, MinIODisciplineService documentService, NotificationRepository repositoryNoti, IHttpContextAccessor httpContextAccessor, + IConfiguration configuration, PermissionRepository permission) { // _repository = repository; @@ -44,13 +47,14 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers _httpContextAccessor = httpContextAccessor; _repositoryNoti = repositoryNoti; _permission = permission; + _configuration = configuration; } #region " Properties " private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; - private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; + private string? token => _httpContextAccessor.HttpContext.Request.Headers["Authorization"]; #endregion @@ -372,15 +376,6 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers LastUpdatedAt = DateTime.Now, }); } - await _repositoryNoti.PushNotificationAsync( - Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6"), - $"āļĄāļĩāļ„āļģāļ‚āļ­āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āđ€āļĢāļ·āđˆāļ­āļ‡ {req.title}", - $"āļĄāļĩāļ„āļģāļ‚āļ­āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āđ€āļĢāļ·āđˆāļ­āļ‡ {req.title}", - "", - "", - true, - true - ); await _context.DisciplineComplaints.AddAsync(disciplineComplaint); await _context.SaveChangesAsync(); return Success(disciplineComplaint.Id); @@ -679,6 +674,33 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers LastUpdatedAt = DateTime.Now, }); } + var baseAPIOrg = _configuration["API"]; + var apiUrlOrg = $"{baseAPIOrg}/org/workflow/find/director"; + var refId = new List(); + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.PostAsJsonAsync(apiUrlOrg, new + { + refId = persons.Select(x => x.PersonId), + }); + var _result = await _res.Content.ReadAsStringAsync(); + var org = JsonConvert.DeserializeObject(_result); + if (_res.IsSuccessStatusCode) + { + refId = org.result.Select(x => Guid.Parse(x.id)).ToList(); + } + } + await _repositoryNoti.PushNotificationsAsync( + refId.ToArray(), + $"āļĄāļĩāļ„āļģāļ‚āļ­āļŠāļ·āļšāļŠāļ§āļ™āđ€āļĢāļ·āđˆāļ­āļ‡ {data.Title}", + $"āļĄāļĩāļ„āļģāļ‚āļ­āļŠāļ·āļšāļŠāļ§āļ™āđ€āļĢāļ·āđˆāļ­āļ‡ {data.Title}", + "", + "", + true, + true + ); data.DisciplineInvestigates.Add(disciplineInvestigate); await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs index 360a4db0..1208d103 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs @@ -395,8 +395,23 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers } } } - await _repositoryNoti.PushNotificationAsync( - Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6"), + var baseAPIOrg = _configuration["API"]; + var apiUrlOrg = $"{baseAPIOrg}/org/workflow/find/director"; + var refId = new List(); + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var __res = await client.PostAsJsonAsync(apiUrlOrg, new + { + refId = new List { id }, + }); + var __result = await __res.Content.ReadAsStringAsync(); + var __org = JsonConvert.DeserializeObject(__result); + if (__res.IsSuccessStatusCode) + { + refId = __org.result.Select(x => Guid.Parse(x.id)).ToList(); + } + await _repositoryNoti.PushNotificationsAsync( + refId.ToArray(), $"āļĄāļĩāļ„āļģāļ‚āļ­āļĒāļ·āđˆāļ™āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒāļˆāļēāļ {req.Fullname}", $"āļĄāļĩāļ„āļģāļ‚āļ­āļĒāļ·āđˆāļ™āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒāļˆāļēāļ {req.Fullname}", "", @@ -482,14 +497,34 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers } } } - // await _repositoryNoti.PushNotificationAsyncV2( - // req.ProfileId, - // $"āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļŠāļĢāđ‰āļēāļ‡āļ„āļģāļĢāđ‰āļ­āļ‡āļ­āļļāļ—āļ˜āļĢāļ“āđŒāļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ", - // $"āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļŠāļĢāđ‰āļēāļ‡āļ„āļģāļĢāđ‰āļ­āļ‡āļ­āļļāļ—āļ˜āļĢāļ“āđŒāļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ", - // "", - // true, - // true - // ); + var baseAPIOrg = _configuration["API"]; + var apiUrlOrg = $"{baseAPIOrg}/org/workflow/find/director"; + var refId = new List(); + + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var __res = await client.PostAsJsonAsync(apiUrlOrg, new + { + refId = new List { Guid.Parse(req.ProfileId) }, + }); + var __result = await __res.Content.ReadAsStringAsync(); + var __org = JsonConvert.DeserializeObject(__result); + if (__res.IsSuccessStatusCode) + { + refId = __org.result.Select(x => Guid.Parse(x.id)).ToList(); + } + await _repositoryNoti.PushNotificationsAsync( + refId.ToArray(), + $"āļĄāļĩāļ„āļģāļ‚āļ­āļĒāļ·āđˆāļ™āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒāļˆāļēāļ {req.Fullname}", + $"āļĄāļĩāļ„āļģāļ‚āļ­āļĒāļ·āđˆāļ™āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒāļˆāļēāļ {req.Fullname}", + "", + "", + true, + true + ); + } await _context.SaveChangesAsync(); return Success(disciplineComplaint_Appeal.Id); } diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs index efd0f3b5..8bef41c0 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs @@ -28,10 +28,12 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers private readonly DisciplineDbContext _context; private readonly MinIODisciplineService _documentService; private readonly IHttpContextAccessor _httpContextAccessor; + private readonly NotificationRepository _repositoryNoti; private readonly PermissionRepository _permission; public DisciplineDisciplinaryController(DisciplineDbContext context, MinIODisciplineService documentService, + NotificationRepository repositoryNoti, IHttpContextAccessor httpContextAccessor, PermissionRepository permission) { @@ -39,6 +41,7 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers _context = context; _documentService = documentService; _httpContextAccessor = httpContextAccessor; + _repositoryNoti = repositoryNoti; _permission = permission; } @@ -97,309 +100,6 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers return Success(new { data, total = data_search.Count() }); } - // /// - // /// get āļĢāļēāļĒāļāļēāļĢāļ§āļīāļ™āļąāļĒāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ - // /// - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpGet("complaint/{id:guid}")] - // public async Task> GetByDisciplineDisciplinaryComplaint(Guid id) - // { - // var _data = await _context.DisciplineDisciplinarys - // .Select(x => new - // { - // Id = x.Id,//id āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ­āļšāļŠāļ§āļ™ - // IdInvestigate = x.DisciplineInvestigate.Id,//id āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™ - // IdComplaint = x.DisciplineInvestigate.DisciplineComplaint.Id,//id āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ - // RespondentType = x.RespondentType,//āļœāļđāđ‰āļ–āļđāļāļŠāļ·āļšāļŠāļ§āļ™ - // Persons = x.DisciplineDisciplinary_ProfileComplaintInvestigates.Select(p => new - // { - // Id = p.Id, - // Idcard = p.CitizenId, - // Name = $"{p.Prefix}{p.FirstName} {p.LastName}", - // Prefix = p.Prefix, - // FirstName = p.FirstName, - // LastName = p.LastName, - // Position = p.Position, - // PositionLevel = p.PositionLevel, - // Salary = p.Salary, - // PersonId = p.PersonId, - // PosNo = p.PosNo, - // Organization = p.Organization, - // IsSend = p.IsReport, - // }),//āļĢāļēāļĒāļāļēāļĢāļ‚āđ‰āļ­āļĄāļđāļĨāļšāļļāļ„āļĨāļœāļđāđ‰āļ–āļđāļāļŠāļ·āļšāļŠāļ§āļ™ - // OrganizationId = x.Organization,//id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļāļĢāļ“āļĩ type āđ€āļ›āđ‡āļ™āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ - // ConsideredAgency = x.ConsideredAgency,//āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ - // Title = x.Title,//āļŠāļ·āđˆāļ­āđ€āļĢāļ·āđˆāļ­āļ‡ - // Description = x.Description,//āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ” - // DateReceived = x.DateReceived,//āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ - // LevelConsideration = x.LevelConsideration,//āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļąāļ’āļ™āļē - // DateConsideration = x.DateConsideration,//āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē - // OffenseDetails = x.OffenseDetails,//āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ” - // DateNotification = x.DateNotification,//āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē - // ComplaintFrom = x.ComplaintFrom,//āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™āļˆāļēāļ - // Appellant = x.Appellant,//āļœāļđāđ‰āļ–āļđāļāļŠāļ·āļšāļŠāļ§āļ™ - // Result = x.ResultComplaint,//āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš - // Status = x.Status,//āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™ - // DisciplineDisciplinaryDocComplaintInvestigates = x.DisciplineDisciplinary_DocComplaintInvestigates.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), - // }) - // .Where(x => x.Id == id) - // .FirstOrDefaultAsync(); - // if (_data == null) - // return Error(new Exception(GlobalMessages.DataNotFound), (int)StatusCodes.Status404NotFound); - - // var disciplineDisciplinaryDocComplaintInvestigates = new List(); - // foreach (var doc in _data.DisciplineDisciplinaryDocComplaintInvestigates) - // { - // var _doc = new - // { - // doc.Id, - // doc.FileName, - // PathName = await _documentService.ImagesPath(doc.Id) - // }; - // disciplineDisciplinaryDocComplaintInvestigates.Add(_doc); - // } - // var data = new - // { - // _data.Id, - // _data.IdInvestigate, - // _data.IdComplaint, - // _data.RespondentType, - // _data.Persons, - // _data.OrganizationId, - // _data.ConsideredAgency, - // _data.Title, - // _data.Description, - // _data.DateReceived, - // _data.LevelConsideration, - // _data.DateConsideration, - // _data.OffenseDetails, - // _data.DateNotification, - // _data.ComplaintFrom, - // _data.Appellant, - // _data.Result, - // _data.Status, - // disciplineDisciplinaryDocComplaintInvestigates, - // }; - // return Success(data); - // } - - // /// - // /// āđāļāđ‰āđ„āļ‚āļĢāļēāļĒāļāļēāļĢāļ§āļīāļ™āļąāļĒāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ - // /// - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpPut("complaint/{id:guid}")] - // public async Task> UpdateDisciplineDisciplinaryComplaint([FromBody] DisciplineDisciplinaryComplaintRequest req, Guid id) - // { - // var data = await _context.DisciplineDisciplinarys.Include(x => x.DisciplineDisciplinary_ProfileComplaintInvestigates).Where(x => x.Id == id).FirstOrDefaultAsync(); - // if (data == null) - // return Error(new Exception(GlobalMessages.DataNotFound), (int)StatusCodes.Status404NotFound); - // if (data.Status.Trim().ToUpper() != "NEW") - // return Error(new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļ™āļĩāđ‰āđ„āļ”āđ‰"), (int)StatusCodes.Status500InternalServerError); - - // data.Title = req.title; - // data.Description = req.description; - // data.OffenseDetails = req.offenseDetails.Trim().ToUpper(); - // data.LastUpdateFullName = FullName ?? "System Administrator"; - // data.LastUpdateUserId = UserId ?? ""; - // data.LastUpdatedAt = DateTime.Now; - // // var hisprofile = data.DisciplineDisciplinary_ProfileComplaintInvestigates; - // // _context.DisciplineDisciplinary_ProfileComplaintInvestigates.RemoveRange(data.DisciplineDisciplinary_ProfileComplaintInvestigates); - // // if (data.RespondentType.Trim().ToUpper() == "PERSON") - // // { - // // foreach (var item in req.persons) - // // { - // // var isReport = hisprofile.Where(x => x.PersonId == item.personId).FirstOrDefault(); - // // data.DisciplineDisciplinary_ProfileComplaintInvestigates.Add( - // // new DisciplineDisciplinary_ProfileComplaintInvestigate - // // { - // // CitizenId = item.idcard, - // // Prefix = item.prefix, - // // FirstName = item.firstName, - // // LastName = item.lastName, - // // Organization = item.organization, - // // Position = item.position, - // // PositionLevel = item.positionLevel, - // // Salary = item.salary, - // // PersonId = item.personId, - // // PosNo = item.posNo, - // // Status = "NEW", - // // IsReport = isReport == null ? false : isReport.IsReport, - // // CreatedFullName = FullName ?? "System Administrator", - // // CreatedUserId = UserId ?? "", - // // CreatedAt = DateTime.Now, - // // LastUpdateFullName = FullName ?? "System Administrator", - // // LastUpdateUserId = UserId ?? "", - // // LastUpdatedAt = DateTime.Now, - // // } - // // ); - // // } - // // } - // await _context.SaveChangesAsync(); - // return Success(data.Id); - // } - - // /// - // /// get āļĢāļēāļĒāļāļēāļĢāļ§āļīāļ™āļąāļĒāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™ - // /// - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpGet("investigate/{id:guid}")] - // public async Task> GetByDisciplineDisciplinaryInvestigate(Guid id) - // { - // var _data = await _context.DisciplineDisciplinarys - // .Select(x => new - // { - // Id = x.Id,//id āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ­āļšāļŠāļ§āļ™ - // IdInvestigate = x.DisciplineInvestigate.Id,//id āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™ - // IdComplaint = x.DisciplineInvestigate.DisciplineComplaint.Id,//id āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ - // InvestigationDetail = x.InvestigationDetail, - // InvestigationDetailOther = x.InvestigationDetailOther, - // InvestigationDateStart = x.InvestigationDateStart, - // InvestigationDateEnd = x.InvestigationDateEnd, - // InvestigationDescription = x.InvestigationDescription, - // InvestigationStatusResult = x.InvestigationStatusResult, - // InvestigationCauseText = x.InvestigationCauseText, - // InvestigationExtendStatus = x.InvestigationExtendStatus, - // InvestigationDaysExtend = x.InvestigationDaysExtend, - // Status = x.Status,//āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™ - // Result = x.Result,//āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš - // Director = x.DisciplineDisciplinary_DirectorInvestigates.Select(d => new - // { - // DirectorId = d.Id, - // Id = d.DisciplineDirector.Id, - // Prefix = d.DisciplineDirector.Prefix, - // FirstName = d.DisciplineDirector.FirstName, - // LastName = d.DisciplineDirector.LastName, - // Position = d.DisciplineDirector.Position, - // Email = d.DisciplineDirector.Email, - // Duty = "", - // Phone = d.DisciplineDirector.Phone, - // // Total = d.DisciplineDirector.DisciplineDisciplinary_DirectorInvestigates.Count(), - // }).ToList(), - // DisciplineDisciplinaryDocInvestigates = x.DisciplineDisciplinary_DocInvestigates.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), - // DisciplineDisciplinaryDocInvestigateRelevants = x.DisciplineDisciplinary_DocInvestigateRelevants.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), - // }) - // .Where(x => x.Id == id) - // .FirstOrDefaultAsync(); - // if (_data == null) - // return Error(new Exception(GlobalMessages.DataNotFound), (int)StatusCodes.Status404NotFound); - - // var disciplineDisciplinaryDocInvestigates = new List(); - // foreach (var doc in _data.DisciplineDisciplinaryDocInvestigates) - // { - // var _doc = new - // { - // doc.Id, - // doc.FileName, - // PathName = await _documentService.ImagesPath(doc.Id) - // }; - // disciplineDisciplinaryDocInvestigates.Add(_doc); - // } - - // var disciplineDisciplinaryDocInvestigateRelevants = new List(); - // foreach (var doc in _data.DisciplineDisciplinaryDocInvestigateRelevants) - // { - // var _doc = new - // { - // doc.Id, - // doc.FileName, - // PathName = await _documentService.ImagesPath(doc.Id) - // }; - // disciplineDisciplinaryDocInvestigateRelevants.Add(_doc); - // } - // var data = new - // { - // _data.Id, - // _data.IdInvestigate, - // _data.IdComplaint, - // _data.InvestigationDetail, - // _data.InvestigationDetailOther, - // _data.InvestigationDateStart, - // _data.InvestigationDateEnd, - // _data.InvestigationDescription, - // _data.InvestigationStatusResult, - // _data.InvestigationCauseText, - // _data.InvestigationExtendStatus, - // _data.InvestigationDaysExtend, - // _data.Status, - // _data.Result, - // _data.Director, - // disciplineDisciplinaryDocInvestigates, - // disciplineDisciplinaryDocInvestigateRelevants, - // }; - // return Success(data); - // } - - // /// - // /// āđāļāđ‰āđ„āļ‚āļĢāļēāļĒāļāļēāļĢāļ§āļīāļ™āļąāļĒāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™ - // /// - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpPut("investigate/{id:guid}")] - // public async Task> UpdateDisciplineDisciplinaryInvestigate([FromBody] DisciplineDisciplinaryInvestigateRequest req, Guid id) - // { - // var data = await _context.DisciplineDisciplinarys - // .Include(x => x.DisciplineDisciplinary_DirectorInvestigates) - // .ThenInclude(x => x.DisciplineDirector) - // .Where(x => x.Id == id) - // .FirstOrDefaultAsync(); - // if (data == null) - // return Error(new Exception(GlobalMessages.DataNotFound), (int)StatusCodes.Status404NotFound); - // if (data.Status.Trim().ToUpper() != "NEW") - // return Error(new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļ™āļĩāđ‰āđ„āļ”āđ‰"), (int)StatusCodes.Status500InternalServerError); - - // data.InvestigationDetail = req.investigationDetail.Trim().ToUpper(); - // data.InvestigationDetailOther = req.investigationDetailOther; - // data.InvestigationDateStart = req.investigationDateStart; - // data.InvestigationDateEnd = req.investigationDateEnd; - // data.InvestigationDescription = req.investigationDescription; - // data.InvestigationStatusResult = req.investigationStatusResult.Trim().ToUpper(); - // data.InvestigationCauseText = req.investigationCauseText.Trim().ToUpper(); - // data.InvestigationExtendStatus = req.investigationExtendStatus; - // data.InvestigationDaysExtend = req.investigationDaysExtend; - // data.Result = req.result; - // data.LastUpdateFullName = FullName ?? "System Administrator"; - // data.LastUpdateUserId = UserId ?? ""; - // data.LastUpdatedAt = DateTime.Now; - // _context.DisciplineDisciplinary_DirectorInvestigates.RemoveRange(data.DisciplineDisciplinary_DirectorInvestigates); - // foreach (var item in req.directors) - // { - // var director = await _context.DisciplineDirectors.AsQueryable() - // .FirstOrDefaultAsync(x => x.Id == item); - // if (director != null) - // { - // data.DisciplineDisciplinary_DirectorInvestigates.Add( - // new DisciplineDisciplinary_DirectorInvestigate - // { - // DisciplineDirector = director, - // CreatedFullName = FullName ?? "System Administrator", - // CreatedUserId = UserId ?? "", - // CreatedAt = DateTime.Now, - // LastUpdateFullName = FullName ?? "System Administrator", - // LastUpdateUserId = UserId ?? "", - // LastUpdatedAt = DateTime.Now, - // } - // ); - // } - // } - // await _context.SaveChangesAsync(); - // return Success(data.Id); - // } - /// /// get āļĢāļēāļĒāļāļēāļĢāļ§āļīāļ™āļąāļĒāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ­āļšāļŠāļ§āļ™ /// diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs index 1ee349b0..c25438d2 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs @@ -14,6 +14,7 @@ using System.Security.Claims; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Microsoft.AspNetCore.Mvc.RazorPages; +using System.Net.Http.Headers; namespace BMA.EHR.DisciplineInvestigate.Service.Controllers { @@ -28,25 +29,31 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers private readonly DisciplineDbContext _context; private readonly MinIODisciplineService _documentService; private readonly IHttpContextAccessor _httpContextAccessor; + private readonly NotificationRepository _repositoryNoti; private readonly PermissionRepository _permission; + private readonly IConfiguration _configuration; public DisciplineInvestigateController(DisciplineDbContext context, MinIODisciplineService documentService, + NotificationRepository repositoryNoti, IHttpContextAccessor httpContextAccessor, + IConfiguration configuration, PermissionRepository permission) { // _repository = repository; _context = context; _documentService = documentService; _httpContextAccessor = httpContextAccessor; + _repositoryNoti = repositoryNoti; _permission = permission; + _configuration = configuration; } #region " Properties " private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; - private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; + private string? token => _httpContextAccessor.HttpContext.Request.Headers["Authorization"]; #endregion @@ -786,20 +793,33 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers LastUpdatedAt = DateTime.Now, }); } - // foreach (var item in data.DisciplineInvestigate_Directors) - // { - // disciplineDisciplinary.DisciplineDisciplinary_DirectorInvestigates.Add( - // new DisciplineDisciplinary_DirectorInvestigate - // { - // DisciplineDirector = item.DisciplineDirector, - // CreatedFullName = FullName ?? "System Administrator", - // CreatedUserId = UserId ?? "", - // CreatedAt = DateTime.Now, - // LastUpdateFullName = FullName ?? "System Administrator", - // LastUpdateUserId = UserId ?? "", - // LastUpdatedAt = DateTime.Now, - // }); - // } + var baseAPIOrg = _configuration["API"]; + var apiUrlOrg = $"{baseAPIOrg}/org/workflow/find/director"; + var refId = new List(); + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.PostAsJsonAsync(apiUrlOrg, new + { + refId = persons.Select(x => x.PersonId), + }); + var _result = await _res.Content.ReadAsStringAsync(); + var org = JsonConvert.DeserializeObject(_result); + if (_res.IsSuccessStatusCode) + { + refId = org.result.Select(x => Guid.Parse(x.id)).ToList(); + } + } + await _repositoryNoti.PushNotificationsAsync( + refId.ToArray(), + $"āļĄāļĩāļ„āļģāļ‚āļ­āļŠāļ­āļšāļŠāļ§āļ™āđ€āļĢāļ·āđˆāļ­āļ‡ {data.Title}", + $"āļĄāļĩāļ„āļģāļ‚āļ­āļŠāļ­āļšāļŠāļ§āļ™āđ€āļĢāļ·āđˆāļ­āļ‡ {data.Title}", + "", + "", + true, + true + ); data.DisciplineDisciplinarys.Add(disciplineDisciplinary); await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Discipline.Service/Requests/DirectorRequest.cs b/BMA.EHR.Discipline.Service/Requests/DirectorRequest.cs new file mode 100644 index 00000000..32cb6e6d --- /dev/null +++ b/BMA.EHR.Discipline.Service/Requests/DirectorRequest.cs @@ -0,0 +1,13 @@ +using Microsoft.EntityFrameworkCore; + +namespace BMA.EHR.Discipline.Service.Requests +{ + public class DirectorRequest + { + public DirectorRequestData[] result { get; set; } + } + public class DirectorRequestData + { + public string id { get; set; } + } +} diff --git a/BMA.EHR.Discipline.Service/appsettings.json b/BMA.EHR.Discipline.Service/appsettings.json index 6a234433..9ef6f9a2 100644 --- a/BMA.EHR.Discipline.Service/appsettings.json +++ b/BMA.EHR.Discipline.Service/appsettings.json @@ -34,6 +34,13 @@ "SecretKey": "rVPzB05giC7bA400cUuIThzT4T9SGCcpcmL3tBBg", "BucketName": "bma-ehr-fpt" }, + "Mail": { + "Server": "smtp.gmail.com", + "User": "suphonchai.ph@gmail.com", + "Password": "nnjazjcnwhepkxdm", + "MailFrom": "suphonchai.ph@gmail.com", + "Port": "587" + }, "KeycloakCron": { "Hour": "08", "Minute": "00" diff --git a/BMA.EHR.Infrastructure/MessageQueue/RabbitMQConsumer.cs b/BMA.EHR.Infrastructure/MessageQueue/RabbitMQConsumer.cs index 3e239aa6..97a3670b 100644 --- a/BMA.EHR.Infrastructure/MessageQueue/RabbitMQConsumer.cs +++ b/BMA.EHR.Infrastructure/MessageQueue/RabbitMQConsumer.cs @@ -98,8 +98,6 @@ namespace BMA.EHR.Infrastructure.MessageQueue if (organization == null) continue; - //if(organization.Id != Guid.Parse("e8493cd1-d371-402e-add6-566e68d5d1b3")) continue; - var result = await insigniaRepo.GetInsigniaRequest(periodId, organization.Id); if (result != null) { @@ -110,7 +108,7 @@ namespace BMA.EHR.Infrastructure.MessageQueue if (requestStatus == null) { // āļšāļąāļ™āļ—āļķāļāļĢāļēāļĒāļŠāļ·āđˆāļ­ - await insigniaRepo.InsertCandidate(period, organization.Id,organization.OrgRootName, candidate); + await insigniaRepo.InsertCandidate(period, organization.Id, organization.OrgRootName, candidate); } } } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index f420effd..9eb2f0fc 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -583,13 +583,6 @@ namespace BMA.EHR.Placement.Service.Controllers posTypeName = placementTransfer.posTypeNameOld, }); } - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dbc953-6268-4e2c-80a3-aca65eedc6d0"), - // $"{profile.Prefix?.Name}{profile.FirstName} {profile.LastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļĒāļ·āđˆāļ™āļ„āļģāļ‚āļ­āđ‚āļ­āļ™", - // $"{profile.Prefix?.Name}{profile.FirstName} {profile.LastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļĒāļ·āđˆāļ™āļ„āļģāļ‚āļ­āđ‚āļ­āļ™āđ„āļ›āļĒāļąāļ‡ {req.Organization}", - // "", - // true - // ); await _context.SaveChangesAsync(); return Success(placementTransfer.Id); @@ -661,20 +654,6 @@ namespace BMA.EHR.Placement.Service.Controllers uppdated.LastUpdateFullName = FullName ?? "System Administrator"; uppdated.LastUpdateUserId = UserId ?? ""; uppdated.LastUpdatedAt = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dbc953-6268-4e2c-80a3-aca65eedc6d0"), - // $"{uppdated.Profile.Prefix?.Name}{uppdated.Profile.FirstName} {uppdated.Profile.LastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļĒāļ·āđˆāļ™āļ„āļģāļ‚āļ­āđ‚āļ­āļ™āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", - // $"{uppdated.Profile.Prefix?.Name}{uppdated.Profile.FirstName} {uppdated.Profile.LastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļĒāļ·āđˆāļ™āļ„āļģāļ‚āļ­āđ‚āļ­āļ™āđ„āļ›āļĒāļąāļ‡ {uppdated.Organization}āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", - // "", - // true - // ); - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6"), - // $"{uppdated.Profile.Prefix?.Name}{uppdated.Profile.FirstName} {uppdated.Profile.LastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļĒāļ·āđˆāļ™āļ„āļģāļ‚āļ­āđ‚āļ­āļ™", - // $"{uppdated.Profile.Prefix?.Name}{uppdated.Profile.FirstName} {uppdated.Profile.LastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļĒāļ·āđˆāļ™āļ„āļģāļ‚āļ­āđ‚āļ­āļ™āđ„āļ›āļĒāļąāļ‡ {uppdated.Organization}āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", - // "", - // true - // ); await _context.SaveChangesAsync(); return Success(); diff --git a/BMA.EHR.Report.Service/Controllers/CandidateReportController.cs b/BMA.EHR.Report.Service/Controllers/CandidateReportController.cs index 8d0444fb..15e957a8 100644 --- a/BMA.EHR.Report.Service/Controllers/CandidateReportController.cs +++ b/BMA.EHR.Report.Service/Controllers/CandidateReportController.cs @@ -52,47 +52,7 @@ namespace BMA.EHR.Report.Service.Controllers var avatar = await _service.GetExamAvatarCandidateAsync(Id); if (candidate != null) { - //var mimeType = ""; - //switch (exportType.Trim().ToLower()) - //{ - // case "pdf": mimeType = "application/pdf"; break; - // case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - // case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - //} - - //var rptFile = System.IO.Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"āļœāļĨāļŠāļ­āļšāļ„āļąāļ”āđ€āļĨāļ·āļ­āļāļĢāļēāļĒāļšāļļāļ„āļ„āļĨ.trdp"); - //ReportPackager reportPacker = new ReportPackager(); - //Telerik.Reporting.Report? report = null; - //using (var sourceStream = System.IO.File.OpenRead(rptFile)) - //{ - // report = (Telerik.Reporting.Report)reportPacker.UnpackageDocument(sourceStream); - //} - //report.DataSource = candidate; - - //var tblData = (Telerik.Reporting.Table)report.Items["detailSection1"].Items["tblData"]; - //tblData.DataSource = careers; - - //Console.WriteLine("000000"); - //if (avatar != Guid.Parse("00000000-0000-0000-0000-000000000000")) - //{ - // try - // { - // // Get avatar Image var picContent = avatar == null ? null : await _minIOExamService.ImagesPath(avatar); - //var pictureBox = (Telerik.Reporting.PictureBox)report.Items["detailSection1"].Items["picAvatar"]; - //pictureBox.Value = Image.FromStream(new MemoryStream(picContent.FileContent)); - // } - // catch { } - //} - - //System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable(); - //InstanceReportSource instanceReportSource = new InstanceReportSource() - //{ - // ReportDocument = report, - //}; - //ReportProcessor reportProcessor = new ReportProcessor(_configuration); - //RenderingResult result = reportProcessor.RenderReport($"{exportType}", instanceReportSource, deviceInfo); - //return File(result.DocumentBytes, mimeType, $"āđƒāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļ„āļąāļ”āđ€āļĨāļ·āļ­āļ.{exportType.Trim().ToLower()}"); var mapData = new { Id = candidate.GetType().GetProperty("Id").GetValue(candidate), @@ -145,7 +105,8 @@ namespace BMA.EHR.Report.Service.Controllers Careers = careers, }; - var data = new { + var data = new + { template = "āļœāļĨāļŠāļ­āļšāļ„āļąāļ”āđ€āļĨāļ·āļ­āļāļĢāļēāļĒāļšāļļāļ„āļ„āļĨ", reportName = "docx-report", data = mapData diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index a61a90b6..62d99aae 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -167,7 +167,6 @@ namespace BMA.EHR.Retirement.Service.Controllers PathName = p.Document == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Document.Id, p.IsActive, p.CreatedAt, - // Avatar = p.Profile.Avatar == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Profile.Avatar.Id, }) .FirstOrDefaultAsync(); if (data == null) @@ -201,7 +200,6 @@ namespace BMA.EHR.Retirement.Service.Controllers PathName = data.PathName == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.PathName), data.IsActive, data.CreatedAt, - // Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar), }; return Success(_data); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index c0495421..78b362e9 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -235,66 +235,12 @@ namespace BMA.EHR.Retirement.Service.Controllers p.PositionOld, p.OrganizationOld, p.PositionDate, - // Avatar = p.Profile.Avatar == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Profile.Avatar.Id, - // RetirementOtherDocs = p.RetirementOtherDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), CommandType = p.CommandType == null ? null : p.CommandType.Name, }) .FirstOrDefaultAsync(); if (data == null) return Error(GlobalMessages.DataNotFound, 404); - // var retirementOtherDocs = new List(); - // foreach (var doc in data.RetirementOtherDocs) - // { - // var _doc = new - // { - // doc.FileName, - // PathName = await _documentService.ImagesPath(doc.Id) - // }; - // retirementOtherDocs.Add(_doc); - // } - // var _data = new - // { - // data.Id, - // data.ProfileId, - // data.CitizenId, - // data.Prefix, - // data.PrefixId, - // data.Firstname, - // data.Lastname, - // data.DateOfBirth, - // data.Gender, - // data.Nationality, - // data.Race, - // data.Religion, - // data.BloodGroup, - // data.Relationship, - // data.TelephoneNumber, - // data.Status, - // data.Amount, - // data.RecruitDate, - // data.PosNo, - // data.Position, - // data.PositionPathSide, - // data.PositionType, - // data.PositionLine, - // data.PositionLevel, - // data.OrganizationPositionId, - // data.CreatedAt, - // data.Reason, - // data.MilitaryDate, - // data.EducationOld, - // data.AmountOld, - // data.PositionTypeOld, - // data.PositionLevelOld, - // data.PositionNumberOld, - // data.OrganizationPositionOld, - // data.PositionDate, - // // Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar), - // // Docs = retirementOtherDocs, - // data.CommandType, - // }; - return Success(data); } @@ -317,32 +263,6 @@ namespace BMA.EHR.Retirement.Service.Controllers } var retirementOther = new RetirementOther { - // Profile = profile, - // CitizenId = profile.CitizenId, - // Prefix = profile.Prefix, - // Firstname = profile.FirstName, - // Lastname = profile.LastName, - // DateOfBirth = profile.BirthDate, - // Gender = profile.Gender, - // Nationality = profile.Nationality, - // Race = profile.Race, - // Religion = await _context.Religions.FindAsync(profile.ReligionId), - // BloodGroup = await _context.BloodGroups.FindAsync(profile.BloodGroupId), - // Relationship = await _context.Relationships.FindAsync(profile.RelationshipId), - // TelephoneNumber = profile.TelephoneNumber, - // EducationOld = profile.Educations.Count() == 0 ? null : $"{profile.Educations.OrderByDescending(x => x.FinishDate).FirstOrDefault().Degree}-{profile.Educations.OrderByDescending(x => x.FinishDate).FirstOrDefault().Field}", - // AmountOld = profile.Salaries.Count() == 0 ? null : profile.Salaries.OrderByDescending(x => x.Order).FirstOrDefault().Amount, - // PositionLevelOld = profile.PositionLevel == null ? null : profile.PositionLevel.Name, - // PositionTypeOld = profile.PositionType == null ? null : profile.PositionType.Name, - // PositionNumberOld = profile.PosNo == null ? null : profile.PosNo.Name, - // OrganizationPositionOld = profile.Position == null ? profile.Oc : $"{profile.Position.Name}-{profile.Oc}", - // PositionNumber = profile.PosNo, - // PositionPath = profile.Position, - // PositionPathSide = await _context.PositionPathSides.FindAsync(profile.PositionPathSideId), - // PositionType = profile.PositionType, - // PositionLine = await _context.PositionLines.FindAsync(profile.PositionLineId), - // PositionLevel = profile.PositionLevel, - // OrganizationPositionId = p.OrganizationPosition == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.OrganizationPosition.Id, Status = "WAITTING", CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index 58577de3..b77658b0 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -217,35 +217,10 @@ namespace BMA.EHR.Retirement.Service.Controllers p.OrganizationPositionOld, p.PositionOld, p.OrganizationOld, - // Avatar = p.Profile.Avatar == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Profile.Avatar.Id, }) .FirstOrDefaultAsync(); if (data == null) return Error(GlobalMessages.DataNotFound, 404); - // var _data = new - // { - // data.Id, - // data.PrefixId, - // data.Prefix, - // data.FirstName, - // data.LastName, - // data.ProfileId, - // data.position, - // data.posNo, - // data.positionLevel, - // data.organizationOrganization, - // data.Reason, - // data.Status, - // data.Organization, - // data.Date, - // data.salary, - // data.CreatedAt, - // data.PositionTypeOld, - // data.PositionLevelOld, - // data.PositionNumberOld, - // data.OrganizationPositionOld, - // Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar), - // }; return Success(data); } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 93b395b2..403f3869 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -424,9 +424,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsDiscipline, p.CancelReason, RetirementResignCancels = p.RetirementResignCancels.FirstOrDefault(), - // Avatar = p.Profile.Avatar == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Profile.Avatar.Id, RetirementResignDocs = p.RetirementResignDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), - // RetirementResignDebtDocs = p.RetirementResignDebtDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), }) .FirstOrDefaultAsync(); if (data == null) @@ -443,23 +441,11 @@ namespace BMA.EHR.Retirement.Service.Controllers }; retirementResignDocs.Add(_doc); } - // var retirementResignDebtDocs = new List(); - // foreach (var doc in data.RetirementResignDebtDocs) - // { - // var _doc = new - // { - // FileName = doc.FileName, - // PathName = await _documentService.ImagesPath(doc.Id), - // doc.Id, - // }; - // retirementResignDebtDocs.Add(_doc); - // } var _data = new { data.Id, data.profileId, data.prefix, - // data.PrefixId, data.firstName, data.lastName, data.Location, @@ -519,9 +505,7 @@ namespace BMA.EHR.Retirement.Service.Controllers idCancel = data.RetirementResignCancels?.Id ?? null, statusCancel = data.RetirementResignCancels?.Status ?? null, statusMain = data.Status == "CANCEL" ? "DONECANCEL" : data.Status, - // Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar), Docs = retirementResignDocs, - // DocDebts = retirementResignDebtDocs, }; return Success(_data); @@ -687,9 +671,7 @@ namespace BMA.EHR.Retirement.Service.Controllers data.idMain, data.statusMain, statusCancel = data.Status, - // Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar), Docs = retirementResignDocs, - // DocDebts = retirementResignDebtDocs, }; return Success(_data); } @@ -864,9 +846,7 @@ namespace BMA.EHR.Retirement.Service.Controllers data.CancelReason, data.idMain, data.statusMain, - // Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar), Docs = retirementResignDocs, - // DocDebts = retirementResignDebtDocs, }; return Success(_data); } @@ -997,14 +977,6 @@ namespace BMA.EHR.Retirement.Service.Controllers } } } - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc3db9-257d-470d-8256-3dc24f6fa332"), - // $"{retirementResign.prefix}{retirementResign.firstName} {retirementResign.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļ", - // $"{retirementResign.prefix}{retirementResign.firstName} {retirementResign.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļ", - // "", - // "", - // true - // ); await _context.SaveChangesAsync(); using (var client = new HttpClient()) { @@ -1380,25 +1352,6 @@ namespace BMA.EHR.Retirement.Service.Controllers updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc432c-2bc5-4b81-8089-9c057c51192c"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // "", - // "", - // true - // ); - // if (updated.profileId != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse(updated.profileId), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // "", - // "", - // true - // ); - // } await _context.SaveChangesAsync(); return Success(); @@ -1429,25 +1382,6 @@ namespace BMA.EHR.Retirement.Service.Controllers updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc432c-2bc5-4b81-8089-9c057c51192c"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // "", - // "", - // true - // ); - // if (updated.profileId != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse(updated.profileId), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // "", - // "", - // true - // ); - // } await _context.SaveChangesAsync(); return Success(); @@ -1476,25 +1410,6 @@ namespace BMA.EHR.Retirement.Service.Controllers updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc4307-0adc-4bcd-8213-5479bb010236"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // "", - // "", - // true - // ); - // if (updated.profileId != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse(updated.profileId), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // "", - // "", - // true - // ); - // } await _context.SaveChangesAsync(); return Success(); @@ -1525,25 +1440,6 @@ namespace BMA.EHR.Retirement.Service.Controllers updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc4307-0adc-4bcd-8213-5479bb010236"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // "", - // "", - // true - // ); - // if (updated.profileId != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse(updated.profileId), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // "", - // "", - // true - // ); - // } await _context.SaveChangesAsync(); return Success(); @@ -1571,25 +1467,6 @@ namespace BMA.EHR.Retirement.Service.Controllers updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc3db9-257d-470d-8256-3dc24f6fa332"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // "", - // "", - // true - // ); - // if (updated.profileId != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse(updated.profileId), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // "", - // "", - // true - // ); - // } await _context.SaveChangesAsync(); return Success(); @@ -1620,25 +1497,6 @@ namespace BMA.EHR.Retirement.Service.Controllers updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc3db9-257d-470d-8256-3dc24f6fa332"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // "", - // "", - // true - // ); - // if (updated.profileId != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse(updated.profileId), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // "", - // "", - // true - // ); - // } await _context.SaveChangesAsync(); return Success(); @@ -1803,7 +1661,6 @@ namespace BMA.EHR.Retirement.Service.Controllers PositionLevel = p.RetirementResign.posLevelNameOld, Org = p.RetirementResign.OrganizationOld, Fullname = $"{p.RetirementResign.prefix}{p.RetirementResign.firstName} {p.RetirementResign.lastName}", - // Avatar = p.RetirementResign.Profile.Avatar == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.RetirementResign.Profile.Avatar.Id, ReasonWork = p.ReasonWork == null ? p.ReasonWork : Newtonsoft.Json.JsonConvert.DeserializeObject(p.ReasonWork), ReasonWorkOther = p.ReasonWorkOther, TimeThink = p.TimeThink, @@ -1853,49 +1710,6 @@ namespace BMA.EHR.Retirement.Service.Controllers .FirstOrDefaultAsync(); if (data == null) return Error(GlobalMessages.RetirementQuestionNotFound, 404); - // var _data = new - // { - // data.Id, - // // data.PrefixId, - // data.Position, - // data.PositionLevel, - // data.Org, - // data.Fullname, - // data.Prefix, - // // Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar), - // data.ReasonWork, - // data.ReasonWorkOther, - // data.TimeThink, - // data.ExitFactor, - // data.ExitFactorOther, - // data.Adjust, - // data.AdjustOther, - // data.RealReason, - // data.NotExitFactor, - // data.Havejob, - // data.HavejobReason, - // data.SuggestFriends, - // data.SuggestFriendsReason, - // data.FutureWork, - // data.FutureWorkReason, - // data.Suggestion, - // data.AppointDate, - // data.OrganizationPositionOld, - // data.LastUpdatedAt, - // data.CreatedAt, - // data.Score1, - // data.Score2, - // data.Score3, - // data.Score4, - // data.Score5, - // data.Score6, - // data.Score7, - // data.Score8, - // data.Score9, - // data.Score10, - // data.ScoreTotal, - // data.Comment, - // }; return Success(data); } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 8759b5d6..198c36f8 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -362,9 +362,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsDiscipline, p.CancelReason, RetirementResignEmployeeCancels = p.RetirementResignEmployeeCancels.FirstOrDefault(), - // Avatar = p.Profile.Avatar == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Profile.Avatar.Id, RetirementResignEmployeeDocs = p.RetirementResignEmployeeDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), - // RetirementResignEmployeeDebtDocs = p.RetirementResignEmployeeDebtDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), }) .FirstOrDefaultAsync(); if (data == null) @@ -381,23 +379,11 @@ namespace BMA.EHR.Retirement.Service.Controllers }; retirementResignEmployeeDocs.Add(_doc); } - // var retirementResignEmployeeDebtDocs = new List(); - // foreach (var doc in data.RetirementResignEmployeeDebtDocs) - // { - // var _doc = new - // { - // FileName = doc.FileName, - // PathName = await _documentService.ImagesPath(doc.Id), - // doc.Id, - // }; - // retirementResignEmployeeDebtDocs.Add(_doc); - // } var _data = new { data.Id, data.profileId, data.prefix, - // data.PrefixId, data.firstName, data.lastName, data.Location, @@ -457,9 +443,7 @@ namespace BMA.EHR.Retirement.Service.Controllers idCancel = data.RetirementResignEmployeeCancels?.Id ?? Guid.Empty, statusCancel = data.RetirementResignEmployeeCancels?.Status ?? null, statusMain = data.Status, - // Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar), Docs = retirementResignEmployeeDocs, - // DocDebts = retirementResignEmployeeDebtDocs, }; return Success(_data); @@ -566,7 +550,6 @@ namespace BMA.EHR.Retirement.Service.Controllers data.Id, data.profileId, data.prefix, - // data.PrefixId, data.firstName, data.lastName, data.Location, @@ -625,9 +608,7 @@ namespace BMA.EHR.Retirement.Service.Controllers data.idMain, data.statusMain, statusCancel = data.Status, - // Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar), Docs = retirementResignEmployeeDocs, - // DocDebts = retirementResignEmployeeDebtDocs, }; return Success(_data); } @@ -802,9 +783,7 @@ namespace BMA.EHR.Retirement.Service.Controllers data.CancelReason, data.idMain, data.statusMain, - // Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar), Docs = retirementResignEmployeeDocs, - // DocDebts = retirementResignEmployeeDebtDocs, }; return Success(_data); } @@ -934,14 +913,6 @@ namespace BMA.EHR.Retirement.Service.Controllers } } } - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc3db9-257d-470d-8256-3dc24f6fa332"), - // $"{retirementResignEmployee.prefix}{retirementResignEmployee.firstName} {retirementResignEmployee.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļ", - // $"{retirementResignEmployee.prefix}{retirementResignEmployee.firstName} {retirementResignEmployee.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļ", - // "", - // "", - // true - // ); await _context.SaveChangesAsync(); using (var client = new HttpClient()) { @@ -1047,33 +1018,6 @@ namespace BMA.EHR.Retirement.Service.Controllers updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; - - // if (Request.Form.Files != null && Request.Form.Files.Count != 0) - // { - // foreach (var file in Request.Form.Files) - // { - // var fileExtension = Path.GetExtension(file.FileName); - - // var doc = await _documentService.UploadFileAsync(file, file.FileName); - // var _doc = await _context.Documents.AsQueryable() - // .FirstOrDefaultAsync(x => x.Id == doc.Id); - // if (_doc != null) - // { - // var retirementResignEmployeeDebtDoc = new RetirementResignEmployeeDebtDoc - // { - // RetirementResignEmployee = updated, - // Document = _doc, - // CreatedFullName = FullName ?? "System Administrator", - // CreatedUserId = UserId ?? "", - // CreatedAt = DateTime.Now, - // LastUpdateFullName = FullName ?? "System Administrator", - // LastUpdateUserId = UserId ?? "", - // LastUpdatedAt = DateTime.Now, - // }; - // await _context.RetirementResignEmployeeDebtDocs.AddAsync(retirementResignEmployeeDebtDoc); - // } - // } - // } await _context.SaveChangesAsync(); return Success(); } @@ -1208,43 +1152,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } updated.IsCancel = true; } - // else - // { updated.Status = "CANCEL"; - // } - // if (updated.OfficerReject != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc3db9-257d-470d-8256-3dc24f6fa332"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ", - // "", - // "", - // true - // ); - // } - // if (updated.CommanderReject != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc432c-2bc5-4b81-8089-9c057c51192c"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ", - // "", - // "", - // true - // ); - // } - // if (updated.OligarchReject != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc4307-0adc-4bcd-8213-5479bb010236"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ", - // "", - // "", - // true - // ); - // } updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; @@ -1353,25 +1261,6 @@ namespace BMA.EHR.Retirement.Service.Controllers updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc432c-2bc5-4b81-8089-9c057c51192c"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // "", - // "", - // true - // ); - // if (updated.profileId != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse(updated.profileId), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // "", - // "", - // true - // ); - // } await _context.SaveChangesAsync(); return Success(); @@ -1395,32 +1284,12 @@ namespace BMA.EHR.Retirement.Service.Controllers return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404); if ((DateTime.Now - updated.CreatedAt).TotalDays >= 90) return Error("āļŠāļēāļĄāļēāļĢāļ–āļĒāļąāļšāļĒāļąāđ‰āļ‡āđ„āļ”āđ‰āđ„āļĄāđˆāđ€āļāļīāļ™ 90 āļ§āļąāļ™"); - // updated.Status = "REJECT"; updated.OfficerReject = true; updated.OfficerRejectReason = req.Reason; updated.OfficerRejectDate = req.Date; updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc432c-2bc5-4b81-8089-9c057c51192c"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // "", - // "", - // true - // ); - // if (updated.profileId != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse(updated.profileId), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ", - // "", - // "", - // true - // ); - // } await _context.SaveChangesAsync(); return Success(); @@ -1443,31 +1312,11 @@ namespace BMA.EHR.Retirement.Service.Controllers if (updated == null) return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404); - // updated.Status = "APPROVE"; updated.CommanderReject = false; updated.CommanderApproveReason = req.Reason; updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc4307-0adc-4bcd-8213-5479bb010236"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // "", - // "", - // true - // ); - // if (updated.profileId != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse(updated.profileId), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // "", - // "", - // true - // ); - // } await _context.SaveChangesAsync(); return Success(); @@ -1491,32 +1340,12 @@ namespace BMA.EHR.Retirement.Service.Controllers return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404); if ((DateTime.Now - updated.CreatedAt).TotalDays >= 90) return Error("āļŠāļēāļĄāļēāļĢāļ–āļĒāļąāļšāļĒāļąāđ‰āļ‡āđ„āļ”āđ‰āđ„āļĄāđˆāđ€āļāļīāļ™ 90 āļ§āļąāļ™"); - // updated.Status = "REJECT"; updated.CommanderReject = true; updated.CommanderRejectReason = req.Reason; updated.CommanderRejectDate = req.Date; updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc4307-0adc-4bcd-8213-5479bb010236"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // "", - // "", - // true - // ); - // if (updated.profileId != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse(updated.profileId), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē", - // "", - // "", - // true - // ); - // } await _context.SaveChangesAsync(); return Success(); @@ -1544,25 +1373,6 @@ namespace BMA.EHR.Retirement.Service.Controllers updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc3db9-257d-470d-8256-3dc24f6fa332"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // "", - // "", - // true - // ); - // if (updated.profileId != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse(updated.profileId), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // "", - // "", - // true - // ); - // } await _context.SaveChangesAsync(); return Success(); @@ -1593,25 +1403,6 @@ namespace BMA.EHR.Retirement.Service.Controllers updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse("08dc3db9-257d-470d-8256-3dc24f6fa332"), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // "", - // "", - // true - // ); - // if (updated.profileId != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse(updated.profileId), - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // $"āļ„āļģāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡ {updated.prefix}{updated.firstName} {updated.lastName} āļ–āļđāļāļĒāļąāļšāļĒāļąāđ‰āļ‡āļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆ", - // "", - // "", - // true - // ); - // } await _context.SaveChangesAsync(); return Success(); @@ -1752,512 +1543,6 @@ namespace BMA.EHR.Retirement.Service.Controllers return Success(data); } - // /// - // /// get āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđāļšāļšāļŠāļ­āļšāļ–āļēāļĄāļŦāļĨāļąāļ‡āļĨāļēāļ­āļ­āļ - // /// - // /// Id āđāļšāļšāļŠāļ­āļšāļ–āļēāļĄāļŦāļĨāļąāļ‡āļĨāļēāļ­āļ­āļ - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpGet("questionnaire/{id:length(36)}")] - // public async Task> GetByIdQuestion(Guid id) - // { - // var data = await _context.RetirementQuestions.AsQueryable() - // .Where(x => x.Id == id) - // .Select(p => new - // { - // Id = p.Id, - // Prefix = p.RetirementResignEmployee.prefix, - // FirstName = p.RetirementResignEmployee.firstName, - // LastName = p.RetirementResignEmployee.lastName, - // Position = p.RetirementResignEmployee.PositionOld, - // PositionLevel = p.RetirementResignEmployee.posLevelNameOld, - // Org = p.RetirementResignEmployee.OrganizationOld, - // Fullname = $"{p.RetirementResignEmployee.prefix}{p.RetirementResignEmployee.firstName} {p.RetirementResignEmployee.lastName}", - // // Avatar = p.RetirementResignEmployee.Profile.Avatar == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.RetirementResignEmployee.Profile.Avatar.Id, - // ReasonWork = p.ReasonWork == null ? p.ReasonWork : Newtonsoft.Json.JsonConvert.DeserializeObject(p.ReasonWork), - // ReasonWorkOther = p.ReasonWorkOther, - // TimeThink = p.TimeThink, - // ExitFactor = p.ExitFactor == null ? p.ExitFactor : Newtonsoft.Json.JsonConvert.DeserializeObject(p.ExitFactor), - // ExitFactorOther = p.ExitFactorOther, - // Adjust = p.Adjust == null ? p.Adjust : Newtonsoft.Json.JsonConvert.DeserializeObject(p.Adjust), - // AdjustOther = p.AdjustOther, - // RealReason = p.RealReason, - // NotExitFactor = p.NotExitFactor, - // Havejob = p.Havejob, - // HavejobReason = p.HavejobReason, - // SuggestFriends = p.SuggestFriends, - // SuggestFriendsReason = p.SuggestFriendsReason, - // FutureWork = p.FutureWork, - // FutureWorkReason = p.FutureWorkReason, - // Suggestion = p.Suggestion, - // AppointDate = p.AppointDate, - // LastUpdatedAt = p.LastUpdatedAt, - // OrganizationPositionOld = p.RetirementResignEmployee.OrganizationPositionOld, - // CreatedAt = p.CreatedAt, - // posTypeName = p.RetirementResignEmployee.posTypeNameOld, - // posLevelName = p.RetirementResignEmployee.posLevelNameOld, - // posMasterNo = p.RetirementResignEmployee.posMasterNoOld, - // root = p.RetirementResignEmployee.rootOld, - // rootShortName = p.RetirementResignEmployee.rootShortNameOld, - // child1 = p.RetirementResignEmployee.child1Old, - // child1ShortName = p.RetirementResignEmployee.child1ShortNameOld, - // child2 = p.RetirementResignEmployee.child2Old, - // child2ShortName = p.RetirementResignEmployee.child2ShortNameOld, - // child3 = p.RetirementResignEmployee.child3Old, - // child3ShortName = p.RetirementResignEmployee.child3ShortNameOld, - // child4 = p.RetirementResignEmployee.child4Old, - // child4ShortName = p.RetirementResignEmployee.child4ShortNameOld, - // Score1 = p.Score1, - // Score2 = p.Score2, - // Score3 = p.Score3, - // Score4 = p.Score4, - // Score5 = p.Score5, - // Score6 = p.Score6, - // Score7 = p.Score7, - // Score8 = p.Score8, - // Score9 = p.Score9, - // Score10 = p.Score10, - // ScoreTotal = p.ScoreTotal, - // Comment = p.Comment, - // }) - // .FirstOrDefaultAsync(); - // if (data == null) - // return Error(GlobalMessages.RetirementQuestionNotFound, 404); - // // var _data = new - // // { - // // data.Id, - // // // data.PrefixId, - // // data.Position, - // // data.PositionLevel, - // // data.Org, - // // data.Fullname, - // // data.Prefix, - // // // Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar), - // // data.ReasonWork, - // // data.ReasonWorkOther, - // // data.TimeThink, - // // data.ExitFactor, - // // data.ExitFactorOther, - // // data.Adjust, - // // data.AdjustOther, - // // data.RealReason, - // // data.NotExitFactor, - // // data.Havejob, - // // data.HavejobReason, - // // data.SuggestFriends, - // // data.SuggestFriendsReason, - // // data.FutureWork, - // // data.FutureWorkReason, - // // data.Suggestion, - // // data.AppointDate, - // // data.OrganizationPositionOld, - // // data.LastUpdatedAt, - // // data.CreatedAt, - // // data.Score1, - // // data.Score2, - // // data.Score3, - // // data.Score4, - // // data.Score5, - // // data.Score6, - // // data.Score7, - // // data.Score8, - // // data.Score9, - // // data.Score10, - // // data.ScoreTotal, - // // data.Comment, - // // }; - - // return Success(data); - // } - - // /// - // /// āļŠāļĢāđ‰āļēāļ‡āđāļšāļšāļŠāļ­āļšāļ–āļēāļĄāļŦāļĨāļąāļ‡āļĨāļēāļ­āļ­āļ - // /// - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpPost("questionnaire")] - // public async Task> PostQuestion([FromBody] RetirementQuestionRequest req) - // { - // var retirementResignEmployee = await _context.RetirementResignEmployees.AsQueryable() - // .FirstOrDefaultAsync(x => x.Id == req.RetirementResignEmployeeId); - // if (retirementResignEmployee == null) - // return Error(GlobalMessages.RetirementResignEmployeeNotFound); - - // var period = new RetirementQuestion - // { - // RetirementResignEmployee = retirementResignEmployee, - // ReasonWork = Newtonsoft.Json.JsonConvert.SerializeObject(req.ReasonWork), - // ReasonWorkOther = req.ReasonWorkOther, - // TimeThink = req.TimeThink, - // ExitFactor = Newtonsoft.Json.JsonConvert.SerializeObject(req.ExitFactor), - // ExitFactorOther = req.ExitFactorOther, - // Adjust = Newtonsoft.Json.JsonConvert.SerializeObject(req.Adjust), - // AdjustOther = req.AdjustOther, - // RealReason = req.RealReason, - // NotExitFactor = req.NotExitFactor, - // Havejob = req.Havejob, - // HavejobReason = req.HavejobReason, - // SuggestFriends = req.SuggestFriends, - // SuggestFriendsReason = req.SuggestFriendsReason, - // FutureWork = req.FutureWork, - // FutureWorkReason = req.FutureWorkReason, - // Suggestion = req.Suggestion, - // CreatedFullName = FullName ?? "System Administrator", - // CreatedUserId = UserId ?? "", - // CreatedAt = DateTime.Now, - // LastUpdateFullName = FullName ?? "System Administrator", - // LastUpdateUserId = UserId ?? "", - // LastUpdatedAt = DateTime.Now, - // }; - // await _context.RetirementQuestions.AddAsync(period); - // await _context.SaveChangesAsync(); - - // return Success(); - // } - - // /// - // /// āļĨāļšāđāļšāļšāļŠāļ­āļšāļ–āļēāļĄāļŦāļĨāļąāļ‡āļĨāļēāļ­āļ­āļ - // /// - // /// Id āđāļšāļšāļŠāļ­āļšāļ–āļēāļĄāļŦāļĨāļąāļ‡āļĨāļēāļ­āļ­āļ - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpDelete("questionnaire/{id:length(36)}")] - // public async Task> DeleteQuestion(Guid id) - // { - // var deleted = await _context.RetirementQuestions.AsQueryable() - // .Where(x => x.Id == id) - // .FirstOrDefaultAsync(); - - // if (deleted == null) - // return Error(GlobalMessages.RetirementQuestionNotFound); - // _context.RetirementQuestions.Remove(deleted); - // await _context.SaveChangesAsync(); - - // return Success(); - // } - - // /// - // /// āđāļāđ‰āđ„āļ‚āđāļšāļšāļŠāļ­āļšāļ–āļēāļĄāļŦāļĨāļąāļ‡āļĨāļēāļ­āļ­āļ - // /// - // /// Id āđāļšāļšāļŠāļ­āļšāļ–āļēāļĄāļŦāļĨāļąāļ‡āļĨāļēāļ­āļ­āļ - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpPut("questionnaire/{id:length(36)}")] - // public async Task> PutQuestion([FromBody] RetirementQuestionRequest req, Guid id) - // { - // var uppdated = await _context.RetirementQuestions.AsQueryable() - // .FirstOrDefaultAsync(x => x.Id == id); - // if (uppdated == null) - // return Error(GlobalMessages.RetirementQuestionNotFound); - - // var retirementResignEmployee = await _context.RetirementResignEmployees.AsQueryable() - // .FirstOrDefaultAsync(x => x.Id == req.RetirementResignEmployeeId); - // if (retirementResignEmployee == null) - // return Error(GlobalMessages.InsigniaNotFound); - - // // uppdated.RetirementResignEmployee = retirementResignEmployee; - // uppdated.ReasonWork = Newtonsoft.Json.JsonConvert.SerializeObject(req.ReasonWork); - // uppdated.ReasonWorkOther = req.ReasonWorkOther; - // uppdated.TimeThink = req.TimeThink; - // uppdated.ExitFactor = Newtonsoft.Json.JsonConvert.SerializeObject(req.ExitFactor); - // uppdated.ExitFactorOther = req.ExitFactorOther; - // uppdated.Adjust = Newtonsoft.Json.JsonConvert.SerializeObject(req.Adjust); - // uppdated.AdjustOther = req.AdjustOther; - // uppdated.RealReason = req.RealReason; - // uppdated.NotExitFactor = req.NotExitFactor; - // uppdated.Havejob = req.Havejob; - // uppdated.HavejobReason = req.HavejobReason; - // uppdated.SuggestFriends = req.SuggestFriends; - // uppdated.SuggestFriendsReason = req.SuggestFriendsReason; - // uppdated.FutureWork = req.FutureWork; - // uppdated.FutureWorkReason = req.FutureWorkReason; - // uppdated.Suggestion = req.Suggestion; - // uppdated.LastUpdateFullName = FullName ?? "System Administrator"; - // uppdated.LastUpdateUserId = UserId ?? ""; - // uppdated.LastUpdatedAt = DateTime.Now; - - // await _context.SaveChangesAsync(); - - // return Success(); - // } - - // /// - // /// āđāļāđ‰āđ„āļ‚āļ„āļ°āđāļ™āļ™āđāļšāļšāļŠāļ­āļšāļ–āļēāļĄāļŦāļĨāļąāļ‡āļĨāļēāļ­āļ­āļ - // /// - // /// Id āđāļšāļšāļŠāļ­āļšāļ–āļēāļĄāļŦāļĨāļąāļ‡āļĨāļēāļ­āļ­āļ - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpPut("questionnaire/comment/{id:length(36)}")] - // public async Task> PutQuestionComment([FromBody] RetirementQuestionCommentRequest req, Guid id) - // { - // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_RESIGN_INTERVIEW"); - // var jsonData = JsonConvert.DeserializeObject(getPermission); - // if (jsonData["status"]?.ToString() != "200") - // { - // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - // } - // var uppdated = await _context.RetirementQuestions.AsQueryable() - // .FirstOrDefaultAsync(x => x.Id == id); - // if (uppdated == null) - // return Error(GlobalMessages.RetirementQuestionNotFound); - - // uppdated.Score1 = req.Score1; - // uppdated.Score2 = req.Score2; - // uppdated.Score3 = req.Score3; - // uppdated.Score4 = req.Score4; - // uppdated.Score5 = req.Score5; - // uppdated.Score6 = req.Score6; - // uppdated.Score7 = req.Score7; - // uppdated.Score8 = req.Score8; - // uppdated.Score9 = req.Score9; - // uppdated.Score10 = req.Score10; - // uppdated.ScoreTotal = req.ScoreTotal; - // uppdated.Comment = req.Comment; - // uppdated.LastUpdateFullName = FullName ?? "System Administrator"; - // uppdated.LastUpdateUserId = UserId ?? ""; - // uppdated.LastUpdatedAt = DateTime.Now; - - // await _context.SaveChangesAsync(); - - // return Success(); - // } - - // /// - // /// āđāļāđ‰āđ„āļ‚āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ - // /// - // /// Id āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpPut("questionnaire/appoint/{id:length(36)}")] - // public async Task> UpdateAppointQuestion([FromBody] RetirementQuestionAppointRequest req, Guid id) - // { - // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_RESIGN_INTERVIEW"); - // var jsonData = JsonConvert.DeserializeObject(getPermission); - // if (jsonData["status"]?.ToString() != "200") - // { - // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - // } - // var uppdated = await _context.RetirementQuestions.AsQueryable() - // .Include(x => x.RetirementResignEmployee) - // .FirstOrDefaultAsync(x => x.Id == id); - // if (uppdated == null) - // return Error(GlobalMessages.RetirementQuestionNotFound); - - // uppdated.AppointDate = req.AppointDate; - // uppdated.LastUpdateFullName = FullName ?? "System Administrator"; - // uppdated.LastUpdateUserId = UserId ?? ""; - // uppdated.LastUpdatedAt = DateTime.Now; - // if (uppdated.RetirementResignEmployee != null && uppdated.RetirementResignEmployee.profileId != null) - // { - // await _repositoryNoti.PushNotificationAsync( - // Guid.Parse(uppdated.RetirementResignEmployee.profileId), - // $"āļāļēāļĢāļ™āļąāļ”āļŠāļąāļĄāļ āļēāļĐāļ“āđŒāđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāļĨāļēāļ­āļ­āļ {req.AppointDate.ToThaiFullDate()}", - // $"āļāļēāļĢāļ™āļąāļ”āļŠāļąāļĄāļ āļēāļĐāļ“āđŒāđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāļĨāļēāļ­āļ­āļ {req.AppointDate.ToThaiFullDate()}", - // "", - // "", - // true - // ); - // } - // await _context.SaveChangesAsync(); - - // return Success(); - // } - - // /// - // /// list āļ„āļģāļ–āļēāļĄ (USER) - // /// - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpGet("questionnaire/question")] - // public async Task> GetQuestionnaireQuestion() - // { - // //var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_RESIGN_INTERVIEW"); - // //var jsonData = JsonConvert.DeserializeObject(getPermission); - // //if (jsonData["status"]?.ToString() != "200") - // //{ - // // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - // //} - // var retirementQuestionnaireQuestion = await _context.RetirementQuestionnaireQuestions.AsQueryable() - // .Select(x => new - // { - // Question1Desc = x.Question1Desc, - // Question1Score = x.Question1Score, - // Question1Answer = x.Question1Answer == null ? null : JsonConvert.DeserializeObject>(x.Question1Answer), - // Question2Desc = x.Question2Desc, - // Question2Score = x.Question2Score, - // Question2Answer = x.Question2Answer == null ? null : JsonConvert.DeserializeObject>(x.Question2Answer), - // Question3Desc = x.Question3Desc, - // Question3Score = x.Question3Score, - // Question3Answer = x.Question3Answer == null ? null : JsonConvert.DeserializeObject>(x.Question3Answer), - // Question4Desc = x.Question4Desc, - // Question4Score = x.Question4Score, - // Question4Answer = x.Question4Answer == null ? null : JsonConvert.DeserializeObject>(x.Question4Answer), - // Question5Desc = x.Question5Desc, - // Question5Score = x.Question5Score, - // Question5Answer = x.Question5Answer == null ? null : JsonConvert.DeserializeObject>(x.Question5Answer), - // Question6Desc = x.Question6Desc, - // Question6Score = x.Question6Score, - // Question6Answer = x.Question6Answer == null ? null : JsonConvert.DeserializeObject>(x.Question6Answer), - // Question7Desc = x.Question7Desc, - // Question7Score = x.Question7Score, - // Question7Answer = x.Question7Answer == null ? null : JsonConvert.DeserializeObject>(x.Question7Answer), - // Question8Desc = x.Question8Desc, - // Question8Score = x.Question8Score, - // Question8Answer = x.Question8Answer == null ? null : JsonConvert.DeserializeObject>(x.Question8Answer), - // Question9Desc = x.Question9Desc, - // Question9Score = x.Question9Score, - // Question9Answer = x.Question9Answer == null ? null : JsonConvert.DeserializeObject>(x.Question9Answer), - // Question10Desc = x.Question10Desc, - // Question10Score = x.Question10Score, - // Question10Answer = x.Question10Answer == null ? null : JsonConvert.DeserializeObject>(x.Question10Answer), - // }) - // .FirstOrDefaultAsync(); - // if (retirementQuestionnaireQuestion == null) - // return Error(GlobalMessages.RetirementQuestionNotFound); - - // return Success(retirementQuestionnaireQuestion); - // } - - // /// - // /// update āļ„āļģāļ–āļēāļĄ - // /// - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpPut("questionnaire/question")] - // public async Task> UpdateQuestionnaireQuestion([FromBody] RetirementQuestionnaireQuestionRequest req) - // { - // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_RESIGN_INTERVIEW"); - // var jsonData = JsonConvert.DeserializeObject(getPermission); - // if (jsonData["status"]?.ToString() != "200") - // { - // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - // } - // var uppdated = await _context.RetirementQuestionnaireQuestions.AsQueryable() - // .FirstOrDefaultAsync(); - // if (uppdated == null) - // return Error(GlobalMessages.RetirementQuestionnaireQuestionNotFound); - - // uppdated.Question1Desc = req.Question1Desc; - // uppdated.Question1Score = req.Question1Score; - // uppdated.Question1Answer = JsonConvert.SerializeObject(req.Question1Answer); - // uppdated.Question2Desc = req.Question2Desc; - // uppdated.Question2Score = req.Question2Score; - // uppdated.Question2Answer = JsonConvert.SerializeObject(req.Question2Answer); - // uppdated.Question3Desc = req.Question3Desc; - // uppdated.Question3Score = req.Question3Score; - // uppdated.Question3Answer = JsonConvert.SerializeObject(req.Question3Answer); - // uppdated.Question4Desc = req.Question4Desc; - // uppdated.Question4Score = req.Question4Score; - // uppdated.Question4Answer = JsonConvert.SerializeObject(req.Question4Answer); - // uppdated.Question5Desc = req.Question5Desc; - // uppdated.Question5Score = req.Question5Score; - // uppdated.Question5Answer = JsonConvert.SerializeObject(req.Question5Answer); - // uppdated.Question6Desc = req.Question6Desc; - // uppdated.Question6Score = req.Question6Score; - // uppdated.Question6Answer = JsonConvert.SerializeObject(req.Question6Answer); - // uppdated.Question7Desc = req.Question7Desc; - // uppdated.Question7Score = req.Question7Score; - // uppdated.Question7Answer = JsonConvert.SerializeObject(req.Question7Answer); - // uppdated.Question8Desc = req.Question8Desc; - // uppdated.Question8Score = req.Question8Score; - // uppdated.Question8Answer = JsonConvert.SerializeObject(req.Question8Answer); - // uppdated.Question9Desc = req.Question9Desc; - // uppdated.Question9Score = req.Question9Score; - // uppdated.Question9Answer = JsonConvert.SerializeObject(req.Question9Answer); - // uppdated.Question10Desc = req.Question10Desc; - // uppdated.Question10Score = req.Question10Score; - // uppdated.Question10Answer = JsonConvert.SerializeObject(req.Question10Answer); - // uppdated.LastUpdateFullName = FullName ?? "System Administrator"; - // uppdated.LastUpdateUserId = UserId ?? ""; - // uppdated.LastUpdatedAt = DateTime.Now; - - // await _context.SaveChangesAsync(); - - // return Success(); - // } - - // /// - // /// list āļ„āļģāļ–āļēāļĄ (ADMIN) - // /// - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpGet("questionnaire/question/admin")] - // public async Task> GetQuestionnaireQuestionAdmin() - // { - // var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_RESIGN_INTERVIEW"); - // var jsonData = JsonConvert.DeserializeObject(getPermission); - // if (jsonData["status"]?.ToString() != "200") - // { - // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - // } - // var retirementQuestionnaireQuestion = await _context.RetirementQuestionnaireQuestions.AsQueryable() - // .Select(x => new - // { - // Question1Desc = x.Question1Desc, - // Question1Score = x.Question1Score, - // Question1Answer = x.Question1Answer == null ? null : JsonConvert.DeserializeObject>(x.Question1Answer), - // Question2Desc = x.Question2Desc, - // Question2Score = x.Question2Score, - // Question2Answer = x.Question2Answer == null ? null : JsonConvert.DeserializeObject>(x.Question2Answer), - // Question3Desc = x.Question3Desc, - // Question3Score = x.Question3Score, - // Question3Answer = x.Question3Answer == null ? null : JsonConvert.DeserializeObject>(x.Question3Answer), - // Question4Desc = x.Question4Desc, - // Question4Score = x.Question4Score, - // Question4Answer = x.Question4Answer == null ? null : JsonConvert.DeserializeObject>(x.Question4Answer), - // Question5Desc = x.Question5Desc, - // Question5Score = x.Question5Score, - // Question5Answer = x.Question5Answer == null ? null : JsonConvert.DeserializeObject>(x.Question5Answer), - // Question6Desc = x.Question6Desc, - // Question6Score = x.Question6Score, - // Question6Answer = x.Question6Answer == null ? null : JsonConvert.DeserializeObject>(x.Question6Answer), - // Question7Desc = x.Question7Desc, - // Question7Score = x.Question7Score, - // Question7Answer = x.Question7Answer == null ? null : JsonConvert.DeserializeObject>(x.Question7Answer), - // Question8Desc = x.Question8Desc, - // Question8Score = x.Question8Score, - // Question8Answer = x.Question8Answer == null ? null : JsonConvert.DeserializeObject>(x.Question8Answer), - // Question9Desc = x.Question9Desc, - // Question9Score = x.Question9Score, - // Question9Answer = x.Question9Answer == null ? null : JsonConvert.DeserializeObject>(x.Question9Answer), - // Question10Desc = x.Question10Desc, - // Question10Score = x.Question10Score, - // Question10Answer = x.Question10Answer == null ? null : JsonConvert.DeserializeObject>(x.Question10Answer), - // }) - // .FirstOrDefaultAsync(); - // if (retirementQuestionnaireQuestion == null) - // return Error(GlobalMessages.RetirementQuestionNotFound); - - // return Success(retirementQuestionnaireQuestion); - // } - /// /// āļŠāđˆāļ‡āļĢāļēāļĒāļŠāļ·āđˆāļ­āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡ C-PM-23 /// From 5953893e7402d2bdd62848ddb66cfe3bfad1351c Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 20 Feb 2025 00:10:02 +0700 Subject: [PATCH 106/879] email not null --- .../MessageQueue/NotificationRepository.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs b/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs index 08051cf4..41135a1f 100644 --- a/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs +++ b/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs @@ -235,7 +235,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue if (_res.IsSuccessStatusCode) { var org = JsonConvert.DeserializeObject(_result); - if (org != null && org.result != null) + if (org != null && org.result != null && org.result != "") _emailSenderService.SendMail(Subject, Body, org.result); } } @@ -295,7 +295,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue if (_res.IsSuccessStatusCode) { var org = JsonConvert.DeserializeObject(_result); - if (org != null && org.result != null) + if (org != null && org.result != null && org.result != "") _emailSenderService.SendMail(Subject, Body, org.result); } } @@ -442,7 +442,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue if (_res.IsSuccessStatusCode) { var org = JsonConvert.DeserializeObject(_result); - if (org != null && org.result != null) + if (org != null && org.result != null && org.result != "") _emailSenderService.SendMail(Subject, Body, org.result); } } @@ -512,7 +512,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue if (_res.IsSuccessStatusCode) { var org = JsonConvert.DeserializeObject(_result); - if (org != null && org.result != null) + if (org != null && org.result != null && org.result != "") _emailSenderService.SendMail(Subject, Body, org.result); } } @@ -574,7 +574,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue if (_res.IsSuccessStatusCode) { var org = JsonConvert.DeserializeObject(_result); - if (org != null && org.result != null) + if (org != null && org.result != null && org.result != "") _emailSenderService.SendMail(Subject, Body, org.result); } } From ad0edf92a6633e0473165b99a6128b5dc05e643b Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 20 Feb 2025 11:22:45 +0700 Subject: [PATCH 107/879] fix --- BMA.EHR.Insignia/Controllers/InsigniaReportController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index 7dfe6bdd..bdd8af28 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -370,7 +370,7 @@ namespace BMA.EHR.Insignia.Service.Controllers row = row + 1; } - var date = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}"; + var date = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {(DateTime.Now.Date).ToThaiShortDate().ToThaiNumber()}"; var result = new { template = "reportInsignia4", From f74c8a1e3858ce6689022dbed16310b4f0203126 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 20 Feb 2025 11:50:10 +0700 Subject: [PATCH 108/879] fix date --- BMA.EHR.Insignia/Controllers/InsigniaReportController.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index bdd8af28..22efd743 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -18,6 +18,7 @@ using Newtonsoft.Json.Linq; using OfficeOpenXml; using RabbitMQ.Client; using Swashbuckle.AspNetCore.Annotations; +using System.Globalization; using System.Security.Claims; using System.Text; using static System.Runtime.InteropServices.JavaScript.JSType; @@ -344,12 +345,14 @@ namespace BMA.EHR.Insignia.Service.Controllers var org = ""; var number = ""; var citizenId = "0"; + var datePayment = ""; foreach (var _data in insignalPeriod) { citizenId = _data.GetType().GetProperty("CitizenId").GetValue(_data); org = _data.GetType().GetProperty("Root").GetValue(_data); number = _data.GetType().GetProperty("Number").GetValue(_data); - var datePayment = _data.GetType().GetProperty("DatePayment").GetValue(_data); + datePayment = _data.GetType().GetProperty("DatePayment").GetValue(_data); + DateTime datePayment2 = DateTime.ParseExact(datePayment, "yyyy-MM-dd", CultureInfo.InvariantCulture); detailList.Add(new { row = row.ToString().ToThaiNumber(), @@ -365,12 +368,12 @@ namespace BMA.EHR.Insignia.Service.Controllers isApprove = _data.GetType().GetProperty("IsApprove").GetValue(_data), requestInsignia = _data.GetType().GetProperty("RequestInsignia").GetValue(_data), number = number == null ? "" : number.ToString().ToThaiNumber(), - datePayment = datePayment == null ? "" : datePayment.ToThaiShortDate().ToThaiNumber(), + datePayment = datePayment == null ? "" : datePayment2.ToThaiShortDate().ToThaiNumber(), }); row = row + 1; } - var date = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {(DateTime.Now.Date).ToThaiShortDate().ToThaiNumber()}"; + var date = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}"; var result = new { template = "reportInsignia4", From 2120cd8014e70485212d8571ebe67f7d2ead638a Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 20 Feb 2025 13:32:24 +0700 Subject: [PATCH 109/879] fix date2 --- .../Controllers/InsigniaReportController.cs | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index 22efd743..b2b106f3 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -345,14 +345,27 @@ namespace BMA.EHR.Insignia.Service.Controllers var org = ""; var number = ""; var citizenId = "0"; - var datePayment = ""; + foreach (var _data in insignalPeriod) { citizenId = _data.GetType().GetProperty("CitizenId").GetValue(_data); org = _data.GetType().GetProperty("Root").GetValue(_data); number = _data.GetType().GetProperty("Number").GetValue(_data); - datePayment = _data.GetType().GetProperty("DatePayment").GetValue(_data); - DateTime datePayment2 = DateTime.ParseExact(datePayment, "yyyy-MM-dd", CultureInfo.InvariantCulture); + /* var datePayment = _data.GetType().GetProperty("DatePayment").GetValue(_data); + DateTime datePayment2 = DateTime.ParseExact(datePayment, "yyyy-MM-dd", CultureInfo.InvariantCulture);*/ + + var datePayment = _data.GetType().GetProperty("DatePayment").GetValue(_data)?.ToString(); + DateTime? datePayment2 = null; + + if (!string.IsNullOrEmpty(datePayment)) + { + DateTime parsedDate; + if (DateTime.TryParse(datePayment, out parsedDate)) + { + datePayment2 = parsedDate; + } + } + detailList.Add(new { row = row.ToString().ToThaiNumber(), @@ -368,7 +381,7 @@ namespace BMA.EHR.Insignia.Service.Controllers isApprove = _data.GetType().GetProperty("IsApprove").GetValue(_data), requestInsignia = _data.GetType().GetProperty("RequestInsignia").GetValue(_data), number = number == null ? "" : number.ToString().ToThaiNumber(), - datePayment = datePayment == null ? "" : datePayment2.ToThaiShortDate().ToThaiNumber(), + datePayment = datePayment2.HasValue ? datePayment2.Value.ToThaiShortDate().ToThaiNumber() : "" }); row = row + 1; } From 9718ff149c28f12fbb281c249bd6c325ef11df6c Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 20 Feb 2025 15:06:05 +0700 Subject: [PATCH 110/879] update --- BMA.EHR.Insignia/Controllers/InsigniaReportController.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index b2b106f3..3648c4c9 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -351,8 +351,6 @@ namespace BMA.EHR.Insignia.Service.Controllers citizenId = _data.GetType().GetProperty("CitizenId").GetValue(_data); org = _data.GetType().GetProperty("Root").GetValue(_data); number = _data.GetType().GetProperty("Number").GetValue(_data); - /* var datePayment = _data.GetType().GetProperty("DatePayment").GetValue(_data); - DateTime datePayment2 = DateTime.ParseExact(datePayment, "yyyy-MM-dd", CultureInfo.InvariantCulture);*/ var datePayment = _data.GetType().GetProperty("DatePayment").GetValue(_data)?.ToString(); DateTime? datePayment2 = null; From 12aceb5e001875b359f6d3f658495acbfee50994 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 20 Feb 2025 16:59:21 +0700 Subject: [PATCH 111/879] add status filter --- .../Controllers/PlacementAppointmentController.cs | 4 +++- .../Controllers/PlacementAppointmentEmployeeController.cs | 5 +++-- .../Controllers/PlacementOfficerController.cs | 5 +++-- .../Controllers/PlacementReceiveController.cs | 4 +++- .../Controllers/PlacementRepatriationController.cs | 4 +++- .../Controllers/PlacementTransferController.cs | 4 +++- .../Controllers/RetirementOtherController.cs | 5 +++-- .../Controllers/RetirementOutController.cs | 5 +++-- 8 files changed, 24 insertions(+), 12 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 8511c34b..342254c9 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -68,7 +68,7 @@ namespace BMA.EHR.Placement.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet()] - public async Task> GetListByAdmin() + public async Task> GetListByAdmin(string? status = "ALL") { var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_PROMOTION_OFFICER", UserId); var jsonData = JsonConvert.DeserializeObject(getPermission); @@ -169,6 +169,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.typeCommand, }) .ToListAsync(); + if (status != null && status.Trim().ToUpper() != "ALL") + placementAppointments = placementAppointments.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); return Success(placementAppointments); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index 11aaef01..ae52a64a 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -67,7 +67,7 @@ namespace BMA.EHR.Placement.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet()] - public async Task> GetListByAdmin() + public async Task> GetListByAdmin(string? status = "ALL") { var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_PROMOTION_EMP", UserId); var jsonData = JsonConvert.DeserializeObject(getPermission); @@ -191,7 +191,8 @@ namespace BMA.EHR.Placement.Service.Controllers // placementAppointments = data; // } - + if (status != null && status.Trim().ToUpper() != "ALL") + placementAppointments = placementAppointments.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); return Success(placementAppointments); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index bfb7ec9b..7f589e2b 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -68,7 +68,7 @@ namespace BMA.EHR.Placement.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet()] - public async Task> GetListByAdmin() + public async Task> GetListByAdmin(string? status = "ALL") { var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_TEMPDUTY", UserId); var jsonData = JsonConvert.DeserializeObject(getPermission); @@ -127,7 +127,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.IsActive, }) .ToListAsync(); - + if (status != null && status.Trim().ToUpper() != "ALL") + placementOfficers = placementOfficers.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); return Success(placementOfficers); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 102c5dcc..55a8c66f 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -69,7 +69,7 @@ namespace BMA.EHR.Placement.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet()] - public async Task> GetListByAdmin() + public async Task> GetListByAdmin(string? status = "ALL") { var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_TRANSFER_RECEIVE", UserId); var jsonData = JsonConvert.DeserializeObject(getPermission); @@ -164,6 +164,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.profileId, }) .ToListAsync(); + if (status != null && status.Trim().ToUpper() != "ALL") + placementReceives = placementReceives.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); return Success(placementReceives); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index 0dfd8e8c..6c65ce03 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -69,7 +69,7 @@ namespace BMA.EHR.Placement.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet()] - public async Task> GetListByAdmin() + public async Task> GetListByAdmin(string? status = "ALL") { var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_TEMPDUTY2", UserId); var jsonData = JsonConvert.DeserializeObject(getPermission); @@ -132,6 +132,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.DateRepatriation, }) .ToListAsync(); + if (status != null && status.Trim().ToUpper() != "ALL") + placementRepatriations = placementRepatriations.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); return Success(placementRepatriations); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index 9eb2f0fc..f545dce7 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -161,7 +161,7 @@ namespace BMA.EHR.Placement.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet()] - public async Task> GetListByAdmin() + public async Task> GetListByAdmin(string? status = "ALL") { var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_TRANSFER_REQ", UserId); var jsonData = JsonConvert.DeserializeObject(getPermission); @@ -224,6 +224,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.IsActive, }) .ToListAsync(); + if (status != null && status.Trim().ToUpper() != "ALL") + placementTransfers = placementTransfers.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); return Success(placementTransfers); } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 78b362e9..893ba38d 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -68,7 +68,7 @@ namespace BMA.EHR.Retirement.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet()] - public async Task> GetListByAdmin() + public async Task> GetListByAdmin(string? status = "ALL") // public async Task> GetListByAdmin(int page = 1, int pageSize = 10, string keyword = "") { var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_PLACEMENT_OTHER"); @@ -166,7 +166,8 @@ namespace BMA.EHR.Retirement.Service.Controllers // retirementOthers = data; // } - + if (status != null && status.Trim().ToUpper() != "ALL") + retirementOthers = retirementOthers.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); return Success(retirementOthers); } } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index b77658b0..c84639f8 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -69,7 +69,7 @@ namespace BMA.EHR.Retirement.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet("{type}")] - public async Task> GetListByAdmin(string type) + public async Task> GetListByAdmin(string type, string? status = "WAITTING") { var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_DISMISS"); var jsonData = JsonConvert.DeserializeObject(getPermission); @@ -148,7 +148,8 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsActive, }) .ToListAsync(); - + if (status != null && status.Trim().ToUpper() != "WAITTING") + retirementOuts = retirementOuts.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); return Success(retirementOuts); } } From 9b0f1f0b3e4956326d8c1030bcfe1a0b9a119359 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 21 Feb 2025 12:39:01 +0700 Subject: [PATCH 112/879] fix #1188 --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 4 ++++ BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index f7f322f3..8cdbd0c2 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1224,6 +1224,10 @@ namespace BMA.EHR.Leave.Service.Controllers LeaveNumber = rawData.LeaveNumber, LeaveDetail = rawData.LeaveDetail, LeaveDocument = new(), + + + LeaveLast = rawData.LeaveLast, + //LeaveDocument = rawData.LeaveDocument == null ? null : await _minIOService.ImagesPath(rawData.LeaveDocument.Id), LeaveDraftDocument = rawData.LeaveDraftDocument == null ? "" : await _minIOService.ImagesPath(rawData.LeaveDraftDocument.Id), diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs index 5dd222cb..b97474a2 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs @@ -107,13 +107,13 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string? CoupleDayCountryHistory { get; set; } - public string? CoupleDayTotalHistory { get; set; } + public string? CoupleDayTotalHistory { get; set; } - public DateTime? CoupleDayStartDateHistory { get; set; } + public DateTime? CoupleDayStartDateHistory { get; set; } public DateTime? CoupleDayEndDateHistory { get; set; } - public string? CoupleDaySumTotalHistory { get; set; } + public string? CoupleDaySumTotalHistory { get; set; } public string? Dear { get; set; } = string.Empty; @@ -124,5 +124,7 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string? PositionLevelName { get; set; } = string.Empty; public string? OrganizationName { get; set; } = string.Empty; + + public DateTime? LeaveLast { get; set; } } } From 11c84e00139f3b9141f0d3e0198139181d7f5227 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 21 Feb 2025 16:03:05 +0700 Subject: [PATCH 113/879] fix #1189 --- .../Controllers/LeaveRequestController.cs | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 8cdbd0c2..ffbb104b 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -713,6 +713,12 @@ namespace BMA.EHR.Leave.Service.Controllers } var leaveLimit = 0.0; + var remainPrev = 0.0; + + + + + if (leaveType.Code.Trim().ToUpper() == "LV-005") { if (govAge >= 180) @@ -721,10 +727,14 @@ namespace BMA.EHR.Leave.Service.Controllers if (govAge >= 3650) { leaveLimit = 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); + remainPrev = 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + if (remainPrev >= 20) remainPrev = 20; } else { leaveLimit = 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); + remainPrev = 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + if (remainPrev >= 10) remainPrev = 10; } } else @@ -737,7 +747,13 @@ namespace BMA.EHR.Leave.Service.Controllers var sumLeave = await _leaveRequestRepository.GetSumLeaveByTypeForUserAsync(userId, req.Type, thisYear); - var restOldDay = await _leaveRequestRepository.GetRestDayTotalByYearForUserAsync(userId, thisYear - 1); + var restOldDay = 0.00; + if (leaveType.Code.Trim().ToUpper() == "LV-005") + { + restOldDay = remainPrev; + } + else + restOldDay = await _leaveRequestRepository.GetRestDayTotalByYearForUserAsync(userId, thisYear - 1); var lastSalary = profile.ProfileSalary; @@ -2027,7 +2043,7 @@ namespace BMA.EHR.Leave.Service.Controllers else leaveLimit = 0; } - + var data = new { Id = leaveType.Id, From e092604b970e9834ae96bc7b0b9115a3c95b9f05 Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 21 Feb 2025 19:11:20 +0700 Subject: [PATCH 114/879] =?UTF-8?q?=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=E0=B9=83=E0=B8=AB?= =?UTF-8?q?=E0=B8=A1=E0=B9=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/DisciplineResultController.cs | 207 +++++++++-------- .../Requests/PassDisciplineResponse.cs | 2 +- .../Requests/ReportExecuteRequest.cs | 11 +- .../PlacementAppointmentController.cs | 171 ++++++++------ .../Controllers/PlacementController.cs | 217 ++++++++++-------- .../Controllers/PlacementOfficerController.cs | 32 ++- .../Controllers/PlacementReceiveController.cs | 47 ++-- .../PlacementRepatriationController.cs | 34 ++- .../PlacementTransferController.cs | 33 ++- .../Requests/ReportExecuteRequest.cs | 11 +- .../Controllers/RetirementOtherController.cs | 60 +++-- .../Controllers/RetirementOutController.cs | 32 ++- .../Controllers/RetirementResignController.cs | 65 ++++-- .../RetirementResignEmployeeController.cs | 66 ++++-- .../Requests/ReportExecuteRequest.cs | 11 +- 15 files changed, 592 insertions(+), 407 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs index 1ca01a7a..c38dea13 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs @@ -539,7 +539,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers detail = data.DisciplineDisciplinary.Title, level = data.DisciplineDisciplinary.DisciplinaryFaultLevel, refCommandDate = DateTime.Now, - refCommandNo = $"{d.commandNo}/{d.commandYear}", + refCommandNo = $"{d.commandNo}/{d.commandYear?.ToThaiYear()}", unStigma = d.detail, }); var _result = await _res.Content.ReadAsStringAsync(); @@ -586,7 +586,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers detail = data.DisciplineDisciplinary.Title, level = data.DisciplineDisciplinary.DisciplinaryFaultLevel, refCommandDate = DateTime.Now, - refCommandNo = $"{d.commandNo}/{d.commandYear}", + refCommandNo = $"{d.commandNo}/{d.commandYear?.ToThaiYear()}", unStigma = d.detail, }); var _result = await _res.Content.ReadAsStringAsync(); @@ -632,7 +632,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers detail = data1.DisciplineInvestigate.Title, level = "", refCommandDate = DateTime.Now, - refCommandNo = $"{d.commandNo}/{d.commandYear}", + refCommandNo = $"{d.commandNo}/{d.commandYear?.ToThaiYear()}", unStigma = d.detail, }); var _result = await _res.Content.ReadAsStringAsync(); @@ -660,7 +660,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers detail = data2.DisciplineDisciplinary.Title, level = data2.DisciplineDisciplinary.DisciplinaryFaultLevel, refCommandDate = DateTime.Now, - refCommandNo = $"{d.commandNo}/{d.commandYear}", + refCommandNo = $"{d.commandNo}/{d.commandYear?.ToThaiYear()}", unStigma = d.detail, }); var _result = await _res.Content.ReadAsStringAsync(); @@ -815,25 +815,26 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers select new { profileId = p.PersonId, - commandId = r.commandId, - date = r.commandAffectDate, - refCommandNo = $"{r.commandNo}/{r.commandYear}", - salaryRef = r.templateDoc, + profileType = p.profileType, isLeave = true, leaveReason = "āđ„āļ”āđ‰āļĢāļąāļšāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ āļ›āļĨāļ”āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", - dateLeave = r.commandAffectDate, - refCommandDate = DateTime.Now, + dateLeave = r.commandDateAffect, detail = p.DisciplineDisciplinary.Title, level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āļ›āļĨāļ”āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", + commandId = r.commandId, amount = r.amount, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, isGovernment = false, - profileType = p.profileType, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandNo = r.commandNo, + commandYear = r.commandYear, + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -943,25 +944,26 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers select new { profileId = p.PersonId, - commandId = r.commandId, - date = r.commandAffectDate, - refCommandNo = $"{r.commandNo}/{r.commandYear}", - salaryRef = r.templateDoc, + profileType = p.profileType, isLeave = true, - leaveReason = "āđ„āļ”āđ‰āļĢāļąāļšāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", - dateLeave = r.commandAffectDate, - refCommandDate = DateTime.Now, + leaveReason = "āđ„āļ”āđ‰āļĢāļąāļšāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ āđ„āļĨāđˆāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", + dateLeave = r.commandDateAffect, detail = p.DisciplineDisciplinary.Title, level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āđ„āļĨāđˆāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", + commandId = r.commandId, amount = r.amount, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, isGovernment = false, - profileType = p.profileType, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandNo = r.commandNo, + commandYear = r.commandYear, + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1149,25 +1151,26 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers select new { profileId = p.PersonId, - commandId = r.commandId, - date = r.commandAffectDate, - refCommandNo = $"{r.commandNo}/{r.commandYear}", - salaryRef = r.templateDoc, + profileType = p.profileType, isLeave = true, leaveReason = "āđ„āļ”āđ‰āļĢāļąāļšāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ āļžāļąāļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", - dateLeave = r.commandAffectDate, - refCommandDate = DateTime.Now, + dateLeave = r.commandDateAffect, detail = p.DisciplineDisciplinary.Title, level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āļžāļąāļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", + commandId = r.commandId, amount = r.amount, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, isGovernment = false, - profileType = p.profileType, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandNo = r.commandNo, + commandYear = r.commandYear, + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1266,25 +1269,26 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers select new { profileId = p.PersonId, - commandId = r.commandId, - date = r.commandAffectDate, - refCommandNo = $"{r.commandNo}/{r.commandYear}", - salaryRef = r.templateDoc, + profileType = p.profileType, isLeave = true, leaveReason = "āđ„āļ”āđ‰āļĢāļąāļšāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™", - dateLeave = r.commandAffectDate, - refCommandDate = DateTime.Now, + dateLeave = r.commandDateAffect, detail = p.DisciplineDisciplinary.Title, level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™", + commandId = r.commandId, amount = r.amount, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, isGovernment = false, - profileType = p.profileType, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandNo = r.commandNo, + commandYear = r.commandYear, + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1382,24 +1386,25 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers select new { profileId = p.PersonId, - commandId = r.commandId, - date = r.commandAffectDate, - refCommandNo = $"{r.commandNo}/{r.commandYear}", - salaryRef = r.templateDoc, + profileType = p.profileType, isLeave = _null, leaveReason = _null, dateLeave = _null, - refCommandDate = DateTime.Now, detail = p.DisciplineDisciplinary.Title, level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āļĨāļ‡āđ‚āļ—āļĐ āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ", + commandId = r.commandId, amount = r.amount, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - profileType = p.profileType, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandNo = r.commandNo, + commandYear = r.commandYear, + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1497,24 +1502,25 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers select new { profileId = p.PersonId, - commandId = r.commandId, - date = r.commandAffectDate, - refCommandNo = $"{r.commandNo}/{r.commandYear}", - salaryRef = r.templateDoc, + profileType = p.profileType, isLeave = _null, leaveReason = _null, dateLeave = _null, - refCommandDate = DateTime.Now, detail = p.DisciplineDisciplinary.Title, level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™", + commandId = r.commandId, amount = r.amount, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - profileType = p.profileType, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandNo = r.commandNo, + commandYear = r.commandYear, + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1612,24 +1618,25 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers select new { profileId = p.PersonId, - commandId = r.commandId, - date = r.commandAffectDate, - refCommandNo = $"{r.commandNo}/{r.commandYear}", - salaryRef = r.templateDoc, + profileType = p.profileType, isLeave = _null, leaveReason = _null, dateLeave = _null, - refCommandDate = DateTime.Now, detail = p.DisciplineDisciplinary.Title, level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐ āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™", + commandId = r.commandId, amount = r.amount, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - profileType = p.profileType, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandNo = r.commandNo, + commandYear = r.commandYear, + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1727,24 +1734,25 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers select new { profileId = p.PersonId, - commandId = r.commandId, - date = r.commandAffectDate, - refCommandNo = $"{r.commandNo}/{r.commandYear}", - salaryRef = r.templateDoc, + profileType = p.profileType, isLeave = _null, leaveReason = _null, dateLeave = _null, - refCommandDate = DateTime.Now, detail = p.DisciplineDisciplinary.Title, level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āđ€āļžāļīāđˆāļĄāđ‚āļ—āļĐ", + commandId = r.commandId, amount = r.amount, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - profileType = p.profileType, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandNo = r.commandNo, + commandYear = r.commandYear, + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1842,24 +1850,25 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers select new { profileId = p.PersonId, - commandId = r.commandId, - date = r.commandAffectDate, - refCommandNo = $"{r.commandNo}/{r.commandYear}", - salaryRef = r.templateDoc, + profileType = p.profileType, isLeave = _null, leaveReason = _null, dateLeave = _null, - refCommandDate = DateTime.Now, detail = p.DisciplineDisciplinary.Title, level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļĐ", + commandId = r.commandId, amount = r.amount, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - profileType = p.profileType, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandNo = r.commandNo, + commandYear = r.commandYear, + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1973,24 +1982,25 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers select new { profileId = p.PersonId, - commandId = r.commandId, - date = r.commandAffectDate, - refCommandNo = $"{r.commandNo}/{r.commandYear}", - salaryRef = r.templateDoc, + profileType = p.profileType, isLeave = false, leaveReason = _null, dateLeave = _null, - refCommandDate = DateTime.Now, detail = p.DisciplineInvestigate.Title, level = "", unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡", + commandId = r.commandId, amount = r.amount, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - profileType = p.profileType, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandNo = r.commandNo, + commandYear = r.commandYear, + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave-discipline"; @@ -2021,16 +2031,25 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers select new { profileId = p.PersonId, - date = r.commandAffectDate, - refCommandNo = $"{r.commandNo}/{r.commandYear}", - salaryRef = r.templateDoc, + profileType = p.profileType, isLeave = false, leaveReason = _null, dateLeave = _null, - refCommandDate = DateTime.Now, detail = p.DisciplineDisciplinary.Title, level = p.DisciplineDisciplinary.DisciplinaryFaultLevel, - unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡" + unStigma = "āļ„āļģāļŠāļąāđˆāļ‡āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡", + commandId = r.commandId, + amount = r.amount, + amountSpecial = r.amountSpecial, + positionSalaryAmount = r.positionSalaryAmount, + mouthSalaryAmount = r.mouthSalaryAmount, + commandNo = r.commandNo, + commandYear = r.commandYear, + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); using (var client = new HttpClient()) { diff --git a/BMA.EHR.Discipline.Service/Requests/PassDisciplineResponse.cs b/BMA.EHR.Discipline.Service/Requests/PassDisciplineResponse.cs index 2e3a8a81..2882afef 100644 --- a/BMA.EHR.Discipline.Service/Requests/PassDisciplineResponse.cs +++ b/BMA.EHR.Discipline.Service/Requests/PassDisciplineResponse.cs @@ -16,7 +16,7 @@ namespace BMA.EHR.Discipline.Service.Requests public DateTime? commandAffectDate { get; set; } public string? commandNo { get; set; } - public string? commandYear { get; set; } + public int? commandYear { get; set; } public string? detail { get; set; } } } diff --git a/BMA.EHR.Discipline.Service/Requests/ReportExecuteRequest.cs b/BMA.EHR.Discipline.Service/Requests/ReportExecuteRequest.cs index bbe62ce8..bf5a59b1 100644 --- a/BMA.EHR.Discipline.Service/Requests/ReportExecuteRequest.cs +++ b/BMA.EHR.Discipline.Service/Requests/ReportExecuteRequest.cs @@ -10,16 +10,17 @@ namespace BMA.EHR.Discipline.Service.Requests public class ReportExecuteRequestObj { public string? refId { get; set; } - public DateTime commandAffectDate { get; set; } public string? commandNo { get; set; } - public string? commandId { get; set; } public int commandYear { get; set; } - public string? templateDoc { get; set; } + public string? commandId { get; set; } + public string? remark { get; set; } public double? amount { get; set; } public double? amountSpecial { get; set; } public double? positionSalaryAmount { get; set; } public double? mouthSalaryAmount { get; set; } - public string? refCommandCode { get; set; } - public string? refCommandName { get; set; } + public string? commandCode { get; set; } + public string? commandName { get; set; } + public DateTime commandDateAffect { get; set; } + public DateTime commandDateSign { get; set; } } } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 342254c9..3b19dcef 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -908,30 +908,35 @@ namespace BMA.EHR.Placement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, amountSpecial = r.amountSpecial, - commandId = r.commandId, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}" : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}" : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}" : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}" : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}" : "", - position = p.position, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.posTypeName, positionLevel = p.posLevelName, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, posmasterId = p.posmasterId, positionId = p.positionId, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandId = r.commandId, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNo, + posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : + p.node == 3 ? $"{p.child3ShortName}" : + p.node == 2 ? $"{p.child2ShortName}" : + p.node == 1 ? $"{p.child1ShortName}" : + p.node == 0 ? $"{p.rootShortName}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.position, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1127,30 +1132,35 @@ namespace BMA.EHR.Placement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, amountSpecial = r.amountSpecial, - commandId = r.commandId, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}" : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}" : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}" : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}" : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}" : "", - position = p.position, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.posTypeName, positionLevel = p.posLevelName, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, posmasterId = p.posmasterId, positionId = p.positionId, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandId = r.commandId, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNo, + posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : + p.node == 3 ? $"{p.child3ShortName}" : + p.node == 2 ? $"{p.child2ShortName}" : + p.node == 1 ? $"{p.child1ShortName}" : + p.node == 0 ? $"{p.rootShortName}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.position, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1337,27 +1347,34 @@ namespace BMA.EHR.Placement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, amountSpecial = r.amountSpecial, - commandId = r.commandId, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}" : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}" : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}" : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}" : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}" : "", - position = p.position, positionType = p.posTypeName, positionLevel = p.posLevelName, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, posmasterId = p.posmasterId, positionId = p.positionId, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandId = r.commandId, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNo, + posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : + p.node == 3 ? $"{p.child3ShortName}" : + p.node == 2 ? $"{p.child2ShortName}" : + p.node == 1 ? $"{p.child1ShortName}" : + p.node == 0 ? $"{p.rootShortName}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.position, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1549,27 +1566,34 @@ namespace BMA.EHR.Placement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, amountSpecial = r.amountSpecial, - commandId = r.commandId, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}" : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}" : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}" : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}" : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}" : "", - position = p.position, positionType = p.posTypeName, positionLevel = p.posLevelName, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, posmasterId = p.posmasterId, positionId = p.positionId, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandId = r.commandId, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNo, + posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : + p.node == 3 ? $"{p.child3ShortName}" : + p.node == 2 ? $"{p.child2ShortName}" : + p.node == 1 ? $"{p.child1ShortName}" : + p.node == 0 ? $"{p.rootShortName}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.position, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1777,30 +1801,35 @@ namespace BMA.EHR.Placement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, amountSpecial = r.amountSpecial, - commandId = r.commandId, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}" : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}" : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}" : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}" : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}" : "", - position = p.position, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.posTypeName, positionLevel = p.posLevelName, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, posmasterId = p.posmasterId, positionId = p.positionId, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandId = r.commandId, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNo, + posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : + p.node == 3 ? $"{p.child3ShortName}" : + p.node == 2 ? $"{p.child2ShortName}" : + p.node == 1 ? $"{p.child1ShortName}" : + p.node == 0 ? $"{p.rootShortName}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.position, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index ac13682b..8394ebdf 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1749,8 +1749,8 @@ namespace BMA.EHR.Placement.Service.Controllers isProbation = true, isLeave = false, dateRetire = (DateTime?)null, - dateAppoint = r.commandAffectDate, - dateStart = r.commandAffectDate, + dateAppoint = r.commandDateAffect, + dateStart = r.commandDateAffect, govAgeAbsent = 0, govAgePlus = 0, birthDate = p.DateOfBirth == null ? (DateTime?)null : p.DateOfBirth, @@ -1809,30 +1809,34 @@ namespace BMA.EHR.Placement.Service.Controllers }).ToList(), bodySalarys = new { - profileId = string.Empty, - date = r.commandAffectDate, - commandId = r.commandId, + profileId = p.profileId, amount = r.amount, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}" : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}" : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}" : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}" : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}" : "", - position = p.positionName == null ? string.Empty : p.positionName, - positionLine = string.Empty, - positionPathSide = string.Empty, - positionExecutive = string.Empty, - positionType = p.posTypeName == null ? string.Empty : p.posTypeName, - positionLevel = p.posLevelName == null ? string.Empty : p.posLevelName, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, - isGovernment = true, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + positionExecutive = "", + positionType = p.posTypeName, + positionLevel = p.posLevelName, + commandId = r.commandId, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNo, + posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : + p.node == 3 ? $"{p.child3ShortName}" : + p.node == 2 ? $"{p.child2ShortName}" : + p.node == 1 ? $"{p.child1ShortName}" : + p.node == 0 ? $"{p.rootShortName}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.positionName, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }, bodyPosition = new { @@ -1860,11 +1864,11 @@ namespace BMA.EHR.Placement.Service.Controllers if (req.refIds.Length > 0) { profile.commandId = req.refIds[0].commandId; - profile.refCommandCode = req.refIds[0].refCommandCode; - profile.refCommandDate = req.refIds[0].commandAffectDate; - profile.refCommandName = req.refIds[0].refCommandName; + profile.refCommandCode = req.refIds[0].commandCode; + profile.refCommandDate = req.refIds[0].commandDateAffect; + profile.refCommandName = req.refIds[0].commandName; profile.refCommandNo = $"{req.refIds[0].commandNo}/{req.refIds[0].commandYear.ToThaiYear()}"; - profile.templateDoc = req.refIds[0].templateDoc; + profile.templateDoc = req.refIds[0].remark; } }); await _context.SaveChangesAsync(); @@ -2072,8 +2076,8 @@ namespace BMA.EHR.Placement.Service.Controllers isProbation = true, isLeave = false, dateRetire = (DateTime?)null, - dateAppoint = r.commandAffectDate, - dateStart = r.commandAffectDate, + dateAppoint = r.commandDateAffect, + dateStart = r.commandDateAffect, govAgeAbsent = 0, govAgePlus = 0, birthDate = p.DateOfBirth == null ? (DateTime?)null : p.DateOfBirth, @@ -2132,30 +2136,34 @@ namespace BMA.EHR.Placement.Service.Controllers }).ToList(), bodySalarys = new { - profileId = string.Empty, - date = r.commandAffectDate, + profileId = p.profileId, amount = r.amount, amountSpecial = r.amountSpecial, - commandId = r.commandId, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}" : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}" : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}" : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}" : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}" : "", - position = p.positionName == null ? string.Empty : p.positionName, - positionLine = string.Empty, - positionPathSide = string.Empty, - positionExecutive = string.Empty, - positionType = p.posTypeName == null ? string.Empty : p.posTypeName, - positionLevel = p.posLevelName == null ? string.Empty : p.posLevelName, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, - isGovernment = true, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + positionExecutive = "", + positionType = p.posTypeName, + positionLevel = p.posLevelName, + commandId = r.commandId, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNo, + posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : + p.node == 3 ? $"{p.child3ShortName}" : + p.node == 2 ? $"{p.child2ShortName}" : + p.node == 1 ? $"{p.child1ShortName}" : + p.node == 0 ? $"{p.rootShortName}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.positionName, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }, bodyPosition = new { @@ -2183,11 +2191,11 @@ namespace BMA.EHR.Placement.Service.Controllers if (req.refIds.Length > 0) { profile.commandId = req.refIds[0].commandId; - profile.refCommandCode = req.refIds[0].refCommandCode; - profile.refCommandDate = req.refIds[0].commandAffectDate; - profile.refCommandName = req.refIds[0].refCommandName; + profile.refCommandCode = req.refIds[0].commandCode; + profile.refCommandDate = req.refIds[0].commandDateAffect; + profile.refCommandName = req.refIds[0].commandName; profile.refCommandNo = $"{req.refIds[0].commandNo}/{req.refIds[0].commandYear.ToThaiYear()}"; - profile.templateDoc = req.refIds[0].templateDoc; + profile.templateDoc = req.refIds[0].remark; } }); await _context.SaveChangesAsync(); @@ -2396,30 +2404,35 @@ namespace BMA.EHR.Placement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, amountSpecial = r.amountSpecial, - commandId = r.commandId, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}" : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}" : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}" : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}" : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}" : "", - position = p.positionName, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.posTypeName, positionLevel = p.posLevelName, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, posmasterId = p.posmasterId, positionId = p.positionId, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandId = r.commandId, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNo, + posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : + p.node == 3 ? $"{p.child3ShortName}" : + p.node == 2 ? $"{p.child2ShortName}" : + p.node == 1 ? $"{p.child1ShortName}" : + p.node == 0 ? $"{p.rootShortName}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.positionName, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -2631,30 +2644,35 @@ namespace BMA.EHR.Placement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, amountSpecial = r.amountSpecial, - commandId = r.commandId, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}" : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}" : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}" : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}" : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}" : "", - position = p.positionName, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.posTypeName, positionLevel = p.posLevelName, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, posmasterId = p.posmasterId, positionId = p.positionId, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandId = r.commandId, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNo, + posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : + p.node == 3 ? $"{p.child3ShortName}" : + p.node == 2 ? $"{p.child2ShortName}" : + p.node == 1 ? $"{p.child1ShortName}" : + p.node == 0 ? $"{p.rootShortName}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.positionName, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -2851,30 +2869,35 @@ namespace BMA.EHR.Placement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, amountSpecial = r.amountSpecial, - commandId = r.commandId, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}" : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}" : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}" : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}" : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}" : "", - position = p.positionName, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.posTypeName, positionLevel = p.posLevelName, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, posmasterId = p.posmasterId, positionId = p.positionId, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandId = r.commandId, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNo, + posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : + p.node == 3 ? $"{p.child3ShortName}" : + p.node == 2 ? $"{p.child2ShortName}" : + p.node == 1 ? $"{p.child1ShortName}" : + p.node == 0 ? $"{p.rootShortName}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.positionName, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 7f589e2b..2b72056f 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -678,26 +678,36 @@ namespace BMA.EHR.Placement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, - commandId = r.commandId, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.PositionNumberOld, - position = p.PositionOld, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandId = r.commandId, + orgRoot = p.rootOld, + orgChild1 = p.child1Old, + orgChild2 = p.child2Old, + orgChild3 = p.child3Old, + orgChild4 = p.child4Old, officerOrg = p.Organization, dateStart = p.DateStart, dateEnd = p.DateEnd, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNoOld, + posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : + p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : + p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : + p.child1ShortNameOld != null ? $"{p.child1ShortNameOld}" : + p.rootShortNameOld != null ? $"{p.rootShortNameOld}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.PositionOld, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -717,7 +727,7 @@ namespace BMA.EHR.Placement.Service.Controllers foreach (var profile in data) { profile.Status = "DONE"; - profile.commandNo = resultData.Count > 0 ? resultData[0].refCommandNo : null; + profile.commandNo = resultData.Count > 0 ? $"{resultData[0].commandNo}/{resultData[0].commandYear.ToThaiYear()}" : null; } await _context.SaveChangesAsync(); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 55a8c66f..a2c774c0 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -1048,8 +1048,8 @@ namespace BMA.EHR.Placement.Service.Controllers isProbation = false, isLeave = false, dateRetire = (DateTime?)null, - dateAppoint = r.commandAffectDate, - dateStart = r.commandAffectDate, + dateAppoint = r.commandDateAffect, + dateStart = r.commandDateAffect, govAgeAbsent = 0, govAgePlus = 0, birthDate = p.DateOfBirth == null ? (DateTime?)null : p.DateOfBirth, @@ -1076,29 +1076,34 @@ namespace BMA.EHR.Placement.Service.Controllers }, bodySalarys = new { - profileId = string.Empty, - date = r.commandAffectDate, + profileId = p.profileId, amount = r.amount, amountSpecial = r.amountSpecial, - commandId = r.commandId, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}" : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}" : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}" : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}" : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}" : "", - position = p.position == null ? string.Empty : p.position, - positionLine = string.Empty, - positionPathSide = string.Empty, - positionExecutive = string.Empty, - positionType = p.posTypeName == null ? string.Empty : p.posTypeName, - positionLevel = p.posLevelName == null ? string.Empty : p.posLevelName, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + positionExecutive = "", + positionType = p.posTypeName, + positionLevel = p.posLevelName, + commandId = r.commandId, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNo, + posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : + p.node == 3 ? $"{p.child3ShortName}" : + p.node == 2 ? $"{p.child2ShortName}" : + p.node == 1 ? $"{p.child1ShortName}" : + p.node == 0 ? $"{p.rootShortName}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.position, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }, bodyPosition = new { diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index 6c65ce03..53bb2d5f 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -498,29 +498,43 @@ namespace BMA.EHR.Placement.Service.Controllers var data = await _context.PlacementRepatriations .Where(x => req.refIds.Select(x => x.refId).Contains(x.Id.ToString())) .ToListAsync(); + string? _null = null; var resultData = (from p in data join r in req.refIds on p.Id.ToString() equals r.refId select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, - commandId = r.commandId, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.PositionNumberOld, - position = p.PositionOld, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandId = r.commandId, + orgRoot = p.rootOld, + orgChild1 = p.child1Old, + orgChild2 = p.child2Old, + orgChild3 = p.child3Old, + orgChild4 = p.child4Old, + officerOrg = p.Organization, + dateStart = p.Date, + dateEnd = p.DateRepatriation, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNoOld, + posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : + p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : + p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : + p.child1ShortNameOld != null ? $"{p.child1ShortNameOld}" : + p.rootShortNameOld != null ? $"{p.rootShortNameOld}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.PositionOld, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index f545dce7..83fe185e 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -876,26 +876,37 @@ namespace BMA.EHR.Placement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, amountSpecial = r.amountSpecial, - commandId = r.commandId, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.PositionNumberOld, - position = p.PositionOld, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, + commandId = r.commandId, leaveReason = "āđ‚āļ­āļ™āļ­āļ­āļ", - dateLeave = r.commandAffectDate, + dateLeave = r.commandDateAffect, isLeave = true, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + orgRoot = p.rootOld, + orgChild1 = p.child1Old, + orgChild2 = p.child2Old, + orgChild3 = p.child3Old, + orgChild4 = p.child4Old, + officerOrg = p.Organization, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNoOld, + posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : + p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : + p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : + p.child1ShortNameOld != null ? $"{p.child1ShortNameOld}" : + p.rootShortNameOld != null ? $"{p.rootShortNameOld}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.PositionOld, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; diff --git a/BMA.EHR.Placement.Service/Requests/ReportExecuteRequest.cs b/BMA.EHR.Placement.Service/Requests/ReportExecuteRequest.cs index ddfe4004..7f8e0855 100644 --- a/BMA.EHR.Placement.Service/Requests/ReportExecuteRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/ReportExecuteRequest.cs @@ -10,16 +10,17 @@ namespace BMA.EHR.Placement.Service.Requests public class ReportExecuteRequestObj { public string? refId { get; set; } - public DateTime commandAffectDate { get; set; } public string? commandNo { get; set; } - public string? commandId { get; set; } public int commandYear { get; set; } - public string? templateDoc { get; set; } + public string? commandId { get; set; } + public string? remark { get; set; } public double? amount { get; set; } public double? amountSpecial { get; set; } public double? positionSalaryAmount { get; set; } public double? mouthSalaryAmount { get; set; } - public string? refCommandCode { get; set; } - public string? refCommandName { get; set; } + public string? commandCode { get; set; } + public string? commandName { get; set; } + public DateTime commandDateAffect { get; set; } + public DateTime commandDateSign { get; set; } } } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 893ba38d..049a8629 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -701,27 +701,37 @@ namespace BMA.EHR.Retirement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, amountSpecial = r.amountSpecial, - commandId = r.commandId, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.PositionNumberOld, - position = p.PositionOld, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, isLeave = false, leaveReason = _null, dateLeave = _null, + commandId = r.commandId, isGovernment = true, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + orgRoot = p.rootOld, + orgChild1 = p.child1Old, + orgChild2 = p.child2Old, + orgChild3 = p.child3Old, + orgChild4 = p.child4Old, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNoOld, + posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : + p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : + p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : + p.child1ShortNameOld != null ? $"{p.child1ShortNameOld}" : + p.rootShortNameOld != null ? $"{p.rootShortNameOld}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.PositionOld, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -911,27 +921,37 @@ namespace BMA.EHR.Retirement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, amountSpecial = r.amountSpecial, - commandId = r.commandId, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.PositionNumberOld, - position = p.PositionOld, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, isLeave = false, leaveReason = _null, dateLeave = _null, + commandId = r.commandId, isGovernment = true, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + orgRoot = p.rootOld, + orgChild1 = p.child1Old, + orgChild2 = p.child2Old, + orgChild3 = p.child3Old, + orgChild4 = p.child4Old, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNoOld, + posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : + p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : + p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : + p.child1ShortNameOld != null ? $"{p.child1ShortNameOld}" : + p.rootShortNameOld != null ? $"{p.rootShortNameOld}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.PositionOld, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index c84639f8..531973ef 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -554,27 +554,37 @@ namespace BMA.EHR.Retirement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, - commandId = r.commandId, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.PositionNumberOld, - position = p.PositionOld, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, isLeave = true, leaveReason = "āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", - dateLeave = r.commandAffectDate, + dateLeave = r.commandDateAffect, + commandId = r.commandId, isGovernment = false, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + orgRoot = p.rootOld, + orgChild1 = p.child1Old, + orgChild2 = p.child2Old, + orgChild3 = p.child3Old, + orgChild4 = p.child4Old, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNoOld, + posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : + p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : + p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : + p.child1ShortNameOld != null ? $"{p.child1ShortNameOld}" : + p.rootShortNameOld != null ? $"{p.rootShortNameOld}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.PositionOld, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 403f3869..555dd4ca 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -2232,27 +2232,37 @@ namespace BMA.EHR.Retirement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, - commandId = r.commandId, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.PositionNumberOld, - position = p.PositionOld, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, isLeave = true, - isGovernment = false, leaveReason = "āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", - dateLeave = r.commandAffectDate, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + dateLeave = r.commandDateAffect, + commandId = r.commandId, + isGovernment = false, + orgRoot = p.rootOld, + orgChild1 = p.child1Old, + orgChild2 = p.child2Old, + orgChild3 = p.child3Old, + orgChild4 = p.child4Old, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNoOld, + posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : + p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : + p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : + p.child1ShortNameOld != null ? $"{p.child1ShortNameOld}" : + p.rootShortNameOld != null ? $"{p.rootShortNameOld}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.PositionOld, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -2421,26 +2431,37 @@ namespace BMA.EHR.Retirement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, - commandId = r.commandId, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.PositionNumberOld, - position = p.PositionOld, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, isLeave = false, leaveReason = _null, dateLeave = _null, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandId = r.commandId, + isGovernment = false, + orgRoot = p.rootOld, + orgChild1 = p.child1Old, + orgChild2 = p.child2Old, + orgChild3 = p.child3Old, + orgChild4 = p.child4Old, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNoOld, + posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : + p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : + p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : + p.child1ShortNameOld != null ? $"{p.child1ShortNameOld}" : + p.rootShortNameOld != null ? $"{p.rootShortNameOld}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.PositionOld, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 198c36f8..106f2308 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -1676,27 +1676,36 @@ namespace BMA.EHR.Retirement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, - commandId = r.commandId, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.PositionNumberOld, - position = p.PositionOld, - // positionLine = "", - // positionPathSide = "", - // positionExecutive = "", positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, isLeave = true, - isGovernment = false, leaveReason = "āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", - dateLeave = r.commandAffectDate, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + dateLeave = r.commandDateAffect, + commandId = r.commandId, + isGovernment = false, + orgRoot = p.rootOld, + orgChild1 = p.child1Old, + orgChild2 = p.child2Old, + orgChild3 = p.child3Old, + orgChild4 = p.child4Old, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNoOld, + posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : + p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : + p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : + p.child1ShortNameOld != null ? $"{p.child1ShortNameOld}" : + p.rootShortNameOld != null ? $"{p.rootShortNameOld}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.PositionOld, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1865,26 +1874,37 @@ namespace BMA.EHR.Retirement.Service.Controllers select new { profileId = p.profileId, - date = r.commandAffectDate, amount = r.amount, - commandId = r.commandId, amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - posNo = p.PositionNumberOld, - position = p.PositionOld, - positionLine = "", - positionPathSide = "", positionExecutive = "", positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, - refCommandNo = $"{r.commandNo}/{r.commandYear.ToThaiYear()}", - templateDoc = r.templateDoc, isLeave = false, leaveReason = _null, dateLeave = _null, - refCommandCode = r.refCommandCode, - refCommandName = r.refCommandName, + commandId = r.commandId, + isGovernment = false, + orgRoot = p.rootOld, + orgChild1 = p.child1Old, + orgChild2 = p.child2Old, + orgChild3 = p.child3Old, + orgChild4 = p.child4Old, + commandNo = r.commandNo, + commandYear = r.commandYear, + posNo = p.posMasterNoOld, + posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : + p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : + p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : + p.child1ShortNameOld != null ? $"{p.child1ShortNameOld}" : + p.rootShortNameOld != null ? $"{p.rootShortNameOld}" : "", + commandDateAffect = r.commandDateAffect, + commandDateSign = r.commandDateSign, + positionName = p.PositionOld, + commandCode = r.commandCode, + commandName = r.commandName, + remark = r.remark, }).ToList(); var baseAPIOrg = _configuration["API"]; diff --git a/BMA.EHR.Retirement.Service/Requests/ReportExecuteRequest.cs b/BMA.EHR.Retirement.Service/Requests/ReportExecuteRequest.cs index c90e92ca..d0b60328 100644 --- a/BMA.EHR.Retirement.Service/Requests/ReportExecuteRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/ReportExecuteRequest.cs @@ -10,16 +10,17 @@ namespace BMA.EHR.Retirement.Service.Requests public class ReportExecuteRequestObj { public string? refId { get; set; } - public DateTime commandAffectDate { get; set; } public string? commandNo { get; set; } - public string? commandId { get; set; } public int commandYear { get; set; } - public string? templateDoc { get; set; } + public string? commandId { get; set; } + public string? remark { get; set; } public double? amount { get; set; } public double? amountSpecial { get; set; } public double? positionSalaryAmount { get; set; } public double? mouthSalaryAmount { get; set; } - public string? refCommandCode { get; set; } - public string? refCommandName { get; set; } + public string? commandCode { get; set; } + public string? commandName { get; set; } + public DateTime commandDateAffect { get; set; } + public DateTime commandDateSign { get; set; } } } From 01dc27099e1182c13b3d93da223b90905b656a52 Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 21 Feb 2025 23:48:11 +0700 Subject: [PATCH 115/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B8=95?= =?UTF-8?q?=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release_Retirement.yaml | 72 +++++++++---------- .github/workflows/release_discipline.yaml | 72 +++++++++---------- .github/workflows/release_placement.yaml | 72 +++++++++---------- .../PlacementAppointmentController.cs | 10 +-- .../Controllers/PlacementController.cs | 10 +-- .../Controllers/PlacementOfficerController.cs | 2 +- .../Controllers/PlacementReceiveController.cs | 2 +- .../PlacementRepatriationController.cs | 2 +- .../PlacementTransferController.cs | 2 +- .../Controllers/RetirementOtherController.cs | 4 +- .../Controllers/RetirementOutController.cs | 2 +- .../Controllers/RetirementResignController.cs | 4 +- .../RetirementResignEmployeeController.cs | 4 +- 13 files changed, 129 insertions(+), 129 deletions(-) diff --git a/.github/workflows/release_Retirement.yaml b/.github/workflows/release_Retirement.yaml index 4d644cb3..18051f4e 100644 --- a/.github/workflows/release_Retirement.yaml +++ b/.github/workflows/release_Retirement.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - - name: Notify Discord Success - if: success() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "✅ Deployment Success!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - "color": 3066993, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/success-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Success + # if: success() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "✅ Deployment Success!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + # "color": 3066993, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/success-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} - - name: Notify Discord Failure - if: failure() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "❌ Deployment Failed!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - "color": 15158332, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/failure-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Failure + # if: failure() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "❌ Deployment Failed!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + # "color": 15158332, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/failure-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/release_discipline.yaml b/.github/workflows/release_discipline.yaml index 80639a84..ed655586 100644 --- a/.github/workflows/release_discipline.yaml +++ b/.github/workflows/release_discipline.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - - name: Notify Discord Success - if: success() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "✅ Deployment Success!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - "color": 3066993, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/success-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Success + # if: success() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "✅ Deployment Success!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + # "color": 3066993, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/success-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} - - name: Notify Discord Failure - if: failure() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "❌ Deployment Failed!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - "color": 15158332, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/failure-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Failure + # if: failure() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "❌ Deployment Failed!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + # "color": 15158332, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/failure-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/release_placement.yaml b/.github/workflows/release_placement.yaml index e1af3041..87088cc2 100644 --- a/.github/workflows/release_placement.yaml +++ b/.github/workflows/release_placement.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - - name: Notify Discord Success - if: success() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "✅ Deployment Success!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - "color": 3066993, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/success-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Success + # if: success() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "✅ Deployment Success!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + # "color": 3066993, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/success-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} - - name: Notify Discord Failure - if: failure() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "❌ Deployment Failed!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - "color": 15158332, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/failure-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Failure + # if: failure() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "❌ Deployment Failed!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + # "color": 15158332, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/failure-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 3b19dcef..e1d4d513 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -925,7 +925,7 @@ namespace BMA.EHR.Placement.Service.Controllers orgChild4 = p.child4, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNo, + posNo = p.posMasterNo?.ToString(), posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : p.node == 3 ? $"{p.child3ShortName}" : p.node == 2 ? $"{p.child2ShortName}" : @@ -1149,7 +1149,7 @@ namespace BMA.EHR.Placement.Service.Controllers orgChild4 = p.child4, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNo, + posNo = p.posMasterNo?.ToString(), posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : p.node == 3 ? $"{p.child3ShortName}" : p.node == 2 ? $"{p.child2ShortName}" : @@ -1363,7 +1363,7 @@ namespace BMA.EHR.Placement.Service.Controllers orgChild4 = p.child4, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNo, + posNo = p.posMasterNo?.ToString(), posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : p.node == 3 ? $"{p.child3ShortName}" : p.node == 2 ? $"{p.child2ShortName}" : @@ -1582,7 +1582,7 @@ namespace BMA.EHR.Placement.Service.Controllers orgChild4 = p.child4, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNo, + posNo = p.posMasterNo?.ToString(), posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : p.node == 3 ? $"{p.child3ShortName}" : p.node == 2 ? $"{p.child2ShortName}" : @@ -1818,7 +1818,7 @@ namespace BMA.EHR.Placement.Service.Controllers orgChild4 = p.child4, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNo, + posNo = p.posMasterNo?.ToString(), posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : p.node == 3 ? $"{p.child3ShortName}" : p.node == 2 ? $"{p.child2ShortName}" : diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 8394ebdf..8fe4064d 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1825,7 +1825,7 @@ namespace BMA.EHR.Placement.Service.Controllers orgChild4 = p.child4, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNo, + posNo = p.posMasterNo?.ToString(), posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : p.node == 3 ? $"{p.child3ShortName}" : p.node == 2 ? $"{p.child2ShortName}" : @@ -2152,7 +2152,7 @@ namespace BMA.EHR.Placement.Service.Controllers orgChild4 = p.child4, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNo, + posNo = p.posMasterNo?.ToString(), posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : p.node == 3 ? $"{p.child3ShortName}" : p.node == 2 ? $"{p.child2ShortName}" : @@ -2421,7 +2421,7 @@ namespace BMA.EHR.Placement.Service.Controllers orgChild4 = p.child4, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNo, + posNo = p.posMasterNo?.ToString(), posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : p.node == 3 ? $"{p.child3ShortName}" : p.node == 2 ? $"{p.child2ShortName}" : @@ -2661,7 +2661,7 @@ namespace BMA.EHR.Placement.Service.Controllers orgChild4 = p.child4, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNo, + posNo = p.posMasterNo?.ToString(), posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : p.node == 3 ? $"{p.child3ShortName}" : p.node == 2 ? $"{p.child2ShortName}" : @@ -2886,7 +2886,7 @@ namespace BMA.EHR.Placement.Service.Controllers orgChild4 = p.child4, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNo, + posNo = p.posMasterNo?.ToString(), posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : p.node == 3 ? $"{p.child3ShortName}" : p.node == 2 ? $"{p.child2ShortName}" : diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 2b72056f..14fafef4 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -696,7 +696,7 @@ namespace BMA.EHR.Placement.Service.Controllers dateEnd = p.DateEnd, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNoOld, + posNo = p.posMasterNoOld?.ToString(), posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index a2c774c0..beb6fe35 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -1092,7 +1092,7 @@ namespace BMA.EHR.Placement.Service.Controllers orgChild4 = p.child4, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNo, + posNo = p.posMasterNo?.ToString(), posNoAbb = p.node == 4 ? $"{p.child4ShortName}" : p.node == 3 ? $"{p.child3ShortName}" : p.node == 2 ? $"{p.child2ShortName}" : diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index 53bb2d5f..6e9a178f 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -523,7 +523,7 @@ namespace BMA.EHR.Placement.Service.Controllers dateEnd = p.DateRepatriation, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNoOld, + posNo = p.posMasterNoOld?.ToString(), posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index 83fe185e..c1421929 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -895,7 +895,7 @@ namespace BMA.EHR.Placement.Service.Controllers officerOrg = p.Organization, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNoOld, + posNo = p.posMasterNoOld?.ToString(), posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 049a8629..fd0e8af2 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -720,7 +720,7 @@ namespace BMA.EHR.Retirement.Service.Controllers orgChild4 = p.child4Old, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNoOld, + posNo = p.posMasterNoOld?.ToString(), posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : @@ -940,7 +940,7 @@ namespace BMA.EHR.Retirement.Service.Controllers orgChild4 = p.child4Old, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNoOld, + posNo = p.posMasterNoOld?.ToString(), posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index 531973ef..fa573c93 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -573,7 +573,7 @@ namespace BMA.EHR.Retirement.Service.Controllers orgChild4 = p.child4Old, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNoOld, + posNo = p.posMasterNoOld?.ToString(), posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 555dd4ca..2db7d80b 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -2251,7 +2251,7 @@ namespace BMA.EHR.Retirement.Service.Controllers orgChild4 = p.child4Old, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNoOld, + posNo = p.posMasterNoOld?.ToString(), posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : @@ -2450,7 +2450,7 @@ namespace BMA.EHR.Retirement.Service.Controllers orgChild4 = p.child4Old, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNoOld, + posNo = p.posMasterNoOld?.ToString(), posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 106f2308..c1e97428 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -1694,7 +1694,7 @@ namespace BMA.EHR.Retirement.Service.Controllers orgChild4 = p.child4Old, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNoOld, + posNo = p.posMasterNoOld?.ToString(), posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : @@ -1893,7 +1893,7 @@ namespace BMA.EHR.Retirement.Service.Controllers orgChild4 = p.child4Old, commandNo = r.commandNo, commandYear = r.commandYear, - posNo = p.posMasterNoOld, + posNo = p.posMasterNoOld?.ToString(), posNoAbb = p.child4ShortNameOld != null ? $"{p.child4ShortNameOld}" : p.child3ShortNameOld != null ? $"{p.child3ShortNameOld}" : p.child2ShortNameOld != null ? $"{p.child2ShortNameOld}" : From 35c6bc97a1867ea248042649513e928065d6ff74 Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 24 Feb 2025 10:08:16 +0700 Subject: [PATCH 116/879] noti build --- .github/workflows/release_Retirement.yaml | 72 +++++++++++------------ .github/workflows/release_discipline.yaml | 72 +++++++++++------------ .github/workflows/release_placement.yaml | 72 +++++++++++------------ 3 files changed, 108 insertions(+), 108 deletions(-) diff --git a/.github/workflows/release_Retirement.yaml b/.github/workflows/release_Retirement.yaml index 18051f4e..4d644cb3 100644 --- a/.github/workflows/release_Retirement.yaml +++ b/.github/workflows/release_Retirement.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - # - name: Notify Discord Success - # if: success() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "✅ Deployment Success!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - # "color": 3066993, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/success-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Success + if: success() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "✅ Deployment Success!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + "color": 3066993, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/success-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} - # - name: Notify Discord Failure - # if: failure() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "❌ Deployment Failed!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - # "color": 15158332, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/failure-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Failure + if: failure() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "❌ Deployment Failed!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + "color": 15158332, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/failure-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/release_discipline.yaml b/.github/workflows/release_discipline.yaml index ed655586..80639a84 100644 --- a/.github/workflows/release_discipline.yaml +++ b/.github/workflows/release_discipline.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - # - name: Notify Discord Success - # if: success() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "✅ Deployment Success!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - # "color": 3066993, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/success-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Success + if: success() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "✅ Deployment Success!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + "color": 3066993, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/success-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} - # - name: Notify Discord Failure - # if: failure() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "❌ Deployment Failed!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - # "color": 15158332, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/failure-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Failure + if: failure() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "❌ Deployment Failed!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + "color": 15158332, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/failure-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/release_placement.yaml b/.github/workflows/release_placement.yaml index 87088cc2..e1af3041 100644 --- a/.github/workflows/release_placement.yaml +++ b/.github/workflows/release_placement.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - # - name: Notify Discord Success - # if: success() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "✅ Deployment Success!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - # "color": 3066993, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/success-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Success + if: success() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "✅ Deployment Success!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + "color": 3066993, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/success-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} - # - name: Notify Discord Failure - # if: failure() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "❌ Deployment Failed!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - # "color": 15158332, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/failure-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Failure + if: failure() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "❌ Deployment Failed!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + "color": 15158332, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/failure-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} From 19ff8f2d6535fa2a9cf9ed72ca64cb08e2005695 Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 25 Feb 2025 11:03:50 +0700 Subject: [PATCH 117/879] fix issue #1194 --- .../Controllers/RetirementResignEmployeeController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index c1e97428..51090c8b 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -1612,7 +1612,7 @@ namespace BMA.EHR.Retirement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", PositionName = p.PositionOld ?? "", Organization = p.OrganizationPositionOld ?? "", - PositionLevel = p.PositionLevelOld ?? "", + PositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld.ToThaiNumber(), PositionType = p.PositionTypeOld ?? "", PositionNumber = p.PositionNumberOld == null ? "" : p.PositionNumberOld.ToThaiNumber(), ActiveDate = p.ActiveDate == null ? "" : p.ActiveDate.Value.ToThaiShortDate2().ToThaiNumber(), From 3882e11454ff38917d13d2cce177007df4679342 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 6 Mar 2025 10:24:56 +0700 Subject: [PATCH 118/879] fix and add filter leaveRequest --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 8 ++++++-- .../DTOs/LeaveRequest/GetLeaveCancelRequestResultDto.cs | 2 ++ .../DTOs/LeaveRequest/GetLeaveRequestForAdminDto.cs | 3 +++ .../DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs | 2 ++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index ffbb104b..c919d7cd 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1378,6 +1378,7 @@ namespace BMA.EHR.Leave.Service.Controllers LeaveTypeId = item.Type.Id, LeaveTypeName = item.Type.Name, FullName = $"{item.Prefix}{item.FirstName} {item.LastName}", + ProfileType = item.ProfileType ?? "-", DateSendLeave = item.CreatedAt.Date, Status = item.LeaveStatus, CitizenId = item.CitizenId ?? "", @@ -1396,7 +1397,8 @@ namespace BMA.EHR.Leave.Service.Controllers if (req.Keyword != "") result = result.Where(x => x.FullName.Contains(req.Keyword)).ToList(); - + if (!string.IsNullOrEmpty(req.ProfileType) && req.ProfileType.ToUpper() != "ALL") + result = result.Where(x => x.ProfileType.ToUpper().Contains(req.ProfileType.ToUpper())).ToList(); var pageResult = result.Skip((req.Page - 1) * req.PageSize).Take(req.PageSize).ToList(); return Success(new { data = pageResult, total = result.Count }); @@ -1487,6 +1489,7 @@ namespace BMA.EHR.Leave.Service.Controllers Id = item.Id, LeaveTypeId = item.Type.Id, LeaveTypeName = item.Type.Name, + ProfileType = item.ProfileType ?? "-", FullName = $"{item.Prefix}{item.FirstName} {item.LastName}", DateSendLeave = item.CreatedAt.Date, Status = item.LeaveCancelStatus ?? "" @@ -1496,7 +1499,8 @@ namespace BMA.EHR.Leave.Service.Controllers if (req.Keyword != "") result = result.Where(x => x.FullName.Contains(req.Keyword)).ToList(); - + if (!string.IsNullOrEmpty(req.ProfileType) && req.ProfileType.ToUpper() != "ALL") + result = result.Where(x => x.ProfileType.ToUpper().Contains(req.ProfileType.ToUpper())).ToList(); var pageResult = result.Skip((req.Page - 1) * req.PageSize).Take(req.PageSize).ToList(); return Success(new { data = pageResult, total = result.Count }); diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCancelRequestResultDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCancelRequestResultDto.cs index 20e5510b..a8023f5e 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCancelRequestResultDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCancelRequestResultDto.cs @@ -13,5 +13,7 @@ public DateTime DateSendLeave { get; set; } public string Status { get; set; } + + public string ProfileType { get; set; } = string.Empty; } } diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminDto.cs index f1bb40a8..2a8e4acf 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminDto.cs @@ -25,5 +25,8 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public DateTime StartDate { get; set; } = DateTime.MinValue; public DateTime EndDate { get; set; } = DateTime.MinValue; + + public string ProfileType { get; set; } = string.Empty; + } } diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs index 97ce6b64..b5873f22 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs @@ -31,5 +31,7 @@ public string LeaveRange { get; set; } = string.Empty; public bool? HajjDayStatus { get; set; } + + public string? ProfileType { get; set; } } } From e028dc5cf5b06ae4b06dc29f4b7fb9d8f8cb2202 Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 7 Mar 2025 14:49:27 +0700 Subject: [PATCH 119/879] =?UTF-8?q?report=20=E0=B8=A5=E0=B8=87=E0=B9=80?= =?UTF-8?q?=E0=B8=A7=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/LeaveReportController.cs | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 16e0c2e8..0fa71312 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -808,7 +808,7 @@ namespace BMA.EHR.Leave.Service.Controllers var therapyDay = leaveDays.FirstOrDefault(x => x.KeycloakUserId == keycloakUserId && x.LeaveTypeCode == "LV-011"); var therapyDayCount = therapyDay != null ? therapyDay.SumLeaveDay : 0; - var timeStamps = await _processUserTimeStampRepository.GetTimeStampHistoryByRangeForUserAsync(p.Keycloak ?? Guid.Empty,req.StartDate,req.EndDate); + var timeStamps = await _processUserTimeStampRepository.GetTimeStampHistoryByRangeForUserAsync(p.Keycloak ?? Guid.Empty, req.StartDate, req.EndDate); var defaultRound = await _dutyTimeRepository.GetDefaultAsync(); if (defaultRound == null) @@ -822,27 +822,27 @@ namespace BMA.EHR.Leave.Service.Controllers var duty = userRound ?? defaultRound; - /* var processTimeStamps = timeStamps - .Select(d => new - { - d.Id, - CheckInStatus = DateTime.Parse(d.CheckIn.ToString("yyyy-MM-dd HH:mm")) > - DateTime.Parse($"{d.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.StartTimeMorning}") ? - "LATE" : - "NORMAL", - CheckOutStatus = d.CheckOut == null ? "" : - DateTime.Parse(d.CheckOut.Value.ToString("yyyy-MM-dd HH:mm")) < - DateTime.Parse($"{d.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}") ? - "LATE" : - DateTime.Parse(d.CheckOut.Value.ToString("yyyy-MM-dd HH:mm")) < - DateTime.Parse($"{d.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.EndTimeMorning}") ? - "ABSENT" : - "NORMAL", - });*/ + /* var processTimeStamps = timeStamps + .Select(d => new + { + d.Id, + CheckInStatus = DateTime.Parse(d.CheckIn.ToString("yyyy-MM-dd HH:mm")) > + DateTime.Parse($"{d.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.StartTimeMorning}") ? + "LATE" : + "NORMAL", + CheckOutStatus = d.CheckOut == null ? "" : + DateTime.Parse(d.CheckOut.Value.ToString("yyyy-MM-dd HH:mm")) < + DateTime.Parse($"{d.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}") ? + "LATE" : + DateTime.Parse(d.CheckOut.Value.ToString("yyyy-MM-dd HH:mm")) < + DateTime.Parse($"{d.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.EndTimeMorning}") ? + "ABSENT" : + "NORMAL", + });*/ /*var absentCount = processTimeStamps.Count(x => x.CheckOutStatus == "ABSENT"); var lateCount = processTimeStamps.Count(x => x.CheckInStatus == "LATE");*/ - + var absentCount = timeStamps.Count(d => d.CheckOutStatus == "ABSENT"); // āļ™āļąāļšāļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĄāļĩ CheckOutStatus == "ABSENT" var lateCount = timeStamps.Count(d => @@ -949,8 +949,8 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var profile = new List(); - profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficerRetireFilter(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.isRetirement??true); - + profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficerRetireFilter(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.isRetirement ?? true); + // get leave day var leaveDays = await _leaveRequestRepository.GetSumApproveLeaveByTypeAndRange(req.StartDate, req.EndDate); var leaveTypes = await _leaveTypeRepository.GetAllAsync(); @@ -1154,8 +1154,8 @@ namespace BMA.EHR.Leave.Service.Controllers for (DateTime i = req.StartDate.Date; i <= req.EndDate.Date; i = i.AddDays(1)) { - if (!excludeDates.Contains(i)) - dateList.Add(i); + // if (!excludeDates.Contains(i)) + dateList.Add(i); } var employees = new List(); @@ -1227,7 +1227,7 @@ namespace BMA.EHR.Leave.Service.Controllers if (timeStamps.CheckOut != null) { if (timeStamps.CheckOutStatus == "ABSENT") - remarkStr = "āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ" + (!timeStamps.IsLocationCheckOut ? $" (āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆ:{ timeStamps.CheckOutLocationName })".Trim() : "") ; + remarkStr = "āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ" + (!timeStamps.IsLocationCheckOut ? $" (āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆ:{timeStamps.CheckOutLocationName})".Trim() : ""); else if (timeStamps.CheckInStatus == "ABSENT") remarkStr = "āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ" + (!timeStamps.IsLocationCheckIn ? $" (āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆ:{timeStamps.CheckInLocationName})".Trim() : ""); else if (timeStamps.CheckInStatus == "LATE") From 22f4fce08041ad41ea8d5384f65a993aa0325477 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 7 Mar 2025 15:04:55 +0700 Subject: [PATCH 120/879] change cron timezone --- BMA.EHR.Leave/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Program.cs b/BMA.EHR.Leave/Program.cs index 44bdd418..3415f8f5 100644 --- a/BMA.EHR.Leave/Program.cs +++ b/BMA.EHR.Leave/Program.cs @@ -167,7 +167,7 @@ var app = builder.Build(); var manager = new RecurringJobManager(); if (manager != null) { - manager.AddOrUpdate("āļ›āļĢāļąāļšāļ›āļĢāļļāļ‡āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļ—āļģāļ‡āļēāļ™", Job.FromExpression(x => x.UpdateUserDutyTime()), Cron.Daily(1, 0), TimeZoneInfo.Local); + manager.AddOrUpdate("āļ›āļĢāļąāļšāļ›āļĢāļļāļ‡āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļ—āļģāļ‡āļēāļ™", Job.FromExpression(x => x.UpdateUserDutyTime()), "0 1 * * *", TimeZoneInfo.FindSystemTimeZoneById("Asia/Bangkok")); } // apply migrations From b96f49bd54f947a6a85362ed00fc11aa8c8c78c7 Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 7 Mar 2025 22:42:58 +0700 Subject: [PATCH 121/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?=E0=B8=87=E0=B8=87=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Extensions/DateTimeExtension.cs | 16 ++++++ .../Controllers/LeaveReportController.cs | 54 ++++++++++++++----- 2 files changed, 56 insertions(+), 14 deletions(-) diff --git a/BMA.EHR.Domain/Extensions/DateTimeExtension.cs b/BMA.EHR.Domain/Extensions/DateTimeExtension.cs index 18f03079..27ebc5a8 100644 --- a/BMA.EHR.Domain/Extensions/DateTimeExtension.cs +++ b/BMA.EHR.Domain/Extensions/DateTimeExtension.cs @@ -408,6 +408,22 @@ namespace BMA.EHR.Domain.Extensions public int days { get; set; } } + // āđāļ›āļĨāļ‡āļˆāļēāļ DayOfWeek āđ€āļ›āđ‡āļ™āļ āļēāļĐāļēāđ„āļ—āļĒ + public static string GetThaiDayOfWeek(this DateTime date) + { + return date.DayOfWeek switch + { + DayOfWeek.Sunday => "āļ­āļēāļ—āļīāļ•āļĒāđŒ", + DayOfWeek.Monday => "āļˆāļąāļ™āļ—āļĢāđŒ", + DayOfWeek.Tuesday => "āļ­āļąāļ‡āļ„āļēāļĢ", + DayOfWeek.Wednesday => "āļžāļļāļ˜", + DayOfWeek.Thursday => "āļžāļĪāļŦāļąāļŠāļšāļ”āļĩ", + DayOfWeek.Friday => "āļĻāļļāļāļĢāđŒ", + DayOfWeek.Saturday => "āđ€āļŠāļēāļĢāđŒ", + _ => "āđ„āļĄāđˆāļ—āļĢāļēāļš" + }; + } + #endregion #endregion diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 0fa71312..33198b05 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -71,6 +71,12 @@ namespace BMA.EHR.Leave.Service.Controllers _httpContextAccessor = httpContextAccessor; _permission = permission; } + private class LoopDate + { + public DateTime date { get; set; } + + public bool isHoliday { get; set; } + } #endregion @@ -1150,12 +1156,25 @@ namespace BMA.EHR.Leave.Service.Controllers var weekend = _holidayRepository.GetWeekEnd(req.StartDate.Date, req.EndDate.Date); var excludeDates = holidays.Union(weekend).ToList(); - var dateList = new List(); - + var dateList = new List(); for (DateTime i = req.StartDate.Date; i <= req.EndDate.Date; i = i.AddDays(1)) { - // if (!excludeDates.Contains(i)) - dateList.Add(i); + if (!excludeDates.Contains(i)) + { + dateList.Add(new LoopDate + { + date = i, + isHoliday = true, + }); + } + else + { + dateList.Add(new LoopDate + { + date = i, + isHoliday = true, + }); + } } var employees = new List(); @@ -1174,7 +1193,7 @@ namespace BMA.EHR.Leave.Service.Controllers { var keycloakUserId = p.Keycloak ?? Guid.Empty; - var timeStamps = await _processUserTimeStampRepository.GetTimestampByDateAsync(keycloakUserId, dd); + var timeStamps = await _processUserTimeStampRepository.GetTimestampByDateAsync(keycloakUserId, dd.date); var fullName = $"{p.Prefix}{p.FirstName} {p.LastName}"; // _userProfileRepository.GetUserFullName(keycloakUserId, AccessToken); @@ -1191,7 +1210,7 @@ namespace BMA.EHR.Leave.Service.Controllers var duty = userRound ?? defaultRound; // check āļ§āļąāļ™āļĨāļēāļ‚āļ­āļ‡āđāļ•āđˆāļĨāļ°āļ„āļ™ - var leaveReq = await _leaveRequestRepository.GetLeavePeriodAsync(keycloakUserId, dd); + var leaveReq = await _leaveRequestRepository.GetLeavePeriodAsync(keycloakUserId, dd.date); var remarkStr = string.Empty; if (leaveReq != null) @@ -1217,8 +1236,14 @@ namespace BMA.EHR.Leave.Service.Controllers { if (timeStamps == null) { - if (dd <= DateTime.Now.Date) + if (dd.date <= DateTime.Now.Date) + { remarkStr = "āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"; + if (dd.isHoliday == true) + { + remarkStr = "āļ§āļąāļ™āļŦāļĒāļļāļ”"; + } + } else remarkStr = ""; } else @@ -1266,10 +1291,11 @@ namespace BMA.EHR.Leave.Service.Controllers $"{timeStamps.CheckOut.Value.ToString("HH:mm")} āļ™." : "", remark = remarkStr, - checkInDate = timeStamps == null ? dd.Date.ToThaiFullDate2().ToThaiNumber() : timeStamps.CheckIn.Date.ToThaiFullDate2().ToThaiNumber(), - checkedOutDate = timeStamps == null ? dd.Date.ToThaiFullDate2().ToThaiNumber() : + date = timeStamps == null ? dd.date.Date : timeStamps.CheckIn.Date, + checkInDate = timeStamps == null ? dd.date.Date.ToThaiFullDate2() : timeStamps.CheckIn.Date.ToThaiFullDate2(), + checkedOutDate = timeStamps == null ? dd.date.Date.ToThaiFullDate2() : timeStamps.CheckOut != null ? - timeStamps.CheckOut.Value.ToThaiFullDate2().ToThaiNumber() : + timeStamps.CheckOut.Value.ToThaiFullDate2() : "", }; @@ -1307,10 +1333,10 @@ namespace BMA.EHR.Leave.Service.Controllers } } - var enddate = req.EndDate.Date == req.StartDate.Date ? "" : $" - {req.EndDate.Date.ToThaiShortDate().ToThaiNumber()}"; + var enddate = req.EndDate.Date == req.StartDate.Date ? "" : $" - {req.EndDate.Date.ToThaiShortDate()}"; var item = new { - dateTimeStamp = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {req.StartDate.Date.ToThaiShortDate().ToThaiNumber()}{enddate}", + dateTimeStamp = $"āļ“ āļ§āļąāļ™{req.StartDate.Date.GetThaiDayOfWeek()} āļ—āļĩāđˆ {req.StartDate.Date.ToThaiShortDate()}{enddate}", organizationName = profile?.FirstOrDefault()?.Oc ?? "", officerTotal = profile.Count, workTotal = workTotal, @@ -1320,9 +1346,9 @@ namespace BMA.EHR.Leave.Service.Controllers wfhTotal = wfhTotal, seminarTotal = seminarTotal, studyTotal = studyTotal, - employees = employees + employees = employees.OrderBy(x => x.date).ToList() }; - + //āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļ var result = new { template = "TimeStamp", From 3b95c4d2d1ae75185765eee92b2f66f3594ba92d Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 7 Mar 2025 23:30:43 +0700 Subject: [PATCH 122/879] report leave sort --- .github/workflows/release_leave.yaml | 72 +++++++++---------- .../Controllers/LeaveReportController.cs | 34 +++++++-- 2 files changed, 64 insertions(+), 42 deletions(-) diff --git a/.github/workflows/release_leave.yaml b/.github/workflows/release_leave.yaml index b017222d..a354557f 100644 --- a/.github/workflows/release_leave.yaml +++ b/.github/workflows/release_leave.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - - name: Notify Discord Success - if: success() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "✅ Deployment Success!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - "color": 3066993, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/success-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Success + # if: success() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "✅ Deployment Success!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + # "color": 3066993, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/success-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} - - name: Notify Discord Failure - if: failure() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "❌ Deployment Failed!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - "color": 15158332, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/failure-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Failure + # if: failure() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "❌ Deployment Failed!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + # "color": 15158332, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/failure-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 33198b05..509917c9 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -77,6 +77,22 @@ namespace BMA.EHR.Leave.Service.Controllers public bool isHoliday { get; set; } } + private class DateResultReport + { + public int no { get; set; } + + public string fullName { get; set; } + public string dutyTimeName { get; set; } + public string checkInLocation { get; set; } + public string checkInTime { get; set; } + public string checkOutLocation { get; set; } + public string checkOutTime { get; set; } + public string remark { get; set; } + public string checkInDate { get; set; } + public string checkedOutDate { get; set; } + public DateTime? checkInTimeRaw { get; set; } + public DateTime? checkOutTimeRaw { get; set; } + } #endregion @@ -1159,7 +1175,7 @@ namespace BMA.EHR.Leave.Service.Controllers var dateList = new List(); for (DateTime i = req.StartDate.Date; i <= req.EndDate.Date; i = i.AddDays(1)) { - if (!excludeDates.Contains(i)) + if (excludeDates.Contains(i)) { dateList.Add(new LoopDate { @@ -1172,12 +1188,12 @@ namespace BMA.EHR.Leave.Service.Controllers dateList.Add(new LoopDate { date = i, - isHoliday = true, + isHoliday = false, }); } } - var employees = new List(); + var employees = new List(); var count = 1; var restTotal = 0; @@ -1278,7 +1294,7 @@ namespace BMA.EHR.Leave.Service.Controllers } } - var emp = new + var emp = new DateResultReport { no = count, fullName = fullName, @@ -1291,12 +1307,13 @@ namespace BMA.EHR.Leave.Service.Controllers $"{timeStamps.CheckOut.Value.ToString("HH:mm")} āļ™." : "", remark = remarkStr, - date = timeStamps == null ? dd.date.Date : timeStamps.CheckIn.Date, checkInDate = timeStamps == null ? dd.date.Date.ToThaiFullDate2() : timeStamps.CheckIn.Date.ToThaiFullDate2(), checkedOutDate = timeStamps == null ? dd.date.Date.ToThaiFullDate2() : timeStamps.CheckOut != null ? timeStamps.CheckOut.Value.ToThaiFullDate2() : "", + checkInTimeRaw = timeStamps?.CheckIn, + checkOutTimeRaw = timeStamps?.CheckOut, }; if (timeStamps != null) @@ -1332,6 +1349,11 @@ namespace BMA.EHR.Leave.Service.Controllers count++; } } + employees = employees.OrderBy(x => x.checkInTimeRaw ?? DateTime.MaxValue).ThenBy(x => x.checkOutTimeRaw ?? DateTime.MaxValue).ToList(); + for (int i = 0; i < employees.Count; i++) + { + employees[i].no = i + 1; + } var enddate = req.EndDate.Date == req.StartDate.Date ? "" : $" - {req.EndDate.Date.ToThaiShortDate()}"; var item = new @@ -1346,7 +1368,7 @@ namespace BMA.EHR.Leave.Service.Controllers wfhTotal = wfhTotal, seminarTotal = seminarTotal, studyTotal = studyTotal, - employees = employees.OrderBy(x => x.date).ToList() + employees = employees }; //āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļ var result = new From 8980c4a2ee163b6b70e8f655f320b9ec067169fc Mon Sep 17 00:00:00 2001 From: kittapath Date: Sat, 8 Mar 2025 00:35:47 +0700 Subject: [PATCH 123/879] on noti leave --- .github/workflows/release_leave.yaml | 72 ++++++++++++++-------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/release_leave.yaml b/.github/workflows/release_leave.yaml index a354557f..b017222d 100644 --- a/.github/workflows/release_leave.yaml +++ b/.github/workflows/release_leave.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - # - name: Notify Discord Success - # if: success() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "✅ Deployment Success!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - # "color": 3066993, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/success-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Success + if: success() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "✅ Deployment Success!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + "color": 3066993, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/success-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} - # - name: Notify Discord Failure - # if: failure() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "❌ Deployment Failed!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - # "color": 15158332, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/failure-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Failure + if: failure() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "❌ Deployment Failed!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + "color": 15158332, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/failure-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} From 772c9482aa3202435806eaabd1fd4c30fa5da2b8 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Sat, 8 Mar 2025 10:53:24 +0700 Subject: [PATCH 124/879] add timezone in docker container and force before hangfire start --- BMA.EHR.Leave/Dockerfile | 7 +- BMA.EHR.Leave/Program.cs | 270 ++++++++++++++++++++------------------- 2 files changed, 143 insertions(+), 134 deletions(-) diff --git a/BMA.EHR.Leave/Dockerfile b/BMA.EHR.Leave/Dockerfile index 3c211ab3..2e851b2c 100644 --- a/BMA.EHR.Leave/Dockerfile +++ b/BMA.EHR.Leave/Dockerfile @@ -1,6 +1,11 @@ -#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. +ïŧŋ#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base + +# āļ•āļąāđ‰āļ‡āļ„āđˆāļē TimeZone āđƒāļ™ Container +ENV TZ=Asia/Bangkok +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + WORKDIR /app EXPOSE 80 EXPOSE 443 diff --git a/BMA.EHR.Leave/Program.cs b/BMA.EHR.Leave/Program.cs index 3415f8f5..82ae3aea 100644 --- a/BMA.EHR.Leave/Program.cs +++ b/BMA.EHR.Leave/Program.cs @@ -24,163 +24,167 @@ using BMA.EHR.Application.Repositories.Leaves.TimeAttendants; using BMA.EHR.Leave.Service.Extensions; var builder = WebApplication.CreateBuilder(args); +// āļ•āļąāđ‰āļ‡ TimeZone āđ€āļ›āđ‡āļ™ Asia/Bangkok āđƒāļ™āđ‚āļ„āđ‰āļ” +var bangkokTimeZone = TimeZoneInfo.FindSystemTimeZoneById("Asia/Bangkok"); +TimeZoneInfo.ClearCachedData(); + + +var issuer = builder.Configuration["Jwt:Issuer"]; +var key = builder.Configuration["Jwt:Key"]; + + +IdentityModelEventSource.ShowPII = true; + +builder.Services.AddHttpContextAccessor(); + +builder.Services.AddApiVersioning(opt => { - var issuer = builder.Configuration["Jwt:Issuer"]; - var key = builder.Configuration["Jwt:Key"]; + opt.DefaultApiVersion = new ApiVersion(1, 0); + opt.AssumeDefaultVersionWhenUnspecified = true; + opt.ReportApiVersions = true; + opt.ApiVersionReader = ApiVersionReader.Combine(new UrlSegmentApiVersionReader(), + new HeaderApiVersionReader("x-api-version"), + new MediaTypeApiVersionReader("x-api-version")); +}); +builder.Services.AddVersionedApiExplorer(setup => +{ + setup.GroupNameFormat = "'v'VVV"; + setup.SubstituteApiVersionInUrl = true; +}); - IdentityModelEventSource.ShowPII = true; +builder.Services.AddEndpointsApiExplorer(); - builder.Services.AddHttpContextAccessor(); - - builder.Services.AddApiVersioning(opt => +// Authorization +builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJwtBearer(opt => +{ + opt.SaveToken = true; + opt.RequireHttpsMetadata = false; //false for dev + opt.Authority = issuer; + opt.TokenValidationParameters = new() { - opt.DefaultApiVersion = new ApiVersion(1, 0); - opt.AssumeDefaultVersionWhenUnspecified = true; - opt.ReportApiVersions = true; - opt.ApiVersionReader = ApiVersionReader.Combine(new UrlSegmentApiVersionReader(), - new HeaderApiVersionReader("x-api-version"), - new MediaTypeApiVersionReader("x-api-version")); - }); + ValidateIssuer = true, + ValidateAudience = false, + ValidateLifetime = true, + ValidateIssuerSigningKey = true, + ValidIssuer = issuer, + IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(key)) + }; +}); +builder.Services.AddAuthorization(); - builder.Services.AddVersionedApiExplorer(setup => - { - setup.GroupNameFormat = "'v'VVV"; - setup.SubstituteApiVersionInUrl = true; - }); +// use serilog +ConfigureLogs(); +builder.Host.UseSerilog(); - builder.Services.AddEndpointsApiExplorer(); - - // Authorization - builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJwtBearer(opt => - { - opt.SaveToken = true; - opt.RequireHttpsMetadata = false; //false for dev - opt.Authority = issuer; - opt.TokenValidationParameters = new() - { - ValidateIssuer = true, - ValidateAudience = false, - ValidateLifetime = true, - ValidateIssuerSigningKey = true, - ValidIssuer = issuer, - IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(key)) - }; - }); - builder.Services.AddAuthorization(); - - // use serilog - ConfigureLogs(); - builder.Host.UseSerilog(); - - // Add config CORS - builder.Services.AddCors(options => options.AddDefaultPolicy(builder => - { - builder - .AllowAnyOrigin() - .AllowAnyMethod() - .AllowAnyHeader() - .SetIsOriginAllowedToAllowWildcardSubdomains(); - })); +// Add config CORS +builder.Services.AddCors(options => options.AddDefaultPolicy(builder => +{ + builder + .AllowAnyOrigin() + .AllowAnyMethod() + .AllowAnyHeader() + .SetIsOriginAllowedToAllowWildcardSubdomains(); +})); - // Add services to the container. - builder.Services.AddApplication(); - builder.Services.AddLeaveApplication(); - builder.Services.AddPersistence(builder.Configuration); - builder.Services.AddLeavePersistence(builder.Configuration); +// Add services to the container. +builder.Services.AddApplication(); +builder.Services.AddLeaveApplication(); +builder.Services.AddPersistence(builder.Configuration); +builder.Services.AddLeavePersistence(builder.Configuration); - builder.Services.AddHttpClient(); +builder.Services.AddHttpClient(); - builder.Services.AddControllers(options => - { - options.SuppressAsyncSuffixInActionNames = false; - }) - .AddNewtonsoftJson(x => x.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore); +builder.Services.AddControllers(options => +{ + options.SuppressAsyncSuffixInActionNames = false; +}) +.AddNewtonsoftJson(x => x.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore); - builder.Services.AddSwaggerGen(); - builder.Services.ConfigureOptions(); +builder.Services.AddSwaggerGen(); +builder.Services.ConfigureOptions(); - builder.Services.AddHealthChecks(); +builder.Services.AddHealthChecks(); - builder.Services.AddRabbitMqConnectionPooling(builder.Configuration); +builder.Services.AddRabbitMqConnectionPooling(builder.Configuration); - // Add Hangfire services. - var defaultConnection = builder.Configuration.GetConnectionString("DefaultConnection"); +// Add Hangfire services. +var defaultConnection = builder.Configuration.GetConnectionString("DefaultConnection"); + +builder.Services.AddHangfire(configuration => configuration + .SetDataCompatibilityLevel(CompatibilityLevel.Version_170) + .UseSimpleAssemblyNameTypeSerializer() + .UseRecommendedSerializerSettings() + .UseStorage( + new MySqlStorage( + defaultConnection, + new MySqlStorageOptions + { + TransactionIsolationLevel = IsolationLevel.ReadCommitted, + QueuePollInterval = TimeSpan.FromSeconds(15), + JobExpirationCheckInterval = TimeSpan.FromHours(1), + CountersAggregateInterval = TimeSpan.FromMinutes(5), + PrepareSchemaIfNecessary = true, + DashboardJobListLimit = 50000, + TransactionTimeout = TimeSpan.FromMinutes(1), + TablesPrefix = "Hangfire" + }))); +builder.Services.AddHangfireServer(); - builder.Services.AddHangfire(configuration => configuration - .SetDataCompatibilityLevel(CompatibilityLevel.Version_170) - .UseSimpleAssemblyNameTypeSerializer() - .UseRecommendedSerializerSettings() - .UseStorage( - new MySqlStorage( - defaultConnection, - new MySqlStorageOptions - { - TransactionIsolationLevel = IsolationLevel.ReadCommitted, - QueuePollInterval = TimeSpan.FromSeconds(15), - JobExpirationCheckInterval = TimeSpan.FromHours(1), - CountersAggregateInterval = TimeSpan.FromMinutes(5), - PrepareSchemaIfNecessary = true, - DashboardJobListLimit = 50000, - TransactionTimeout = TimeSpan.FromMinutes(1), - TablesPrefix = "Hangfire" - }))); - builder.Services.AddHangfireServer(); -} var app = builder.Build(); + +var apiVersionDescriptionProvider = app.Services.GetRequiredService(); + +if (app.Environment.IsDevelopment()) { - var apiVersionDescriptionProvider = app.Services.GetRequiredService(); - - if (app.Environment.IsDevelopment()) + app.UseSwagger(); + app.UseSwaggerUI(options => { - app.UseSwagger(); - app.UseSwaggerUI(options => + foreach (var description in apiVersionDescriptionProvider.ApiVersionDescriptions) { - foreach (var description in apiVersionDescriptionProvider.ApiVersionDescriptions) - { - options.SwaggerEndpoint($"/swagger/{description.GroupName}/swagger.json", - description.GroupName.ToUpperInvariant()); - } - }); - } - - app.MapHealthChecks("/health"); - - - app.UseHttpsRedirection(); - app.UseCors(); - app.UseAuthentication(); - app.UseAuthorization(); - app.UseDefaultFiles(); - app.UseStaticFiles(); - app.MapControllers(); - app.UseMiddleware(); - - - app.UseHangfireDashboard("/hangfire", new DashboardOptions() - { - Authorization = new[] { new CustomAuthorizeFilter() } + options.SwaggerEndpoint($"/swagger/{description.GroupName}/swagger.json", + description.GroupName.ToUpperInvariant()); + } }); - - var manager = new RecurringJobManager(); - if (manager != null) - { - manager.AddOrUpdate("āļ›āļĢāļąāļšāļ›āļĢāļļāļ‡āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļ—āļģāļ‡āļēāļ™", Job.FromExpression(x => x.UpdateUserDutyTime()), "0 1 * * *", TimeZoneInfo.FindSystemTimeZoneById("Asia/Bangkok")); - } - - // apply migrations - await using var scope = app.Services.CreateAsyncScope(); - await using var db = scope.ServiceProvider.GetRequiredService(); - await db.Database.MigrateAsync(); - - // seed default data - await LeaveSeeder.SeedLeaveType(app); - - app.Run(); } +app.MapHealthChecks("/health"); + + +app.UseHttpsRedirection(); +app.UseCors(); +app.UseAuthentication(); +app.UseAuthorization(); +app.UseDefaultFiles(); +app.UseStaticFiles(); +app.MapControllers(); +app.UseMiddleware(); + + +app.UseHangfireDashboard("/hangfire", new DashboardOptions() +{ + Authorization = new[] { new CustomAuthorizeFilter() } +}); + +var manager = new RecurringJobManager(); +if (manager != null) +{ + manager.AddOrUpdate("āļ›āļĢāļąāļšāļ›āļĢāļļāļ‡āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļ—āļģāļ‡āļēāļ™", Job.FromExpression(x => x.UpdateUserDutyTime()), "0 1 * * *", bangkokTimeZone); +} + +// apply migrations +await using var scope = app.Services.CreateAsyncScope(); +await using var db = scope.ServiceProvider.GetRequiredService(); +await db.Database.MigrateAsync(); + +// seed default data +await LeaveSeeder.SeedLeaveType(app); + +app.Run(); + + void ConfigureLogs() { var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"); From bf61ae65de2445d7230b20e4e6e867f3b8ca2325 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Sat, 8 Mar 2025 12:07:53 +0700 Subject: [PATCH 125/879] =?UTF-8?q?=E0=B8=97=E0=B8=94=E0=B8=AA=E0=B8=AD?= =?UTF-8?q?=E0=B8=9A=E0=B8=A3=E0=B8=B1=E0=B8=99=E0=B8=95=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B8=9A=E0=B9=88=E0=B8=B2=E0=B8=A2=E0=B9=82=E0=B8=A1=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Program.cs b/BMA.EHR.Leave/Program.cs index 82ae3aea..b3331847 100644 --- a/BMA.EHR.Leave/Program.cs +++ b/BMA.EHR.Leave/Program.cs @@ -171,7 +171,7 @@ app.UseHangfireDashboard("/hangfire", new DashboardOptions() var manager = new RecurringJobManager(); if (manager != null) { - manager.AddOrUpdate("āļ›āļĢāļąāļšāļ›āļĢāļļāļ‡āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļ—āļģāļ‡āļēāļ™", Job.FromExpression(x => x.UpdateUserDutyTime()), "0 1 * * *", bangkokTimeZone); + manager.AddOrUpdate("āļ›āļĢāļąāļšāļ›āļĢāļļāļ‡āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļ—āļģāļ‡āļēāļ™", Job.FromExpression(x => x.UpdateUserDutyTime()), "0 13 * * *", bangkokTimeZone); } // apply migrations From db8f425877662e0cc04c72c91fd16d498d6bd5cc Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Sat, 8 Mar 2025 13:04:58 +0700 Subject: [PATCH 126/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20cron=20?= =?UTF-8?q?=E0=B8=81=E0=B8=A5=E0=B8=B1=E0=B8=9A=20=E0=B8=95=E0=B8=B5?= =?UTF-8?q?=E0=B8=AB=E0=B8=99=E0=B8=B6=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Program.cs b/BMA.EHR.Leave/Program.cs index b3331847..82ae3aea 100644 --- a/BMA.EHR.Leave/Program.cs +++ b/BMA.EHR.Leave/Program.cs @@ -171,7 +171,7 @@ app.UseHangfireDashboard("/hangfire", new DashboardOptions() var manager = new RecurringJobManager(); if (manager != null) { - manager.AddOrUpdate("āļ›āļĢāļąāļšāļ›āļĢāļļāļ‡āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļ—āļģāļ‡āļēāļ™", Job.FromExpression(x => x.UpdateUserDutyTime()), "0 13 * * *", bangkokTimeZone); + manager.AddOrUpdate("āļ›āļĢāļąāļšāļ›āļĢāļļāļ‡āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļ—āļģāļ‡āļēāļ™", Job.FromExpression(x => x.UpdateUserDutyTime()), "0 1 * * *", bangkokTimeZone); } // apply migrations From 950b5c4604c37d898ec827fe353db4c84907ba80 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Sun, 9 Mar 2025 09:38:13 +0700 Subject: [PATCH 127/879] fix #1239 --- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 509917c9..7cc2fc36 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -1277,7 +1277,8 @@ namespace BMA.EHR.Leave.Service.Controllers lateTotal += 1; } else - remarkStr = ""; + remarkStr = !timeStamps.IsLocationCheckIn ? $" āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆ:{timeStamps.CheckInLocationName}".Trim() : ""; + //remarkStr = ""; } else { @@ -1289,7 +1290,8 @@ namespace BMA.EHR.Leave.Service.Controllers lateTotal += 1; } else - remarkStr = ""; + //remarkStr = ""; + remarkStr = !timeStamps.IsLocationCheckIn ? $" āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆ:{timeStamps.CheckInLocationName}".Trim() : ""; } } } From 6f7b9bf3e6e760f7840010959f20b8015b309f92 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 10 Mar 2025 09:37:34 +0700 Subject: [PATCH 128/879] fix start time --- .../Leaves/TimeAttendants/UserDutyTimeRepository.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/UserDutyTimeRepository.cs b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/UserDutyTimeRepository.cs index 48bdd0da..3eefefe0 100644 --- a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/UserDutyTimeRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/UserDutyTimeRepository.cs @@ -62,7 +62,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants { var data = _dbContext.Set() .Where(u => !u.IsProcess) - .Where(u => u.EffectiveDate.Value.Date <= DateTime.Now.Date) + .Where(u => u.EffectiveDate.Value.Date <= DateTime.Now.AddHours(7).Date) .ToList(); foreach (var d in data) @@ -106,6 +106,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants var data = await _dbContext.Set() .Where(x => x.ProfileId == profileId) .Where(x => x.IsProcess) + .Where(x => x.EffectiveDate.Value.Date <= DateTime.Now.Date) .OrderByDescending(x => x.EffectiveDate) .FirstOrDefaultAsync(); From 7a9053f5cec477fed77371080b517896a0d96b39 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 11 Mar 2025 17:33:10 +0700 Subject: [PATCH 129/879] fix --- .../Repositories/UserProfileRepository.cs | 94 +++++++++++++++++++ .../Controllers/LeaveReportController.cs | 7 +- .../Reports/GetLeaveDetailByNodeReportDto.cs | 2 + 3 files changed, 100 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index db36e5c9..f4e3fad3 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -367,6 +367,100 @@ namespace BMA.EHR.Application.Repositories } } + public async Task> GetProfileWithKeycloakAllOfficerAndRevision(string? accessToken, int? node, string? nodeId, bool isAll, string? revisionId) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/keycloak-all-officer"; + var apiKey = _configuration["API_KEY"]; + var body = new + { + node = node, + nodeId = nodeId, + isAll = isAll, + }; + + var profiles = new List(); + + var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey); + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } + } + + public async Task> GetProfileWithKeycloakAllOfficerRetireFilterAndRevision(string? accessToken, int? node, string? nodeId, bool isAll, bool? isRetirement, string? revisionId) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/keycloak-all-officer"; + var apiKey = _configuration["API_KEY"]; + var body = new + { + node = node, + nodeId = nodeId, + isAll = isAll, + isRetirement = isRetirement, + }; + + var profiles = new List(); + + var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey); + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } + } + + public async Task> GetProfileWithKeycloakAllEmployeeAndRevision(string? accessToken, int? node, string? nodeId, bool isAll, string? revisionId) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/keycloak-all-employee"; + var apiKey = _configuration["API_KEY"]; + var body = new + { + node = node, + nodeId = nodeId, + isAll = isAll, + }; + + var profiles = new List(); + + var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey); + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } + } + public async Task> SearchProfile(string? citizenId, string? firstName, string? lastName, string accessToken) { try diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 16e0c2e8..1568fdeb 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -758,11 +758,11 @@ namespace BMA.EHR.Leave.Service.Controllers var profile = new List(); if (type.Trim().ToUpper() == "OFFICER") { - profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficer(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficerAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); } else { - profile = await _userProfileRepository.GetProfileWithKeycloakAllEmployee(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + profile = await _userProfileRepository.GetProfileWithKeycloakAllEmployeeAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); } // get leave day var leaveDays = await _leaveRequestRepository.GetSumApproveLeaveByTypeAndRange(req.StartDate, req.EndDate); @@ -914,6 +914,7 @@ namespace BMA.EHR.Leave.Service.Controllers headerText = type.Trim().ToUpper() == "OFFICER" ? "āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŠāļēāļĄāļąāļ" : "āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ", leaveTitleType = leaveTitleType, employees = employees, + profile = profile } }; @@ -949,7 +950,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var profile = new List(); - profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficerRetireFilter(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.isRetirement??true); + profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficerRetireFilterAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.isRetirement??true, req.revisionId); // get leave day var leaveDays = await _leaveRequestRepository.GetSumApproveLeaveByTypeAndRange(req.StartDate, req.EndDate); diff --git a/BMA.EHR.Leave/DTOs/Reports/GetLeaveDetailByNodeReportDto.cs b/BMA.EHR.Leave/DTOs/Reports/GetLeaveDetailByNodeReportDto.cs index 6d00f073..2216f9bc 100644 --- a/BMA.EHR.Leave/DTOs/Reports/GetLeaveDetailByNodeReportDto.cs +++ b/BMA.EHR.Leave/DTOs/Reports/GetLeaveDetailByNodeReportDto.cs @@ -8,5 +8,7 @@ namespace BMA.EHR.Leave.Service.DTOs.Reports public int node { get; set; } public string nodeId { get; set; } public bool? isRetirement { get; set; } = false; + + public string? revisionId { get; set; } } } \ No newline at end of file From 123501378bc8eeaa0869e18d67b0cc3dd44fb6de Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Wed, 12 Mar 2025 10:17:43 +0700 Subject: [PATCH 130/879] fix --- BMA.EHR.Application/Repositories/UserProfileRepository.cs | 3 +++ BMA.EHR.Leave/Controllers/LeaveReportController.cs | 3 +-- BMA.EHR.Leave/DTOs/Reports/GetLeaveDetailByNodeReportDto.cs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index f4e3fad3..8bd12d91 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -378,6 +378,7 @@ namespace BMA.EHR.Application.Repositories node = node, nodeId = nodeId, isAll = isAll, + revisionId = revisionId, }; var profiles = new List(); @@ -410,6 +411,7 @@ namespace BMA.EHR.Application.Repositories nodeId = nodeId, isAll = isAll, isRetirement = isRetirement, + revisionId = revisionId, }; var profiles = new List(); @@ -441,6 +443,7 @@ namespace BMA.EHR.Application.Repositories node = node, nodeId = nodeId, isAll = isAll, + revisionId = revisionId, }; var profiles = new List(); diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index d434c520..21f92c57 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -935,8 +935,7 @@ namespace BMA.EHR.Leave.Service.Controllers organizationName = profile?.FirstOrDefault()?.Oc ?? "", headerText = type.Trim().ToUpper() == "OFFICER" ? "āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŠāļēāļĄāļąāļ" : "āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ", leaveTitleType = leaveTitleType, - employees = employees, - profile = profile + employees = employees, } }; diff --git a/BMA.EHR.Leave/DTOs/Reports/GetLeaveDetailByNodeReportDto.cs b/BMA.EHR.Leave/DTOs/Reports/GetLeaveDetailByNodeReportDto.cs index 2216f9bc..c071f100 100644 --- a/BMA.EHR.Leave/DTOs/Reports/GetLeaveDetailByNodeReportDto.cs +++ b/BMA.EHR.Leave/DTOs/Reports/GetLeaveDetailByNodeReportDto.cs @@ -9,6 +9,6 @@ namespace BMA.EHR.Leave.Service.DTOs.Reports public string nodeId { get; set; } public bool? isRetirement { get; set; } = false; - public string? revisionId { get; set; } + public string? revisionId { get; set; } = string.Empty; } } \ No newline at end of file From 2a6bef472b40b32d64e38da4909f2eecf0e95c25 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 12 Mar 2025 10:26:47 +0700 Subject: [PATCH 131/879] fix issue #1234 --- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 21f92c57..fdbfd6bf 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -1362,7 +1362,7 @@ namespace BMA.EHR.Leave.Service.Controllers { dateTimeStamp = $"āļ“ āļ§āļąāļ™{req.StartDate.Date.GetThaiDayOfWeek()} āļ—āļĩāđˆ {req.StartDate.Date.ToThaiShortDate()}{enddate}", organizationName = profile?.FirstOrDefault()?.Oc ?? "", - officerTotal = profile.Count, + officerTotal = profile?.Count, workTotal = workTotal, restTotal = restTotal, sickTotal = sickTotal, @@ -1370,6 +1370,7 @@ namespace BMA.EHR.Leave.Service.Controllers wfhTotal = wfhTotal, seminarTotal = seminarTotal, studyTotal = studyTotal, + type = type.Trim().ToUpper() == "OFFICER" ? "āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļ—āļąāđ‰āļ‡āļŦāļĄāļ”" : "āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģāļ—āļąāđ‰āļ‡āļŦāļĄāļ”", employees = employees }; //āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļ From 6c84542e94742e3304968622efd06b7fd55d48a4 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 12 Mar 2025 13:17:09 +0700 Subject: [PATCH 132/879] =?UTF-8?q?=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=E0=B8=A2=E0=B8=99=E0=B9=80=E0=B8=AA=E0=B9=89=E0=B8=99?= =?UTF-8?q?=20api=20call=20=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=8A=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/UserProfileRepository.cs | 125 ++++++++++++++++++ .../Controllers/LeaveReportController.cs | 12 +- 2 files changed, 133 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index 8bd12d91..30e4a792 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -304,6 +304,37 @@ namespace BMA.EHR.Application.Repositories } } + public async Task> GetProfileWithNoneValidateKeycloakAllOfficer(string? accessToken, int? node, string? nodeId, bool isAll) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/none-validate-keycloak-all-officer"; + var apiKey = _configuration["API_KEY"]; + var body = new + { + node = node, + nodeId = nodeId, + isAll = isAll, + }; + + var profiles = new List(); + + var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey); + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } + } + public async Task> GetProfileWithKeycloakAllOfficerRetireFilter(string? accessToken, int? node, string? nodeId, bool isAll, bool? isRetirement) { try @@ -367,6 +398,37 @@ namespace BMA.EHR.Application.Repositories } } + public async Task> GetProfileWithNoneValidateKeycloakAllEmployee(string? accessToken, int? node, string? nodeId, bool isAll) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/none-validate-keycloak-all-employee"; + var apiKey = _configuration["API_KEY"]; + var body = new + { + node = node, + nodeId = nodeId, + isAll = isAll, + }; + + var profiles = new List(); + + var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey); + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } + } + public async Task> GetProfileWithKeycloakAllOfficerAndRevision(string? accessToken, int? node, string? nodeId, bool isAll, string? revisionId) { try @@ -399,6 +461,38 @@ namespace BMA.EHR.Application.Repositories } } + public async Task> GetProfileWithNoneValidateKeycloakAllOfficerAndRevision(string? accessToken, int? node, string? nodeId, bool isAll, string? revisionId) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/none-validate-keycloak-all-officer"; + var apiKey = _configuration["API_KEY"]; + var body = new + { + node = node, + nodeId = nodeId, + isAll = isAll, + revisionId = revisionId, + }; + + var profiles = new List(); + + var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey); + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } + } + public async Task> GetProfileWithKeycloakAllOfficerRetireFilterAndRevision(string? accessToken, int? node, string? nodeId, bool isAll, bool? isRetirement, string? revisionId) { try @@ -464,6 +558,37 @@ namespace BMA.EHR.Application.Repositories } } + public async Task> GetProfileWithNoneValidateKeycloakAllEmployeeAndRevision(string? accessToken, int? node, string? nodeId, bool isAll, string? revisionId) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/none-validate-keycloak-all-employee"; + var apiKey = _configuration["API_KEY"]; + var body = new + { + node = node, + nodeId = nodeId, + isAll = isAll, + revisionId = revisionId, + }; + + var profiles = new List(); + + var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey); + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } + } public async Task> SearchProfile(string? citizenId, string? firstName, string? lastName, string accessToken) { try diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index fdbfd6bf..834a83ef 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -780,11 +780,13 @@ namespace BMA.EHR.Leave.Service.Controllers var profile = new List(); if (type.Trim().ToUpper() == "OFFICER") { - profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficerAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); + //profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficerAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); + profile = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllOfficerAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); } else { - profile = await _userProfileRepository.GetProfileWithKeycloakAllEmployeeAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); + //profile = await _userProfileRepository.GetProfileWithKeycloakAllEmployeeAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); + profile = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllEmployeeAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); } // get leave day var leaveDays = await _leaveRequestRepository.GetSumApproveLeaveByTypeAndRange(req.StartDate, req.EndDate); @@ -1160,11 +1162,13 @@ namespace BMA.EHR.Leave.Service.Controllers var profile = new List(); if (type.Trim().ToUpper() == "OFFICER") { - profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficer(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + //profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficer(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + profile = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllOfficer(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); } else { - profile = await _userProfileRepository.GetProfileWithKeycloakAllEmployee(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + //profile = await _userProfileRepository.GetProfileWithKeycloakAllEmployee(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + profile = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllEmployee(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); } var date = req.StartDate.Date; From 4bbb71d6e2a3eb4a79909bf631f299d828cf4d89 Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 14 Mar 2025 08:44:04 +0700 Subject: [PATCH 133/879] update db hrms --- BMA.EHR.Command.Service/appsettings.json | 4 ++-- BMA.EHR.Command.Service/wwwroot/keycloak.json | 2 +- BMA.EHR.Discipline.Service/appsettings.json | 10 +++++----- BMA.EHR.Discipline.Service/wwwroot/keycloak.json | 2 +- BMA.EHR.Insignia/appsettings.json | 4 ++-- BMA.EHR.Insignia/wwwroot/keycloak.json | 2 +- BMA.EHR.Leave/appsettings.json | 12 ++++++------ BMA.EHR.Leave/wwwroot/keycloak.json | 2 +- BMA.EHR.MetaData.Service/appsettings.json | 6 +++--- BMA.EHR.MetaData.Service/wwwroot/keycloak.json | 2 +- .../appsettings.json | 4 ++-- .../wwwroot/keycloak.json | 2 +- BMA.EHR.Placement.Service/appsettings.json | 4 ++-- BMA.EHR.Placement.Service/wwwroot/keycloak.json | 2 +- BMA.EHR.Report.Service/appsettings.json | 6 +++--- BMA.EHR.Report.Service/wwwroot/keycloak.json | 2 +- BMA.EHR.Retirement.Service/appsettings.json | 6 +++--- BMA.EHR.Retirement.Service/wwwroot/keycloak.json | 2 +- 18 files changed, 37 insertions(+), 37 deletions(-) diff --git a/BMA.EHR.Command.Service/appsettings.json b/BMA.EHR.Command.Service/appsettings.json index 667c05db..0baa0506 100644 --- a/BMA.EHR.Command.Service/appsettings.json +++ b/BMA.EHR.Command.Service/appsettings.json @@ -14,11 +14,11 @@ "AllowedHosts": "*", "ConnectionStrings": { //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/bma-ehr" + "Issuer": "https://id.frappet.synology.me/realms/hrms" }, "EPPlus": { "ExcelPackage": { diff --git a/BMA.EHR.Command.Service/wwwroot/keycloak.json b/BMA.EHR.Command.Service/wwwroot/keycloak.json index a023eb38..b966b658 100644 --- a/BMA.EHR.Command.Service/wwwroot/keycloak.json +++ b/BMA.EHR.Command.Service/wwwroot/keycloak.json @@ -1,5 +1,5 @@ { - "realm": "bma-ehr", + "realm": "hrms", "auth-server-url": "https://id.frappet.synology.me", "ssl-required": "external", "resource": "bma-ehr", diff --git a/BMA.EHR.Discipline.Service/appsettings.json b/BMA.EHR.Discipline.Service/appsettings.json index 9ef6f9a2..62c756cb 100644 --- a/BMA.EHR.Discipline.Service/appsettings.json +++ b/BMA.EHR.Discipline.Service/appsettings.json @@ -14,14 +14,14 @@ "AllowedHosts": "*", "ConnectionStrings": { //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_exam_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "LeaveConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_leave_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "DisciplineConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_discipline_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "LeaveConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "DisciplineConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_discipline;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/bma-ehr" + "Issuer": "https://id.frappet.synology.me/realms/hrms" }, "EPPlus": { "ExcelPackage": { diff --git a/BMA.EHR.Discipline.Service/wwwroot/keycloak.json b/BMA.EHR.Discipline.Service/wwwroot/keycloak.json index a023eb38..b966b658 100644 --- a/BMA.EHR.Discipline.Service/wwwroot/keycloak.json +++ b/BMA.EHR.Discipline.Service/wwwroot/keycloak.json @@ -1,5 +1,5 @@ { - "realm": "bma-ehr", + "realm": "hrms", "auth-server-url": "https://id.frappet.synology.me", "ssl-required": "external", "resource": "bma-ehr", diff --git a/BMA.EHR.Insignia/appsettings.json b/BMA.EHR.Insignia/appsettings.json index 8af3f8ff..6bc61705 100644 --- a/BMA.EHR.Insignia/appsettings.json +++ b/BMA.EHR.Insignia/appsettings.json @@ -14,7 +14,7 @@ "AllowedHosts": "*", "ConnectionStrings": { //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" //"DefaultConnection": "server=hrms.chin.in.th;user=root;password=adminVM123;port=53636;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", //"DefaultConnection": "server=hrms.chin.in.th;user=root;password=ey2qVVyyqGYw8CyA7h8X72559r2Ad84K;port=53636;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", //"ExamConnection": "server=hrms.chin.in.th;user=root;password=ey2qVVyyqGYw8CyA7h8X72559r2Ad84K;port=53636;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", @@ -25,7 +25,7 @@ //"Key": "j7C9RO_p4nRtuwCH4z9Db_A_6We42tkD_p4lZtDrezc", //"Issuer": "https://hrms-id.chin.in.th/realms/hrms" "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/bma-ehr" + "Issuer": "https://id.frappet.synology.me/realms/hrms" }, "EPPlus": { "ExcelPackage": { diff --git a/BMA.EHR.Insignia/wwwroot/keycloak.json b/BMA.EHR.Insignia/wwwroot/keycloak.json index a023eb38..b966b658 100644 --- a/BMA.EHR.Insignia/wwwroot/keycloak.json +++ b/BMA.EHR.Insignia/wwwroot/keycloak.json @@ -1,5 +1,5 @@ { - "realm": "bma-ehr", + "realm": "hrms", "auth-server-url": "https://id.frappet.synology.me", "ssl-required": "external", "resource": "bma-ehr", diff --git a/BMA.EHR.Leave/appsettings.json b/BMA.EHR.Leave/appsettings.json index 662fd98f..8ccbdf28 100644 --- a/BMA.EHR.Leave/appsettings.json +++ b/BMA.EHR.Leave/appsettings.json @@ -16,15 +16,15 @@ //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", //"DefaultConnection": "server=192.168.1.81;user=root;password=adminVM123;port=4061;database=bma_ehr;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", //"DefaultConnection": "server=192.168.1.81;user=root;password=adminVM123;port=4063;database=bma_ehr;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_exam_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - //"LeaveConnection": "server=192.168.4.11;user=root;password=P@ssw0rd;port=3306;database=bma_ehr_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" - "LeaveConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_leave_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - //"LeaveConnection": "server=192.168.1.81;user=root;password=adminVM123;port=4063;database=bma_ehr_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + //"LeaveConnection": "server=192.168.4.11;user=root;password=P@ssw0rd;port=3306;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "LeaveConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + //"LeaveConnection": "server=192.168.1.81;user=root;password=adminVM123;port=4063;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/bma-ehr" + "Issuer": "https://id.frappet.synology.me/realms/hrms" }, "EPPlus": { "ExcelPackage": { diff --git a/BMA.EHR.Leave/wwwroot/keycloak.json b/BMA.EHR.Leave/wwwroot/keycloak.json index a023eb38..b966b658 100644 --- a/BMA.EHR.Leave/wwwroot/keycloak.json +++ b/BMA.EHR.Leave/wwwroot/keycloak.json @@ -1,5 +1,5 @@ { - "realm": "bma-ehr", + "realm": "hrms", "auth-server-url": "https://id.frappet.synology.me", "ssl-required": "external", "resource": "bma-ehr", diff --git a/BMA.EHR.MetaData.Service/appsettings.json b/BMA.EHR.MetaData.Service/appsettings.json index cb1c58f4..50b2edd7 100644 --- a/BMA.EHR.MetaData.Service/appsettings.json +++ b/BMA.EHR.MetaData.Service/appsettings.json @@ -13,12 +13,12 @@ }, "AllowedHosts": "*", "ConnectionStrings": { - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_exam_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "Hp3234M8rH1KjIdvhlUStayo6vIUOIeI76NKyIsiXJ8", - "Issuer": "https://id.frappet.synology.me/realms/bma-ehr" + "Issuer": "https://id.frappet.synology.me/realms/hrms" }, "EPPlus": { "ExcelPackage": { diff --git a/BMA.EHR.MetaData.Service/wwwroot/keycloak.json b/BMA.EHR.MetaData.Service/wwwroot/keycloak.json index a023eb38..b966b658 100644 --- a/BMA.EHR.MetaData.Service/wwwroot/keycloak.json +++ b/BMA.EHR.MetaData.Service/wwwroot/keycloak.json @@ -1,5 +1,5 @@ { - "realm": "bma-ehr", + "realm": "hrms", "auth-server-url": "https://id.frappet.synology.me", "ssl-required": "external", "resource": "bma-ehr", diff --git a/BMA.EHR.OrganizationEmployee.Service/appsettings.json b/BMA.EHR.OrganizationEmployee.Service/appsettings.json index fe6f3553..4383ae8a 100644 --- a/BMA.EHR.OrganizationEmployee.Service/appsettings.json +++ b/BMA.EHR.OrganizationEmployee.Service/appsettings.json @@ -14,11 +14,11 @@ "AllowedHosts": "*", "ConnectionStrings": { //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - "DefaultConnection": "server=192.168.1.9;user=root;password=adminVM123;port=3306;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=192.168.1.9;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://identity.frappet.com/realms/bma-ehr" + "Issuer": "https://identity.frappet.com/realms/hrms" }, "EPPlus": { "ExcelPackage": { diff --git a/BMA.EHR.OrganizationEmployee.Service/wwwroot/keycloak.json b/BMA.EHR.OrganizationEmployee.Service/wwwroot/keycloak.json index 9eba3b39..edfde214 100644 --- a/BMA.EHR.OrganizationEmployee.Service/wwwroot/keycloak.json +++ b/BMA.EHR.OrganizationEmployee.Service/wwwroot/keycloak.json @@ -1,5 +1,5 @@ { - "realm": "bma-ehr", + "realm": "hrms", "auth-server-url": "https://identity.frappet.com", "ssl-required": "external", "resource": "bma-ehr", diff --git a/BMA.EHR.Placement.Service/appsettings.json b/BMA.EHR.Placement.Service/appsettings.json index f5dbcd8e..72b6e16e 100644 --- a/BMA.EHR.Placement.Service/appsettings.json +++ b/BMA.EHR.Placement.Service/appsettings.json @@ -14,11 +14,11 @@ "AllowedHosts": "*", "ConnectionStrings": { //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/bma-ehr" + "Issuer": "https://id.frappet.synology.me/realms/hrms" }, "EPPlus": { "ExcelPackage": { diff --git a/BMA.EHR.Placement.Service/wwwroot/keycloak.json b/BMA.EHR.Placement.Service/wwwroot/keycloak.json index a023eb38..b966b658 100644 --- a/BMA.EHR.Placement.Service/wwwroot/keycloak.json +++ b/BMA.EHR.Placement.Service/wwwroot/keycloak.json @@ -1,5 +1,5 @@ { - "realm": "bma-ehr", + "realm": "hrms", "auth-server-url": "https://id.frappet.synology.me", "ssl-required": "external", "resource": "bma-ehr", diff --git a/BMA.EHR.Report.Service/appsettings.json b/BMA.EHR.Report.Service/appsettings.json index e312ef24..b3a41cf1 100644 --- a/BMA.EHR.Report.Service/appsettings.json +++ b/BMA.EHR.Report.Service/appsettings.json @@ -14,12 +14,12 @@ "AllowedHosts": "*", "ConnectionStrings": { //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_exam_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/bma-ehr" + "Issuer": "https://id.frappet.synology.me/realms/hrms" }, "EPPlus": { "ExcelPackage": { diff --git a/BMA.EHR.Report.Service/wwwroot/keycloak.json b/BMA.EHR.Report.Service/wwwroot/keycloak.json index 9eba3b39..edfde214 100644 --- a/BMA.EHR.Report.Service/wwwroot/keycloak.json +++ b/BMA.EHR.Report.Service/wwwroot/keycloak.json @@ -1,5 +1,5 @@ { - "realm": "bma-ehr", + "realm": "hrms", "auth-server-url": "https://identity.frappet.com", "ssl-required": "external", "resource": "bma-ehr", diff --git a/BMA.EHR.Retirement.Service/appsettings.json b/BMA.EHR.Retirement.Service/appsettings.json index a9e19037..e0bb99d4 100644 --- a/BMA.EHR.Retirement.Service/appsettings.json +++ b/BMA.EHR.Retirement.Service/appsettings.json @@ -15,12 +15,12 @@ "ConnectionStrings": { //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", // "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "DisciplineConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_discipline_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "DisciplineConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_discipline;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/bma-ehr" + "Issuer": "https://id.frappet.synology.me/realms/hrms" }, "EPPlus": { "ExcelPackage": { diff --git a/BMA.EHR.Retirement.Service/wwwroot/keycloak.json b/BMA.EHR.Retirement.Service/wwwroot/keycloak.json index a023eb38..b966b658 100644 --- a/BMA.EHR.Retirement.Service/wwwroot/keycloak.json +++ b/BMA.EHR.Retirement.Service/wwwroot/keycloak.json @@ -1,5 +1,5 @@ { - "realm": "bma-ehr", + "realm": "hrms", "auth-server-url": "https://id.frappet.synology.me", "ssl-required": "external", "resource": "bma-ehr", From 11db0315e720908a89d882a0e40cfce3416d3829 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 14 Mar 2025 18:01:25 +0700 Subject: [PATCH 134/879] =?UTF-8?q?fix=20throw=20=E0=B8=8B=E0=B9=89?= =?UTF-8?q?=E0=B8=B3=E0=B9=81=E0=B8=A5=E0=B9=89=E0=B8=A7=E0=B9=84=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B8=AA=E0=B9=88=E0=B8=87=20email?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Application/Messaging/EmailSenderService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Application/Messaging/EmailSenderService.cs b/BMA.EHR.Application/Messaging/EmailSenderService.cs index c02670bb..9a718c2e 100644 --- a/BMA.EHR.Application/Messaging/EmailSenderService.cs +++ b/BMA.EHR.Application/Messaging/EmailSenderService.cs @@ -51,7 +51,7 @@ namespace BMA.EHR.Application.Messaging } catch { - throw; + //throw; } } From 86fa8f5d41cfd5479ec94ad30db0367d503679f3 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 18 Mar 2025 13:14:58 +0700 Subject: [PATCH 135/879] change config --- BMA.EHR.Leave/appsettings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/appsettings.json b/BMA.EHR.Leave/appsettings.json index 662fd98f..eeaedc1a 100644 --- a/BMA.EHR.Leave/appsettings.json +++ b/BMA.EHR.Leave/appsettings.json @@ -24,7 +24,7 @@ }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/bma-ehr" + "Issuer": "https://id.frappet.synology.me/realms/hrms" }, "EPPlus": { "ExcelPackage": { From 12fab7cc1f8bb039542b88de7d612ea8ebb5af97 Mon Sep 17 00:00:00 2001 From: kittapath Date: Tue, 18 Mar 2025 14:22:53 +0700 Subject: [PATCH 136/879] report leave --- .../Leaves/LeaveRequests/LeaveRequestRepository.cs | 10 +++++----- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 10 +++++----- .../DTOs/Reports/GetLeave2DetailByNodeReportDto.cs | 14 ++++++++++++++ 3 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 BMA.EHR.Leave/DTOs/Reports/GetLeave2DetailByNodeReportDto.cs diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index ee236abe..05dceca4 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -436,7 +436,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests //var leaveType = await _appDbContext.Set() // .FirstOrDefaultAsync(x => x.Name == rawData.Type.Name); - + // insert to profile leave //var profileLeave = await _appDbContext.Set() // .Where(x => x.TypeLeave.Id == leaveType.Id) @@ -834,9 +834,9 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests return res; } - public async Task> GetSumApproveLeaveByRootAndRange(DateTime startDate, DateTime endDate, string type, string role, string nodeId, int node) + public async Task> GetSumApproveLeaveByRootAndRange(DateTime startDate, DateTime endDate, string type, string role, string? nodeId, int? node) { - var _nodeId = Guid.Parse(nodeId); + // var _nodeId = Guid.Parse(nodeId); var data = new List(); if (role == "OWNER" || role == "CHILD") { @@ -844,7 +844,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Include(x => x.Type) .Where(x => x.ProfileType == type.Trim().ToUpper()) .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) - .Where(x => node == 4 ? x.Child4Id == _nodeId : (node == 3 ? x.Child3Id == _nodeId : (node == 2 ? x.Child2Id == _nodeId : (node == 1 ? x.Child1Id == _nodeId : (node == 0 ? x.RootId == _nodeId : true))))) + .Where(x => node == 4 ? x.Child4Id == Guid.Parse(nodeId) : (node == 3 ? x.Child3Id == Guid.Parse(nodeId) : (node == 2 ? x.Child2Id == Guid.Parse(nodeId) : (node == 1 ? x.Child1Id == Guid.Parse(nodeId) : (node == 0 ? x.RootId == Guid.Parse(nodeId) : (node == null ? true : true)))))) .Where(x => x.LeaveStatus == "APPROVE").ToListAsync(); } else @@ -853,7 +853,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Include(x => x.Type) .Where(x => x.ProfileType == type.Trim().ToUpper()) .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) - .Where(x => node == 4 ? x.Child4Id == _nodeId : (node == 3 ? x.Child3Id == _nodeId : (node == 2 ? x.Child2Id == _nodeId : (node == 1 ? x.Child1Id == _nodeId : (node == 0 ? x.RootId == _nodeId : true))))) + .Where(x => node == 4 ? x.Child4Id == Guid.Parse(nodeId) : (node == 3 ? x.Child3Id == Guid.Parse(nodeId) : (node == 2 ? x.Child2Id == Guid.Parse(nodeId) : (node == 1 ? x.Child1Id == Guid.Parse(nodeId) : (node == 0 ? x.RootId == Guid.Parse(nodeId) : (node == null ? true : true)))))) .Where(x => node == 0 ? x.Child1Id == null : (node == 1 ? x.Child2Id == null : (node == 2 ? x.Child3Id == null : (node == 3 ? x.Child4Id == null : true)))) .Where(x => x.LeaveStatus == "APPROVE").ToListAsync(); } diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 834a83ef..f67ece92 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -937,7 +937,7 @@ namespace BMA.EHR.Leave.Service.Controllers organizationName = profile?.FirstOrDefault()?.Oc ?? "", headerText = type.Trim().ToUpper() == "OFFICER" ? "āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŠāļēāļĄāļąāļ" : "āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ", leaveTitleType = leaveTitleType, - employees = employees, + employees = employees, } }; @@ -973,8 +973,8 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var profile = new List(); - profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficerRetireFilterAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.isRetirement??true, req.revisionId); - + profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficerRetireFilterAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.isRetirement ?? true, req.revisionId); + // get leave day var leaveDays = await _leaveRequestRepository.GetSumApproveLeaveByTypeAndRange(req.StartDate, req.EndDate); var leaveTypes = await _leaveTypeRepository.GetAllAsync(); @@ -1282,7 +1282,7 @@ namespace BMA.EHR.Leave.Service.Controllers } else remarkStr = !timeStamps.IsLocationCheckIn ? $" āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆ:{timeStamps.CheckInLocationName}".Trim() : ""; - //remarkStr = ""; + //remarkStr = ""; } else { @@ -1491,7 +1491,7 @@ namespace BMA.EHR.Leave.Service.Controllers [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status401Unauthorized)] [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public async Task> GetLeave2Report([FromBody] GetLeaveDetailByNodeReportDto req, string type) + public async Task> GetLeave2Report([FromBody] GetLeave2DetailByNodeReportDto req, string type) { try { diff --git a/BMA.EHR.Leave/DTOs/Reports/GetLeave2DetailByNodeReportDto.cs b/BMA.EHR.Leave/DTOs/Reports/GetLeave2DetailByNodeReportDto.cs new file mode 100644 index 00000000..3574b602 --- /dev/null +++ b/BMA.EHR.Leave/DTOs/Reports/GetLeave2DetailByNodeReportDto.cs @@ -0,0 +1,14 @@ +namespace BMA.EHR.Leave.Service.DTOs.Reports +{ + public class GetLeave2DetailByNodeReportDto + { + public DateTime StartDate { get; set; } = DateTime.MinValue; + public DateTime EndDate { get; set; } = DateTime.MinValue; + public string? Type { get; set; } = string.Empty; + public int? node { get; set; } + public string? nodeId { get; set; } + public bool? isRetirement { get; set; } = false; + + public string? revisionId { get; set; } = string.Empty; + } +} \ No newline at end of file From de85a8f3693b00b084671dd68fd750448348865e Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 19 Mar 2025 15:58:11 +0700 Subject: [PATCH 137/879] fix issue #1255 --- BMA.EHR.Leave/Controllers/LeaveController.cs | 20 ++++++++++---------- BMA.EHR.Leave/appsettings.json | 15 +++++++++------ BMA.EHR.Leave/wwwroot/keycloak.json | 12 +++++++----- 3 files changed, 26 insertions(+), 21 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index 6e104be7..e474850d 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -1808,22 +1808,22 @@ namespace BMA.EHR.Leave.Service.Controllers foreach (var data in rawData) { - // var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(data.KeycloakUserId, AccessToken); - // if (profile == null) - // { - // return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); - // } + var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(data.KeycloakUserId, AccessToken); + if (profile == null) + { + return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); + } //var userRound = await _dutyTimeRepository.GetByIdAsync(profile.DutyTimeId ?? Guid.Empty); - //var effectiveDate = await _userDutyTimeRepository.GetLastEffectRound(profile.Id); - //var roundId = effectiveDate != null ? effectiveDate.DutyTimeId : Guid.Empty; - //var userRound = await _dutyTimeRepository.GetByIdAsync(roundId); + var effectiveDate = await _userDutyTimeRepository.GetLastEffectRound(profile.Id); + var roundId = effectiveDate != null ? effectiveDate.DutyTimeId : Guid.Empty; + var userRound = await _dutyTimeRepository.GetByIdAsync(roundId); var checkInData = await _userTimeStampRepository.GetTimestampByDateAsync(data.KeycloakUserId, data.CheckDate); - //var duty = userRound ?? getDefaultRound; + var duty = userRound ?? getDefaultRound; - var duty = getDefaultRound; + //var duty = getDefaultRound; // create result object to return var resObj = new GetAdditionalCheckRequestDto diff --git a/BMA.EHR.Leave/appsettings.json b/BMA.EHR.Leave/appsettings.json index 8ccbdf28..e5591a00 100644 --- a/BMA.EHR.Leave/appsettings.json +++ b/BMA.EHR.Leave/appsettings.json @@ -13,18 +13,19 @@ }, "AllowedHosts": "*", "ConnectionStrings": { - //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - //"DefaultConnection": "server=192.168.1.81;user=root;password=adminVM123;port=4061;database=bma_ehr;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - //"DefaultConnection": "server=192.168.1.81;user=root;password=adminVM123;port=4063;database=bma_ehr;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - //"LeaveConnection": "server=192.168.4.11;user=root;password=P@ssw0rd;port=3306;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" "LeaveConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - //"LeaveConnection": "server=192.168.1.81;user=root;password=adminVM123;port=4063;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + + //"DefaultConnection": "server=172.27.17.68;user=user;password=cDldaqkwESWvuZ37Gr0n;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + //"ExamConnection": "server=172.27.17.68;user=user;password=cDldaqkwESWvuZ37Gr0n;port=3306;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + //"LeaveConnection": "server=172.27.17.68;user=user;password=cDldaqkwESWvuZ37Gr0n;port=3306;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/hrms" + "Issuer": "https://id.frappet.synology.me/realms/hrms", + //"Key": "xY2VR-EFvvNPsMs39u8ooVBWQL6mPwrNJOh3koJFTgU", + //"Issuer": "https://hrms-id.bangkok.go.th/realms/hrms" }, "EPPlus": { "ExcelPackage": { @@ -43,6 +44,7 @@ }, "Rabbit": { "Host": "192.168.1.40", + "API": "https://bma-ehr.frappet.synology.me/api/v1", "User": "admin", "Password": "Test123456", "Queue": "bma-checkin-queue", @@ -56,5 +58,6 @@ "Port": "25" }, "API": "https://bma-ehr.frappet.synology.me/api/v1", + //"API": "https://bma-hrms.bangkok.go.th/api/v1", "API_KEY": "fKRL16yyEgbyTEJdsMw2h64tGSCmkW685PRtM3CygzX1JOSdptT9UJtpgWwKM8FybRTJups3GTFwj27ZRvlPdIkv3XgCoVJaD5LmR06ozuEPvCCRSdp2WFthg08V5xHc56fTPfZLpr1VmXrhd6dvYhHIqKkQUJR02Rlkss11cLRWEQOssEFVA4xdu2J5DIRO1EM5m7wRRvEwcDB4mYRXD9HH52SMq6iYqUWEWsMwLdbk7QW9yYESUEuzMW5gWrb6vIeWZxJV5bTz1PcWUyR7eO9Fyw1F5DiQYc9JgzTC1mW7cv31fEtTtrfbJYKIb5EbWilqIEUKC6A0UKBDDek35ML0006cqRVm0pvdOH6jeq7VQyYrhdXe59dBEyhYGUIfozoVBvW7Up4QBuOMjyPjSqJPlMBKwaseptfrblxQV1AOOivSBpf1ZcQyOZ8JktRtKUDSuXsmG0lsXwFlI3JCeSHdpVdgZWFYcJPegqfrB6KotR02t9AVkpLs1ZWrixwz" } \ No newline at end of file diff --git a/BMA.EHR.Leave/wwwroot/keycloak.json b/BMA.EHR.Leave/wwwroot/keycloak.json index b966b658..d1218fee 100644 --- a/BMA.EHR.Leave/wwwroot/keycloak.json +++ b/BMA.EHR.Leave/wwwroot/keycloak.json @@ -1,7 +1,9 @@ { - "realm": "hrms", - "auth-server-url": "https://id.frappet.synology.me", - "ssl-required": "external", - "resource": "bma-ehr", - "public-client": true + "realm": "hrms", + "auth-server-url": "https://id.frappet.synology.me", + //"auth-server-url": "https://hrms-id.bangkok.go.th", + "ssl-required": "external", + "resource": "bma-ehr", + //"resource": "hrms", + "public-client": true } \ No newline at end of file From 0cb17540b07cec39c53bba6abafdf22225678844 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 19 Mar 2025 16:13:22 +0700 Subject: [PATCH 138/879] issue #1256 --- BMA.EHR.Leave/Controllers/LeaveController.cs | 53 ++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index e474850d..76f9844d 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -1728,6 +1728,59 @@ namespace BMA.EHR.Leave.Service.Controllers } + #endregion + + #region " Check Checkout Time " + + /// + /// āļ•āļĢāļ§āļˆāļŠāļ­āļšāļ§āđˆāļēāđ€āļ§āļĨāļēāļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ–āđ‰āļē checkout āļˆāļ°āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("user/checkout-check")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> CheckoutCheckAsync() + { + var time = DateTime.Now; + + var userId = UserId != null ? Guid.Parse(UserId) : Guid.Empty; + var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); + if (profile == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + var getDefaultRound = await _dutyTimeRepository.GetDefaultAsync(); + if (getDefaultRound == null) + { + return Error("āđ„āļĄāđˆāļžāļšāļĢāļ­āļšāļĨāļ‡āđ€āļ§āļĨāļē Default", StatusCodes.Status404NotFound); + } + + var effectiveDate = await _userDutyTimeRepository.GetLastEffectRound(profile.Id); + var roundId = effectiveDate != null ? effectiveDate.DutyTimeId : Guid.Empty; + var userRound = await _dutyTimeRepository.GetByIdAsync(roundId); + + var duty = userRound ?? getDefaultRound; + + var endTime = DateTime.Parse($"{DateTime.Now.Date.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}"); + + var status = time < endTime ? "ABSENT" : "NORMAL"; + + return Success(new + { + Status = status, + StatusText = status == "ABSENT" ? "āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ" : "āļ›āļāļ•āļī", + ServerTime = time + }); + + } + + #endregion #region " āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ›āđ‡āļ™āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ " From 71a1c4839253a5a3ca9c70bc18ea21593371c51c Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 21 Mar 2025 13:01:17 +0700 Subject: [PATCH 139/879] refix issue #1265 --- BMA.EHR.Leave/Controllers/LeaveController.cs | 11 ++++++++++- BMA.EHR.Leave/wwwroot/keycloak.json | 2 -- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index 76f9844d..c88c3430 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -16,6 +16,7 @@ using BMA.EHR.Leave.Service.DTOs.DutyTime; using BMA.EHR.Leave.Service.DTOs.LeaveRequest; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.ObjectPool; using Newtonsoft.Json; using Newtonsoft.Json.Linq; @@ -1767,9 +1768,17 @@ namespace BMA.EHR.Leave.Service.Controllers var duty = userRound ?? getDefaultRound; + + var lastCheckIn = await _context.Set() + .Where(u => u.KeycloakUserId == userId) + .Where(d => d.CheckOut == null) + .OrderByDescending(u => u.CheckIn) + .FirstOrDefaultAsync(); + + var endTime = DateTime.Parse($"{DateTime.Now.Date.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}"); - var status = time < endTime ? "ABSENT" : "NORMAL"; + var status = lastCheckIn == null ? "ABSENT" : lastCheckIn.CheckIn.Date < DateTime.Now.Date ? "NORMAL" : time < endTime ? "ABSENT" : "NORMAL"; return Success(new { diff --git a/BMA.EHR.Leave/wwwroot/keycloak.json b/BMA.EHR.Leave/wwwroot/keycloak.json index d1218fee..04ddac93 100644 --- a/BMA.EHR.Leave/wwwroot/keycloak.json +++ b/BMA.EHR.Leave/wwwroot/keycloak.json @@ -1,9 +1,7 @@ { "realm": "hrms", "auth-server-url": "https://id.frappet.synology.me", - //"auth-server-url": "https://hrms-id.bangkok.go.th", "ssl-required": "external", "resource": "bma-ehr", - //"resource": "hrms", "public-client": true } \ No newline at end of file From 1b6cc4f014c6bb119f595163af143645c3ca8c22 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 21 Mar 2025 14:31:45 +0700 Subject: [PATCH 140/879] migrate + add field PositionExecutiveOld --- .../Models/Placement/PlacementAppointment.cs | 4 + .../Models/Placement/PlacementOfficer.cs | 2 + .../Models/Placement/PlacementReceive.cs | 2 + .../Models/Placement/PlacementRepatriation.cs | 2 + .../Models/Placement/PlacementTransfer.cs | 2 + .../Models/Retirement/RetirementDeceased.cs | 2 + .../Models/Retirement/RetirementOther.cs | 2 + .../Models/Retirement/RetirementOut.cs | 2 + ...061705_addPositionExecutiveOld.Designer.cs | 19916 ++++++++++++++++ .../20250321061705_addPositionExecutiveOld.cs | 126 + .../ApplicationDBContextModelSnapshot.cs | 36 + .../PlacementAppointmentController.cs | 7 +- .../Controllers/PlacementOfficerController.cs | 5 + .../Controllers/PlacementReceiveController.cs | 4 + .../PlacementRepatriationController.cs | 3 + .../PlacementTransferController.cs | 6 + .../Requests/OrgRequest.cs | 1 + .../RetirementDeceasedController.cs | 4 + .../Controllers/RetirementOtherController.cs | 3 + .../Controllers/RetirementOutController.cs | 3 + 20 files changed, 20131 insertions(+), 1 deletion(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250321061705_addPositionExecutiveOld.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250321061705_addPositionExecutiveOld.cs diff --git a/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs b/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs index af05a754..ebe94d91 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs @@ -117,6 +117,8 @@ namespace BMA.EHR.Domain.Models.Placement public int? posMasterNo { get; set; } [Comment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™")] public string? position { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? PositionExecutive { get; set; } [Comment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡")] public string? posTypeId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡")] @@ -164,6 +166,8 @@ namespace BMA.EHR.Domain.Models.Placement public int? posMasterNoOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old")] public string? positionOld { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ")] + public string? PositionExecutiveOld { get; set; } [Comment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old")] public string? posTypeOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old")] diff --git a/BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs b/BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs index 6eeab00c..129c96b9 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs @@ -23,6 +23,8 @@ namespace BMA.EHR.Domain.Models.Placement public string? OrganizationOld { get; set; } [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ")] public string? PositionOld { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ")] + public string? PositionExecutiveOld { get; set; } [Comment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™")] public double? AmountOld { get; set; } [Comment("āļŠāļąāļ‡āļāļąāļ”")] diff --git a/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs b/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs index 8f72706c..e51113ce 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs @@ -47,6 +47,8 @@ namespace BMA.EHR.Domain.Models.Placement public string? OrganizationOld { get; set; } [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ")] public string? PositionOld { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ")] + public string? PositionExecutiveOld { get; set; } [Comment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—")] public string? PositionTypeOld { get; set; } [Comment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš")] diff --git a/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs b/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs index 7ee144bd..5cb88bfd 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs @@ -19,6 +19,8 @@ namespace BMA.EHR.Domain.Models.Placement public string? OrganizationOld { get; set; } [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ")] public string? PositionOld { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ")] + public string? PositionExecutiveOld { get; set; } [Comment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ")] public DateTime? Date { get; set; } [Comment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—")] diff --git a/BMA.EHR.Domain/Models/Placement/PlacementTransfer.cs b/BMA.EHR.Domain/Models/Placement/PlacementTransfer.cs index 759ec7b6..5f770d73 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementTransfer.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementTransfer.cs @@ -19,6 +19,8 @@ namespace BMA.EHR.Domain.Models.Placement public string? OrganizationOld { get; set; } [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ")] public string? PositionOld { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ")] + public string? PositionExecutiveOld { get; set; } [Comment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ")] public DateTime? Date { get; set; } [Comment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—")] diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs b/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs index 93f2744c..62e627c2 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs @@ -81,6 +81,8 @@ namespace BMA.EHR.Domain.Models.Retirement public int? posMasterNo { get; set; } [Comment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™")] public string? position { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ")] + public string? PositionExecutiveOld { get; set; } [Comment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡")] public string? posTypeId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡")] diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs b/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs index d469323c..ac49ddc9 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs @@ -27,6 +27,8 @@ namespace BMA.EHR.Domain.Models.Retirement public string? OrganizationOld { get; set; } [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ")] public string? PositionOld { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ")] + public string? PositionExecutiveOld { get; set; } [Comment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—")] public string? PositionTypeOld { get; set; } [Comment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš")] diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs b/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs index c3be3868..1a3013bf 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs @@ -19,6 +19,8 @@ namespace BMA.EHR.Domain.Models.Retirement public string? OrganizationOld { get; set; } [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ")] public string? PositionOld { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ")] + public string? PositionExecutiveOld { get; set; } [Comment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ")] public DateTime? Date { get; set; } [Comment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—")] diff --git a/BMA.EHR.Infrastructure/Migrations/20250321061705_addPositionExecutiveOld.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250321061705_addPositionExecutiveOld.Designer.cs new file mode 100644 index 00000000..346c8e0b --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250321061705_addPositionExecutiveOld.Designer.cs @@ -0,0 +1,19916 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250321061705_addPositionExecutiveOld")] + partial class addPositionExecutiveOld + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250321061705_addPositionExecutiveOld.cs b/BMA.EHR.Infrastructure/Migrations/20250321061705_addPositionExecutiveOld.cs new file mode 100644 index 00000000..2796efca --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250321061705_addPositionExecutiveOld.cs @@ -0,0 +1,126 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class addPositionExecutiveOld : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "PositionExecutiveOld", + table: "RetirementOuts", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "PositionExecutiveOld", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "PositionExecutiveOld", + table: "RetirementDeceaseds", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "PositionExecutiveOld", + table: "PlacementTransfers", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "PositionExecutiveOld", + table: "PlacementRepatriations", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "PositionExecutiveOld", + table: "PlacementReceives", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "PositionExecutiveOld", + table: "PlacementOfficers", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "PositionExecutive", + table: "PlacementAppointments", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "PositionExecutiveOld", + table: "PlacementAppointments", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "PositionExecutiveOld", + table: "RetirementOuts"); + + migrationBuilder.DropColumn( + name: "PositionExecutiveOld", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "PositionExecutiveOld", + table: "RetirementDeceaseds"); + + migrationBuilder.DropColumn( + name: "PositionExecutiveOld", + table: "PlacementTransfers"); + + migrationBuilder.DropColumn( + name: "PositionExecutiveOld", + table: "PlacementRepatriations"); + + migrationBuilder.DropColumn( + name: "PositionExecutiveOld", + table: "PlacementReceives"); + + migrationBuilder.DropColumn( + name: "PositionExecutiveOld", + table: "PlacementOfficers"); + + migrationBuilder.DropColumn( + name: "PositionExecutive", + table: "PlacementAppointments"); + + migrationBuilder.DropColumn( + name: "PositionExecutiveOld", + table: "PlacementAppointments"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index f8abecb6..7ec86d31 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -11441,6 +11441,14 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("datetime(6)") .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + b.Property("PositionLevelOld") .HasColumnType("longtext") .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); @@ -12227,6 +12235,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + b.Property("PositionLevelOld") .HasColumnType("longtext") .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); @@ -13243,6 +13255,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + b.Property("PositionLevelOld") .HasColumnType("longtext") .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); @@ -13922,6 +13938,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + b.Property("PositionLevelOld") .HasColumnType("longtext") .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); @@ -14143,6 +14163,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + b.Property("PositionLevelOld") .HasColumnType("longtext") .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); @@ -14573,6 +14597,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + b.Property("Reason") .HasColumnType("longtext") .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); @@ -15108,6 +15136,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("datetime(6)") .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + b.Property("PositionLevelOld") .HasColumnType("longtext") .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); @@ -15397,6 +15429,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + b.Property("PositionLevelOld") .HasColumnType("longtext") .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index e1d4d513..8238d127 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -117,6 +117,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.positionId, p.posMasterNo, p.position, + p.PositionExecutive, p.positionField, p.posTypeId, p.posTypeName, @@ -165,6 +166,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.OrganizationOld, p.posmasterId, p.positionOld, + p.PositionExecutiveOld, p.CreatedAt, p.typeCommand, }) @@ -226,6 +228,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.positionId, p.posMasterNo, p.position, + p.PositionExecutive, p.positionField, p.posTypeId, p.posTypeName, @@ -269,6 +272,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.AmountOld, p.OrganizationOld, p.positionOld, + p.PositionExecutiveOld, p.typeCommand, p.posmasterId, }) @@ -362,7 +366,7 @@ namespace BMA.EHR.Placement.Service.Controllers } /// - /// āļŠāļĢāđ‰āļēāļ‡āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡-āđ€āļĨāļ·āđˆāļ­āļ™ + /// āļŠāļĢāđ‰āļēāļ‡āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡-āđ€āļĨāļ·āđˆāļ­āļ™-āļĒāđ‰āļēāļĒ /// /// /// @@ -448,6 +452,7 @@ namespace BMA.EHR.Placement.Service.Controllers // placementAppointment.AmountOld = profile.Salaries.Count() == 0 ? null : profile.Salaries.OrderByDescending(x => x.Order).FirstOrDefault().Amount; placementAppointment.positionOld = org.result.position; + placementAppointment.PositionExecutiveOld = org.result.posExecutiveName; placementAppointment.PositionLevelOld = org.result.posLevelName; placementAppointment.PositionTypeOld = org.result.posTypeName; placementAppointment.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 14fafef4..06324c54 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -112,6 +112,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.child4OldId, p.child4ShortNameOld, p.PositionOld, + p.PositionExecutiveOld, p.posMasterNoOld, p.posTypeOldId, p.posTypeNameOld, @@ -183,6 +184,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.child4OldId, p.child4ShortNameOld, p.PositionOld, + p.PositionExecutiveOld, p.posMasterNoOld, p.posTypeOldId, p.posTypeNameOld, @@ -240,6 +242,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.child4OldId, p.child4ShortNameOld, p.PositionOld, + p.PositionExecutiveOld, p.posMasterNoOld, p.posTypeOldId, p.posTypeNameOld, @@ -319,6 +322,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.Organization, p.OrganizationPositionOld, p.PositionOld, + p.PositionExecutiveOld, p.OrganizationOld, p.IsActive, }) @@ -398,6 +402,7 @@ namespace BMA.EHR.Placement.Service.Controllers placementOfficer.posLevelNameOld = org.result.posLevelName; placementOfficer.PositionOld = org.result.position; + placementOfficer.PositionExecutiveOld = org.result.posExecutiveName; placementOfficer.PositionLevelOld = org.result.posLevelName; placementOfficer.PositionTypeOld = org.result.posTypeName; placementOfficer.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index beb6fe35..31a1b4b2 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -156,6 +156,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.child4ShortNameOld, p.posMasterNoOld, p.PositionOld, + p.PositionExecutiveOld, p.posTypeOldId, p.posTypeNameOld, p.posLevelOldId, @@ -242,6 +243,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.EducationOld, p.AmountOld, p.PositionOld, + p.PositionExecutiveOld, p.OrganizationOld, p.PositionTypeOld, p.PositionLevelOld, @@ -340,6 +342,7 @@ namespace BMA.EHR.Placement.Service.Controllers data.EducationOld, data.AmountOld, data.PositionOld, + data.PositionExecutiveOld, organizationOld = data.OrganizationOld == "/" || data.OrganizationOld == null ? null : data.OrganizationOld, data.PositionTypeOld, data.PositionLevelOld, @@ -494,6 +497,7 @@ namespace BMA.EHR.Placement.Service.Controllers placementReceive.AmountOld = org.result.Amount; placementReceive.PositionOld = org.result.position; + placementReceive.PositionExecutiveOld = org.result.posExecutiveName; placementReceive.PositionLevelOld = org.result.posLevelName; placementReceive.PositionTypeOld = org.result.posTypeName; placementReceive.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index 6e9a178f..ab55e124 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -113,6 +113,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.child4OldId, p.child4ShortNameOld, p.PositionOld, + p.PositionExecutiveOld, p.posMasterNoOld, p.posTypeOldId, p.posTypeNameOld, @@ -199,6 +200,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.PositionNumberOld, p.OrganizationPositionOld, p.PositionOld, + p.PositionExecutiveOld, p.DateRepatriation, }) .FirstOrDefaultAsync(); @@ -277,6 +279,7 @@ namespace BMA.EHR.Placement.Service.Controllers placementRepatriation.posLevelNameOld = org.result.posLevelName; placementRepatriation.PositionOld = org.result.position; + placementRepatriation.PositionExecutiveOld = org.result.posExecutiveName; placementRepatriation.PositionLevelOld = org.result.posLevelName; placementRepatriation.PositionTypeOld = org.result.posTypeName; placementRepatriation.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index c1421929..589fd9f7 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -206,6 +206,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.child4OldId, p.child4ShortNameOld, p.PositionOld, + p.PositionExecutiveOld, p.posMasterNoOld, p.posTypeOldId, p.posTypeNameOld, @@ -281,6 +282,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.PositionNumberOld, p.OrganizationPositionOld, p.PositionOld, + p.PositionExecutiveOld, PlacementTransferDocs = p.PlacementTransferDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), }) .FirstOrDefaultAsync(); @@ -335,6 +337,7 @@ namespace BMA.EHR.Placement.Service.Controllers data.PositionNumberOld, data.OrganizationPositionOld, data.PositionOld, + data.PositionExecutiveOld, Docs = placementTransferDocs, }; @@ -403,6 +406,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.PositionNumberOld, p.OrganizationPositionOld, p.PositionOld, + p.PositionExecutiveOld, PlacementTransferDocs = p.PlacementTransferDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), }) .FirstOrDefaultAsync(); @@ -457,6 +461,7 @@ namespace BMA.EHR.Placement.Service.Controllers data.PositionNumberOld, data.OrganizationPositionOld, data.PositionOld, + data.PositionExecutiveOld, Docs = placementTransferDocs, }; @@ -532,6 +537,7 @@ namespace BMA.EHR.Placement.Service.Controllers placementTransfer.posLevelNameOld = org.result.posLevelName; placementTransfer.AmountOld = org.result.salary; placementTransfer.PositionOld = org.result.position; + placementTransfer.PositionExecutiveOld = org.result.posExecutiveName; placementTransfer.PositionLevelOld = org.result.posLevelName; placementTransfer.PositionTypeOld = org.result.posTypeName; placementTransfer.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; diff --git a/BMA.EHR.Placement.Service/Requests/OrgRequest.cs b/BMA.EHR.Placement.Service/Requests/OrgRequest.cs index 9fa91594..71dbcc81 100644 --- a/BMA.EHR.Placement.Service/Requests/OrgRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/OrgRequest.cs @@ -41,6 +41,7 @@ namespace BMA.EHR.Placement.Service.Requests public string? nodeShortName { get; set; } public int? posMasterNo { get; set; } public string? position { get; set; } + public string? posExecutiveName { get; set; } public string? posTypeId { get; set; } public string? posTypeName { get; set; } public string? posLevelId { get; set; } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 62d99aae..301a32f6 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -114,6 +114,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.child4ShortName, p.posMasterNo, p.position, + p.PositionExecutiveOld, p.posLevelName, p.posTypeName, p.CreatedAt, @@ -157,6 +158,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.child4ShortName, p.posMasterNo, p.position, + p.PositionExecutiveOld, p.posLevelName, p.posTypeName, p.Number, @@ -191,6 +193,7 @@ namespace BMA.EHR.Retirement.Service.Controllers data.child4ShortName, data.posMasterNo, data.position, + data.PositionExecutiveOld, data.posLevelName, data.posTypeName, data.Number, @@ -285,6 +288,7 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceased.child4ShortName = org.result.child4ShortName; retirementDeceased.posMasterNo = org.result.posMasterNo; retirementDeceased.position = org.result.position; + retirementDeceased.PositionExecutiveOld = org.result.posExecutiveName; retirementDeceased.posTypeId = org.result.posTypeId; retirementDeceased.posTypeName = $"{org.result.posTypeShortName} {org.result.posTypeName}"; retirementDeceased.posLevelId = org.result.posLevelId; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index fd0e8af2..c6372bad 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -128,6 +128,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.child4OldId, p.child4ShortNameOld, p.PositionOld, + p.PositionExecutiveOld, p.posMasterNoOld, p.posTypeOldId, p.posTypeNameOld, @@ -234,6 +235,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.PositionNumberOld, p.OrganizationPositionOld, p.PositionOld, + p.PositionExecutiveOld, p.OrganizationOld, p.PositionDate, CommandType = p.CommandType == null ? null : p.CommandType.Name, @@ -319,6 +321,7 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOther.LeaveDate = org.result.leaveDate; retirementOther.PositionOld = org.result.position; + retirementOther.PositionExecutiveOld = org.result.posExecutiveName; retirementOther.PositionLevelOld = org.result.posLevelName; retirementOther.PositionTypeOld = org.result.posTypeName; retirementOther.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index fa573c93..c95d9f2c 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -130,6 +130,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.child4OldId, p.child4ShortNameOld, p.PositionOld, + p.PositionExecutiveOld, p.posMasterNoOld, p.posTypeOldId, p.posTypeNameOld, @@ -217,6 +218,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.PositionNumberOld, p.OrganizationPositionOld, p.PositionOld, + p.PositionExecutiveOld, p.OrganizationOld, }) .FirstOrDefaultAsync(); @@ -296,6 +298,7 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOut.posLevelNameOld = org.result.posLevelName; retirementOut.PositionOld = org.result.position; + retirementOut.PositionExecutiveOld = org.result.posExecutiveName; retirementOut.PositionLevelOld = org.result.posLevelName; retirementOut.PositionTypeOld = org.result.posTypeName; retirementOut.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; From b8fef58b2847e0ed0cfba8766aadcff090018152 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 21 Mar 2025 15:44:11 +0700 Subject: [PATCH 141/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20middleware=20=E0=B9=83=E0=B8=99=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B9=80=E0=B8=82=E0=B8=B5=E0=B8=A2=E0=B8=99=20log=20?= =?UTF-8?q?=E0=B9=82=E0=B8=94=E0=B8=A2=E0=B9=80=E0=B8=82=E0=B8=B5=E0=B8=A2?= =?UTF-8?q?=E0=B8=99=E0=B9=84=E0=B8=9B=20elasticsearch=20=E0=B9=82?= =?UTF-8?q?=E0=B8=94=E0=B8=A2=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=83=E0=B8=8A?= =?UTF-8?q?=E0=B9=89=20Serilog=20=E0=B9=80=E0=B8=9E=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=88=E0=B8=B1=E0=B8=94=20format=20=E0=B9=80?= =?UTF-8?q?=E0=B8=AD=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Domain/BMA.EHR.Domain.csproj | 2 + .../Middlewares/RequestLoggingMiddleware.cs | 101 ++++++++++++++++++ BMA.EHR.Insignia/Program.cs | 4 +- BMA.EHR.Insignia/appsettings.json | 3 +- BMA.EHR.Leave/BMA.EHR.Leave.csproj | 1 + BMA.EHR.Leave/Program.cs | 29 +++-- 6 files changed, 130 insertions(+), 10 deletions(-) create mode 100644 BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs diff --git a/BMA.EHR.Domain/BMA.EHR.Domain.csproj b/BMA.EHR.Domain/BMA.EHR.Domain.csproj index ddecb8d8..be1779a2 100644 --- a/BMA.EHR.Domain/BMA.EHR.Domain.csproj +++ b/BMA.EHR.Domain/BMA.EHR.Domain.csproj @@ -10,6 +10,8 @@ + + diff --git a/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs b/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs new file mode 100644 index 00000000..ef1297ac --- /dev/null +++ b/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs @@ -0,0 +1,101 @@ +ïŧŋusing Microsoft.AspNetCore.Http; +using Microsoft.Extensions.Logging.Abstractions; +using Nest; +using Serilog; +using System.Diagnostics; +using System.IO; +using System.Text.Json; + +namespace BMA.EHR.Domain.Middlewares +{ + public class RequestLoggingMiddleware + { + private readonly RequestDelegate _next; + + public RequestLoggingMiddleware(RequestDelegate next) + { + _next = next; + } + + public async Task Invoke(HttpContext context) + { + var settings = new ConnectionSettings(new Uri("http://192.168.1.40:9200")) + .DefaultIndex("bma-ehr-log-test-net"); + + var client = new ElasticClient(settings); + + + var startTime = DateTime.UtcNow; + var stopwatch = Stopwatch.StartNew(); + + string requestBody = await ReadRequestBodyAsync(context); + + var originalBodyStream = context.Response.Body; + + + + using (var memoryStream = new MemoryStream()) + { + // āđ€āļ›āļĨāļĩāđˆāļĒāļ™ stream āļ‚āļ­āļ‡ Response āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰āļŠāļēāļĄāļēāļĢāļ–āļ­āđˆāļēāļ™āđ„āļ”āđ‰ + context.Response.Body = memoryStream; + + await _next(context); // āļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ•āđˆāļ­āđ„āļ›āļĒāļąāļ‡ Middleware āļ­āļ·āđˆāļ™ āđ† + + + + + stopwatch.Stop(); + var processTime = stopwatch.ElapsedMilliseconds; + var endTime = DateTime.UtcNow; + + var logType = context.Response.StatusCode switch + { + >= 500 => "error", + >= 400 => "warning", + _ => "info" + }; + + // āļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Response āļŦāļĨāļąāļ‡āļˆāļēāļāļ—āļĩāđˆāđ„āļ”āđ‰āļ–āļđāļāļŠāđˆāļ‡āļ­āļ­āļāđ„āļ› + memoryStream.Seek(0, SeekOrigin.Begin); + var responseBody = new StreamReader(memoryStream).ReadToEnd(); + + var logData = new + { + logType = logType, + ip = context.Connection.RemoteIpAddress?.ToString(), + rootId = context.Items["RootId"] ?? null, + systemName = "test", + startTimeStamp = startTime.ToString("o"), + endTimeStamp = endTime.ToString("o"), + processTime = processTime, + host = context.Request.Host.Value, + method = context.Request.Method, + endpoint = context.Request.Path + context.Request.QueryString, + responseCode = context.Response.StatusCode == 304 ? "200" : context.Response.StatusCode.ToString(), + responseDescription = context.Items["ResponseMessage"] ?? null, + input = requestBody, + output = responseBody + }; + + // āđ€āļ‚āļĩāļĒāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļāļĨāļąāļšāđ„āļ›āļĒāļąāļ‡ original Response body + memoryStream.Seek(0, SeekOrigin.Begin); + await memoryStream.CopyToAsync(originalBodyStream); + + client.IndexDocument(logData); + + } + + + //Log.Information("API Request Log: {@LogData}", logData); + } + + private async Task ReadRequestBodyAsync(HttpContext context) + { + context.Request.EnableBuffering(); + using var reader = new StreamReader(context.Request.Body, leaveOpen: true); + var body = await reader.ReadToEndAsync(); + context.Request.Body.Position = 0; + return body; + } + } +} diff --git a/BMA.EHR.Insignia/Program.cs b/BMA.EHR.Insignia/Program.cs index 2fbdb925..cec95718 100644 --- a/BMA.EHR.Insignia/Program.cs +++ b/BMA.EHR.Insignia/Program.cs @@ -174,6 +174,7 @@ var app = builder.Build(); app.UseStaticFiles(); app.MapControllers(); app.UseMiddleware(); + app.UseMiddleware(); app.UseHangfireDashboard("/hangfire", new DashboardOptions() { Authorization = new[] { new CustomAuthorizeFilter() } @@ -223,7 +224,8 @@ ElasticsearchSinkOptions ConfigureElasticSink(IConfigurationRoot configuration, return new ElasticsearchSinkOptions(new Uri(configuration["ElasticConfiguration:Uri"] ?? "")) { AutoRegisterTemplate = true, - IndexFormat = $"{Assembly.GetExecutingAssembly()?.GetName()?.Name?.ToLower().Replace(".", "-")}-{environment?.ToLower().Replace(".", "-")}" + IndexFormat = "bma-ehr-log-index", + //IndexFormat = $"{Assembly.GetExecutingAssembly()?.GetName()?.Name?.ToLower().Replace(".", "-")}-{environment?.ToLower().Replace(".", "-")}" }; } diff --git a/BMA.EHR.Insignia/appsettings.json b/BMA.EHR.Insignia/appsettings.json index 6bc61705..6c16b2ac 100644 --- a/BMA.EHR.Insignia/appsettings.json +++ b/BMA.EHR.Insignia/appsettings.json @@ -9,8 +9,9 @@ } }, "ElasticConfiguration": { - "Uri": "http://localhost:9200" + "Uri": "http://192.168.1.40:9200" }, + "LogIndex": "bma-ehr-log-index", "AllowedHosts": "*", "ConnectionStrings": { //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", diff --git a/BMA.EHR.Leave/BMA.EHR.Leave.csproj b/BMA.EHR.Leave/BMA.EHR.Leave.csproj index 63814a03..44767778 100644 --- a/BMA.EHR.Leave/BMA.EHR.Leave.csproj +++ b/BMA.EHR.Leave/BMA.EHR.Leave.csproj @@ -40,6 +40,7 @@ + diff --git a/BMA.EHR.Leave/Program.cs b/BMA.EHR.Leave/Program.cs index 82ae3aea..864e0536 100644 --- a/BMA.EHR.Leave/Program.cs +++ b/BMA.EHR.Leave/Program.cs @@ -161,6 +161,7 @@ app.UseDefaultFiles(); app.UseStaticFiles(); app.MapControllers(); app.UseMiddleware(); +app.UseMiddleware(); app.UseHangfireDashboard("/hangfire", new DashboardOptions() @@ -196,14 +197,25 @@ void ConfigureLogs() .Build(); Log.Logger = new LoggerConfiguration() - .Enrich.FromLogContext() - .MinimumLevel.Error() - .WriteTo.Console() - .Enrich.WithExceptionDetails() - .WriteTo.Elasticsearch(ConfigureElasticSink(configuration, environment ?? "")) - .Enrich.WithProperty("Environment", environment) - .ReadFrom.Configuration(configuration) - .CreateLogger(); + .WriteTo.Console() // āđāļŠāļ”āļ‡ Log āļšāļ™ Console + .WriteTo.Elasticsearch(new ElasticsearchSinkOptions(new Uri("http://192.168.1.40:9200")) + { + AutoRegisterTemplate = true, + IndexFormat = "bma-ehr-log-test" // āđ€āļāđ‡āļšāđ€āļ›āđ‡āļ™ daily index + }) + .CreateLogger(); + + Log.Information("Test Log to Elasticsearch"); + + //Log.Logger = new LoggerConfiguration() + // .Enrich.FromLogContext() + // .MinimumLevel.Error() + // .WriteTo.Console() + // .Enrich.WithExceptionDetails() + // .WriteTo.Elasticsearch(ConfigureElasticSink(configuration, environment ?? "")) + // .Enrich.WithProperty("Environment", environment) + // .ReadFrom.Configuration(configuration) + // .CreateLogger(); } ElasticsearchSinkOptions ConfigureElasticSink(IConfigurationRoot configuration, string environment) @@ -211,6 +223,7 @@ ElasticsearchSinkOptions ConfigureElasticSink(IConfigurationRoot configuration, return new ElasticsearchSinkOptions(new Uri(configuration["ElasticConfiguration:Uri"] ?? "")) { AutoRegisterTemplate = true, + //IndexFormat = "bma-ehr-log-index-netS", IndexFormat = $"{Assembly.GetExecutingAssembly()?.GetName()?.Name?.ToLower().Replace(".", "-")}-{environment?.ToLower().Replace(".", "-")}" }; } From eaa54a13f7e090d5f4fd0537983415483d9e8177 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 21 Mar 2025 18:08:41 +0700 Subject: [PATCH 142/879] migrate --- .../Models/Placement/PlacementProfile.cs | 4 + .../Models/Retirement/RetirementResign.cs | 2 + .../Retirement/RetirementResignCancel.cs | 2 + ...05020_addPositionExecutiveOld2.Designer.cs | 19932 ++++++++++++++++ ...20250321105020_addPositionExecutiveOld2.cs | 66 + .../ApplicationDBContextModelSnapshot.cs | 16 + .../Controllers/RetirementResignController.cs | 3 + .../Requests/RetirementResignRequest.cs | 1 + 8 files changed, 20026 insertions(+) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250321105020_addPositionExecutiveOld2.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250321105020_addPositionExecutiveOld2.cs diff --git a/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs b/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs index c0190cbb..597ec658 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs @@ -319,6 +319,8 @@ namespace BMA.EHR.Domain.Models.Placement public int? posMasterNo { get; set; } [Comment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™")] public string? positionName { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? PositionExecutive { get; set; } [Comment("āļŠāļēāļĒāļ‡āļēāļ™")] public string? positionField { get; set; } [Comment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡")] @@ -381,6 +383,8 @@ namespace BMA.EHR.Domain.Models.Placement public int? posMasterNoOld { get; set; } [Comment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™")] public string? positionNameOld { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ")] + public string? PositionExecutiveOld { get; set; } [Comment("āļŠāļēāļĒāļ‡āļēāļ™")] public string? positionFieldOld { get; set; } [Comment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡")] diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs index 79cb6a61..312c297c 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs @@ -83,6 +83,8 @@ namespace BMA.EHR.Domain.Models.Retirement public string? OrganizationOld { get; set; } [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ")] public string? PositionOld { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ")] + public string? PositionExecutiveOld { get; set; } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs index b5c5ff38..f7f519de 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs @@ -73,6 +73,8 @@ namespace BMA.EHR.Domain.Models.Retirement public string? OrganizationOld { get; set; } [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ")] public string? PositionOld { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ")] + public string? PositionExecutiveOld { get; set; } diff --git a/BMA.EHR.Infrastructure/Migrations/20250321105020_addPositionExecutiveOld2.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250321105020_addPositionExecutiveOld2.Designer.cs new file mode 100644 index 00000000..00918a08 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250321105020_addPositionExecutiveOld2.Designer.cs @@ -0,0 +1,19932 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250321105020_addPositionExecutiveOld2")] + partial class addPositionExecutiveOld2 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250321105020_addPositionExecutiveOld2.cs b/BMA.EHR.Infrastructure/Migrations/20250321105020_addPositionExecutiveOld2.cs new file mode 100644 index 00000000..67f3f0af --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250321105020_addPositionExecutiveOld2.cs @@ -0,0 +1,66 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class addPositionExecutiveOld2 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "PositionExecutiveOld", + table: "RetirementResigns", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "PositionExecutiveOld", + table: "RetirementResignCancels", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "PositionExecutive", + table: "PlacementProfiles", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "PositionExecutiveOld", + table: "PlacementProfiles", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "PositionExecutiveOld", + table: "RetirementResigns"); + + migrationBuilder.DropColumn( + name: "PositionExecutiveOld", + table: "RetirementResignCancels"); + + migrationBuilder.DropColumn( + name: "PositionExecutive", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "PositionExecutiveOld", + table: "PlacementProfiles"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 7ec86d31..1d689208 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -12711,6 +12711,14 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + b.Property("PositionLevel") .HasColumnType("longtext") .HasComment("āļĢāļ°āļ”āļąāļš"); @@ -16664,6 +16672,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + b.Property("PositionLevelOld") .HasColumnType("longtext") .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); @@ -16972,6 +16984,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + b.Property("PositionLevelOld") .HasColumnType("longtext") .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 2db7d80b..9e310a2c 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -939,6 +939,7 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementResign.posLevelNameOld = org.result.posLevelName; retirementResign.AmountOld = org.result.salary; retirementResign.PositionOld = org.result.position; + retirementResign.PositionExecutiveOld = org.result.posExecutiveName; retirementResign.PositionLevelOld = org.result.posLevelName; retirementResign.PositionTypeOld = org.result.posTypeName; retirementResign.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; @@ -1048,6 +1049,7 @@ namespace BMA.EHR.Retirement.Service.Controllers updated.Reason = req.Reason; updated.Remark = req.Remark; updated.OrganizationPositionOld = req.OrganizationPositionOld; + updated.PositionExecutiveOld = req.PositionExecutiveOld; updated.RemarkHorizontal = req.RemarkHorizontal; updated.PositionTypeOld = req.PositionTypeOld; updated.PositionLevelOld = req.PositionLevelOld; @@ -1167,6 +1169,7 @@ namespace BMA.EHR.Retirement.Service.Controllers Reason = updated.ReasonResign, Remark = updated.Remark, OrganizationPositionOld = updated.OrganizationPositionOld, + PositionExecutiveOld = updated.PositionExecutiveOld, PositionTypeOld = updated.PositionTypeOld, PositionLevelOld = updated.PositionLevelOld, PositionNumberOld = updated.PositionNumberOld, diff --git a/BMA.EHR.Retirement.Service/Requests/RetirementResignRequest.cs b/BMA.EHR.Retirement.Service/Requests/RetirementResignRequest.cs index 36d5f031..7f1bf500 100644 --- a/BMA.EHR.Retirement.Service/Requests/RetirementResignRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/RetirementResignRequest.cs @@ -12,6 +12,7 @@ namespace BMA.EHR.Retirement.Service.Requests public string? Remark { get; set; } public string? ReasonResign { get; set; } public string? OrganizationPositionOld { get; set; } + public string? PositionExecutiveOld { get; set; } public string? PositionTypeOld { get; set; } public string? PositionLevelOld { get; set; } public string? PositionNumberOld { get; set; } From 0ec841f8268895cba72ec218b5bac2423ef434e2 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 21 Mar 2025 21:34:39 +0700 Subject: [PATCH 143/879] =?UTF-8?q?fix=20CheckTime=20=E0=B9=83=E0=B8=AB?= =?UTF-8?q?=E0=B9=89=E0=B9=83=E0=B8=8A=E0=B9=89=20Round=20=E0=B8=82?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=20user=20=E0=B9=81=E0=B8=A5=E0=B8=B0?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=8C=E0=B8=8A=E0=B9=87=E0=B8=84?= =?UTF-8?q?=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2=E0=B9=80=E0=B8=9B=E0=B9=87?= =?UTF-8?q?=E0=B8=99=20UTC+7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveController.cs | 27 +++++++++++++++++--- BMA.EHR.Leave/Program.cs | 7 ++--- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index c88c3430..6947557e 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -419,8 +419,26 @@ namespace BMA.EHR.Leave.Service.Controllers var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); var data = await _userTimeStampRepository.GetLastRecord(userId); + var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); + if (profile == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + var getDefaultRound = await _dutyTimeRepository.GetDefaultAsync(); + if (getDefaultRound == null) + { + return Error("āđ„āļĄāđˆāļžāļšāļĢāļ­āļšāļĨāļ‡āđ€āļ§āļĨāļē Default", StatusCodes.Status404NotFound); + } + + var effectiveDate = await _userDutyTimeRepository.GetLastEffectRound(profile.Id); + var roundId = effectiveDate != null ? effectiveDate.DutyTimeId : Guid.Empty; + var userRound = await _dutyTimeRepository.GetByIdAsync(roundId); + + var duty = userRound ?? getDefaultRound; + // TODO : āļĢāļ­āļ”āļļāļķāļ‡āļĢāļ­āļšāļ—āļĩāđˆāļœāļđāļāļāļąāļš user - var duty = await _dutyTimeRepository.GetDefaultAsync(); + //var duty = await _dutyTimeRepository.GetDefaultAsync(); CheckInResultDto ret; if (data == null) @@ -1776,7 +1794,9 @@ namespace BMA.EHR.Leave.Service.Controllers .FirstOrDefaultAsync(); - var endTime = DateTime.Parse($"{DateTime.Now.Date.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}"); + //var endTime = DateTimeOffset.Parse($"{DateTime.Now.Date.ToString("yyyy-MM-dd")}T{duty.EndTimeAfternoon}:00.0000000+07:00").ToLocalTime().DateTime; + + var endTime = DateTime.Parse($"{DateTime.Now.Date.ToString("yyyy-MM-dd")}T{duty.EndTimeAfternoon}:00.0000000+07:00"); var status = lastCheckIn == null ? "ABSENT" : lastCheckIn.CheckIn.Date < DateTime.Now.Date ? "NORMAL" : time < endTime ? "ABSENT" : "NORMAL"; @@ -1784,7 +1804,8 @@ namespace BMA.EHR.Leave.Service.Controllers { Status = status, StatusText = status == "ABSENT" ? "āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ" : "āļ›āļāļ•āļī", - ServerTime = time + ServerTime = time, + EndTime = endTime }); } diff --git a/BMA.EHR.Leave/Program.cs b/BMA.EHR.Leave/Program.cs index 864e0536..ebe39458 100644 --- a/BMA.EHR.Leave/Program.cs +++ b/BMA.EHR.Leave/Program.cs @@ -74,8 +74,8 @@ builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJw builder.Services.AddAuthorization(); // use serilog -ConfigureLogs(); -builder.Host.UseSerilog(); +//ConfigureLogs(); +//builder.Host.UseSerilog(); // Add config CORS builder.Services.AddCors(options => options.AddDefaultPolicy(builder => @@ -161,7 +161,8 @@ app.UseDefaultFiles(); app.UseStaticFiles(); app.MapControllers(); app.UseMiddleware(); -app.UseMiddleware(); +// Disable āļāđˆāļ­āļ™ āđ€āļžāļ·āđˆāļ­āđāļāđ‰āđ„āļ‚āđƒāļŦāđ‰āđ€āļĢāļĩāļšāļĢāđ‰āļ­āļĒāļāđˆāļ­āļ™āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™ +// app.UseMiddleware(); app.UseHangfireDashboard("/hangfire", new DashboardOptions() From 484ff736672be7d9f3e3e73013952b8fb50a6ff0 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 24 Mar 2025 14:40:46 +0700 Subject: [PATCH 144/879] migrate --- .../Models/Placement/PlacementReceive.cs | 2 + ...72026_addPositionExecutiveOld3.Designer.cs | 19936 ++++++++++++++++ ...20250324072026_addPositionExecutiveOld3.cs | 30 + .../ApplicationDBContextModelSnapshot.cs | 4 + 4 files changed, 19972 insertions(+) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250324072026_addPositionExecutiveOld3.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250324072026_addPositionExecutiveOld3.cs diff --git a/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs b/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs index e51113ce..85b2bd47 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs @@ -126,6 +126,8 @@ namespace BMA.EHR.Domain.Models.Placement public int? posMasterNo { get; set; } [Comment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™")] public string? position { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? PositionExecutive { get; set; } [Comment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡")] public string? posTypeId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡")] diff --git a/BMA.EHR.Infrastructure/Migrations/20250324072026_addPositionExecutiveOld3.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250324072026_addPositionExecutiveOld3.Designer.cs new file mode 100644 index 00000000..37321bb0 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250324072026_addPositionExecutiveOld3.Designer.cs @@ -0,0 +1,19936 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250324072026_addPositionExecutiveOld3")] + partial class addPositionExecutiveOld3 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250324072026_addPositionExecutiveOld3.cs b/BMA.EHR.Infrastructure/Migrations/20250324072026_addPositionExecutiveOld3.cs new file mode 100644 index 00000000..3d56a616 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250324072026_addPositionExecutiveOld3.cs @@ -0,0 +1,30 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class addPositionExecutiveOld3 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "PositionExecutive", + table: "PlacementReceives", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "PositionExecutive", + table: "PlacementReceives"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 1d689208..7b6fc0d6 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -13263,6 +13263,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + b.Property("PositionExecutiveOld") .HasColumnType("longtext") .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); From 6cb0ddff6bab8592094f71d2ef1e2f4f6ef306cf Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 24 Mar 2025 15:36:28 +0700 Subject: [PATCH 145/879] #1271 (1) placement and retirement --- .../PlacementAppointmentController.cs | 180 +++++++----------- .../PlacementAppointmentEmployeeController.cs | 8 +- .../Controllers/PlacementController.cs | 153 ++++++--------- .../Controllers/PlacementOfficerController.cs | 25 +-- .../Controllers/PlacementReceiveController.cs | 34 ++-- .../PlacementTransferController.cs | 17 +- .../RetirementDeceasedController.cs | 16 +- .../Controllers/RetirementOtherController.cs | 42 ++-- .../Controllers/RetirementOutController.cs | 16 +- .../Controllers/RetirementResignController.cs | 25 +-- .../RetirementResignEmployeeController.cs | 26 +-- 11 files changed, 203 insertions(+), 339 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 8238d127..55406e64 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -456,10 +456,10 @@ namespace BMA.EHR.Placement.Service.Controllers placementAppointment.PositionLevelOld = org.result.posLevelName; placementAppointment.PositionTypeOld = org.result.posTypeName; placementAppointment.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + - (org.result.child3 == null ? "" : org.result.child3 + " ") + - (org.result.child2 == null ? "" : org.result.child2 + " ") + - (org.result.child1 == null ? "" : org.result.child1 + " ") + + placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); placementAppointment.OrganizationPositionOld = org.result.position + "\n" + placementAppointment.OrganizationOld; placementAppointment.AmountOld = org.result.salary; @@ -812,33 +812,23 @@ namespace BMA.EHR.Placement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : - p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child1Old} {p.rootOld}" : - p.rootOld != null - ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld} {p.rootOld}" : "-", + OldOc = (p.positionOld == null ? "" : $"{p.positionOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = "-", - NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : - p.node == 4 - ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 3 - ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 2 - ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position} {p.child2} {p.child1} {p.root}" : - p.node == 1 - ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position} {p.child1} {p.root}" : - p.node == 0 - ? p.position == null ? $"{p.root}" : $"{p.position} {p.root}" : "-", + NewOc = (p.position == null ? "" : $"{p.position}\n") + + (p.child4 == null ? "" : $"{p.child4}\n") + + (p.child3 == null ? "" : $"{p.child3}\n") + + (p.child2 == null ? "" : $"{p.child2}\n") + + (p.child1 == null ? "" : $"{p.child1}\n") + + (p.root == null ? "" : $"{p.root}"), NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : @@ -1036,33 +1026,23 @@ namespace BMA.EHR.Placement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : - p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child1Old} {p.rootOld}" : - p.rootOld != null - ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld} {p.rootOld}" : "-", + OldOc = (p.positionOld == null ? "" : $"{p.positionOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = "-", - NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : - p.node == 4 - ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 3 - ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 2 - ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position} {p.child2} {p.child1} {p.root}" : - p.node == 1 - ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position} {p.child1} {p.root}" : - p.node == 0 - ? p.position == null ? $"{p.root}" : $"{p.position} {p.root}" : "-", + NewOc = (p.position == null ? "" : $"{p.position}\n") + + (p.child4 == null ? "" : $"{p.child4}\n") + + (p.child3 == null ? "" : $"{p.child3}\n") + + (p.child2 == null ? "" : $"{p.child2}\n") + + (p.child1 == null ? "" : $"{p.child1}\n") + + (p.root == null ? "" : $"{p.root}"), NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : @@ -1262,31 +1242,21 @@ namespace BMA.EHR.Placement.Service.Controllers { No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - OldOrganization = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : - p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child1Old} {p.rootOld}" : - p.rootOld != null - ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld} {p.rootOld}" : "-", + OldOrganization = (p.positionOld == null ? "" : $"{p.positionOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld.ToThaiNumber(), OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), - NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : - p.node == 4 - ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 3 - ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 2 - ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position} {p.child2} {p.child1} {p.root}" : - p.node == 1 - ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position} {p.child1} {p.root}" : - p.node == 0 - ? p.position == null ? $"{p.root}" : $"{p.position} {p.root}" : "-", + NewOc = (p.position == null ? "" : $"{p.position}\n") + + (p.child4 == null ? "" : $"{p.child4}\n") + + (p.child3 == null ? "" : $"{p.child3}\n") + + (p.child2 == null ? "" : $"{p.child2}\n") + + (p.child1 == null ? "" : $"{p.child1}\n") + + (p.root == null ? "" : $"{p.root}"), NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName.ToThaiNumber(), NewPositionNumber = p.posMasterNo == null ? "-" : p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : @@ -1476,35 +1446,25 @@ namespace BMA.EHR.Placement.Service.Controllers { No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - OldOc = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : - p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child1Old} {p.rootOld}" : - p.rootOld != null - ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld} {p.rootOld}" : "-", - OldPositionNumber = p.posMasterNoOld == null ? "-" : + OldOc = (p.positionOld == null ? "" : $"{p.positionOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), + OldPositionNumber = p.posMasterNoOld == null ? "-" : p.child4Old != null ? $"{p.child4ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : p.child3Old != null ? $"{p.child3ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : p.child2Old != null ? $"{p.child2ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : p.child1Old != null ? $"{p.child1ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : p.rootOld != null ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), - NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : - p.node == 4 - ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 3 - ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 2 - ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position} {p.child2} {p.child1} {p.root}" : - p.node == 1 - ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position} {p.child1} {p.root}" : - p.node == 0 - ? p.position == null ? $"{p.root}" : $"{p.position} {p.root}" : "-", + NewOc = (p.position == null ? "" : $"{p.position}\n") + + (p.child4 == null ? "" : $"{p.child4}\n") + + (p.child3 == null ? "" : $"{p.child3}\n") + + (p.child2 == null ? "" : $"{p.child2}\n") + + (p.child1 == null ? "" : $"{p.child1}\n") + + (p.root == null ? "" : $"{p.root}"), NewPositionNumber = p.posMasterNo == null ? "-" : p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : @@ -1701,17 +1661,12 @@ namespace BMA.EHR.Placement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = p.rootOld == null ? p.positionOld == null ? "-" : $"{p.positionOld}/-" : - p.child4Old != null - ? p.positionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child3Old != null - ? p.positionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child2Old != null - ? p.positionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child1Old != null - ? p.positionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionOld} {p.child1Old} {p.rootOld}" : - p.rootOld != null - ? p.positionOld == null ? $"{p.rootOld}" : $"{p.positionOld} {p.rootOld}" : "-", + OldOc = (p.positionOld == null ? "" : $"{p.positionOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : @@ -1722,17 +1677,12 @@ namespace BMA.EHR.Placement.Service.Controllers p.rootOld != null ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), PositionDate = p.PositionDate == null ? "-" : p.PositionDate.Value.ToThaiShortDate2().ToThaiNumber(), - NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : - p.node == 4 - ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 3 - ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 2 - ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position} {p.child2} {p.child1} {p.root}" : - p.node == 1 - ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position} {p.child1} {p.root}" : - p.node == 0 - ? p.position == null ? $"{p.root}" : $"{p.position} {p.root}" : "-", + NewOc = (p.position == null ? "" : $"{p.position}\n") + + (p.child4 == null ? "" : $"{p.child4}\n") + + (p.child3 == null ? "" : $"{p.child3}\n") + + (p.child2 == null ? "" : $"{p.child2}\n") + + (p.child1 == null ? "" : $"{p.child1}\n") + + (p.root == null ? "" : $"{p.root}"), NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "" : diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index ae52a64a..227448d9 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -483,10 +483,10 @@ namespace BMA.EHR.Placement.Service.Controllers placementAppointment.PositionLevelOld = org.result.posLevelName; placementAppointment.PositionTypeOld = org.result.posTypeName; placementAppointment.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + - (org.result.child3 == null ? "" : org.result.child3 + " ") + - (org.result.child2 == null ? "" : org.result.child2 + " ") + - (org.result.child1 == null ? "" : org.result.child1 + " ") + + placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); placementAppointment.OrganizationPositionOld = org.result.position + "\n" + placementAppointment.OrganizationOld; } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 8fe4064d..f47673e8 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1628,17 +1628,12 @@ namespace BMA.EHR.Placement.Service.Controllers PositionName = p.positionName == null ? "-" : p.positionName, ExamNumber = p.ExamNumber == null ? "-" : p.ExamNumber.Value.ToString().ToThaiNumber(), PlacementName = $"{p.Placement.Name.ToThaiNumber()} āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ {p.Placement.Round.ToThaiNumber()} {p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", - Oc = p.root == null ? p.positionName == null ? "-" : $"{p.positionName}/-" : - p.node == 4 - ? p.positionName == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 3 - ? p.positionName == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 2 - ? p.positionName == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child2} {p.child1} {p.root}" : - p.node == 1 - ? p.positionName == null ? $"{p.child1} {p.root}" : $"{p.positionName} {p.child1} {p.root}" : - p.node == 0 - ? p.positionName == null ? $"{p.root}" : $"{p.positionName} {p.root}" : "-", + Oc = (p.positionName == null ? "" : $"{p.positionName}\n") + + (p.child4 == null ? "" : $"{p.child4}\n") + + (p.child3 == null ? "" : $"{p.child3}\n") + + (p.child2 == null ? "" : $"{p.child2}\n") + + (p.child1 == null ? "" : $"{p.child1}\n") + + (p.root == null ? "" : $"{p.root}"), PositionType = p.posTypeName == null ? "-" : p.posTypeName, PositionLevel = p.posLevelName == null ? "-" : p.posLevelName, PositionNumber = p.posMasterNo == null ? "-" : @@ -1652,17 +1647,12 @@ namespace BMA.EHR.Placement.Service.Controllers CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), OccupationPosition = p.OccupationPosition == null ? "-" : p.OccupationPosition, //āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļāđˆāļēāļāđˆāļ­āļ™āļŠāļ­āļš PositionCandidate = p.PositionCandidate, //āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™ - OcCandidate = p.root == null ? p.positionName == null ? "-" : $"{p.positionName}/-" : - p.node == 4 - ? p.positionName == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 3 - ? p.positionName == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 2 - ? p.positionName == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child2} {p.child1} {p.root}" : - p.node == 1 - ? p.positionName == null ? $"{p.child1} {p.root}" : $"{p.positionName} {p.child1} {p.root}" : - p.node == 0 - ? p.positionName == null ? $"{p.root}" : $"{p.positionName} {p.root}" : "-", + OcCandidate = (p.positionName == null ? "" : $"{p.positionName}\n") + + (p.child4 == null ? "" : $"{p.child4}\n") + + (p.child3 == null ? "" : $"{p.child3}\n") + + (p.child2 == null ? "" : $"{p.child2}\n") + + (p.child1 == null ? "" : $"{p.child1}\n") + + (p.root == null ? "" : $"{p.root}"), RemarkHorizontal = r.RemarkHorizontal, RemarkVertical = r.RemarkVertical, }).ToList(); @@ -1968,17 +1958,12 @@ namespace BMA.EHR.Placement.Service.Controllers PositionName = p.positionName == null ? "-" : p.positionName, ExamNumber = p.ExamNumber == null ? "-" : p.ExamNumber.Value.ToString().ToThaiNumber(), PlacementName = $"{p.Placement.Name.ToThaiNumber()} āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ {p.Placement.Round.ToThaiNumber()} {p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", - Oc = p.root == null ? p.positionName == null ? "-" : $"{p.positionName}/-" : - p.node == 4 - ? p.positionName == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 3 - ? p.positionName == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 2 - ? p.positionName == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child2} {p.child1} {p.root}" : - p.node == 1 - ? p.positionName == null ? $"{p.child1} {p.root}" : $"{p.positionName} {p.child1} {p.root}" : - p.node == 0 - ? p.positionName == null ? $"{p.root}" : $"{p.positionName} {p.root}" : "-", + Oc = (p.positionName == null ? "" : $"{p.positionName}\n") + + (p.child4 == null ? "" : $"{p.child4}\n") + + (p.child3 == null ? "" : $"{p.child3}\n") + + (p.child2 == null ? "" : $"{p.child2}\n") + + (p.child1 == null ? "" : $"{p.child1}\n") + + (p.root == null ? "" : $"{p.root}"), PositionType = p.posTypeName == null ? "-" : p.posTypeName, PositionLevel = p.posLevelName == null ? "-" : p.posLevelName, PositionNumber = p.posMasterNo == null ? "-" : @@ -2296,17 +2281,12 @@ namespace BMA.EHR.Placement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.PlacementEducations == null || p.PlacementEducations.Count == 0 ? "-" : p.PlacementEducations.FirstOrDefault().Degree, - OldOc = p.rootOld == null ? p.positionNameOld == null ? "-" : $"{p.positionNameOld}/-" : - p.nodeOld == "4" - ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.nodeOld == "3" - ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.nodeOld == "2" - ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.nodeOld == "1" - ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child1Old} {p.rootOld}" : - p.nodeOld == "0" - ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld} {p.rootOld}" : "-", + OldOc = (p.positionNameOld == null ? "" : $"{p.positionNameOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : @@ -2317,17 +2297,12 @@ namespace BMA.EHR.Placement.Service.Controllers p.nodeOld == "0" ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), OldPosition = p.positionNameOld == null ? "-" : p.positionNameOld, - NewOc = p.root == null ? p.positionName == null ? "-" : $"{p.positionName}/-" : - p.node == 4 - ? p.positionName == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 3 - ? p.positionName == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 2 - ? p.positionName == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child2} {p.child1} {p.root}" : - p.node == 1 - ? p.positionName == null ? $"{p.child1} {p.root}" : $"{p.positionName} {p.child1} {p.root}" : - p.node == 0 - ? p.positionName == null ? $"{p.root}" : $"{p.positionName} {p.root}" : "-", + NewOc = (p.positionName == null ? "" : $"{p.positionName}\n") + + (p.child4 == null ? "" : $"{p.child4}\n") + + (p.child3 == null ? "" : $"{p.child3}\n") + + (p.child2 == null ? "" : $"{p.child2}\n") + + (p.child1 == null ? "" : $"{p.child1}\n") + + (p.root == null ? "" : $"{p.root}"), NewPosition = p.positionName == null ? "-" : p.positionName, NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, @@ -2536,17 +2511,12 @@ namespace BMA.EHR.Placement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.PlacementEducations == null || p.PlacementEducations.Count == 0 ? "-" : p.PlacementEducations.FirstOrDefault().Degree, - OldOc = p.rootOld == null ? p.positionNameOld == null ? "-" : $"{p.positionNameOld}/-" : - p.nodeOld == "4" - ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.nodeOld == "3" - ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.nodeOld == "2" - ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.nodeOld == "1" - ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child1Old} {p.rootOld}" : - p.nodeOld == "0" - ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld} {p.rootOld}" : "-", + OldOc = (p.positionNameOld == null ? "" : $"{p.positionNameOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), OldPosition = p.positionNameOld == null ? "-" : p.positionNameOld, OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, @@ -2557,17 +2527,12 @@ namespace BMA.EHR.Placement.Service.Controllers p.nodeOld == "1" ? $"{p.child1ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : p.nodeOld == "0" ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), - NewOc = p.root == null ? p.positionName == null ? "-" : $"{p.positionName}/-" : - p.node == 4 - ? p.positionName == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 3 - ? p.positionName == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 2 - ? p.positionName == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child2} {p.child1} {p.root}" : - p.node == 1 - ? p.positionName == null ? $"{p.child1} {p.root}" : $"{p.positionName} {p.child1} {p.root}" : - p.node == 0 - ? p.positionName == null ? $"{p.root}" : $"{p.positionName} {p.root}" : "-", + NewOc = (p.positionName == null ? "" : $"{p.positionName}\n") + + (p.child4 == null ? "" : $"{p.child4}\n") + + (p.child3 == null ? "" : $"{p.child3}\n") + + (p.child2 == null ? "" : $"{p.child2}\n") + + (p.child1 == null ? "" : $"{p.child1}\n") + + (p.root == null ? "" : $"{p.root}"), NewPosition = p.positionName == null ? "-" : p.positionName, NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, @@ -2765,17 +2730,12 @@ namespace BMA.EHR.Placement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.PlacementEducations == null || p.PlacementEducations.Count == 0 ? "-" : p.PlacementEducations.FirstOrDefault().Degree, - OldOc = p.rootOld == null ? p.positionNameOld == null ? "-" : $"{p.positionNameOld}/-" : - p.nodeOld == "4" - ? p.positionNameOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.nodeOld == "3" - ? p.positionNameOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.nodeOld == "2" - ? p.positionNameOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.nodeOld == "1" - ? p.positionNameOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.positionNameOld} {p.child1Old} {p.rootOld}" : - p.nodeOld == "0" - ? p.positionNameOld == null ? $"{p.rootOld}" : $"{p.positionNameOld} {p.rootOld}" : "-", + OldOc = (p.positionNameOld == null ? "" : $"{p.positionNameOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : @@ -2786,17 +2746,12 @@ namespace BMA.EHR.Placement.Service.Controllers p.nodeOld == "0" ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.Amount == null ? "-" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = "-", - NewOc = p.root == null ? p.positionName == null ? "-" : $"{p.positionName}/-" : - p.node == 4 - ? p.positionName == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 3 - ? p.positionName == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 2 - ? p.positionName == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.positionName} {p.child2} {p.child1} {p.root}" : - p.node == 1 - ? p.positionName == null ? $"{p.child1} {p.root}" : $"{p.positionName} {p.child1} {p.root}" : - p.node == 0 - ? p.positionName == null ? $"{p.root}" : $"{p.positionName} {p.root}" : "-", + NewOc = (p.positionName == null ? "" : $"{p.positionName}\n") + + (p.child4 == null ? "" : $"{p.child4}\n") + + (p.child3 == null ? "" : $"{p.child3}\n") + + (p.child2 == null ? "" : $"{p.child2}\n") + + (p.child1 == null ? "" : $"{p.child1}\n") + + (p.root == null ? "" : $"{p.root}"), NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 06324c54..bd34d64a 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -406,10 +406,10 @@ namespace BMA.EHR.Placement.Service.Controllers placementOfficer.PositionLevelOld = org.result.posLevelName; placementOfficer.PositionTypeOld = org.result.posTypeName; placementOfficer.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementOfficer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + - (org.result.child3 == null ? "" : org.result.child3 + " ") + - (org.result.child2 == null ? "" : org.result.child2 + " ") + - (org.result.child1 == null ? "" : org.result.child1 + " ") + + placementOfficer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); placementOfficer.OrganizationPositionOld = org.result.position + "\n" + placementOfficer.OrganizationOld; } @@ -614,17 +614,12 @@ namespace BMA.EHR.Placement.Service.Controllers { No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - PositionName = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : - p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : - p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", + PositionName = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), Organization = p.Organization == null ? "" : p.Organization, StartDate = p.DateStart == null ? "" : p.DateStart.Value.ToThaiShortDate2().ToThaiNumber(), EndDate = p.DateEnd == null ? "" : p.DateEnd.Value.ToThaiShortDate2().ToThaiNumber(), diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 31a1b4b2..99bf35eb 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -939,31 +939,21 @@ namespace BMA.EHR.Placement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, OldOrg = p.OrganizationPositionOld ?? "-", - OldOc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : - p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : - p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", + OldOc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), OldPositionType = p.PositionTypeOld ?? "-", OldPositionLevel = p.PositionLevelOld ?? "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), - NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" : - p.node == 4 - ? p.position == null ? $"{p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child4} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 3 - ? p.position == null ? $"{p.child3} {p.child2} {p.child1} {p.root}" : $"{p.position} {p.child3} {p.child2} {p.child1} {p.root}" : - p.node == 2 - ? p.position == null ? $"{p.child2} {p.child1} {p.root}" : $"{p.position} {p.child2} {p.child1} {p.root}" : - p.node == 1 - ? p.position == null ? $"{p.child1} {p.root}" : $"{p.position} {p.child1} {p.root}" : - p.node == 0 - ? p.position == null ? $"{p.root}" : $"{p.position} {p.root}" : "-", + NewOc = (p.position == null ? "" : $"{p.position}\n") + + (p.child4 == null ? "" : $"{p.child4}\n") + + (p.child3 == null ? "" : $"{p.child3}\n") + + (p.child2 == null ? "" : $"{p.child2}\n") + + (p.child1 == null ? "" : $"{p.child1}\n") + + (p.root == null ? "" : $"{p.root}"), NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index 589fd9f7..eb8c5315 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -805,17 +805,12 @@ namespace BMA.EHR.Placement.Service.Controllers { No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - OldOc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : - p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : - p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", + OldOc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), PositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, PositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, PositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 301a32f6..dca86be2 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -595,10 +595,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceasedNoti.LastName = org.result.lastName == null ? "" : org.result.lastName; retirementDeceasedNoti.CitizenId = org.result.citizenId == null ? "" : org.result.citizenId; retirementDeceasedNoti.PositionName = org.result.position == null ? "" : org.result.position; - retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + " ") + - (org.result.child3 == null ? "" : org.result.child3 + " ") + - (org.result.child2 == null ? "" : org.result.child2 + " ") + - (org.result.child1 == null ? "" : org.result.child1 + " ") + + retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); } @@ -624,10 +624,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceasedNoti.LastName = org.result.lastName == null ? "" : org.result.lastName; retirementDeceasedNoti.CitizenId = org.result.citizenId == null ? "" : org.result.citizenId; retirementDeceasedNoti.PositionName = org.result.position == null ? "" : org.result.position; - retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + " ") + - (org.result.child3 == null ? "" : org.result.child3 + " ") + - (org.result.child2 == null ? "" : org.result.child2 + " ") + - (org.result.child1 == null ? "" : org.result.child1 + " ") + + retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index c6372bad..61608786 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -325,10 +325,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOther.PositionLevelOld = org.result.posLevelName; retirementOther.PositionTypeOld = org.result.posTypeName; retirementOther.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementOther.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + - (org.result.child3 == null ? "" : org.result.child3 + " ") + - (org.result.child2 == null ? "" : org.result.child2 + " ") + - (org.result.child1 == null ? "" : org.result.child1 + " ") + + retirementOther.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementOther.OrganizationPositionOld = org.result.position + "\n" + retirementOther.OrganizationOld; retirementOther.EducationOld = org.result.education; @@ -825,34 +825,24 @@ namespace BMA.EHR.Retirement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : - p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : - p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", + OldOc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = p.LeaveDate == null ? "-" : p.LeaveDate.Value.ToThaiShortDate2().ToThaiNumber(), MilitaryDate = p.MilitaryDate == null ? "-" : p.MilitaryDate.Value.ToThaiShortDate2().ToThaiNumber(), - NewOc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : - p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : - p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", + NewOc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), NewPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, NewPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, NewPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index c95d9f2c..356ee3eb 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -302,10 +302,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOut.PositionLevelOld = org.result.posLevelName; retirementOut.PositionTypeOld = org.result.posTypeName; retirementOut.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + - (org.result.child3 == null ? "" : org.result.child3 + " ") + - (org.result.child2 == null ? "" : org.result.child2 + " ") + - (org.result.child1 == null ? "" : org.result.child1 + " ") + + retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementOut.OrganizationPositionOld = org.result.position + "\n" + retirementOut.OrganizationOld; retirementOut.AmountOld = org.result.salary; @@ -357,10 +357,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOut.PositionLevelOld = org.result.posLevelName; retirementOut.PositionTypeOld = org.result.posTypeName; retirementOut.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + - (org.result.child3 == null ? "" : org.result.child3 + " ") + - (org.result.child2 == null ? "" : org.result.child2 + " ") + - (org.result.child1 == null ? "" : org.result.child1 + " ") + + retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementOut.OrganizationPositionOld = org.result.position + "\n" + retirementOut.OrganizationOld; retirementOut.AmountOld = org.result.salary; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 9e310a2c..eec2d627 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -943,10 +943,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementResign.PositionLevelOld = org.result.posLevelName; retirementResign.PositionTypeOld = org.result.posTypeName; retirementResign.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementResign.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + - (org.result.child3 == null ? "" : org.result.child3 + " ") + - (org.result.child2 == null ? "" : org.result.child2 + " ") + - (org.result.child1 == null ? "" : org.result.child1 + " ") + + retirementResign.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementResign.OrganizationPositionOld = org.result.position + "\n" + retirementResign.OrganizationOld; } @@ -2357,17 +2357,12 @@ namespace BMA.EHR.Retirement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", PositionName = p.PositionOld ?? "-", Organization = p.OrganizationPositionOld ?? "-", - Oc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : - p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : - p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", + Oc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), PositionLevel = p.PositionLevelOld ?? "-", PositionType = p.PositionTypeOld ?? "-", PositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 51090c8b..3c514ec4 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -878,10 +878,10 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementResignEmployee.PositionLevelOld = org.result.posLevelName; retirementResignEmployee.PositionTypeOld = org.result.posTypeName; retirementResignEmployee.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - retirementResignEmployee.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + - (org.result.child3 == null ? "" : org.result.child3 + " ") + - (org.result.child2 == null ? "" : org.result.child2 + " ") + - (org.result.child1 == null ? "" : org.result.child1 + " ") + + retirementResignEmployee.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementResignEmployee.OrganizationPositionOld = org.result.position + "\n" + retirementResignEmployee.OrganizationOld; } @@ -1796,18 +1796,12 @@ namespace BMA.EHR.Retirement.Service.Controllers CitizenId = r.CitizenId == null ? "-" : r.CitizenId.ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", PositionName = p.PositionOld ?? "-", - Organization = p.OrganizationPositionOld ?? "-", - Oc = p.rootOld == null ? p.PositionOld == null ? "-" : $"{p.PositionOld}/-" : - p.child4Old != null - ? p.PositionOld == null ? $"{p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child4Old} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child3Old != null - ? p.PositionOld == null ? $"{p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child3Old} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child2Old != null - ? p.PositionOld == null ? $"{p.child2Old} {p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child2Old} {p.child1Old} {p.rootOld}" : - p.child1Old != null - ? p.PositionOld == null ? $"{p.child1Old} {p.rootOld}" : $"{p.PositionOld} {p.child1Old} {p.rootOld}" : - p.rootOld != null - ? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld} {p.rootOld}" : "-", + Organization = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + + (p.child4Old == null ? "" : $"{p.child4Old}\n") + + (p.child3Old == null ? "" : $"{p.child3Old}\n") + + (p.child2Old == null ? "" : $"{p.child2Old}\n") + + (p.child1Old == null ? "" : $"{p.child1Old}\n") + + (p.rootOld == null ? "" : $"{p.rootOld}"), PositionLevel = p.PositionLevelOld ?? "-", PositionType = p.PositionTypeOld ?? "-", PositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), From fcf76349f66ca22fb14694a64c5c9058be4805b4 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 24 Mar 2025 16:33:46 +0700 Subject: [PATCH 146/879] =?UTF-8?q?=E0=B8=81=E0=B8=A3=E0=B8=93=E0=B8=B5?= =?UTF-8?q?=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B8=AD=E0=B8=81=E0=B8=AB=E0=B8=99?= =?UTF-8?q?=E0=B9=88=E0=B8=A7=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=20?= =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=E0=B8=9F=E0=B8=B4?= =?UTF-8?q?=E0=B8=A5=E0=B8=94=E0=B9=8C=20posExecutiveName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/PlacementAppointmentController.cs | 1 + BMA.EHR.Placement.Service/Controllers/PlacementController.cs | 1 + .../Controllers/PlacementReceiveController.cs | 1 + .../Requests/PersonSelectPositionAppointmentRequest.cs | 1 + .../Requests/PersonSelectPositionReceiveRequest.cs | 1 + .../Requests/PersonSelectPositionRequest.cs | 1 + 6 files changed, 6 insertions(+) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 55406e64..c251b5f5 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -574,6 +574,7 @@ namespace BMA.EHR.Placement.Service.Controllers uppdated.positionId = req.positionId; uppdated.posMasterNo = req.posMasterNo; uppdated.position = req.positionName; + uppdated.PositionExecutive = req.posExecutiveName; uppdated.positionField = req.positionField; uppdated.posTypeId = req.posTypeId; uppdated.posTypeName = req.posTypeName; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index f47673e8..56aa10ed 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -968,6 +968,7 @@ namespace BMA.EHR.Placement.Service.Controllers person.positionId = req.positionId; person.posMasterNo = req.posMasterNo; person.positionName = req.positionName; + person.PositionExecutive = req.posExecutiveName; person.positionField = req.positionField; person.posTypeId = req.posTypeId; person.posTypeName = req.posTypeName; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 99bf35eb..127e4fd3 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -673,6 +673,7 @@ namespace BMA.EHR.Placement.Service.Controllers uppdated.positionId = req.positionId; uppdated.posMasterNo = req.posMasterNo; uppdated.position = req.positionName; + uppdated.PositionExecutive = req.posExecutiveName; uppdated.positionField = req.positionField; uppdated.posTypeId = req.posTypeId; uppdated.posTypeName = req.posTypeName; diff --git a/BMA.EHR.Placement.Service/Requests/PersonSelectPositionAppointmentRequest.cs b/BMA.EHR.Placement.Service/Requests/PersonSelectPositionAppointmentRequest.cs index 21bdc0f5..c3b084bc 100644 --- a/BMA.EHR.Placement.Service/Requests/PersonSelectPositionAppointmentRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/PersonSelectPositionAppointmentRequest.cs @@ -29,5 +29,6 @@ namespace BMA.EHR.Placement.Service.Requests public string? posLevelId { get; set; } public string? posLevelName { get; set; } public string? typeCommand { get; set; } + public string? posExecutiveName { get; set; } } } \ No newline at end of file diff --git a/BMA.EHR.Placement.Service/Requests/PersonSelectPositionReceiveRequest.cs b/BMA.EHR.Placement.Service/Requests/PersonSelectPositionReceiveRequest.cs index a41a2b62..340647cf 100644 --- a/BMA.EHR.Placement.Service/Requests/PersonSelectPositionReceiveRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/PersonSelectPositionReceiveRequest.cs @@ -29,5 +29,6 @@ namespace BMA.EHR.Placement.Service.Requests public string? posLevelId { get; set; } public string? posLevelName { get; set; } public string? typeCommand { get; set; } + public string? posExecutiveName { get; set; } } } \ No newline at end of file diff --git a/BMA.EHR.Placement.Service/Requests/PersonSelectPositionRequest.cs b/BMA.EHR.Placement.Service/Requests/PersonSelectPositionRequest.cs index c4457424..511cd196 100644 --- a/BMA.EHR.Placement.Service/Requests/PersonSelectPositionRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/PersonSelectPositionRequest.cs @@ -38,5 +38,6 @@ namespace BMA.EHR.Placement.Service.Requests public string? posLevelId { get; set; } public string? posLevelName { get; set; } public string? typeCommand { get; set; } + public string? posExecutiveName { get; set; } } } \ No newline at end of file From a7bf381d0af39bb7433bd059a96096935aa62198 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 24 Mar 2025 18:01:59 +0700 Subject: [PATCH 147/879] fix bug retirement --- .../Reports/RetireReportRepository.cs | 36 ++++++++++++++++++- .../Controllers/RetirementOutController.cs | 3 +- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs index 1e9eb62c..ff5fa3e3 100644 --- a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs @@ -400,9 +400,43 @@ namespace BMA.EHR.Application.Repositories.Reports p.RemarkHorizontal, }) .FirstOrDefaultAsync(); + if (data == null) + data = await _dbContext.Set().AsQueryable() + .Where(x => x.Id == id) + .Select(p => new + { + p.Id, + p.prefix, + p.firstName, + p.lastName, + p.profileId, + p.Location, + p.SendDate, + p.ActiveDate, + p.Reason, + p.Status, + salary = p.AmountOld, + p.ApproveReason, + p.RejectReason, + p.IsActive, + p.CreatedAt, + p.PositionTypeOld, + p.PositionLevelOld, + p.PositionNumberOld, + p.OrganizationPositionOld, + p.OligarchReject, + p.OligarchApproveReason, + p.OligarchRejectReason, + p.OligarchRejectDate, + p.CommanderReject, + p.CommanderApproveReason, + p.CommanderRejectReason, + p.CommanderRejectDate, + p.RemarkHorizontal, + }) + .FirstOrDefaultAsync(); if (data == null) return null; - var _data = new { data.Id, diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index 356ee3eb..ceeba566 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -149,7 +149,8 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsActive, }) .ToListAsync(); - if (status != null && status.Trim().ToUpper() != "WAITTING") + //if (status != null && status.Trim().ToUpper() != "WAITTING") + if (status != null) retirementOuts = retirementOuts.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); return Success(retirementOuts); } From 54e634d0062a02a561123334b202561845dc84a9 Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 25 Mar 2025 18:05:25 +0700 Subject: [PATCH 148/879] =?UTF-8?q?fix=20bug=20=E0=B8=AA=E0=B9=88=E0=B8=87?= =?UTF-8?q?=E0=B8=AB=E0=B8=99=E0=B8=B1=E0=B8=87=E0=B8=AA=E0=B8=B7=E0=B8=AD?= =?UTF-8?q?=E0=B9=80=E0=B8=A7=E0=B8=B5=E0=B8=A2=E0=B8=99=20(issue=20#1280,?= =?UTF-8?q?=20#1282)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RetirementDeceasedController.cs | 62 ++++++++++--------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index dca86be2..7f170ec0 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -553,6 +553,10 @@ namespace BMA.EHR.Retirement.Service.Controllers if (retirementDeceased == null) return Error(GlobalMessages.RetirementDeceasedNotFound, 404); + bool checkDup = req.Persons.Any(x => retirementDeceased.RetirementDeceasedNotis.Any(y => y.profileId == x.ProfileId)); + if (checkDup) + return Error("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āđ€āļžāļīāđˆāļĄāļĢāļēāļĒāļŠāļ·āđˆāļ­āļŠāđˆāļ‡āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ‹āđ‰āļģāđ„āļ”āđ‰", 404); + foreach (var item in req.Persons) { // var profile = await _context.Profiles.AsQueryable() @@ -574,8 +578,8 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, }; - if (retirementDeceased.profileType.Trim().ToUpper() == "OFFICER") - { + //if (retirementDeceased.profileType.Trim().ToUpper() == "OFFICER") + //{ var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{item.ProfileId}"; using (var client = new HttpClient()) { @@ -602,36 +606,36 @@ namespace BMA.EHR.Retirement.Service.Controllers (org.result.root == null ? "" : org.result.root); retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); } - } - else - { - var apiUrl = $"{_configuration["API"]}/org/profile-employee/profileid/position/{item.ProfileId}"; - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); - var _res = await client.SendAsync(_req); - var _result = await _res.Content.ReadAsStringAsync(); + //} + //else + //{ + // var apiUrl = $"{_configuration["API"]}/org/profile-employee/profileid/position/{item.ProfileId}"; + // using (var client = new HttpClient()) + // { + // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + // var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + // var _res = await client.SendAsync(_req); + // var _result = await _res.Content.ReadAsStringAsync(); - var org = JsonConvert.DeserializeObject(_result); + // var org = JsonConvert.DeserializeObject(_result); - if (org == null || org.result == null) - continue; + // if (org == null || org.result == null) + // continue; - retirementDeceasedNoti.Prefix = org.result.prefix == null ? "" : org.result.prefix; - retirementDeceasedNoti.FirstName = org.result.firstName == null ? "" : org.result.firstName; - retirementDeceasedNoti.LastName = org.result.lastName == null ? "" : org.result.lastName; - retirementDeceasedNoti.CitizenId = org.result.citizenId == null ? "" : org.result.citizenId; - retirementDeceasedNoti.PositionName = org.result.position == null ? "" : org.result.position; - retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + - (org.result.root == null ? "" : org.result.root); - retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); - } - } + // retirementDeceasedNoti.Prefix = org.result.prefix == null ? "" : org.result.prefix; + // retirementDeceasedNoti.FirstName = org.result.firstName == null ? "" : org.result.firstName; + // retirementDeceasedNoti.LastName = org.result.lastName == null ? "" : org.result.lastName; + // retirementDeceasedNoti.CitizenId = org.result.citizenId == null ? "" : org.result.citizenId; + // retirementDeceasedNoti.PositionName = org.result.position == null ? "" : org.result.position; + // retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + // (org.result.child3 == null ? "" : org.result.child3 + "\n") + + // (org.result.child2 == null ? "" : org.result.child2 + "\n") + + // (org.result.child1 == null ? "" : org.result.child1 + "\n") + + // (org.result.root == null ? "" : org.result.root); + // retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); + // } + //} await _context.SaveChangesAsync(); } From 92451af236b21b40e912362f7e96de926d3716a3 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 26 Mar 2025 11:43:26 +0700 Subject: [PATCH 149/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B9=80=E0=B8=95=E0=B8=B4=E0=B8=A1=20function=20?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=80=E0=B8=82=E0=B8=B5=E0=B8=A2?= =?UTF-8?q?=E0=B8=99=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Middlewares/RequestLoggingMiddleware.cs | 159 ++++++++++++++++-- BMA.EHR.Leave/Program.cs | 2 +- BMA.EHR.Leave/appsettings.json | 4 +- 3 files changed, 149 insertions(+), 16 deletions(-) diff --git a/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs b/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs index ef1297ac..55dcf051 100644 --- a/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs +++ b/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs @@ -1,49 +1,122 @@ -ïŧŋusing Microsoft.AspNetCore.Http; +ïŧŋusing BMA.EHR.Domain.Models.HR; +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging.Abstractions; using Nest; +using Newtonsoft.Json; using Serilog; using System.Diagnostics; using System.IO; +using System.Net.Http.Headers; +using System.Security.Claims; +using System.Text.Encodings.Web; using System.Text.Json; +using JsonSerializer = System.Text.Json.JsonSerializer; namespace BMA.EHR.Domain.Middlewares { public class RequestLoggingMiddleware { private readonly RequestDelegate _next; + private readonly IConfiguration _configuration; - public RequestLoggingMiddleware(RequestDelegate next) + private string Uri = ""; + private string IndexFormat = ""; + private string SystemName = ""; + private string APIKey = ""; + + public RequestLoggingMiddleware(RequestDelegate next, IConfiguration configuration) { _next = next; + _configuration = configuration; + + Uri = _configuration["ElasticConfiguration:Uri"] ?? "http://192.168.1.40:9200"; + IndexFormat = _configuration["ElasticConfiguration:IndexFormat"] ?? "bma-ehr-log-index"; + SystemName = _configuration["ElasticConfiguration:SystemName"] ?? "Unknown"; + } + + protected async Task GetExternalAPIAsync(string apiPath, string accessToken, string apiKey) + { + try + { + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", apiKey); + var _res = await client.GetAsync(apiPath); + if (_res.IsSuccessStatusCode) + { + var _result = await _res.Content.ReadAsStringAsync(); + + return _result; + } + return string.Empty; + } + } + catch + { + throw; + } + } + + public async Task GetProfileByKeycloakIdAsync(Guid keycloakId, string? accessToken) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/keycloak/{keycloakId}"; + var apiKey = _configuration["API_KEY"]; + + var apiResult = await GetExternalAPIAsync(apiPath, accessToken ?? "", apiKey); + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } } public async Task Invoke(HttpContext context) { - var settings = new ConnectionSettings(new Uri("http://192.168.1.40:9200")) - .DefaultIndex("bma-ehr-log-test-net"); + var settings = new ConnectionSettings(new Uri(Uri)) + .DefaultIndex(IndexFormat); var client = new ElasticClient(settings); var startTime = DateTime.UtcNow; var stopwatch = Stopwatch.StartNew(); + string? responseBodyJson = null; + string? requestBodyJson = null; string requestBody = await ReadRequestBodyAsync(context); + if (requestBody != "") + requestBodyJson = JsonSerializer.Serialize(JsonSerializer.Deserialize(requestBody), new JsonSerializerOptions { Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, WriteIndented = true }); + var originalBodyStream = context.Response.Body; - using (var memoryStream = new MemoryStream()) { // āđ€āļ›āļĨāļĩāđˆāļĒāļ™ stream āļ‚āļ­āļ‡ Response āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰āļŠāļēāļĄāļēāļĢāļ–āļ­āđˆāļēāļ™āđ„āļ”āđ‰ context.Response.Body = memoryStream; + + + var keycloakId = context.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value ?? Guid.Empty.ToString("D"); + var token = context.Request.Headers["Authorization"]; + + var pf = await GetProfileByKeycloakIdAsync(Guid.Parse(keycloakId), token); + await _next(context); // āļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ•āđˆāļ­āđ„āļ›āļĒāļąāļ‡ Middleware āļ­āļ·āđˆāļ™ āđ† - - - stopwatch.Stop(); var processTime = stopwatch.ElapsedMilliseconds; var endTime = DateTime.UtcNow; @@ -55,16 +128,26 @@ namespace BMA.EHR.Domain.Middlewares _ => "info" }; + string? message = null; + // āļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Response āļŦāļĨāļąāļ‡āļˆāļēāļāļ—āļĩāđˆāđ„āļ”āđ‰āļ–āļđāļāļŠāđˆāļ‡āļ­āļ­āļāđ„āļ› memoryStream.Seek(0, SeekOrigin.Begin); var responseBody = new StreamReader(memoryStream).ReadToEnd(); + if (responseBody != "") + responseBodyJson = JsonSerializer.Serialize(JsonSerializer.Deserialize(responseBody), new JsonSerializerOptions { Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, WriteIndented = true }); + + var json = JsonSerializer.Deserialize(responseBody); + if (json.TryGetProperty("message", out var messageElement)) + { + message = messageElement.GetString(); + } var logData = new { logType = logType, ip = context.Connection.RemoteIpAddress?.ToString(), - rootId = context.Items["RootId"] ?? null, - systemName = "test", + rootId = pf == null ? null : pf.RootId, + systemName = SystemName, startTimeStamp = startTime.ToString("o"), endTimeStamp = endTime.ToString("o"), processTime = processTime, @@ -72,9 +155,14 @@ namespace BMA.EHR.Domain.Middlewares method = context.Request.Method, endpoint = context.Request.Path + context.Request.QueryString, responseCode = context.Response.StatusCode == 304 ? "200" : context.Response.StatusCode.ToString(), - responseDescription = context.Items["ResponseMessage"] ?? null, - input = requestBody, - output = responseBody + responseDescription = message, + input = requestBodyJson, + output = responseBodyJson, + + userId = keycloakId, + userName = $"{pf?.Prefix ?? ""}{pf?.FirstName ?? ""} {pf?.LastName ?? ""}", + user = pf?.CitizenId ?? "" + }; // āđ€āļ‚āļĩāļĒāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļāļĨāļąāļšāđ„āļ›āļĒāļąāļ‡ original Response body @@ -85,7 +173,7 @@ namespace BMA.EHR.Domain.Middlewares } - + //Log.Information("API Request Log: {@LogData}", logData); } @@ -98,4 +186,47 @@ namespace BMA.EHR.Domain.Middlewares return body; } } + + public class GetProfileByKeycloakIdLocal + { + public Guid Id { get; set; } + + public string? Prefix { get; set; } + public string? FirstName { get; set; } + public string? LastName { get; set; } + public string? CitizenId { get; set; } + + public string? Root { get; set; } + public string? Child1 { get; set; } + public string? Child2 { get; set; } + public string? Child3 { get; set; } + public string? Child4 { get; set; } + public Guid? RootId { get; set; } + public Guid? Child1Id { get; set; } + public Guid? Child2Id { get; set; } + public Guid? Child3Id { get; set; } + public Guid? Child4Id { get; set; } + public Guid? RootDnaId { get; set; } + public Guid? Child1DnaId { get; set; } + public Guid? Child2DnaId { get; set; } + public Guid? Child3DnaId { get; set; } + public Guid? Child4DnaId { get; set; } + public double? Amount { get; set; } + public double? PositionSalaryAmount { get; set; } + public string? Commander { get; set; } + + public Guid? CommanderId { get; set; } + + public Guid? CommanderKeycloak { get; set; } + + } + + public class GetProfileByKeycloakIdResultLocal + { + public string Message { get; set; } = string.Empty; + + public int Status { get; set; } = -1; + + public GetProfileByKeycloakIdLocal? Result { get; set; } + } } diff --git a/BMA.EHR.Leave/Program.cs b/BMA.EHR.Leave/Program.cs index ebe39458..bda6f614 100644 --- a/BMA.EHR.Leave/Program.cs +++ b/BMA.EHR.Leave/Program.cs @@ -162,7 +162,7 @@ app.UseStaticFiles(); app.MapControllers(); app.UseMiddleware(); // Disable āļāđˆāļ­āļ™ āđ€āļžāļ·āđˆāļ­āđāļāđ‰āđ„āļ‚āđƒāļŦāđ‰āđ€āļĢāļĩāļšāļĢāđ‰āļ­āļĒāļāđˆāļ­āļ™āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™ -// app.UseMiddleware(); +app.UseMiddleware(); app.UseHangfireDashboard("/hangfire", new DashboardOptions() diff --git a/BMA.EHR.Leave/appsettings.json b/BMA.EHR.Leave/appsettings.json index e5591a00..b5ad52fe 100644 --- a/BMA.EHR.Leave/appsettings.json +++ b/BMA.EHR.Leave/appsettings.json @@ -9,7 +9,9 @@ } }, "ElasticConfiguration": { - "Uri": "http://localhost:9200" + "Uri": "http://192.168.1.40:9200", + "IndexFormat": "bma-ehr-log-index", + "SystemName": "leave" }, "AllowedHosts": "*", "ConnectionStrings": { From 65fbf4582a54be2743321cf8c8467b1efa39f2ad Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 26 Mar 2025 12:11:41 +0700 Subject: [PATCH 150/879] =?UTF-8?q?add=20migration=20=E0=B8=AA=E0=B8=B3?= =?UTF-8?q?=E0=B8=AB=E0=B8=A3=E0=B8=B1=E0=B8=9A=20LeaveBeginning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Models/Leave/Requests/LeaveBeginning.cs | 24 + ...0326045016_Add Leave Beginning.Designer.cs | 1365 +++++++++++++++++ .../20250326045016_Add Leave Beginning.cs | 59 + .../LeaveDb/LeaveDbContextModelSnapshot.cs | 81 + .../Persistence/LeaveDbContext.cs | 1 + 5 files changed, 1530 insertions(+) create mode 100644 BMA.EHR.Domain/Models/Leave/Requests/LeaveBeginning.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250326045016_Add Leave Beginning.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250326045016_Add Leave Beginning.cs diff --git a/BMA.EHR.Domain/Models/Leave/Requests/LeaveBeginning.cs b/BMA.EHR.Domain/Models/Leave/Requests/LeaveBeginning.cs new file mode 100644 index 00000000..dea7fdc6 --- /dev/null +++ b/BMA.EHR.Domain/Models/Leave/Requests/LeaveBeginning.cs @@ -0,0 +1,24 @@ +ïŧŋusing BMA.EHR.Domain.Models.Base; +using BMA.EHR.Domain.Models.Leave.Commons; +using Microsoft.EntityFrameworkCore; +using System.ComponentModel.DataAnnotations; + +namespace BMA.EHR.Domain.Models.Leave.Requests +{ + public class LeaveBeginning : EntityBase + { + [Required, Comment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī")] + public Guid ProfileId { get; set; } = Guid.Empty; + + [Required, Comment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē")] + public Guid LeaveTypeId { get; set; } = Guid.Empty; + + public LeaveType LeaveType { get; set; } + + [Required, Comment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“")] + public int LeaveYear { get; set; } = 0; + + [Required, Comment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļē")] + public double LeaveDays { get; set; } = 0.0; + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250326045016_Add Leave Beginning.Designer.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250326045016_Add Leave Beginning.Designer.cs new file mode 100644 index 00000000..fcef0f9a --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250326045016_Add Leave Beginning.Designer.cs @@ -0,0 +1,1365 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + [DbContext(typeof(LeaveDbContext))] + [Migration("20250326045016_Add Leave Beginning")] + partial class AddLeaveBeginning + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Code") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Limit") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļŠāļđāļ‡āļŠāļļāļ”āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("LeaveTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDays") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļē"); + + b.Property("LeaveTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.HasIndex("LeaveTypeId"); + + b.ToTable("LeaveBeginnings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AbsentDayAt") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayGetIn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayLocation") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayRegistorDate") + .HasColumnType("datetime(6)"); + + b.Property("AbsentDaySummon") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("CancelLeaveWrote") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ (āļ‚āļ­āļĒāļāđ€āļĨāļīāļ)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CoupleDayCountryHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayEndDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDayLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayLevelCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayPosition") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayStartDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDaySumTotalHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayTotalHistory") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("Dear") + .HasColumnType("longtext") + .HasComment("āđ€āļĢāļĩāļĒāļ™āđƒāļ„āļĢ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("HajjDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveAddress") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveBirthDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveCancelComment") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveCancelDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveCancelStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("LeaveDetail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļĨāļē"); + + b.Property("LeaveDirectorComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļ­āļģāļ™āļ§āļĒāļāļēāļĢāļŠāļģāļ™āļąāļ"); + + b.Property("LeaveDraftDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("LeaveGovernmentDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveLast") + .HasColumnType("datetime(6)"); + + b.Property("LeaveNumber") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveRange") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļē āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveSalary") + .HasColumnType("int"); + + b.Property("LeaveSalaryText") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LeaveStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļĨāļē"); + + b.Property("LeaveStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļĢāđ‰āļ­āļ‡"); + + b.Property("LeaveTotal") + .HasColumnType("double"); + + b.Property("LeaveTypeCode") + .HasColumnType("longtext") + .HasComment("code āļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveWrote") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ"); + + b.Property("OrdainDayBuddhistLentAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayBuddhistLentName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationNumber") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayOrdination") + .HasColumnType("datetime(6)"); + + b.Property("OrdainDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionLevelName") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RestDayCurrentTotal") + .HasColumnType("double"); + + b.Property("RestDayOldTotal") + .HasColumnType("double"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("StudyDayCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayDegreeLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayScholarship") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDaySubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingSubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayUniversityName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("TypeId") + .HasColumnType("char(36)"); + + b.Property("WifeDayDateBorn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("WifeDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("LeaveCancelDocumentId"); + + b.HasIndex("LeaveDraftDocumentId"); + + b.HasIndex("TypeId"); + + b.ToTable("LeaveRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.AdditionalCheckRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckDate") + .HasColumnType("datetime(6)") + .HasComment("*āļ§āļąāļ™āļ—āļĩāđˆāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("CheckInEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("CheckOutEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđƒāļ™āļāļēāļĢāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("*āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āļ‚āļ­"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("AdditionalCheckRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ"); + + b.Property("EndTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("EndTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļīāļ”āđƒāļŠāđ‰āļ‡āļēāļ™ (āđ€āļ›āļīāļ”/āļ›āļīāļ”)"); + + b.Property("IsDefault") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ§āđˆāļēāļĢāļ­āļšāđƒāļ”āđ€āļ›āđ‡āļ™āļ„āđˆāļē Default āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ (āļŠāļģāļŦāļĢāļąāļšāļ—āļļāļāļ„āļ™āļ—āļĩāđˆāļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ—āļģāļāļēāļĢāđ€āļĨāļ·āļ­āļāļĢāļ­āļš)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("StartTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("StartTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("DutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.ProcessUserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckInStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("CheckOutStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EditReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("EditStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ‚āļ­āļ‡āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("ProcessUserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserCalendar", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Calendar") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļāļīāļ—āļīāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡ āļ‚āļĢāļ āļ›āļāļ•āļī āļŦāļĢāļ·āļ­ 6 āļ§āļąāļ™āļ•āđˆāļ­āļŠāļąāļ›āļ”āļēāļŦāđŒ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("UserCalendars"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("EffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļœāļĨ"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DutyTimeId"); + + b.ToTable("UserDutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("UserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "LeaveType") + .WithMany() + .HasForeignKey("LeaveTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("LeaveDocument") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveCancelDocument") + .WithMany() + .HasForeignKey("LeaveCancelDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveDraftDocument") + .WithMany() + .HasForeignKey("LeaveDraftDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "Type") + .WithMany() + .HasForeignKey("TypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveCancelDocument"); + + b.Navigation("LeaveDraftDocument"); + + b.Navigation("Type"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", "DutyTime") + .WithMany() + .HasForeignKey("DutyTimeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DutyTime"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Navigation("LeaveDocument"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250326045016_Add Leave Beginning.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250326045016_Add Leave Beginning.cs new file mode 100644 index 00000000..313912c6 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250326045016_Add Leave Beginning.cs @@ -0,0 +1,59 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + /// + public partial class AddLeaveBeginning : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "LeaveBeginnings", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + ProfileId = table.Column(type: "char(36)", nullable: false, comment: "āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī", collation: "ascii_general_ci"), + LeaveTypeId = table.Column(type: "char(36)", nullable: false, comment: "āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē", collation: "ascii_general_ci"), + LeaveYear = table.Column(type: "int", nullable: false, comment: "āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"), + LeaveDays = table.Column(type: "double", nullable: false, comment: "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļē") + }, + constraints: table => + { + table.PrimaryKey("PK_LeaveBeginnings", x => x.Id); + table.ForeignKey( + name: "FK_LeaveBeginnings_LeaveTypes_LeaveTypeId", + column: x => x.LeaveTypeId, + principalTable: "LeaveTypes", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateIndex( + name: "IX_LeaveBeginnings_LeaveTypeId", + table: "LeaveBeginnings", + column: "LeaveTypeId"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "LeaveBeginnings"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs index 13e6f633..3ed10221 100644 --- a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs @@ -119,6 +119,76 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb b.ToTable("LeaveTypes"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDays") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļē"); + + b.Property("LeaveTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.HasIndex("LeaveTypeId"); + + b.ToTable("LeaveBeginnings"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => { b.Property("Id") @@ -1218,6 +1288,17 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb b.ToTable("UserTimeStamps"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "LeaveType") + .WithMany() + .HasForeignKey("LeaveTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveType"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => { b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") diff --git a/BMA.EHR.Infrastructure/Persistence/LeaveDbContext.cs b/BMA.EHR.Infrastructure/Persistence/LeaveDbContext.cs index cbc150a7..1b2dcbdf 100644 --- a/BMA.EHR.Infrastructure/Persistence/LeaveDbContext.cs +++ b/BMA.EHR.Infrastructure/Persistence/LeaveDbContext.cs @@ -32,6 +32,7 @@ namespace BMA.EHR.Infrastructure.Persistence public DbSet LeaveDocuments { get; set; } + public DbSet LeaveBeginnings { get; set; } #endregion From 559d682dfd8fd234ba86cc2a2e38afb97df42c01 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 26 Mar 2025 12:24:34 +0700 Subject: [PATCH 151/879] add log to insignia --- BMA.EHR.Insignia/BMA.EHR.Insignia.csproj | 1 + BMA.EHR.Insignia/Program.cs | 4 ++-- BMA.EHR.Insignia/appsettings.json | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Insignia/BMA.EHR.Insignia.csproj b/BMA.EHR.Insignia/BMA.EHR.Insignia.csproj index e4ba6d2b..3c761786 100644 --- a/BMA.EHR.Insignia/BMA.EHR.Insignia.csproj +++ b/BMA.EHR.Insignia/BMA.EHR.Insignia.csproj @@ -28,6 +28,7 @@ + diff --git a/BMA.EHR.Insignia/Program.cs b/BMA.EHR.Insignia/Program.cs index cec95718..b83b3d21 100644 --- a/BMA.EHR.Insignia/Program.cs +++ b/BMA.EHR.Insignia/Program.cs @@ -71,8 +71,8 @@ var builder = WebApplication.CreateBuilder(args); builder.Services.AddAuthorization(); // use serilog - ConfigureLogs(); - builder.Host.UseSerilog(); + //ConfigureLogs(); + //builder.Host.UseSerilog(); // Add config CORS builder.Services.AddCors(options => options.AddDefaultPolicy(builder => diff --git a/BMA.EHR.Insignia/appsettings.json b/BMA.EHR.Insignia/appsettings.json index 6c16b2ac..212bf833 100644 --- a/BMA.EHR.Insignia/appsettings.json +++ b/BMA.EHR.Insignia/appsettings.json @@ -9,9 +9,10 @@ } }, "ElasticConfiguration": { - "Uri": "http://192.168.1.40:9200" + "Uri": "http://192.168.1.40:9200", + "IndexFormat": "bma-ehr-log-index", + "SystemName": "insignia" }, - "LogIndex": "bma-ehr-log-index", "AllowedHosts": "*", "ConnectionStrings": { //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", From f1460dd384bfe0aad897db8ea6595171328a43b8 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 26 Mar 2025 12:33:22 +0700 Subject: [PATCH 152/879] add log to discipline --- BMA.EHR.Discipline.Service/Program.cs | 6 +- BMA.EHR.Discipline.Service/appsettings.json | 100 ++++++++++---------- 2 files changed, 55 insertions(+), 51 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Program.cs b/BMA.EHR.Discipline.Service/Program.cs index d33c885a..4ead4ce6 100644 --- a/BMA.EHR.Discipline.Service/Program.cs +++ b/BMA.EHR.Discipline.Service/Program.cs @@ -69,8 +69,8 @@ var builder = WebApplication.CreateBuilder(args); builder.Services.AddAuthorization(); // use serilog - ConfigureLogs(); - builder.Host.UseSerilog(); + //ConfigureLogs(); + //builder.Host.UseSerilog(); // Add config CORS builder.Services.AddCors(options => options.AddDefaultPolicy(builder => @@ -154,6 +154,8 @@ var app = builder.Build(); app.UseStaticFiles(); app.MapControllers(); app.UseMiddleware(); + app.UseMiddleware(); + app.UseHangfireDashboard("/hangfire", new DashboardOptions() { Authorization = new[] { new CustomAuthorizeFilter() } diff --git a/BMA.EHR.Discipline.Service/appsettings.json b/BMA.EHR.Discipline.Service/appsettings.json index 62c756cb..4122d7ae 100644 --- a/BMA.EHR.Discipline.Service/appsettings.json +++ b/BMA.EHR.Discipline.Service/appsettings.json @@ -1,51 +1,53 @@ { - "Serilog": { - "MinimumLevel": { - "Default": "Information", - "Override": { - "Microsoft": "Information", - "System": "Warning" - } - } - }, - "ElasticConfiguration": { - "Uri": "http://localhost:9200" - }, - "AllowedHosts": "*", - "ConnectionStrings": { - //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "LeaveConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "DisciplineConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_discipline;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" - }, - "Jwt": { - "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/hrms" - }, - "EPPlus": { - "ExcelPackage": { - "LicenseContext": "NonCommercial" - } - }, - "MinIO": { - "Endpoint": "https://edm-s3.frappet.synology.me/", - "AccessKey": "XxtdnJajPjp3hHuKdOMn", - "SecretKey": "rVPzB05giC7bA400cUuIThzT4T9SGCcpcmL3tBBg", - "BucketName": "bma-ehr-fpt" - }, - "Mail": { - "Server": "smtp.gmail.com", - "User": "suphonchai.ph@gmail.com", - "Password": "nnjazjcnwhepkxdm", - "MailFrom": "suphonchai.ph@gmail.com", - "Port": "587" - }, - "KeycloakCron": { - "Hour": "08", - "Minute": "00" - }, - "Protocol": "HTTPS", - "API": "https://bma-ehr.frappet.synology.me/api/v1", - "API_KEY": "fKRL16yyEgbyTEJdsMw2h64tGSCmkW685PRtM3CygzX1JOSdptT9UJtpgWwKM8FybRTJups3GTFwj27ZRvlPdIkv3XgCoVJaD5LmR06ozuEPvCCRSdp2WFthg08V5xHc56fTPfZLpr1VmXrhd6dvYhHIqKkQUJR02Rlkss11cLRWEQOssEFVA4xdu2J5DIRO1EM5m7wRRvEwcDB4mYRXD9HH52SMq6iYqUWEWsMwLdbk7QW9yYESUEuzMW5gWrb6vIeWZxJV5bTz1PcWUyR7eO9Fyw1F5DiQYc9JgzTC1mW7cv31fEtTtrfbJYKIb5EbWilqIEUKC6A0UKBDDek35ML0006cqRVm0pvdOH6jeq7VQyYrhdXe59dBEyhYGUIfozoVBvW7Up4QBuOMjyPjSqJPlMBKwaseptfrblxQV1AOOivSBpf1ZcQyOZ8JktRtKUDSuXsmG0lsXwFlI3JCeSHdpVdgZWFYcJPegqfrB6KotR02t9AVkpLs1ZWrixwz" + "Serilog": { + "MinimumLevel": { + "Default": "Information", + "Override": { + "Microsoft": "Information", + "System": "Warning" + } + } + }, + "ElasticConfiguration": { + "Uri": "http://192.168.1.40:9200", + "IndexFormat": "bma-ehr-log-index", + "SystemName": "discipline" + }, + "AllowedHosts": "*", + "ConnectionStrings": { + //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "LeaveConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "DisciplineConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_discipline;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + }, + "Jwt": { + "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", + "Issuer": "https://id.frappet.synology.me/realms/hrms" + }, + "EPPlus": { + "ExcelPackage": { + "LicenseContext": "NonCommercial" + } + }, + "MinIO": { + "Endpoint": "https://edm-s3.frappet.synology.me/", + "AccessKey": "XxtdnJajPjp3hHuKdOMn", + "SecretKey": "rVPzB05giC7bA400cUuIThzT4T9SGCcpcmL3tBBg", + "BucketName": "bma-ehr-fpt" + }, + "Mail": { + "Server": "smtp.gmail.com", + "User": "suphonchai.ph@gmail.com", + "Password": "nnjazjcnwhepkxdm", + "MailFrom": "suphonchai.ph@gmail.com", + "Port": "587" + }, + "KeycloakCron": { + "Hour": "08", + "Minute": "00" + }, + "Protocol": "HTTPS", + "API": "https://bma-ehr.frappet.synology.me/api/v1", + "API_KEY": "fKRL16yyEgbyTEJdsMw2h64tGSCmkW685PRtM3CygzX1JOSdptT9UJtpgWwKM8FybRTJups3GTFwj27ZRvlPdIkv3XgCoVJaD5LmR06ozuEPvCCRSdp2WFthg08V5xHc56fTPfZLpr1VmXrhd6dvYhHIqKkQUJR02Rlkss11cLRWEQOssEFVA4xdu2J5DIRO1EM5m7wRRvEwcDB4mYRXD9HH52SMq6iYqUWEWsMwLdbk7QW9yYESUEuzMW5gWrb6vIeWZxJV5bTz1PcWUyR7eO9Fyw1F5DiQYc9JgzTC1mW7cv31fEtTtrfbJYKIb5EbWilqIEUKC6A0UKBDDek35ML0006cqRVm0pvdOH6jeq7VQyYrhdXe59dBEyhYGUIfozoVBvW7Up4QBuOMjyPjSqJPlMBKwaseptfrblxQV1AOOivSBpf1ZcQyOZ8JktRtKUDSuXsmG0lsXwFlI3JCeSHdpVdgZWFYcJPegqfrB6KotR02t9AVkpLs1ZWrixwz" } \ No newline at end of file From e4dccb5c1f034f5270cd67a718498f309d866356 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 26 Mar 2025 12:59:42 +0700 Subject: [PATCH 153/879] add log to placement and retirement --- BMA.EHR.Placement.Service/Program.cs | 6 +- BMA.EHR.Placement.Service/appsettings.json | 96 +++++++++++---------- BMA.EHR.Retirement.Service/Program.cs | 5 +- BMA.EHR.Retirement.Service/appsettings.json | 78 +++++++++-------- 4 files changed, 96 insertions(+), 89 deletions(-) diff --git a/BMA.EHR.Placement.Service/Program.cs b/BMA.EHR.Placement.Service/Program.cs index 6a13aea1..6ba63a4e 100644 --- a/BMA.EHR.Placement.Service/Program.cs +++ b/BMA.EHR.Placement.Service/Program.cs @@ -68,8 +68,8 @@ var builder = WebApplication.CreateBuilder(args); builder.Services.AddAuthorization(); // use serilog - ConfigureLogs(); - builder.Host.UseSerilog(); + //ConfigureLogs(); + //builder.Host.UseSerilog(); // Add config CORS builder.Services.AddCors(options => options.AddDefaultPolicy(builder => @@ -153,6 +153,8 @@ var app = builder.Build(); app.UseStaticFiles(); app.MapControllers(); app.UseMiddleware(); + app.UseMiddleware(); + app.UseHangfireDashboard("/hangfire", new DashboardOptions() { Authorization = new[] { new CustomAuthorizeFilter() } diff --git a/BMA.EHR.Placement.Service/appsettings.json b/BMA.EHR.Placement.Service/appsettings.json index 72b6e16e..f40436b3 100644 --- a/BMA.EHR.Placement.Service/appsettings.json +++ b/BMA.EHR.Placement.Service/appsettings.json @@ -1,49 +1,51 @@ { - "Serilog": { - "MinimumLevel": { - "Default": "Information", - "Override": { - "Microsoft": "Information", - "System": "Warning" - } - } - }, - "ElasticConfiguration": { - "Uri": "http://localhost:9200" - }, - "AllowedHosts": "*", - "ConnectionStrings": { - //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" - }, - "Jwt": { - "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/hrms" - }, - "EPPlus": { - "ExcelPackage": { - "LicenseContext": "NonCommercial" - } - }, - "MinIO": { - "Endpoint": "https://edm-s3.frappet.synology.me/", - "AccessKey": "XxtdnJajPjp3hHuKdOMn", - "SecretKey": "rVPzB05giC7bA400cUuIThzT4T9SGCcpcmL3tBBg", - "BucketName": "bma-ehr-fpt" - }, - "KeycloakCron": { - "Hour": "08", - "Minute": "00" - }, - "Mail": { - "Server": "smtp.gmail.com", - "User": "suphonchai.ph@gmail.com", - "Password": "nnjazjcnwhepkxdm", - "MailFrom": "suphonchai.ph@gmail.com", - "Port": "587" - }, - "Protocol": "HTTPS", - "APIPROBATION": "https://bma-ehr.frappet.synology.me/api/v1/probation", - "API": "https://bma-ehr.frappet.synology.me/api/v1", - "API_KEY": "fKRL16yyEgbyTEJdsMw2h64tGSCmkW685PRtM3CygzX1JOSdptT9UJtpgWwKM8FybRTJups3GTFwj27ZRvlPdIkv3XgCoVJaD5LmR06ozuEPvCCRSdp2WFthg08V5xHc56fTPfZLpr1VmXrhd6dvYhHIqKkQUJR02Rlkss11cLRWEQOssEFVA4xdu2J5DIRO1EM5m7wRRvEwcDB4mYRXD9HH52SMq6iYqUWEWsMwLdbk7QW9yYESUEuzMW5gWrb6vIeWZxJV5bTz1PcWUyR7eO9Fyw1F5DiQYc9JgzTC1mW7cv31fEtTtrfbJYKIb5EbWilqIEUKC6A0UKBDDek35ML0006cqRVm0pvdOH6jeq7VQyYrhdXe59dBEyhYGUIfozoVBvW7Up4QBuOMjyPjSqJPlMBKwaseptfrblxQV1AOOivSBpf1ZcQyOZ8JktRtKUDSuXsmG0lsXwFlI3JCeSHdpVdgZWFYcJPegqfrB6KotR02t9AVkpLs1ZWrixwz" + "Serilog": { + "MinimumLevel": { + "Default": "Information", + "Override": { + "Microsoft": "Information", + "System": "Warning" + } + } + }, + "ElasticConfiguration": { + "Uri": "http://192.168.1.40:9200", + "IndexFormat": "bma-ehr-log-index", + "SystemName": "placement" + }, + "AllowedHosts": "*", + "ConnectionStrings": { + //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + }, + "Jwt": { + "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", + "Issuer": "https://id.frappet.synology.me/realms/hrms" + }, + "EPPlus": { + "ExcelPackage": { + "LicenseContext": "NonCommercial" + } + }, + "MinIO": { + "Endpoint": "https://edm-s3.frappet.synology.me/", + "AccessKey": "XxtdnJajPjp3hHuKdOMn", + "SecretKey": "rVPzB05giC7bA400cUuIThzT4T9SGCcpcmL3tBBg", + "BucketName": "bma-ehr-fpt" + }, + "KeycloakCron": { + "Hour": "08", + "Minute": "00" + }, + "Mail": { + "Server": "smtp.gmail.com", + "User": "suphonchai.ph@gmail.com", + "Password": "nnjazjcnwhepkxdm", + "MailFrom": "suphonchai.ph@gmail.com", + "Port": "587" + }, + "Protocol": "HTTPS", + "APIPROBATION": "https://bma-ehr.frappet.synology.me/api/v1/probation", + "API": "https://bma-ehr.frappet.synology.me/api/v1", + "API_KEY": "fKRL16yyEgbyTEJdsMw2h64tGSCmkW685PRtM3CygzX1JOSdptT9UJtpgWwKM8FybRTJups3GTFwj27ZRvlPdIkv3XgCoVJaD5LmR06ozuEPvCCRSdp2WFthg08V5xHc56fTPfZLpr1VmXrhd6dvYhHIqKkQUJR02Rlkss11cLRWEQOssEFVA4xdu2J5DIRO1EM5m7wRRvEwcDB4mYRXD9HH52SMq6iYqUWEWsMwLdbk7QW9yYESUEuzMW5gWrb6vIeWZxJV5bTz1PcWUyR7eO9Fyw1F5DiQYc9JgzTC1mW7cv31fEtTtrfbJYKIb5EbWilqIEUKC6A0UKBDDek35ML0006cqRVm0pvdOH6jeq7VQyYrhdXe59dBEyhYGUIfozoVBvW7Up4QBuOMjyPjSqJPlMBKwaseptfrblxQV1AOOivSBpf1ZcQyOZ8JktRtKUDSuXsmG0lsXwFlI3JCeSHdpVdgZWFYcJPegqfrB6KotR02t9AVkpLs1ZWrixwz" } \ No newline at end of file diff --git a/BMA.EHR.Retirement.Service/Program.cs b/BMA.EHR.Retirement.Service/Program.cs index fc121e82..f8cf5bf8 100644 --- a/BMA.EHR.Retirement.Service/Program.cs +++ b/BMA.EHR.Retirement.Service/Program.cs @@ -69,8 +69,8 @@ var builder = WebApplication.CreateBuilder(args); builder.Services.AddAuthorization(); // use serilog - ConfigureLogs(); - builder.Host.UseSerilog(); + //ConfigureLogs(); + //builder.Host.UseSerilog(); // Add config CORS builder.Services.AddCors(options => options.AddDefaultPolicy(builder => @@ -161,6 +161,7 @@ var app = builder.Build(); app.UseStaticFiles(); app.MapControllers(); app.UseMiddleware(); + app.UseMiddleware(); app.UseHangfireDashboard("/hangfire", new DashboardOptions() { diff --git a/BMA.EHR.Retirement.Service/appsettings.json b/BMA.EHR.Retirement.Service/appsettings.json index e0bb99d4..18183333 100644 --- a/BMA.EHR.Retirement.Service/appsettings.json +++ b/BMA.EHR.Retirement.Service/appsettings.json @@ -1,40 +1,42 @@ { - "Serilog": { - "MinimumLevel": { - "Default": "Information", - "Override": { - "Microsoft": "Information", - "System": "Warning" - } - } - }, - "ElasticConfiguration": { - "Uri": "http://localhost:9200" - }, - "AllowedHosts": "*", - "ConnectionStrings": { - //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - // "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "DisciplineConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_discipline;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" - }, - "Jwt": { - "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/hrms" - }, - "EPPlus": { - "ExcelPackage": { - "LicenseContext": "NonCommercial" - } - }, - "MinIO": { - "Endpoint": "https://s3.frappet.com/", - "AccessKey": "frappet", - "SecretKey": "P@ssw0rd", - "BucketName": "bma-recruit" - }, - "Protocol": "HTTPS", - "API": "https://bma-ehr.frappet.synology.me/api/v1", - "APIV2": "https://bma-ehr.frappet.synology.me/api/v2", - "API_KEY": "fKRL16yyEgbyTEJdsMw2h64tGSCmkW685PRtM3CygzX1JOSdptT9UJtpgWwKM8FybRTJups3GTFwj27ZRvlPdIkv3XgCoVJaD5LmR06ozuEPvCCRSdp2WFthg08V5xHc56fTPfZLpr1VmXrhd6dvYhHIqKkQUJR02Rlkss11cLRWEQOssEFVA4xdu2J5DIRO1EM5m7wRRvEwcDB4mYRXD9HH52SMq6iYqUWEWsMwLdbk7QW9yYESUEuzMW5gWrb6vIeWZxJV5bTz1PcWUyR7eO9Fyw1F5DiQYc9JgzTC1mW7cv31fEtTtrfbJYKIb5EbWilqIEUKC6A0UKBDDek35ML0006cqRVm0pvdOH6jeq7VQyYrhdXe59dBEyhYGUIfozoVBvW7Up4QBuOMjyPjSqJPlMBKwaseptfrblxQV1AOOivSBpf1ZcQyOZ8JktRtKUDSuXsmG0lsXwFlI3JCeSHdpVdgZWFYcJPegqfrB6KotR02t9AVkpLs1ZWrixwz" + "Serilog": { + "MinimumLevel": { + "Default": "Information", + "Override": { + "Microsoft": "Information", + "System": "Warning" + } + } + }, + "ElasticConfiguration": { + "Uri": "http://192.168.1.40:9200", + "IndexFormat": "bma-ehr-log-index", + "SystemName": "retirement" + }, + "AllowedHosts": "*", + "ConnectionStrings": { + //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", + // "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "DisciplineConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_discipline;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + }, + "Jwt": { + "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", + "Issuer": "https://id.frappet.synology.me/realms/hrms" + }, + "EPPlus": { + "ExcelPackage": { + "LicenseContext": "NonCommercial" + } + }, + "MinIO": { + "Endpoint": "https://s3.frappet.com/", + "AccessKey": "frappet", + "SecretKey": "P@ssw0rd", + "BucketName": "bma-recruit" + }, + "Protocol": "HTTPS", + "API": "https://bma-ehr.frappet.synology.me/api/v1", + "APIV2": "https://bma-ehr.frappet.synology.me/api/v2", + "API_KEY": "fKRL16yyEgbyTEJdsMw2h64tGSCmkW685PRtM3CygzX1JOSdptT9UJtpgWwKM8FybRTJups3GTFwj27ZRvlPdIkv3XgCoVJaD5LmR06ozuEPvCCRSdp2WFthg08V5xHc56fTPfZLpr1VmXrhd6dvYhHIqKkQUJR02Rlkss11cLRWEQOssEFVA4xdu2J5DIRO1EM5m7wRRvEwcDB4mYRXD9HH52SMq6iYqUWEWsMwLdbk7QW9yYESUEuzMW5gWrb6vIeWZxJV5bTz1PcWUyR7eO9Fyw1F5DiQYc9JgzTC1mW7cv31fEtTtrfbJYKIb5EbWilqIEUKC6A0UKBDDek35ML0006cqRVm0pvdOH6jeq7VQyYrhdXe59dBEyhYGUIfozoVBvW7Up4QBuOMjyPjSqJPlMBKwaseptfrblxQV1AOOivSBpf1ZcQyOZ8JktRtKUDSuXsmG0lsXwFlI3JCeSHdpVdgZWFYcJPegqfrB6KotR02t9AVkpLs1ZWrixwz" } \ No newline at end of file From bcb7c7781c763179e81f6d25b1fc199bfa1838cb Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Wed, 26 Mar 2025 17:12:46 +0700 Subject: [PATCH 154/879] #111 , #1271 --- .../PlacementAppointmentController.cs | 48 ++++++------------- .../PlacementAppointmentEmployeeController.cs | 2 +- .../Controllers/PlacementController.cs | 8 ++++ .../Controllers/PlacementOfficerController.cs | 9 +--- .../Controllers/PlacementReceiveController.cs | 12 +++-- .../PlacementRepatriationController.cs | 10 ++-- .../PlacementTransferController.cs | 17 +++---- .../Controllers/RetirementOtherController.cs | 10 ++-- .../Controllers/RetirementOutController.cs | 4 +- .../Controllers/RetirementResignController.cs | 5 +- 10 files changed, 51 insertions(+), 74 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 55406e64..546a5aac 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -461,7 +461,7 @@ namespace BMA.EHR.Placement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementAppointment.OrganizationPositionOld = org.result.position + "\n" + placementAppointment.OrganizationOld; + placementAppointment.OrganizationPositionOld = org.result.position + "\n" + (placementAppointment.PositionExecutiveOld == null ? "" : placementAppointment.PositionExecutiveOld + "\n") + placementAppointment.OrganizationOld; placementAppointment.AmountOld = org.result.salary; } await _context.PlacementAppointments.AddAsync(placementAppointment); @@ -812,18 +812,14 @@ namespace BMA.EHR.Placement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = (p.positionOld == null ? "" : $"{p.positionOld}\n") + - (p.child4Old == null ? "" : $"{p.child4Old}\n") + - (p.child3Old == null ? "" : $"{p.child3Old}\n") + - (p.child2Old == null ? "" : $"{p.child2Old}\n") + - (p.child1Old == null ? "" : $"{p.child1Old}\n") + - (p.rootOld == null ? "" : $"{p.rootOld}"), + OldOc = p.OrganizationPositionOld, OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = "-", NewOc = (p.position == null ? "" : $"{p.position}\n") + + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -1026,18 +1022,14 @@ namespace BMA.EHR.Placement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = (p.positionOld == null ? "" : $"{p.positionOld}\n") + - (p.child4Old == null ? "" : $"{p.child4Old}\n") + - (p.child3Old == null ? "" : $"{p.child3Old}\n") + - (p.child2Old == null ? "" : $"{p.child2Old}\n") + - (p.child1Old == null ? "" : $"{p.child1Old}\n") + - (p.rootOld == null ? "" : $"{p.rootOld}"), + OldOc = p.OrganizationPositionOld, OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = "-", - NewOc = (p.position == null ? "" : $"{p.position}\n") + + NewOc =(p.position == null ? "" : $"{p.position}\n") + + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -1242,16 +1234,12 @@ namespace BMA.EHR.Placement.Service.Controllers { No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - OldOrganization = (p.positionOld == null ? "" : $"{p.positionOld}\n") + - (p.child4Old == null ? "" : $"{p.child4Old}\n") + - (p.child3Old == null ? "" : $"{p.child3Old}\n") + - (p.child2Old == null ? "" : $"{p.child2Old}\n") + - (p.child1Old == null ? "" : $"{p.child1Old}\n") + - (p.rootOld == null ? "" : $"{p.rootOld}"), + OldOrganization = p.OrganizationPositionOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld.ToThaiNumber(), OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = (p.position == null ? "" : $"{p.position}\n") + + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -1446,13 +1434,8 @@ namespace BMA.EHR.Placement.Service.Controllers { No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - OldOc = (p.positionOld == null ? "" : $"{p.positionOld}\n") + - (p.child4Old == null ? "" : $"{p.child4Old}\n") + - (p.child3Old == null ? "" : $"{p.child3Old}\n") + - (p.child2Old == null ? "" : $"{p.child2Old}\n") + - (p.child1Old == null ? "" : $"{p.child1Old}\n") + - (p.rootOld == null ? "" : $"{p.rootOld}"), - OldPositionNumber = p.posMasterNoOld == null ? "-" : + OldOc = p.OrganizationPositionOld, + OldPositionNumber = p.posMasterNoOld == null ? "-" : p.child4Old != null ? $"{p.child4ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : p.child3Old != null ? $"{p.child3ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : p.child2Old != null ? $"{p.child2ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : @@ -1460,6 +1443,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.rootOld != null ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = (p.position == null ? "" : $"{p.position}\n") + + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -1661,12 +1645,7 @@ namespace BMA.EHR.Placement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = (p.positionOld == null ? "" : $"{p.positionOld}\n") + - (p.child4Old == null ? "" : $"{p.child4Old}\n") + - (p.child3Old == null ? "" : $"{p.child3Old}\n") + - (p.child2Old == null ? "" : $"{p.child2Old}\n") + - (p.child1Old == null ? "" : $"{p.child1Old}\n") + - (p.rootOld == null ? "" : $"{p.rootOld}"), + OldOc = p.OrganizationPositionOld, OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : @@ -1677,7 +1656,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.rootOld != null ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), PositionDate = p.PositionDate == null ? "-" : p.PositionDate.Value.ToThaiShortDate2().ToThaiNumber(), - NewOc = (p.position == null ? "" : $"{p.position}\n") + + NewOc = (p.position == null ? "" : $"{p.position}\n") + + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index 227448d9..d3fc40a7 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -488,7 +488,7 @@ namespace BMA.EHR.Placement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementAppointment.OrganizationPositionOld = org.result.position + "\n" + placementAppointment.OrganizationOld; + placementAppointment.OrganizationPositionOld = org.result.position + "\n" + (placementAppointment.PositionExecutiveOld == null ? "" : placementAppointment.PositionExecutiveOld + "\n") + placementAppointment.OrganizationOld; } await _context.PlacementAppointments.AddAsync(placementAppointment); await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index f47673e8..761fa022 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1629,6 +1629,7 @@ namespace BMA.EHR.Placement.Service.Controllers ExamNumber = p.ExamNumber == null ? "-" : p.ExamNumber.Value.ToString().ToThaiNumber(), PlacementName = $"{p.Placement.Name.ToThaiNumber()} āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ {p.Placement.Round.ToThaiNumber()} {p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", Oc = (p.positionName == null ? "" : $"{p.positionName}\n") + + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -1959,6 +1960,7 @@ namespace BMA.EHR.Placement.Service.Controllers ExamNumber = p.ExamNumber == null ? "-" : p.ExamNumber.Value.ToString().ToThaiNumber(), PlacementName = $"{p.Placement.Name.ToThaiNumber()} āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ {p.Placement.Round.ToThaiNumber()} {p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", Oc = (p.positionName == null ? "" : $"{p.positionName}\n") + + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -2282,6 +2284,7 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.PlacementEducations == null || p.PlacementEducations.Count == 0 ? "-" : p.PlacementEducations.FirstOrDefault().Degree, OldOc = (p.positionNameOld == null ? "" : $"{p.positionNameOld}\n") + + (p.PositionExecutiveOld == null ? "" : $"{p.PositionExecutiveOld}\n") + (p.child4Old == null ? "" : $"{p.child4Old}\n") + (p.child3Old == null ? "" : $"{p.child3Old}\n") + (p.child2Old == null ? "" : $"{p.child2Old}\n") + @@ -2298,6 +2301,7 @@ namespace BMA.EHR.Placement.Service.Controllers OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), OldPosition = p.positionNameOld == null ? "-" : p.positionNameOld, NewOc = (p.positionName == null ? "" : $"{p.positionName}\n") + + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -2512,6 +2516,7 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.PlacementEducations == null || p.PlacementEducations.Count == 0 ? "-" : p.PlacementEducations.FirstOrDefault().Degree, OldOc = (p.positionNameOld == null ? "" : $"{p.positionNameOld}\n") + + (p.PositionExecutiveOld == null ? "" : $"{p.PositionExecutiveOld}\n") + (p.child4Old == null ? "" : $"{p.child4Old}\n") + (p.child3Old == null ? "" : $"{p.child3Old}\n") + (p.child2Old == null ? "" : $"{p.child2Old}\n") + @@ -2528,6 +2533,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.nodeOld == "0" ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = (p.positionName == null ? "" : $"{p.positionName}\n") + + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -2731,6 +2737,7 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.PlacementEducations == null || p.PlacementEducations.Count == 0 ? "-" : p.PlacementEducations.FirstOrDefault().Degree, OldOc = (p.positionNameOld == null ? "" : $"{p.positionNameOld}\n") + + (p.PositionExecutiveOld == null ? "" : $"{p.PositionExecutiveOld}\n") + (p.child4Old == null ? "" : $"{p.child4Old}\n") + (p.child3Old == null ? "" : $"{p.child3Old}\n") + (p.child2Old == null ? "" : $"{p.child2Old}\n") + @@ -2747,6 +2754,7 @@ namespace BMA.EHR.Placement.Service.Controllers OldSalary = p.Amount == null ? "-" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = "-", NewOc = (p.positionName == null ? "" : $"{p.positionName}\n") + + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index bd34d64a..9e14cb5a 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -411,7 +411,7 @@ namespace BMA.EHR.Placement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementOfficer.OrganizationPositionOld = org.result.position + "\n" + placementOfficer.OrganizationOld; + placementOfficer.OrganizationPositionOld = org.result.position + "\n" + (placementOfficer.PositionExecutiveOld == null ? "" : placementOfficer.PositionExecutiveOld + "\n") + placementOfficer.OrganizationOld; } await _context.PlacementOfficers.AddAsync(placementOfficer); await _context.SaveChangesAsync(); @@ -614,12 +614,7 @@ namespace BMA.EHR.Placement.Service.Controllers { No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - PositionName = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + - (p.child4Old == null ? "" : $"{p.child4Old}\n") + - (p.child3Old == null ? "" : $"{p.child3Old}\n") + - (p.child2Old == null ? "" : $"{p.child2Old}\n") + - (p.child1Old == null ? "" : $"{p.child1Old}\n") + - (p.rootOld == null ? "" : $"{p.rootOld}"), + PositionName = p.OrganizationPositionOld, Organization = p.Organization == null ? "" : p.Organization, StartDate = p.DateStart == null ? "" : p.DateStart.Value.ToThaiShortDate2().ToThaiNumber(), EndDate = p.DateEnd == null ? "" : p.DateEnd.Value.ToThaiShortDate2().ToThaiNumber(), diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 99bf35eb..16384f30 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -501,12 +501,12 @@ namespace BMA.EHR.Placement.Service.Controllers placementReceive.PositionLevelOld = org.result.posLevelName; placementReceive.PositionTypeOld = org.result.posTypeName; placementReceive.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementReceive.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + - (org.result.child3 == null ? "" : org.result.child3 + " ") + - (org.result.child2 == null ? "" : org.result.child2 + " ") + - (org.result.child1 == null ? "" : org.result.child1 + " ") + + placementReceive.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementReceive.OrganizationPositionOld = org.result.position + "\n" + placementReceive.OrganizationOld; + placementReceive.OrganizationPositionOld = org.result.position + "\n" + (placementReceive.PositionExecutiveOld == null ? "" : placementReceive.PositionExecutiveOld + "\n") + placementReceive.OrganizationOld; } } await _context.PlacementReceives.AddAsync(placementReceive); @@ -940,6 +940,7 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.EducationOld == null ? "-" : p.EducationOld, OldOrg = p.OrganizationPositionOld ?? "-", OldOc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + + (p.PositionExecutiveOld == null ? "" : $"{p.PositionExecutiveOld}\n") + (p.child4Old == null ? "" : $"{p.child4Old}\n") + (p.child3Old == null ? "" : $"{p.child3Old}\n") + (p.child2Old == null ? "" : $"{p.child2Old}\n") + @@ -949,6 +950,7 @@ namespace BMA.EHR.Placement.Service.Controllers OldPositionLevel = p.PositionLevelOld ?? "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = (p.position == null ? "" : $"{p.position}\n") + + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index ab55e124..da1b3256 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -283,12 +283,12 @@ namespace BMA.EHR.Placement.Service.Controllers placementRepatriation.PositionLevelOld = org.result.posLevelName; placementRepatriation.PositionTypeOld = org.result.posTypeName; placementRepatriation.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementRepatriation.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + - (org.result.child3 == null ? "" : org.result.child3 + " ") + - (org.result.child2 == null ? "" : org.result.child2 + " ") + - (org.result.child1 == null ? "" : org.result.child1 + " ") + + placementRepatriation.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementRepatriation.OrganizationPositionOld = org.result.position + "\n" + placementRepatriation.OrganizationOld; + placementRepatriation.OrganizationPositionOld = org.result.position + "\n" + (placementRepatriation.PositionExecutiveOld == null ? "" : placementRepatriation.PositionExecutiveOld + "\n") + placementRepatriation.OrganizationOld; } await _context.PlacementRepatriations.AddAsync(placementRepatriation); await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index eb8c5315..c1d1e7d4 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -541,12 +541,12 @@ namespace BMA.EHR.Placement.Service.Controllers placementTransfer.PositionLevelOld = org.result.posLevelName; placementTransfer.PositionTypeOld = org.result.posTypeName; placementTransfer.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; - placementTransfer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + " ") + - (org.result.child3 == null ? "" : org.result.child3 + " ") + - (org.result.child2 == null ? "" : org.result.child2 + " ") + - (org.result.child1 == null ? "" : org.result.child1 + " ") + + placementTransfer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementTransfer.OrganizationPositionOld = org.result.position + "\n" + placementTransfer.OrganizationOld; + placementTransfer.OrganizationPositionOld = org.result.position + "\n" + (placementTransfer.PositionExecutiveOld == null ? "" : placementTransfer.PositionExecutiveOld + "\n") + placementTransfer.OrganizationOld; } await _context.PlacementTransfers.AddAsync(placementTransfer); await _context.SaveChangesAsync(); @@ -805,12 +805,7 @@ namespace BMA.EHR.Placement.Service.Controllers { No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - OldOc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + - (p.child4Old == null ? "" : $"{p.child4Old}\n") + - (p.child3Old == null ? "" : $"{p.child3Old}\n") + - (p.child2Old == null ? "" : $"{p.child2Old}\n") + - (p.child1Old == null ? "" : $"{p.child1Old}\n") + - (p.rootOld == null ? "" : $"{p.rootOld}"), + OldOc = p.OrganizationPositionOld, PositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, PositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, PositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 61608786..4c4f4d7c 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -330,7 +330,7 @@ namespace BMA.EHR.Retirement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - retirementOther.OrganizationPositionOld = org.result.position + "\n" + retirementOther.OrganizationOld; + retirementOther.OrganizationPositionOld = org.result.position + "\n" + (retirementOther.PositionExecutiveOld == null ? "" : retirementOther.PositionExecutiveOld + "\n") + retirementOther.OrganizationOld; retirementOther.EducationOld = org.result.education; retirementOther.AmountOld = org.result.salary; } @@ -825,12 +825,7 @@ namespace BMA.EHR.Retirement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + - (p.child4Old == null ? "" : $"{p.child4Old}\n") + - (p.child3Old == null ? "" : $"{p.child3Old}\n") + - (p.child2Old == null ? "" : $"{p.child2Old}\n") + - (p.child1Old == null ? "" : $"{p.child1Old}\n") + - (p.rootOld == null ? "" : $"{p.rootOld}"), + OldOc = p.OrganizationPositionOld, OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), @@ -838,6 +833,7 @@ namespace BMA.EHR.Retirement.Service.Controllers LeaveDate = p.LeaveDate == null ? "-" : p.LeaveDate.Value.ToThaiShortDate2().ToThaiNumber(), MilitaryDate = p.MilitaryDate == null ? "-" : p.MilitaryDate.Value.ToThaiShortDate2().ToThaiNumber(), NewOc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + + (p.PositionExecutiveOld == null ? "" : $"{p.PositionExecutiveOld}\n") + (p.child4Old == null ? "" : $"{p.child4Old}\n") + (p.child3Old == null ? "" : $"{p.child3Old}\n") + (p.child2Old == null ? "" : $"{p.child2Old}\n") + diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index 356ee3eb..21c6290f 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -307,7 +307,7 @@ namespace BMA.EHR.Retirement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - retirementOut.OrganizationPositionOld = org.result.position + "\n" + retirementOut.OrganizationOld; + retirementOut.OrganizationPositionOld = org.result.position + "\n" + (retirementOut.PositionExecutiveOld == null ? "" : retirementOut.PositionExecutiveOld + "\n") + retirementOut.OrganizationOld; retirementOut.AmountOld = org.result.salary; } } @@ -362,7 +362,7 @@ namespace BMA.EHR.Retirement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - retirementOut.OrganizationPositionOld = org.result.position + "\n" + retirementOut.OrganizationOld; + retirementOut.OrganizationPositionOld = org.result.position + "\n" + (retirementOut.PositionExecutiveOld == null ? "" : retirementOut.PositionExecutiveOld + "\n") + retirementOut.OrganizationOld; retirementOut.AmountOld = org.result.salary; } } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index eec2d627..28c379a7 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -948,7 +948,7 @@ namespace BMA.EHR.Retirement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - retirementResign.OrganizationPositionOld = org.result.position + "\n" + retirementResign.OrganizationOld; + retirementResign.OrganizationPositionOld = org.result.position + "\n" + (retirementResign.PositionExecutiveOld == null ? "" : retirementResign.PositionExecutiveOld + "\n") + retirementResign.OrganizationOld; } await _context.RetirementResigns.AddAsync(retirementResign); await _context.SaveChangesAsync(); @@ -2357,7 +2357,8 @@ namespace BMA.EHR.Retirement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", PositionName = p.PositionOld ?? "-", Organization = p.OrganizationPositionOld ?? "-", - Oc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + + Oc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + + (p.PositionExecutiveOld == null ? "" : $"{p.PositionExecutiveOld}\n") + (p.child4Old == null ? "" : $"{p.child4Old}\n") + (p.child3Old == null ? "" : $"{p.child3Old}\n") + (p.child2Old == null ? "" : $"{p.child2Old}\n") + From 44cd46effc2d6cf306cc5a95c681c55088d8f89d Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 26 Mar 2025 18:42:42 +0700 Subject: [PATCH 155/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=81=E0=B8=A7=E0=B8=B2=E0=B8=94=E0=B8=A3=E0=B8=B2?= =?UTF-8?q?=E0=B8=A2=E0=B8=8A=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=95=E0=B8=AD?= =?UTF-8?q?=E0=B8=99=E0=B8=AA=E0=B9=88=E0=B8=87=E0=B8=AB=E0=B8=99=E0=B8=B1?= =?UTF-8?q?=E0=B8=87=E0=B8=AA=E0=B8=B7=E0=B8=AD=E0=B9=80=E0=B8=A7=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=96=E0=B8=B6=E0=B8=87=E0=B9=81=E0=B8=81?= =?UTF-8?q?=E0=B9=88=E0=B8=81=E0=B8=A3=E0=B8=A3=E0=B8=A1=20(issue=20#1281?= =?UTF-8?q?=20&=20#1287)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RetirementDeceasedController.cs | 81 ++++++++++++++----- .../RetirementDeceasedAddNotiHigherRequest.cs | 22 +++++ 2 files changed, 85 insertions(+), 18 deletions(-) create mode 100644 BMA.EHR.Retirement.Service/Requests/RetirementDeceasedAddNotiHigherRequest.cs diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 7f170ec0..7d7cc8f2 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -394,25 +394,70 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceased.Document = _doc; } - retirementDeceased.RetirementDeceasedNotis.Add(new RetirementDeceasedNoti + //retirementDeceased.RetirementDeceasedNotis.Add(new RetirementDeceasedNoti + //{ + // CitizenId = retirementDeceased.citizenId == null ? "" : retirementDeceased.citizenId, + // Prefix = retirementDeceased.prefix == null ? "" : retirementDeceased.prefix, + // FirstName = retirementDeceased.firstName == null ? "" : retirementDeceased.firstName, + // LastName = retirementDeceased.lastName == null ? "" : retirementDeceased.lastName, + // IsSendMail = true, + // IsSendInbox = true, + // IsSendNotification = true, + // // OrganizationName = retirementDeceased.OrganizationName, + // PositionName = retirementDeceased.position == null ? "" : retirementDeceased.position, + // profileId = req.ProfileId, + // CreatedFullName = FullName ?? "System Administrator", + // CreatedUserId = UserId ?? "", + // CreatedAt = DateTime.Now, + // LastUpdateFullName = FullName ?? "System Administrator", + // LastUpdateUserId = UserId ?? "", + // LastUpdatedAt = DateTime.Now, + //}); + + var pathUrl = $"{_configuration["API"]}/org/command/find-higher"; + using (var client = new HttpClient()) { - CitizenId = retirementDeceased.citizenId == null ? "" : retirementDeceased.citizenId, - Prefix = retirementDeceased.prefix == null ? "" : retirementDeceased.prefix, - FirstName = retirementDeceased.firstName == null ? "" : retirementDeceased.firstName, - LastName = retirementDeceased.lastName == null ? "" : retirementDeceased.lastName, - IsSendMail = true, - IsSendInbox = true, - IsSendNotification = true, - // OrganizationName = retirementDeceased.OrganizationName, - PositionName = retirementDeceased.position == null ? "" : retirementDeceased.position, - profileId = req.ProfileId, - CreatedFullName = FullName ?? "System Administrator", - CreatedUserId = UserId ?? "", - CreatedAt = DateTime.Now, - LastUpdateFullName = FullName ?? "System Administrator", - LastUpdateUserId = UserId ?? "", - LastUpdatedAt = DateTime.Now, - }); + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.PostAsJsonAsync(pathUrl, new + { + persons = new List + { + new { profileId = req.ProfileId } + } + }); + var _result = await _res.Content.ReadAsStringAsync(); + if (_res.IsSuccessStatusCode) + { + var highers = JsonConvert.DeserializeObject(_result); + if (highers != null && highers.status == 200) + { + foreach (var higher in highers.result) + { + retirementDeceased.RetirementDeceasedNotis.Add(new RetirementDeceasedNoti + { + profileId = higher.profileId, + CitizenId = higher.citizenId, + Prefix = higher.prefix, + FirstName = higher.firstName, + LastName = higher.lastName, + OrganizationName = higher.organizationName, + PositionName = higher.positionName, + IsSendMail = true, + IsSendInbox = true, + IsSendNotification = true, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }); + } + } + } + } + await _context.SaveChangesAsync(); return Success(); diff --git a/BMA.EHR.Retirement.Service/Requests/RetirementDeceasedAddNotiHigherRequest.cs b/BMA.EHR.Retirement.Service/Requests/RetirementDeceasedAddNotiHigherRequest.cs new file mode 100644 index 00000000..81562f89 --- /dev/null +++ b/BMA.EHR.Retirement.Service/Requests/RetirementDeceasedAddNotiHigherRequest.cs @@ -0,0 +1,22 @@ +using BMA.EHR.Domain.Models.MetaData; +using Microsoft.EntityFrameworkCore; + +namespace BMA.EHR.Retirement.Service.Requests +{ + public class RetirementDeceasedAddNotiHigherRequest + { + public int status { get; set; } + public string message { get; set; } = string.Empty; + public List result { get; set; } = new List(); + } + public class HigherResponse + { + public string citizenId { get; set; } = string.Empty; + public string prefix { get; set; } = string.Empty; + public string firstName { get; set; } = string.Empty; + public string lastName { get; set; } = string.Empty; + public string organizationName { get; set; } = string.Empty; + public string positionName { get; set; } = string.Empty; + public string profileId { get; set; } = string.Empty; + } +} From 3ba0607a80cedbd78b8810e3982426ff22d30bb1 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 27 Mar 2025 04:42:52 +0700 Subject: [PATCH 156/879] report retire sort --- .github/workflows/release_Retirement.yaml | 190 +++++++++--------- .../Reports/RetireReportRepository.cs | 110 ++++++++-- .../Responses/ProfileRetireJsonRequest.cs | 1 + .../Controllers/RetireReportController.cs | 2 +- .../Controllers/RetirementController.cs | 2 +- 5 files changed, 189 insertions(+), 116 deletions(-) diff --git a/.github/workflows/release_Retirement.yaml b/.github/workflows/release_Retirement.yaml index 4d644cb3..4e936de9 100644 --- a/.github/workflows/release_Retirement.yaml +++ b/.github/workflows/release_Retirement.yaml @@ -6,102 +6,102 @@ on: - "retirement-[0-9]+.[0-9]+.[0-9]+" workflow_dispatch: env: - REGISTRY: docker.frappet.com - IMAGE_NAME: ehr/bma-ehr-retirement-service - DEPLOY_HOST: frappet.com - DEPLOY_PORT: 10102 - # COMPOSE_PATH: /home/frappet/docker/bma-ehr - COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-retirement - TOKEN_LINE: uxuK5hDzS2DsoC5piJBrWRLiz8GgY7iMZZldOWsDDF0 + REGISTRY: docker.frappet.com + IMAGE_NAME: ehr/bma-ehr-retirement-service + DEPLOY_HOST: frappet.com + DEPLOY_PORT: 10102 + # COMPOSE_PATH: /home/frappet/docker/bma-ehr + COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-retirement + TOKEN_LINE: uxuK5hDzS2DsoC5piJBrWRLiz8GgY7iMZZldOWsDDF0 jobs: - # act workflow_dispatch -W .github/workflows/release_retirement.yaml --input IMAGE_VER=latest -s DOCKER_USER=admin -s DOCKER_PASS=FPTadmin2357 -s SSH_PASSWORD=FPTadmin2357 - release-dev: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set output tags - id: vars - run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - - name: Gen Version - id: gen_ver - run: | - if [[ $GITHUB_REF == 'refs/tags/'* ]]; then - IMAGE_VER=${{ steps.vars.outputs.tag }} - else - IMAGE_VER=${{ github.event.inputs.IMAGE_VER }} - fi - if [[ $IMAGE_VER == '' ]]; then - IMAGE_VER='test-vBeta' - fi - echo '::set-output name=image_ver::'$IMAGE_VER - - name: Check Version - run: | - echo $GITHUB_REF - echo ${{ steps.gen_ver.outputs.image_ver }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Login in to registry - uses: docker/login-action@v2 - with: - registry: ${{env.REGISTRY}} - username: ${{secrets.DOCKER_USER}} - password: ${{secrets.DOCKER_PASS}} - - name: Build and load local docker image - uses: docker/build-push-action@v3 - with: - context: . - platforms: linux/amd64 - file: BMA.EHR.Retirement.Service/Dockerfile - push: true - tags: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:${{ steps.gen_ver.outputs.image_ver }},${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest + # act workflow_dispatch -W .github/workflows/release_retirement.yaml --input IMAGE_VER=latest -s DOCKER_USER=admin -s DOCKER_PASS=FPTadmin2357 -s SSH_PASSWORD=FPTadmin2357 + release-dev: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set output tags + id: vars + run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT + - name: Gen Version + id: gen_ver + run: | + if [[ $GITHUB_REF == 'refs/tags/'* ]]; then + IMAGE_VER=${{ steps.vars.outputs.tag }} + else + IMAGE_VER=${{ github.event.inputs.IMAGE_VER }} + fi + if [[ $IMAGE_VER == '' ]]; then + IMAGE_VER='test-vBeta' + fi + echo '::set-output name=image_ver::'$IMAGE_VER + - name: Check Version + run: | + echo $GITHUB_REF + echo ${{ steps.gen_ver.outputs.image_ver }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login in to registry + uses: docker/login-action@v2 + with: + registry: ${{env.REGISTRY}} + username: ${{secrets.DOCKER_USER}} + password: ${{secrets.DOCKER_PASS}} + - name: Build and load local docker image + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64 + file: BMA.EHR.Retirement.Service/Dockerfile + push: true + tags: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:${{ steps.gen_ver.outputs.image_ver }},${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest - - name: Reload docker compose - uses: appleboy/ssh-action@v0.1.8 - with: - host: ${{env.DEPLOY_HOST}} - username: frappet - password: ${{ secrets.SSH_PASSWORD }} - port: ${{env.DEPLOY_PORT}} - script: | - cd "${{env.COMPOSE_PATH}}" - docker compose pull - docker compose up -d - echo "${{ steps.gen_ver.outputs.image_ver }}"> success - - name: Notify Discord Success - if: success() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "✅ Deployment Success!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - "color": 3066993, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/success-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + - name: Reload docker compose + uses: appleboy/ssh-action@v0.1.8 + with: + host: ${{env.DEPLOY_HOST}} + username: frappet + password: ${{ secrets.SSH_PASSWORD }} + port: ${{env.DEPLOY_PORT}} + script: | + cd "${{env.COMPOSE_PATH}}" + docker compose pull + docker compose up -d + echo "${{ steps.gen_ver.outputs.image_ver }}"> success + # - name: Notify Discord Success + # if: success() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "✅ Deployment Success!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + # "color": 3066993, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/success-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} - - name: Notify Discord Failure - if: failure() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "❌ Deployment Failed!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - "color": 15158332, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/failure-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Failure + # if: failure() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "❌ Deployment Failed!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + # "color": 15158332, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/failure-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} diff --git a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs index ff5fa3e3..bbe6aea4 100644 --- a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs @@ -1,4 +1,5 @@ -ïŧŋusing System.Reflection.Metadata; +ïŧŋusing System.Net.Http.Headers; +using System.Reflection.Metadata; using BMA.EHR.Application.Common.Interfaces; using BMA.EHR.Application.Responses; using BMA.EHR.Domain.Extensions; @@ -9,6 +10,7 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.Configuration; using Newtonsoft.Json; namespace BMA.EHR.Application.Repositories.Reports @@ -21,20 +23,23 @@ namespace BMA.EHR.Application.Repositories.Reports private readonly IWebHostEnvironment _hostingEnvironment; private readonly MinIOService _documentService; private readonly OrganizationCommonRepository _organizationCommonRepository; + private readonly IConfiguration _configuration; #endregion #region " Constructor and Destructor " public RetireReportRepository(IApplicationDBContext dbContext, - MinIOService documentService, - OrganizationCommonRepository organizationCommonRepository, - IWebHostEnvironment hostEnvironment) + MinIOService documentService, + OrganizationCommonRepository organizationCommonRepository, + IWebHostEnvironment hostEnvironment, + IConfiguration configuration) { _dbContext = dbContext; _hostingEnvironment = hostEnvironment; _organizationCommonRepository = organizationCommonRepository; _documentService = documentService; + _configuration = configuration; } #endregion @@ -64,12 +69,33 @@ namespace BMA.EHR.Application.Repositories.Reports //} #region āļĢāļēāļĒāļ‡āļēāļ™āļ›āļĢāļ°āļāļēāļĻāđ€āļāļĐāļĩāļĒāļ“ - public async Task GetProfileRetirementdAsync(Guid retireId) + public async Task GetProfileRetirementdAsync(Guid retireId, string token) { var retire = await _dbContext.Set() .Include(x => x.RetirementProfiles) .FirstOrDefaultAsync(x => x.Id == retireId); // var retires = new List(); + var apiUrl = $"{_configuration["API"]}/org/root/search/sort"; + dynamic rootOrder = new List(); + dynamic posTypeNameOrder = new List(); + dynamic posLevelNameOrder = new List(); + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org != null && org.result != null) + { + rootOrder = org.result.root; + posTypeNameOrder = org.result.posTypeNameOrder; + posLevelNameOrder = org.result.posLevelNameOrder; + } + } if (retire == null) { var retireHistorys = await _dbContext.Set().AsQueryable() @@ -121,16 +147,39 @@ namespace BMA.EHR.Application.Repositories.Reports profiles = profiles.OrderBy(x => x.order).ToList(); } var mapProfiles = new List(); + string previousRoot = null; + string previousPosTypeName = null; + string previousPosLevelName = null; if (profiles.Count > 0) { - mapProfiles = profiles.Select((profile, index) => new ProfileRetireJsonRequest + mapProfiles = profiles + .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) + .Select((profile, index) => { - order = (index + 1).ToString().ToThaiNumber(), - fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", - root = profile.root, - position = profile.position != "" && profile.position != null ? profile.position : "-", - posNo = profile.posNo != "" && profile.posNo != null ? profile.posNo?.ToThaiNumber() : "-", - reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", + bool isDuplicateRoot = profile.root == previousRoot; + previousRoot = profile.root; + bool isDuplicatePosType = profile.posTypeName == previousPosTypeName; + previousPosTypeName = profile.posTypeName; + bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; + previousPosLevelName = profile.posLevelName; + return new ProfileRetireJsonRequest + { + order = (index + 1).ToString().ToThaiNumber(), + fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", + root = (isDuplicateRoot ? "" : profile.root + "\n") + + (isDuplicatePosType ? "" : profile.posTypeName + "\n") + + (isDuplicatePosLevel ? "" : profile.posLevelName), + child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + + (profile.child4 == null ? "" : profile.child4 + "\n") + + (profile.child3 == null ? "" : profile.child3 + "\n") + + (profile.child2 == null ? "" : profile.child2 + "\n") + + (profile.child1 == null ? "" : profile.child1), + position = profile.position != "" && profile.position != null ? profile.position : "-", + posNo = profile.posNo != "" && profile.posNo != null ? profile.posNo?.ToThaiNumber() : "-", + reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", + }; }).ToList(); } string SignDate = retireHistorys.SignDate != null ? DateTime.Parse(retireHistorys.SignDate.ToString()).ToThaiFullDate().ToString().ToThaiNumber() : "-"; @@ -208,16 +257,39 @@ namespace BMA.EHR.Application.Repositories.Reports // retires.Add(data); // } var mapProfiles = new List(); + string previousRoot = null; + string previousPosTypeName = null; + string previousPosLevelName = null; if (profile_retire.Count > 0) { - mapProfiles = profile_retire.Select((profile, index) => new ProfileRetireJsonRequest + mapProfiles = profile_retire + .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) + .Select((profile, index) => { - order = (index + 1).ToString().ToThaiNumber(), - fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", - root = profile.root, - position = profile.position != "" && profile.position != null ? profile.position : "-", - posNo = profile.posNo != "" && profile.posNo != null ? profile.posNo?.ToThaiNumber() : "-", - reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", + bool isDuplicateRoot = profile.root == previousRoot; + previousRoot = profile.root; + bool isDuplicatePosType = profile.posTypeName == previousPosTypeName; + previousPosTypeName = profile.posTypeName; + bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; + previousPosLevelName = profile.posLevelName; + return new ProfileRetireJsonRequest + { + order = (index + 1).ToString().ToThaiNumber(), + fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", + root = (isDuplicateRoot ? "" : profile.root + "\n") + + (isDuplicatePosType ? "" : profile.posTypeName + "\n") + + (isDuplicatePosLevel ? "" : profile.posLevelName), + child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + + (profile.child4 == null ? "" : profile.child4 + "\n") + + (profile.child3 == null ? "" : profile.child3 + "\n") + + (profile.child2 == null ? "" : profile.child2 + "\n") + + (profile.child1 == null ? "" : profile.child1), + position = profile.position != "" && profile.position != null ? profile.position : "-", + posNo = profile.posNo != "" && profile.posNo != null ? profile.posNo?.ToThaiNumber() : "-", + reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", + }; }).ToList(); } string SignDate = retire.SignDate != null ? DateTime.Parse(retire.SignDate.ToString()).ToThaiFullDate().ToString().ToThaiNumber() : "-"; diff --git a/BMA.EHR.Application/Responses/ProfileRetireJsonRequest.cs b/BMA.EHR.Application/Responses/ProfileRetireJsonRequest.cs index bcdf04ec..f690d2c3 100644 --- a/BMA.EHR.Application/Responses/ProfileRetireJsonRequest.cs +++ b/BMA.EHR.Application/Responses/ProfileRetireJsonRequest.cs @@ -8,6 +8,7 @@ public string? posNo { get; set; } public string? root { get; set; } public string? reason { get; set; } + public string? child { get; set; } } } diff --git a/BMA.EHR.Report.Service/Controllers/RetireReportController.cs b/BMA.EHR.Report.Service/Controllers/RetireReportController.cs index dd329dde..c5c2fa1a 100644 --- a/BMA.EHR.Report.Service/Controllers/RetireReportController.cs +++ b/BMA.EHR.Report.Service/Controllers/RetireReportController.cs @@ -44,7 +44,7 @@ namespace BMA.EHR.Report.Service.Controllers [HttpGet("{exportType}/{Id}")] public async Task> GetProfileRetirement([FromRoute] Guid Id, string exportType = "pdf") { - var retire = await _service.GetProfileRetirementdAsync(Id); + var retire = await _service.GetProfileRetirementdAsync(Id,token); if (retire != null) { var reportfile = string.Empty; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index aa9f1c0a..4fecb0ba 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -2127,7 +2127,7 @@ namespace BMA.EHR.Retirement.Service.Controllers [HttpGet("31/{exportType}/{Id}")] public async Task> GetProfileRetirement([FromRoute] Guid Id, string exportType = "pdf") { - var retire = await _service.GetProfileRetirementdAsync(Id); + var retire = await _service.GetProfileRetirementdAsync(Id,token); if (retire != null) { var reportfile = string.Empty; From 9be78c8bdc1c9c63da9b0d86fb87ed8989a97dd8 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 27 Mar 2025 10:33:56 +0700 Subject: [PATCH 157/879] on noti --- .github/workflows/release_Retirement.yaml | 72 +++++++++++------------ 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/release_Retirement.yaml b/.github/workflows/release_Retirement.yaml index 4e936de9..6cdceae0 100644 --- a/.github/workflows/release_Retirement.yaml +++ b/.github/workflows/release_Retirement.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - # - name: Notify Discord Success - # if: success() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "✅ Deployment Success!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - # "color": 3066993, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/success-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Success + if: success() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "✅ Deployment Success!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + "color": 3066993, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/success-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} - # - name: Notify Discord Failure - # if: failure() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "❌ Deployment Failed!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - # "color": 15158332, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/failure-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Failure + if: failure() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "❌ Deployment Failed!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + "color": 15158332, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/failure-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} From dd8e87b994035bccdada92b8a5177b895dd0f6bd Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 27 Mar 2025 11:02:58 +0700 Subject: [PATCH 158/879] =?UTF-8?q?=E0=B8=96=E0=B8=B6=E0=B8=87=E0=B9=81?= =?UTF-8?q?=E0=B8=81=E0=B9=89=E0=B8=81=E0=B8=A3=E0=B8=A3=E0=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Discipline.Service/Program.cs | 2 +- .../RetirementDeceasedController.cs | 105 +++++++++++------- BMA.EHR.Retirement.Service/Program.cs | 2 +- .../RetirementDeceasedAddNotiHigherRequest.cs | 2 - 4 files changed, 66 insertions(+), 45 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Program.cs b/BMA.EHR.Discipline.Service/Program.cs index 4ead4ce6..8bd351b4 100644 --- a/BMA.EHR.Discipline.Service/Program.cs +++ b/BMA.EHR.Discipline.Service/Program.cs @@ -154,7 +154,7 @@ var app = builder.Build(); app.UseStaticFiles(); app.MapControllers(); app.UseMiddleware(); - app.UseMiddleware(); + //app.UseMiddleware(); app.UseHangfireDashboard("/hangfire", new DashboardOptions() { diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 7d7cc8f2..3e2eee08 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -394,25 +394,25 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceased.Document = _doc; } - //retirementDeceased.RetirementDeceasedNotis.Add(new RetirementDeceasedNoti - //{ - // CitizenId = retirementDeceased.citizenId == null ? "" : retirementDeceased.citizenId, - // Prefix = retirementDeceased.prefix == null ? "" : retirementDeceased.prefix, - // FirstName = retirementDeceased.firstName == null ? "" : retirementDeceased.firstName, - // LastName = retirementDeceased.lastName == null ? "" : retirementDeceased.lastName, - // IsSendMail = true, - // IsSendInbox = true, - // IsSendNotification = true, - // // OrganizationName = retirementDeceased.OrganizationName, - // PositionName = retirementDeceased.position == null ? "" : retirementDeceased.position, - // profileId = req.ProfileId, - // CreatedFullName = FullName ?? "System Administrator", - // CreatedUserId = UserId ?? "", - // CreatedAt = DateTime.Now, - // LastUpdateFullName = FullName ?? "System Administrator", - // LastUpdateUserId = UserId ?? "", - // LastUpdatedAt = DateTime.Now, - //}); + retirementDeceased.RetirementDeceasedNotis.Add(new RetirementDeceasedNoti + { + CitizenId = retirementDeceased.citizenId == null ? "" : retirementDeceased.citizenId, + Prefix = retirementDeceased.prefix == null ? "" : retirementDeceased.prefix, + FirstName = retirementDeceased.firstName == null ? "" : retirementDeceased.firstName, + LastName = retirementDeceased.lastName == null ? "" : retirementDeceased.lastName, + IsSendMail = true, + IsSendInbox = true, + IsSendNotification = true, + OrganizationName = retirementDeceased.OrganizationName, + PositionName = retirementDeceased.position == null ? "" : retirementDeceased.position, + profileId = req.ProfileId, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }); var pathUrl = $"{_configuration["API"]}/org/command/find-higher"; using (var client = new HttpClient()) @@ -427,35 +427,58 @@ namespace BMA.EHR.Retirement.Service.Controllers } }); var _result = await _res.Content.ReadAsStringAsync(); - if (_res.IsSuccessStatusCode) + var highers = JsonConvert.DeserializeObject(_result); + if (highers != null && highers.result != null) { - var highers = JsonConvert.DeserializeObject(_result); - if (highers != null && highers.status == 200) + foreach (var higher in highers.result) { - foreach (var higher in highers.result) + if (higher.profileId != null) { - retirementDeceased.RetirementDeceasedNotis.Add(new RetirementDeceasedNoti + var payload_attach = new List(); + payload_attach.Add(new PayloadAttachment { - profileId = higher.profileId, - CitizenId = higher.citizenId, - Prefix = higher.prefix, - FirstName = higher.firstName, - LastName = higher.lastName, - OrganizationName = higher.organizationName, - PositionName = higher.positionName, - IsSendMail = true, - IsSendInbox = true, - IsSendNotification = true, - CreatedFullName = FullName ?? "System Administrator", - CreatedUserId = UserId ?? "", - CreatedAt = DateTime.Now, - LastUpdateFullName = FullName ?? "System Administrator", - LastUpdateUserId = UserId ?? "", - LastUpdatedAt = DateTime.Now, + name = "āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ", + url = $"{_configuration["APIV2"]}/report/deceased/copy/36/{retirementDeceased.Id}" }); + + var payload = new CommandPayload() + { + attachments = payload_attach + }; + + var payload_str = JsonConvert.SerializeObject(payload); + await _repositoryNoti.PushNotificationAsync( + Guid.Parse(higher.profileId), + $"āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {higher.prefix}{higher.firstName} {higher.lastName}", + $"āđāļˆāđ‰āļ‡āļ‚āđˆāļēāļ§āļāļēāļĢāļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {retirementDeceased.prefix}{retirementDeceased.firstName} {retirementDeceased.lastName}", + //payload_str, + "", + "", + true, + true + ); } + retirementDeceased.RetirementDeceasedNotis.Add(new RetirementDeceasedNoti + { + profileId = higher.profileId, + CitizenId = higher.citizenId, + Prefix = higher.prefix, + FirstName = higher.firstName, + LastName = higher.lastName, + OrganizationName = higher.organizationName, + PositionName = higher.positionName, + IsSendMail = true, + IsSendInbox = true, + IsSendNotification = true, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }); } - } + } } await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Retirement.Service/Program.cs b/BMA.EHR.Retirement.Service/Program.cs index f8cf5bf8..138f1553 100644 --- a/BMA.EHR.Retirement.Service/Program.cs +++ b/BMA.EHR.Retirement.Service/Program.cs @@ -161,7 +161,7 @@ var app = builder.Build(); app.UseStaticFiles(); app.MapControllers(); app.UseMiddleware(); - app.UseMiddleware(); + //app.UseMiddleware(); app.UseHangfireDashboard("/hangfire", new DashboardOptions() { diff --git a/BMA.EHR.Retirement.Service/Requests/RetirementDeceasedAddNotiHigherRequest.cs b/BMA.EHR.Retirement.Service/Requests/RetirementDeceasedAddNotiHigherRequest.cs index 81562f89..88e167db 100644 --- a/BMA.EHR.Retirement.Service/Requests/RetirementDeceasedAddNotiHigherRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/RetirementDeceasedAddNotiHigherRequest.cs @@ -5,8 +5,6 @@ namespace BMA.EHR.Retirement.Service.Requests { public class RetirementDeceasedAddNotiHigherRequest { - public int status { get; set; } - public string message { get; set; } = string.Empty; public List result { get; set; } = new List(); } public class HigherResponse From 1424b03aacbe765d78c2b02a2faf4bd7d80dd870 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 27 Mar 2025 11:37:41 +0700 Subject: [PATCH 159/879] =?UTF-8?q?=E0=B8=96=E0=B8=B6=E0=B8=87=E0=B9=81?= =?UTF-8?q?=E0=B8=81=E0=B9=88=E0=B8=81=E0=B8=A3=E0=B8=A3=E0=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RetirementDeceasedController.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 3e2eee08..3772e711 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -403,7 +403,7 @@ namespace BMA.EHR.Retirement.Service.Controllers IsSendMail = true, IsSendInbox = true, IsSendNotification = true, - OrganizationName = retirementDeceased.OrganizationName, + OrganizationName = retirementDeceased.root == null ? "" : retirementDeceased.root, PositionName = retirementDeceased.position == null ? "" : retirementDeceased.position, profileId = req.ProfileId, CreatedFullName = FullName ?? "System Administrator", @@ -434,19 +434,19 @@ namespace BMA.EHR.Retirement.Service.Controllers { if (higher.profileId != null) { - var payload_attach = new List(); - payload_attach.Add(new PayloadAttachment - { - name = "āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ", - url = $"{_configuration["APIV2"]}/report/deceased/copy/36/{retirementDeceased.Id}" - }); + //var payload_attach = new List(); + //payload_attach.Add(new PayloadAttachment + //{ + // name = "āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ", + // url = $"{_configuration["APIV2"]}/report/deceased/copy/36/{retirementDeceased.Id}" + //}); - var payload = new CommandPayload() - { - attachments = payload_attach - }; + //var payload = new CommandPayload() + //{ + // attachments = payload_attach + //}; - var payload_str = JsonConvert.SerializeObject(payload); + //var payload_str = JsonConvert.SerializeObject(payload); await _repositoryNoti.PushNotificationAsync( Guid.Parse(higher.profileId), $"āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {higher.prefix}{higher.firstName} {higher.lastName}", From 8460a96db0fecb4d3e9290ebe7833c5d394de8eb Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 27 Mar 2025 12:00:32 +0700 Subject: [PATCH 160/879] change APPOINTED to APPOINT --- .../Commands/CommandRepository.cs | 4 +-- .../PlacementAppointmentController.cs | 6 ++-- .../Controllers/PlacementController.cs | 28 +++++++++---------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs b/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs index 45f375eb..52e1a517 100644 --- a/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs +++ b/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs @@ -248,7 +248,7 @@ namespace BMA.EHR.Application.Repositories.Commands .Where(x => x.PlacementStatus.Trim().ToUpper() == "PREPARE-CONTAIN") .Where(x => x.Draft! == true) .Where(x => x.Placement!.PlacementType!.Name == "āļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™") - .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINTED") + .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINT") .OrderBy(x => x.ExamNumber) .ToListAsync(); @@ -307,7 +307,7 @@ namespace BMA.EHR.Application.Repositories.Commands .Where(x => x.PlacementStatus.Trim().ToUpper() == "PREPARE-CONTAIN") .Where(x => x.Draft! == true) .Where(x => x.Placement!.PlacementType!.Name != "āļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™") - .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINTED") + .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINT") .OrderBy(x => x.ExamNumber) .ToListAsync(); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 1c21490a..f2537334 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -758,7 +758,7 @@ namespace BMA.EHR.Placement.Service.Controllers placementProfiles.ForEach(profile => { profile.Status = "REPORT"; - profile.typeCommand = "APPOINTED"; + profile.typeCommand = "APPOINT"; }); await _context.SaveChangesAsync(); return Success(); @@ -1029,7 +1029,7 @@ namespace BMA.EHR.Placement.Service.Controllers OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = "-", - NewOc =(p.position == null ? "" : $"{p.position}\n") + + NewOc = (p.position == null ? "" : $"{p.position}\n") + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + @@ -1657,7 +1657,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.rootOld != null ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), PositionDate = p.PositionDate == null ? "-" : p.PositionDate.Value.ToThaiShortDate2().ToThaiNumber(), - NewOc = (p.position == null ? "" : $"{p.position}\n") + + NewOc = (p.position == null ? "" : $"{p.position}\n") + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 183a9fb3..39a72123 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1560,12 +1560,12 @@ namespace BMA.EHR.Placement.Service.Controllers // .ThenInclude(x => x.PlacementType) .Where(x => req.refIds.Contains(x.Id.ToString())) // .Where(x => x.Placement!.PlacementType!.Name != "āļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™") - // .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINTED") + // .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINT") .ToListAsync(); placementProfiles.ForEach(profile => { profile.PlacementStatus = "REPORT"; - profile.typeCommand = "APPOINTED"; + profile.typeCommand = "APPOINT"; }); await _context.SaveChangesAsync(); return Success(); @@ -1615,7 +1615,7 @@ namespace BMA.EHR.Placement.Service.Controllers // .ThenInclude(x => x.PlacementType) .Where(x => req.refIds.Select(x => x.refId).Contains(x.Id.ToString())) // .Where(x => x.Placement!.PlacementType!.Name != "āļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™") - // .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINTED") + // .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINT") .ToList() join r in req.refIds on p.Id.ToString() equals r.refId @@ -1629,7 +1629,7 @@ namespace BMA.EHR.Placement.Service.Controllers PositionName = p.positionName == null ? "-" : p.positionName, ExamNumber = p.ExamNumber == null ? "-" : p.ExamNumber.Value.ToString().ToThaiNumber(), PlacementName = $"{p.Placement.Name.ToThaiNumber()} āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ {p.Placement.Round.ToThaiNumber()} {p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", - Oc = (p.positionName == null ? "" : $"{p.positionName}\n") + + Oc = (p.positionName == null ? "" : $"{p.positionName}\n") + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + @@ -1891,12 +1891,12 @@ namespace BMA.EHR.Placement.Service.Controllers // .ThenInclude(x => x.PlacementType) .Where(x => req.refIds.Contains(x.Id.ToString())) // .Where(x => x.Placement!.PlacementType!.Name != "āļŠāļ­āļšāļ„āļąāļ”āđ€āļĨāļ·āļ­āļ") - // .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINTED") + // .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINT") .ToListAsync(); placementProfiles.ForEach(profile => { profile.PlacementStatus = "REPORT"; - profile.typeCommand = "APPOINTED"; + profile.typeCommand = "APPOINT"; }); await _context.SaveChangesAsync(); return Success(); @@ -1946,7 +1946,7 @@ namespace BMA.EHR.Placement.Service.Controllers // .ThenInclude(x => x.PlacementType) .Where(x => req.refIds.Select(x => x.refId).Contains(x.Id.ToString())) // .Where(x => x.Placement!.PlacementType!.Name != "āļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™") - // .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINTED") + // .Where(x => x.typeCommand.Trim().ToUpper() == "APPOINT") .ToList() join r in req.refIds on p.Id.ToString() equals r.refId @@ -3015,11 +3015,11 @@ namespace BMA.EHR.Placement.Service.Controllers x.Status.Trim().ToUpper() == "DONE") .Count(); - var pp_appoint = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; - var pp_slip = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; + var pp_appoint = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; + var pp_slip = placementProfiles.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; var pp_move = placementProfiles.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; - var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; + var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; @@ -3142,11 +3142,11 @@ namespace BMA.EHR.Placement.Service.Controllers x.Status.Trim().ToUpper() == "DONE") .Count(); - var pp_appoint = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; + var pp_appoint = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; var pp_slip = placementProfiles.FirstOrDefault(x => x.TypeCommand == "APPOIN")?.Count ?? 0; var pp_move = placementProfiles.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; - var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; + var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; @@ -3295,7 +3295,7 @@ namespace BMA.EHR.Placement.Service.Controllers (node == 4 ? x.child4DnaId.Contains(item.child4DnaId) : true)) .Count(); - //var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; + //var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; var pa_appoint = pae_count; var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; @@ -3344,7 +3344,7 @@ namespace BMA.EHR.Placement.Service.Controllers (node == 4 ? x.child4DnaId.Contains(item.child4DnaId) : true)) .Count(); - //var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINTED")?.Count ?? 0; + //var pa_appoint = placementAppointments.FirstOrDefault(x => x.TypeCommand == "APPOINT")?.Count ?? 0; var pa_appoint = pae_count; var pa_slip = placementAppointments.FirstOrDefault(x => x.TypeCommand == "SLIP")?.Count ?? 0; var pa_move = placementAppointments.FirstOrDefault(x => x.TypeCommand == "MOVE")?.Count ?? 0; From 0fb3fd1d06fa43cdd9f540fca29a05bf404a20a8 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 27 Mar 2025 12:24:58 +0700 Subject: [PATCH 161/879] =?UTF-8?q?fix=20Convert=20FormData=20=E0=B9=81?= =?UTF-8?q?=E0=B8=A5=E0=B9=89=E0=B8=A7=E0=B9=80=E0=B8=82=E0=B8=B5=E0=B8=A2?= =?UTF-8?q?=E0=B8=99=E0=B8=A5=E0=B8=87=20Logs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Middlewares/DateTimeFixConverter.cs | 25 ++++++++++++ .../Middlewares/RequestLoggingMiddleware.cs | 40 ++++++++++++++++++- 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 BMA.EHR.Domain/Middlewares/DateTimeFixConverter.cs diff --git a/BMA.EHR.Domain/Middlewares/DateTimeFixConverter.cs b/BMA.EHR.Domain/Middlewares/DateTimeFixConverter.cs new file mode 100644 index 00000000..2bd9dc76 --- /dev/null +++ b/BMA.EHR.Domain/Middlewares/DateTimeFixConverter.cs @@ -0,0 +1,25 @@ +ïŧŋusing System.Text.Json; +using System.Text.Json.Serialization; + +namespace BMA.EHR.Domain.Middlewares +{ + public class DateTimeFixConverter : JsonConverter + { + public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType == JsonTokenType.String) + { + if (DateTime.TryParse(reader.GetString(), out var date)) + { + return date; + } + } + throw new JsonException("Invalid date format."); + } + + public override void Write(Utf8JsonWriter writer, DateTime value, JsonSerializerOptions options) + { + writer.WriteStringValue(value.ToString("yyyy-MM-dd")); + } + } +} diff --git a/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs b/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs index 55dcf051..f84253e7 100644 --- a/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs +++ b/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs @@ -97,7 +97,43 @@ namespace BMA.EHR.Domain.Middlewares string requestBody = await ReadRequestBodyAsync(context); if (requestBody != "") - requestBodyJson = JsonSerializer.Serialize(JsonSerializer.Deserialize(requestBody), new JsonSerializerOptions { Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, WriteIndented = true }); + { + if(context.Request.HasFormContentType) + { + var form = await context.Request.ReadFormAsync(); // āļ­āđˆāļēāļ™ form-data + + var formData = new Dictionary(); + foreach (var field in form) + { + formData[field.Key] = field.Value.ToString(); + } + // āļ­āđˆāļēāļ™āđ„āļŸāļĨāđŒāļ—āļĩāđˆāļ–āļđāļāļŠāđˆāļ‡āļĄāļē (āļ–āđ‰āļēāļĄāļĩ) + if (form.Files.Count > 0) + { + var fileDataList = new List(); + + foreach (var file in form.Files) + { + fileDataList.Add(new + { + FileName = file.FileName, + ContentType = file.ContentType, + Size = file.Length + }); + } + + formData["Files"] = fileDataList; + } + + requestBodyJson = JsonSerializer.Serialize(formData, new JsonSerializerOptions { Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, WriteIndented = true, Converters = { new DateTimeFixConverter() } }); + } + else + { + requestBodyJson = JsonSerializer.Serialize(JsonSerializer.Deserialize(requestBody), new JsonSerializerOptions { Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, WriteIndented = true, Converters = { new DateTimeFixConverter() } }); + } + } + + var originalBodyStream = context.Response.Body; @@ -134,7 +170,7 @@ namespace BMA.EHR.Domain.Middlewares memoryStream.Seek(0, SeekOrigin.Begin); var responseBody = new StreamReader(memoryStream).ReadToEnd(); if (responseBody != "") - responseBodyJson = JsonSerializer.Serialize(JsonSerializer.Deserialize(responseBody), new JsonSerializerOptions { Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, WriteIndented = true }); + responseBodyJson = JsonSerializer.Serialize(JsonSerializer.Deserialize(responseBody), new JsonSerializerOptions { Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, WriteIndented = true, Converters = { new DateTimeFixConverter() } }); var json = JsonSerializer.Deserialize(responseBody); if (json.TryGetProperty("message", out var messageElement)) From 9e466a2422dcd29e02288299e34659f155e67650 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 27 Mar 2025 14:38:51 +0700 Subject: [PATCH 162/879] fix minio --- BMA.EHR.Application/Repositories/MinIODisciplineService.cs | 6 ++++-- BMA.EHR.Application/Repositories/MinIOExamService.cs | 6 ++++-- BMA.EHR.Application/Repositories/MinIOLeaveService.cs | 4 +++- BMA.EHR.Application/Repositories/MinIOService.cs | 6 ++++-- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/BMA.EHR.Application/Repositories/MinIODisciplineService.cs b/BMA.EHR.Application/Repositories/MinIODisciplineService.cs index 25a9070d..cced52c4 100644 --- a/BMA.EHR.Application/Repositories/MinIODisciplineService.cs +++ b/BMA.EHR.Application/Repositories/MinIODisciplineService.cs @@ -1,4 +1,4 @@ -using Amazon.S3; +ïŧŋusing Amazon.S3; using Amazon.S3.Model; using BMA.EHR.Domain.Shared; using Microsoft.AspNetCore.Hosting; @@ -37,7 +37,9 @@ namespace BMA.EHR.Application.Repositories var config = new AmazonS3Config { ServiceURL = _configuration["MinIO:Endpoint"], - ForcePathStyle = true + ForcePathStyle = true, + SignatureVersion = "V4", // āļĢāļ­āļ‡āļĢāļąāļš MinIO + AuthenticationRegion = "th-middle-rack-1" // āļšāļēāļ‡ MinIO āđƒāļŠāđ‰ region "us-east-1" āđ‚āļ”āļĒ default }; _s3Client = new AmazonS3Client(_configuration["MinIO:AccessKey"], _configuration["MinIO:SecretKey"], config); diff --git a/BMA.EHR.Application/Repositories/MinIOExamService.cs b/BMA.EHR.Application/Repositories/MinIOExamService.cs index 38ff70d8..b800abb4 100644 --- a/BMA.EHR.Application/Repositories/MinIOExamService.cs +++ b/BMA.EHR.Application/Repositories/MinIOExamService.cs @@ -1,4 +1,4 @@ -using Amazon.S3; +ïŧŋusing Amazon.S3; using Amazon.S3.Model; using BMA.EHR.Domain.Models.Documents; using BMA.EHR.Domain.Shared; @@ -40,7 +40,9 @@ namespace BMA.EHR.Application.Repositories var config = new AmazonS3Config { ServiceURL = _configuration["MinIO:Endpoint"], - ForcePathStyle = true + ForcePathStyle = true, + SignatureVersion = "V4", // āļĢāļ­āļ‡āļĢāļąāļš MinIO + AuthenticationRegion = "th-middle-rack-1" // āļšāļēāļ‡ MinIO āđƒāļŠāđ‰ region "us-east-1" āđ‚āļ”āļĒ default }; _s3Client = new AmazonS3Client(_configuration["MinIO:AccessKey"], _configuration["MinIO:SecretKey"], config); diff --git a/BMA.EHR.Application/Repositories/MinIOLeaveService.cs b/BMA.EHR.Application/Repositories/MinIOLeaveService.cs index f2a30657..71c810a6 100644 --- a/BMA.EHR.Application/Repositories/MinIOLeaveService.cs +++ b/BMA.EHR.Application/Repositories/MinIOLeaveService.cs @@ -43,7 +43,9 @@ namespace BMA.EHR.Application.Repositories var config = new AmazonS3Config { ServiceURL = _configuration["MinIO:Endpoint"], - ForcePathStyle = true + ForcePathStyle = true, + SignatureVersion = "V4", // āļĢāļ­āļ‡āļĢāļąāļš MinIO + AuthenticationRegion = "th-middle-rack-1" // āļšāļēāļ‡ MinIO āđƒāļŠāđ‰ region "us-east-1" āđ‚āļ”āļĒ default }; _s3Client = new AmazonS3Client(_configuration["MinIO:AccessKey"], _configuration["MinIO:SecretKey"], config); diff --git a/BMA.EHR.Application/Repositories/MinIOService.cs b/BMA.EHR.Application/Repositories/MinIOService.cs index fd07807b..ea470b27 100644 --- a/BMA.EHR.Application/Repositories/MinIOService.cs +++ b/BMA.EHR.Application/Repositories/MinIOService.cs @@ -1,4 +1,4 @@ -using Amazon.S3; +ïŧŋusing Amazon.S3; using Amazon.S3.Model; using BMA.EHR.Application.Common.Interfaces; using BMA.EHR.Domain.Models.Documents; @@ -39,7 +39,9 @@ namespace BMA.EHR.Application.Repositories var config = new AmazonS3Config { ServiceURL = _configuration["MinIO:Endpoint"], - ForcePathStyle = true + ForcePathStyle = true, + SignatureVersion = "V4", // āļĢāļ­āļ‡āļĢāļąāļš MinIO + AuthenticationRegion = "th-middle-rack-1" // āļšāļēāļ‡ MinIO āđƒāļŠāđ‰ region "us-east-1" āđ‚āļ”āļĒ default }; _s3Client = new AmazonS3Client(_configuration["MinIO:AccessKey"], _configuration["MinIO:SecretKey"], config); From 94100e304e36ec73a77c7dd0dbf3116c994ad115 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 27 Mar 2025 14:56:09 +0700 Subject: [PATCH 163/879] =?UTF-8?q?fix=20=E0=B8=AA=E0=B9=88=E0=B8=87?= =?UTF-8?q?=E0=B8=AB=E0=B8=99=E0=B8=B1=E0=B8=87=E0=B8=AA=E0=B8=B7=E0=B8=AD?= =?UTF-8?q?=E0=B9=80=E0=B8=A7=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B9=84=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B8=95=E0=B9=89=E0=B8=AD=E0=B8=87=E0=B8=AA=E0=B9=88?= =?UTF-8?q?=E0=B8=87=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=96=E0=B8=B6=E0=B8=87?= =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=88=E0=B8=81=E0=B8=A3=E0=B8=A3=E0=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Discipline.Service/Program.cs | 2 +- .../RetirementDeceasedController.cs | 38 +++++++++---------- BMA.EHR.Retirement.Service/Program.cs | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Program.cs b/BMA.EHR.Discipline.Service/Program.cs index 8bd351b4..4ead4ce6 100644 --- a/BMA.EHR.Discipline.Service/Program.cs +++ b/BMA.EHR.Discipline.Service/Program.cs @@ -154,7 +154,7 @@ var app = builder.Build(); app.UseStaticFiles(); app.MapControllers(); app.UseMiddleware(); - //app.UseMiddleware(); + app.UseMiddleware(); app.UseHangfireDashboard("/hangfire", new DashboardOptions() { diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 3772e711..27ce95c8 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -394,25 +394,25 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceased.Document = _doc; } - retirementDeceased.RetirementDeceasedNotis.Add(new RetirementDeceasedNoti - { - CitizenId = retirementDeceased.citizenId == null ? "" : retirementDeceased.citizenId, - Prefix = retirementDeceased.prefix == null ? "" : retirementDeceased.prefix, - FirstName = retirementDeceased.firstName == null ? "" : retirementDeceased.firstName, - LastName = retirementDeceased.lastName == null ? "" : retirementDeceased.lastName, - IsSendMail = true, - IsSendInbox = true, - IsSendNotification = true, - OrganizationName = retirementDeceased.root == null ? "" : retirementDeceased.root, - PositionName = retirementDeceased.position == null ? "" : retirementDeceased.position, - profileId = req.ProfileId, - CreatedFullName = FullName ?? "System Administrator", - CreatedUserId = UserId ?? "", - CreatedAt = DateTime.Now, - LastUpdateFullName = FullName ?? "System Administrator", - LastUpdateUserId = UserId ?? "", - LastUpdatedAt = DateTime.Now, - }); + //retirementDeceased.RetirementDeceasedNotis.Add(new RetirementDeceasedNoti + //{ + // CitizenId = retirementDeceased.citizenId == null ? "" : retirementDeceased.citizenId, + // Prefix = retirementDeceased.prefix == null ? "" : retirementDeceased.prefix, + // FirstName = retirementDeceased.firstName == null ? "" : retirementDeceased.firstName, + // LastName = retirementDeceased.lastName == null ? "" : retirementDeceased.lastName, + // IsSendMail = true, + // IsSendInbox = true, + // IsSendNotification = true, + // OrganizationName = retirementDeceased.root == null ? "" : retirementDeceased.root, + // PositionName = retirementDeceased.position == null ? "" : retirementDeceased.position, + // profileId = req.ProfileId, + // CreatedFullName = FullName ?? "System Administrator", + // CreatedUserId = UserId ?? "", + // CreatedAt = DateTime.Now, + // LastUpdateFullName = FullName ?? "System Administrator", + // LastUpdateUserId = UserId ?? "", + // LastUpdatedAt = DateTime.Now, + //}); var pathUrl = $"{_configuration["API"]}/org/command/find-higher"; using (var client = new HttpClient()) diff --git a/BMA.EHR.Retirement.Service/Program.cs b/BMA.EHR.Retirement.Service/Program.cs index 138f1553..f8cf5bf8 100644 --- a/BMA.EHR.Retirement.Service/Program.cs +++ b/BMA.EHR.Retirement.Service/Program.cs @@ -161,7 +161,7 @@ var app = builder.Build(); app.UseStaticFiles(); app.MapControllers(); app.UseMiddleware(); - //app.UseMiddleware(); + app.UseMiddleware(); app.UseHangfireDashboard("/hangfire", new DashboardOptions() { From 4e3faab969b760bc5868e42241cee5334ec7961a Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 27 Mar 2025 15:21:32 +0700 Subject: [PATCH 164/879] fix #1309 --- .../Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs | 2 +- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 05dceca4..bdd93692 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -217,7 +217,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests var rawData = _dbContext.Set().AsNoTracking() .Include(x => x.Type) .Where(x => x.LeaveStatus != "DRAFT") - .OrderByDescending(x => x.CreatedAt.Date) + .OrderByDescending(x => x.CreatedAt) .AsQueryable(); if (year != 0) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index c919d7cd..df15b58e 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1379,7 +1379,7 @@ namespace BMA.EHR.Leave.Service.Controllers LeaveTypeName = item.Type.Name, FullName = $"{item.Prefix}{item.FirstName} {item.LastName}", ProfileType = item.ProfileType ?? "-", - DateSendLeave = item.CreatedAt.Date, + DateSendLeave = item.CreatedAt, Status = item.LeaveStatus, CitizenId = item.CitizenId ?? "", LeaveStartDate = item.LeaveStartDate, From 066f49cad761b9413d1ace6217547e672640fd8f Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 27 Mar 2025 15:58:22 +0700 Subject: [PATCH 165/879] report retirement --- .../Reports/RetireReportRepository.cs | 42 +++++++------- .../Controllers/RetirementController.cs | 58 ++++++++++++++++++- 2 files changed, 76 insertions(+), 24 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs index bbe6aea4..3dbe68f1 100644 --- a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs @@ -147,30 +147,28 @@ namespace BMA.EHR.Application.Repositories.Reports profiles = profiles.OrderBy(x => x.order).ToList(); } var mapProfiles = new List(); - string previousRoot = null; - string previousPosTypeName = null; - string previousPosLevelName = null; + // string previousRoot = null; + // string previousPosTypeName = null; + // string previousPosLevelName = null; if (profiles.Count > 0) { mapProfiles = profiles - .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) - .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) + // .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + // .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + // .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) .Select((profile, index) => { - bool isDuplicateRoot = profile.root == previousRoot; - previousRoot = profile.root; - bool isDuplicatePosType = profile.posTypeName == previousPosTypeName; - previousPosTypeName = profile.posTypeName; - bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; - previousPosLevelName = profile.posLevelName; + // bool isDuplicateRoot = profile.root == previousRoot; + // previousRoot = profile.root; + // bool isDuplicatePosType = profile.posTypeName == previousPosTypeName; + // previousPosTypeName = profile.posTypeName; + // bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; + // previousPosLevelName = profile.posLevelName; return new ProfileRetireJsonRequest { - order = (index + 1).ToString().ToThaiNumber(), + order = $"{ (index + 1).ToString().ToThaiNumber() }. āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ { (profile.order).ToString().ToThaiNumber() }", fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", - root = (isDuplicateRoot ? "" : profile.root + "\n") + - (isDuplicatePosType ? "" : profile.posTypeName + "\n") + - (isDuplicatePosLevel ? "" : profile.posLevelName), + root = "", child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + (profile.child4 == null ? "" : profile.child4 + "\n") + (profile.child3 == null ? "" : profile.child3 + "\n") + @@ -262,11 +260,13 @@ namespace BMA.EHR.Application.Repositories.Reports string previousPosLevelName = null; if (profile_retire.Count > 0) { - mapProfiles = profile_retire - .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) - .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) - .Select((profile, index) => + if (retire.TypeReport == null) + { + profile_retire = profile_retire.OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")).ToList(); + } + mapProfiles = profile_retire.Select((profile, index) => { bool isDuplicateRoot = profile.root == previousRoot; previousRoot = profile.root; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index 4fecb0ba..b3ef4415 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -408,8 +408,32 @@ namespace BMA.EHR.Retirement.Service.Controllers } } + // var retires = new List(); + var _apiUrl = $"{_configuration["API"]}/org/root/search/sort"; + dynamic rootOrder = new List(); + dynamic posTypeNameOrder = new List(); + dynamic posLevelNameOrder = new List(); + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, _apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org != null && org.result != null) + { + rootOrder = org.result.root; + posTypeNameOrder = org.result.posTypeNameOrder; + posLevelNameOrder = org.result.posLevelNameOrder; + } + } var order = 1; - foreach (var profile in profiles) + foreach (var profile in profiles.OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? ""))) { var data = new RetirementProfile { @@ -510,11 +534,39 @@ namespace BMA.EHR.Retirement.Service.Controllers return Error(GlobalMessages.RetirementNotCreated); if (req.Option == null) req.Option = "EDIT"; + var apiUrl = $"{_configuration["API"]}/org/root/search/sort"; + dynamic rootOrder = new List(); + dynamic posTypeNameOrder = new List(); + dynamic posLevelNameOrder = new List(); + if(retire.TypeReport == null) + { + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = + new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org != null && org.result != null) + { + rootOrder = org.result.root; + posTypeNameOrder = org.result.posTypeNameOrder; + posLevelNameOrder = org.result.posLevelNameOrder; + } + } + } var profile_old = await _context.RetirementProfiles .Where(x => x.RetirementPeriod == retire) - .Select(x => new + .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) + .Select((x,index) => new { - order = x.Order, + order = retire.TypeReport == null ? index + 1 : x.Order, id = x.Id, reason = x.Reason, remove = x.Remove, From 8d1b37aef7476835d73fa4424bb8e5e055b940d2 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 27 Mar 2025 16:31:40 +0700 Subject: [PATCH 166/879] sort retirement --- .../Controllers/RetirementController.cs | 85 ++++++++++--------- 1 file changed, 43 insertions(+), 42 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index b3ef4415..7e79365e 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -561,50 +561,51 @@ namespace BMA.EHR.Retirement.Service.Controllers } var profile_old = await _context.RetirementProfiles .Where(x => x.RetirementPeriod == retire) - .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) - .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) - .Select((x,index) => new - { - order = retire.TypeReport == null ? index + 1 : x.Order, - id = x.Id, - reason = x.Reason, - remove = x.Remove, - profileId = x.profileId, - prefix = x.prefix, - firstName = x.firstName, - lastName = x.lastName, - citizenId = x.citizenId, - root = x.root, - rootId = x.rootId, - rootShortName = x.rootShortName, - child1 = x.child1, - child1Id = x.child1Id, - child1ShortName = x.child1ShortName, - child2 = x.child2, - child2Id = x.child2Id, - child2ShortName = x.child2ShortName, - child3 = x.child3, - child3Id = x.child3Id, - child3ShortName = x.child3ShortName, - child4 = x.child4, - child4Id = x.child4Id, - child4ShortName = x.child4ShortName, - posMasterNo = x.posMasterNo, - position = x.position, - posTypeId = x.posTypeId, - posTypeName = x.posTypeName, - posTypeRank = x.posTypeRank, - posLevelId = x.posLevelId, - posLevelName = x.posLevelName, - posLevelRank = x.posLevelRank, - posExecutiveId = x.posExecutiveId, - posExecutiveName = x.posExecutiveName, - posNo = x.posNo, - }) .ToListAsync(); + var _profile_old = profile_old + .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) + .Select((x,index) => new + { + order = retire.TypeReport == null ? index + 1 : x.Order, + id = x.Id, + reason = x.Reason, + remove = x.Remove, + profileId = x.profileId, + prefix = x.prefix, + firstName = x.firstName, + lastName = x.lastName, + citizenId = x.citizenId, + root = x.root, + rootId = x.rootId, + rootShortName = x.rootShortName, + child1 = x.child1, + child1Id = x.child1Id, + child1ShortName = x.child1ShortName, + child2 = x.child2, + child2Id = x.child2Id, + child2ShortName = x.child2ShortName, + child3 = x.child3, + child3Id = x.child3Id, + child3ShortName = x.child3ShortName, + child4 = x.child4, + child4Id = x.child4Id, + child4ShortName = x.child4ShortName, + posMasterNo = x.posMasterNo, + position = x.position, + posTypeId = x.posTypeId, + posTypeName = x.posTypeName, + posTypeRank = x.posTypeRank, + posLevelId = x.posLevelId, + posLevelName = x.posLevelName, + posLevelRank = x.posLevelRank, + posExecutiveId = x.posExecutiveId, + posExecutiveName = x.posExecutiveName, + posNo = x.posNo, + }); var file_name = $"retire_tmp_{DateTime.Now.ToString("yyyyMMddTHHmmss")}"; - var profile = Newtonsoft.Json.JsonConvert.SerializeObject(profile_old); + var profile = Newtonsoft.Json.JsonConvert.SerializeObject(_profile_old); await _documentService.GenerateJsonFile(profile, "/retire", file_name); var history = new RetirementPeriodHistory { From ef9a42a97a27d832fc7e1faac87c102438353982 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 27 Mar 2025 18:44:06 +0700 Subject: [PATCH 167/879] sort report retire --- .../Reports/RetireReportRepository.cs | 72 +++++++++++++++---- 1 file changed, 59 insertions(+), 13 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs index 3dbe68f1..d5f86dda 100644 --- a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs @@ -77,8 +77,13 @@ namespace BMA.EHR.Application.Repositories.Reports // var retires = new List(); var apiUrl = $"{_configuration["API"]}/org/root/search/sort"; dynamic rootOrder = new List(); + dynamic child1Order = new List(); + dynamic child2Order = new List(); + dynamic child3Order = new List(); + dynamic child4Order = new List(); dynamic posTypeNameOrder = new List(); dynamic posLevelNameOrder = new List(); + dynamic hospital = new List(); using (var client = new HttpClient()) { client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); @@ -92,8 +97,13 @@ namespace BMA.EHR.Application.Repositories.Reports if (org != null && org.result != null) { rootOrder = org.result.root; + child1Order = org.result.child1; + child2Order = org.result.child2; + child3Order = org.result.child3; + child4Order = org.result.child4; posTypeNameOrder = org.result.posTypeNameOrder; posLevelNameOrder = org.result.posLevelNameOrder; + hospital = org.result.hospital; } } if (retire == null) @@ -164,16 +174,23 @@ namespace BMA.EHR.Application.Repositories.Reports // previousPosTypeName = profile.posTypeName; // bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; // previousPosLevelName = profile.posLevelName; + var _child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + + (profile.child4 == null ? "" : profile.child4 + "\n") + + (profile.child3 == null ? "" : profile.child3 + "\n") + + (profile.child2 == null ? "" : profile.child2 + "\n") + + (profile.child1 == null ? "" : profile.child1 + "\n") + + (profile.reason == null ? "" : profile.reason); + int lastNewLinechild = _child.LastIndexOf('\n'); + if (lastNewLinechild != -1) + { + _child = _child.Remove(lastNewLinechild, 1); + } return new ProfileRetireJsonRequest { order = $"{ (index + 1).ToString().ToThaiNumber() }. āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ { (profile.order).ToString().ToThaiNumber() }", fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", root = "", - child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + - (profile.child4 == null ? "" : profile.child4 + "\n") + - (profile.child3 == null ? "" : profile.child3 + "\n") + - (profile.child2 == null ? "" : profile.child2 + "\n") + - (profile.child1 == null ? "" : profile.child1), + child = _child, position = profile.position != "" && profile.position != null ? profile.position : "-", posNo = profile.posNo != "" && profile.posNo != null ? profile.posNo?.ToThaiNumber() : "-", reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", @@ -256,6 +273,7 @@ namespace BMA.EHR.Application.Repositories.Reports // } var mapProfiles = new List(); string previousRoot = null; + string previousChild1 = null; string previousPosTypeName = null; string previousPosLevelName = null; if (profile_retire.Count > 0) @@ -263,6 +281,10 @@ namespace BMA.EHR.Application.Repositories.Reports if (retire.TypeReport == null) { profile_retire = profile_retire.OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) + .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) + .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) + .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")).ToList(); } @@ -270,22 +292,46 @@ namespace BMA.EHR.Application.Repositories.Reports { bool isDuplicateRoot = profile.root == previousRoot; previousRoot = profile.root; + if (isDuplicateRoot == false) + { + previousChild1 = null; + previousPosTypeName = null; + previousPosLevelName = null; + } + bool isDuplicateHospital = profile.child1 == previousChild1; + previousChild1 = profile.child1; bool isDuplicatePosType = profile.posTypeName == previousPosTypeName; previousPosTypeName = profile.posTypeName; bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; previousPosLevelName = profile.posLevelName; + var _root = (isDuplicateRoot ? "" : profile.root + "\n") + + (isDuplicateHospital || !hospital.ToObject>().Contains(profile.child1) + ? "" + : profile.child1 + "\n") + + (isDuplicatePosType ? "" : $"āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—{profile.posTypeName}" + "\n") + + (isDuplicatePosLevel ? "" : $"āļĢāļ°āļ”āļąāļš{profile.posLevelName}"); + int lastNewLineroot = _root.LastIndexOf('\n'); + if (lastNewLineroot != -1) + { + _root = _root.Remove(lastNewLineroot, 1); + } + var _child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + + (profile.child4 == null ? "" : profile.child4 + "\n") + + (profile.child3 == null ? "" : profile.child3 + "\n") + + (profile.child2 == null ? "" : profile.child2 + "\n") + + (profile.child1 == null || hospital.ToObject>().Contains(profile.child1) ? "" : profile.child1 + "\n") + + (profile.reason == null ? "" : profile.reason); + int lastNewLinechild = _child.LastIndexOf('\n'); + if (lastNewLinechild != -1) + { + _child = _child.Remove(lastNewLinechild, 1); + } return new ProfileRetireJsonRequest { order = (index + 1).ToString().ToThaiNumber(), fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", - root = (isDuplicateRoot ? "" : profile.root + "\n") + - (isDuplicatePosType ? "" : profile.posTypeName + "\n") + - (isDuplicatePosLevel ? "" : profile.posLevelName), - child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + - (profile.child4 == null ? "" : profile.child4 + "\n") + - (profile.child3 == null ? "" : profile.child3 + "\n") + - (profile.child2 == null ? "" : profile.child2 + "\n") + - (profile.child1 == null ? "" : profile.child1), + root = _root, + child = _child, position = profile.position != "" && profile.position != null ? profile.position : "-", posNo = profile.posNo != "" && profile.posNo != null ? profile.posNo?.ToThaiNumber() : "-", reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", From 4cda0b52c8448bb518e552657b0b0c26f74e03a5 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 28 Mar 2025 11:13:23 +0700 Subject: [PATCH 168/879] =?UTF-8?q?=E0=B8=AA=E0=B8=A5=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87?= =?UTF-8?q?=E0=B8=8A=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=AB=E0=B8=99=E0=B9=88?= =?UTF-8?q?=E0=B8=A7=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index df15b58e..f461a996 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1855,7 +1855,7 @@ namespace BMA.EHR.Leave.Service.Controllers // fix issue : āļĢāļ°āļšāļšāļāļēāļĢāļĨāļē>>āļŠāļąāļ‡āļāļąāļ” āļāđˆāļēāļĒ (āđ€āļ­āļē / āļ­āļ­āļ āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ€āļ›āđ‡āļ™āļ§āđˆāļēāļ‡) #1131 - var orgName = rawData.Root ?? ""; + var orgName = ""; if (rawData.Child1 != null && rawData.Child1 != "") orgName += $" {rawData.Child1}"; if (rawData.Child2 != null && rawData.Child2 != "") @@ -1864,6 +1864,8 @@ namespace BMA.EHR.Leave.Service.Controllers orgName += $" {rawData.Child3}"; if (rawData.Child4 != null && rawData.Child4 != "") orgName += $" {rawData.Child4}"; + if (rawData.Root != null && rawData.Root != "") + orgName += $" {rawData.Root}"; var result = new GetLeaveRequestForAdminByIdDto { From 8d7ca40e00f15884dda1a37f63b01dff5de93ebe Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 28 Mar 2025 11:32:53 +0700 Subject: [PATCH 169/879] sort report retire --- .../Reports/RetireReportRepository.cs | 57 +++++++------------ 1 file changed, 21 insertions(+), 36 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs index d5f86dda..49b4dceb 100644 --- a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs @@ -174,23 +174,17 @@ namespace BMA.EHR.Application.Repositories.Reports // previousPosTypeName = profile.posTypeName; // bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; // previousPosLevelName = profile.posLevelName; - var _child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + - (profile.child4 == null ? "" : profile.child4 + "\n") + - (profile.child3 == null ? "" : profile.child3 + "\n") + - (profile.child2 == null ? "" : profile.child2 + "\n") + - (profile.child1 == null ? "" : profile.child1 + "\n") + - (profile.reason == null ? "" : profile.reason); - int lastNewLinechild = _child.LastIndexOf('\n'); - if (lastNewLinechild != -1) - { - _child = _child.Remove(lastNewLinechild, 1); - } return new ProfileRetireJsonRequest { order = $"{ (index + 1).ToString().ToThaiNumber() }. āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ { (profile.order).ToString().ToThaiNumber() }", fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", root = "", - child = _child, + child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + + (profile.child4 == null ? "" : profile.child4 + "\n") + + (profile.child3 == null ? "" : profile.child3 + "\n") + + (profile.child2 == null ? "" : profile.child2 + "\n") + + (profile.child1 == null ? "" : profile.child1 + "\n") + + (profile.reason == null ? "" : profile.reason), position = profile.position != "" && profile.position != null ? profile.position : "-", posNo = profile.posNo != "" && profile.posNo != null ? profile.posNo?.ToThaiNumber() : "-", reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", @@ -300,38 +294,29 @@ namespace BMA.EHR.Application.Repositories.Reports } bool isDuplicateHospital = profile.child1 == previousChild1; previousChild1 = profile.child1; + if (isDuplicateHospital == false) + { + previousPosTypeName = null; + previousPosLevelName = null; + } bool isDuplicatePosType = profile.posTypeName == previousPosTypeName; previousPosTypeName = profile.posTypeName; bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; previousPosLevelName = profile.posLevelName; - var _root = (isDuplicateRoot ? "" : profile.root + "\n") + - (isDuplicateHospital || !hospital.ToObject>().Contains(profile.child1) - ? "" - : profile.child1 + "\n") + - (isDuplicatePosType ? "" : $"āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—{profile.posTypeName}" + "\n") + - (isDuplicatePosLevel ? "" : $"āļĢāļ°āļ”āļąāļš{profile.posLevelName}"); - int lastNewLineroot = _root.LastIndexOf('\n'); - if (lastNewLineroot != -1) - { - _root = _root.Remove(lastNewLineroot, 1); - } - var _child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + - (profile.child4 == null ? "" : profile.child4 + "\n") + - (profile.child3 == null ? "" : profile.child3 + "\n") + - (profile.child2 == null ? "" : profile.child2 + "\n") + - (profile.child1 == null || hospital.ToObject>().Contains(profile.child1) ? "" : profile.child1 + "\n") + - (profile.reason == null ? "" : profile.reason); - int lastNewLinechild = _child.LastIndexOf('\n'); - if (lastNewLinechild != -1) - { - _child = _child.Remove(lastNewLinechild, 1); - } return new ProfileRetireJsonRequest { order = (index + 1).ToString().ToThaiNumber(), fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", - root = _root, - child = _child, + root = (isDuplicateRoot ? "" : profile.root + "\n") + + (isDuplicateHospital || !hospital.ToObject>().Contains(profile.child1) ? "" : profile.child1 + "\n") + + (isDuplicatePosType ? "" : $"āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—{profile.posTypeName}" + "\n") + + (isDuplicatePosLevel ? "" : $"āļĢāļ°āļ”āļąāļš{profile.posLevelName}"), + child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + + (profile.child4 == null ? "" : profile.child4 + "\n") + + (profile.child3 == null ? "" : profile.child3 + "\n") + + (profile.child2 == null ? "" : profile.child2 + "\n") + + (profile.child1 == null || hospital.ToObject>().Contains(profile.child1) ? "" : profile.child1 + "\n") + + (profile.reason == null ? "" : profile.reason), position = profile.position != "" && profile.position != null ? profile.position : "-", posNo = profile.posNo != "" && profile.posNo != null ? profile.posNo?.ToThaiNumber() : "-", reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", From c9ed721cc06fa704c0695e43ac02fff549ed3dc9 Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 28 Mar 2025 14:58:04 +0700 Subject: [PATCH 170/879] sort retirement --- .../Controllers/RetirementController.cs | 175 +++++++++++------- 1 file changed, 107 insertions(+), 68 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index 7e79365e..feb87603 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -411,6 +411,10 @@ namespace BMA.EHR.Retirement.Service.Controllers // var retires = new List(); var _apiUrl = $"{_configuration["API"]}/org/root/search/sort"; dynamic rootOrder = new List(); + dynamic child1Order = new List(); + dynamic child2Order = new List(); + dynamic child3Order = new List(); + dynamic child4Order = new List(); dynamic posTypeNameOrder = new List(); dynamic posLevelNameOrder = new List(); using (var client = new HttpClient()) @@ -426,12 +430,20 @@ namespace BMA.EHR.Retirement.Service.Controllers if (org != null && org.result != null) { rootOrder = org.result.root; + child1Order = org.result.child1; + child2Order = org.result.child2; + child3Order = org.result.child3; + child4Order = org.result.child4; posTypeNameOrder = org.result.posTypeNameOrder; posLevelNameOrder = org.result.posLevelNameOrder; } } var order = 1; foreach (var profile in profiles.OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) + .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) + .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) + .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? ""))) { @@ -534,78 +546,50 @@ namespace BMA.EHR.Retirement.Service.Controllers return Error(GlobalMessages.RetirementNotCreated); if (req.Option == null) req.Option = "EDIT"; - var apiUrl = $"{_configuration["API"]}/org/root/search/sort"; - dynamic rootOrder = new List(); - dynamic posTypeNameOrder = new List(); - dynamic posLevelNameOrder = new List(); - if(retire.TypeReport == null) - { - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = - new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); - var _res = await client.SendAsync(_req); - var _result = await _res.Content.ReadAsStringAsync(); - - var org = JsonConvert.DeserializeObject(_result); - - if (org != null && org.result != null) - { - rootOrder = org.result.root; - posTypeNameOrder = org.result.posTypeNameOrder; - posLevelNameOrder = org.result.posLevelNameOrder; - } - } - } + var profile_old = await _context.RetirementProfiles .Where(x => x.RetirementPeriod == retire) + .Select((x,index) => new + { + order = x.Order, + id = x.Id, + reason = x.Reason, + remove = x.Remove, + profileId = x.profileId, + prefix = x.prefix, + firstName = x.firstName, + lastName = x.lastName, + citizenId = x.citizenId, + root = x.root, + rootId = x.rootId, + rootShortName = x.rootShortName, + child1 = x.child1, + child1Id = x.child1Id, + child1ShortName = x.child1ShortName, + child2 = x.child2, + child2Id = x.child2Id, + child2ShortName = x.child2ShortName, + child3 = x.child3, + child3Id = x.child3Id, + child3ShortName = x.child3ShortName, + child4 = x.child4, + child4Id = x.child4Id, + child4ShortName = x.child4ShortName, + posMasterNo = x.posMasterNo, + position = x.position, + posTypeId = x.posTypeId, + posTypeName = x.posTypeName, + posTypeRank = x.posTypeRank, + posLevelId = x.posLevelId, + posLevelName = x.posLevelName, + posLevelRank = x.posLevelRank, + posExecutiveId = x.posExecutiveId, + posExecutiveName = x.posExecutiveName, + posNo = x.posNo, + }) .ToListAsync(); - var _profile_old = profile_old - .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) - .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) - .Select((x,index) => new - { - order = retire.TypeReport == null ? index + 1 : x.Order, - id = x.Id, - reason = x.Reason, - remove = x.Remove, - profileId = x.profileId, - prefix = x.prefix, - firstName = x.firstName, - lastName = x.lastName, - citizenId = x.citizenId, - root = x.root, - rootId = x.rootId, - rootShortName = x.rootShortName, - child1 = x.child1, - child1Id = x.child1Id, - child1ShortName = x.child1ShortName, - child2 = x.child2, - child2Id = x.child2Id, - child2ShortName = x.child2ShortName, - child3 = x.child3, - child3Id = x.child3Id, - child3ShortName = x.child3ShortName, - child4 = x.child4, - child4Id = x.child4Id, - child4ShortName = x.child4ShortName, - posMasterNo = x.posMasterNo, - position = x.position, - posTypeId = x.posTypeId, - posTypeName = x.posTypeName, - posTypeRank = x.posTypeRank, - posLevelId = x.posLevelId, - posLevelName = x.posLevelName, - posLevelRank = x.posLevelRank, - posExecutiveId = x.posExecutiveId, - posExecutiveName = x.posExecutiveName, - posNo = x.posNo, - }); var file_name = $"retire_tmp_{DateTime.Now.ToString("yyyyMMddTHHmmss")}"; - var profile = Newtonsoft.Json.JsonConvert.SerializeObject(_profile_old); + var profile = Newtonsoft.Json.JsonConvert.SerializeObject(profile_old); await _documentService.GenerateJsonFile(profile, "/retire", file_name); var history = new RetirementPeriodHistory { @@ -1415,6 +1399,8 @@ namespace BMA.EHR.Retirement.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var retire = await _context.RetirementPeriods + .Include(x=>x.RetirementProfiles) + .Include(x=>x.RetirementRawProfiles) .FirstOrDefaultAsync(x => x.Id == retireId); if (retire == null) return Error(GlobalMessages.RetirementNotFound, 404); @@ -1432,6 +1418,59 @@ namespace BMA.EHR.Retirement.Service.Controllers retire.LastUpdateUserId = UserId ?? ""; retire.LastUpdatedAt = DateTime.Now; } + var apiUrl = $"{_configuration["API"]}/org/root/search/sort"; + dynamic rootOrder = new List(); + dynamic child1Order = new List(); + dynamic child2Order = new List(); + dynamic child3Order = new List(); + dynamic child4Order = new List(); + dynamic posTypeNameOrder = new List(); + dynamic posLevelNameOrder = new List(); + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org != null && org.result != null) + { + rootOrder = org.result.root; + child1Order = org.result.child1; + child2Order = org.result.child2; + child3Order = org.result.child3; + child4Order = org.result.child4; + posTypeNameOrder = org.result.posTypeNameOrder; + posLevelNameOrder = org.result.posLevelNameOrder; + } + } + var order = 1; + foreach (var profile in retire.RetirementProfiles.OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) + .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) + .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) + .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) + .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? ""))) + { + profile.Order = order; + order++; + } + order = 1; + foreach (var profile in retire.RetirementRawProfiles.OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) + .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) + .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) + .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) + .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? ""))) + { + profile.Order = order; + order++; + } await _context.SaveChangesAsync(); return Success(); From c16f364b8ab389545031aa8e7556edf03893bd07 Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 28 Mar 2025 16:31:33 +0700 Subject: [PATCH 171/879] =?UTF-8?q?=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B8=AD?= =?UTF-8?q?=E0=B8=81=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88?= =?UTF-8?q?=E0=B8=87=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=88=E0=B8=B8=E0=B8=81?= =?UTF-8?q?=E0=B8=A5=E0=B8=B1=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Models/Retirement/RetirementOther.cs | 68 + ...e_retirementOther_add_position.Designer.cs | 20072 ++++++++++++++++ ...date_table_retirementOther_add_position.cs | 424 + .../ApplicationDBContextModelSnapshot.cs | 136 + .../Controllers/RetirementOtherController.cs | 235 +- .../PersonSelectPositionOtherRequest.cs | 30 +- 6 files changed, 20885 insertions(+), 80 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250328091918_update_table_retirementOther_add_position.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250328091918_update_table_retirementOther_add_position.cs diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs b/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs index ac49ddc9..cf74ebe0 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs @@ -14,6 +14,8 @@ namespace BMA.EHR.Domain.Models.Retirement public string Status { get; set; } = "WAITTING"; [Comment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ")] public DateTime? RecruitDate { get; set; } + [Comment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§")] + public DateTime? ReportingDate { get; set; } [Comment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™")] public double? Amount { get; set; } @@ -113,6 +115,72 @@ namespace BMA.EHR.Domain.Models.Retirement public string? posLevelNameOld { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? root { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? rootId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna")] + public string? rootDnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? rootShortName { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] + public string? child1 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] + public string? child1Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna")] + public string? child1DnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] + public string? child1ShortName { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] + public string? child2 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] + public string? child2Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna")] + public string? child2DnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] + public string? child2ShortName { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] + public string? child3 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] + public string? child3Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna")] + public string? child3DnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] + public string? child3ShortName { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] + public string? child4 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] + public string? child4Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna")] + public string? child4DnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] + public string? child4ShortName { get; set; } + [Comment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡")] + public int? node { get; set; } + [Comment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡")] + public Guid? nodeId { get; set; } + [Comment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡")] + public string? posmasterId { get; set; } + [Comment("id revision")] + public string? orgRevisionId { get; set; } + [Comment("id āļ•āļģāđāļŦāļ™āđˆāļ‡")] + public string? positionId { get; set; } + [Comment("āļŠāļēāļĒāļ‡āļēāļ™")] + public string? positionField { get; set; } + [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡")] + public int? posMasterNo { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™")] + public string? position { get; set; } + [Comment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? PositionExecutive { get; set; } + [Comment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡")] + public string? posTypeId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡")] + public string? posTypeName { get; set; } + [Comment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡")] + public string? posLevelId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡")] + public string? posLevelName { get; set; } public virtual List RetirementOtherDocs { get; set; } = new List(); } } diff --git a/BMA.EHR.Infrastructure/Migrations/20250328091918_update_table_retirementOther_add_position.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250328091918_update_table_retirementOther_add_position.Designer.cs new file mode 100644 index 00000000..085de8c4 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250328091918_update_table_retirementOther_add_position.Designer.cs @@ -0,0 +1,20072 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250328091918_update_table_retirementOther_add_position")] + partial class update_table_retirementOther_add_position + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250328091918_update_table_retirementOther_add_position.cs b/BMA.EHR.Infrastructure/Migrations/20250328091918_update_table_retirementOther_add_position.cs new file mode 100644 index 00000000..5e3a8301 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250328091918_update_table_retirementOther_add_position.cs @@ -0,0 +1,424 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class update_table_retirementOther_add_position : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "PositionExecutive", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "ReportingDate", + table: "RetirementOthers", + type: "datetime(6)", + nullable: true, + comment: "āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + migrationBuilder.AddColumn( + name: "child1", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1Id", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1ShortName", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2Id", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2ShortName", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3Id", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3ShortName", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4Id", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4ShortName", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "node", + table: "RetirementOthers", + type: "int", + nullable: true, + comment: "āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + migrationBuilder.AddColumn( + name: "nodeId", + table: "RetirementOthers", + type: "char(36)", + nullable: true, + comment: "id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡", + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "orgRevisionId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id revision") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "posLevelId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "posLevelName", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "posMasterNo", + table: "RetirementOthers", + type: "int", + nullable: true, + comment: "āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + migrationBuilder.AddColumn( + name: "posTypeId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "posTypeName", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "position", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionField", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļēāļĒāļ‡āļēāļ™") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļ•āļģāđāļŦāļ™āđˆāļ‡") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "posmasterId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "root", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootId", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootShortName", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "PositionExecutive", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "ReportingDate", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child1", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child1DnaId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child1Id", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child1ShortName", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child2", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child2DnaId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child2Id", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child2ShortName", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child3", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child3DnaId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child3Id", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child3ShortName", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child4", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child4DnaId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child4Id", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "child4ShortName", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "node", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "nodeId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "orgRevisionId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "posLevelId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "posLevelName", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "posMasterNo", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "posTypeId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "posTypeName", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "position", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "positionField", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "positionId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "posmasterId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "root", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "rootDnaId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "rootId", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "rootShortName", + table: "RetirementOthers"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 7b6fc0d6..7300b6a2 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -15148,6 +15148,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("datetime(6)") .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + b.Property("PositionExecutiveOld") .HasColumnType("longtext") .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); @@ -15176,15 +15180,31 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("datetime(6)") .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + b.Property("Status") .IsRequired() .HasColumnType("longtext") .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + b.Property("child1DnaOldId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); @@ -15193,14 +15213,30 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + b.Property("child1ShortNameOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + b.Property("child2DnaOldId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); @@ -15209,14 +15245,30 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + b.Property("child2ShortNameOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + b.Property("child3DnaOldId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); @@ -15225,14 +15277,30 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + b.Property("child3ShortNameOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + b.Property("child4DnaOldId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); @@ -15241,6 +15309,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("child4ShortNameOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); @@ -15257,6 +15329,26 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + b.Property("posLevelNameOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); @@ -15265,10 +15357,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + b.Property("posMasterNoOld") .HasColumnType("int") .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + b.Property("posTypeNameOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); @@ -15277,6 +15381,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + b.Property("prefix") .HasColumnType("longtext") .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); @@ -15285,10 +15405,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("profile Id"); + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + b.Property("rootDnaOldId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); @@ -15297,6 +15429,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.Property("rootShortNameOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 4c4f4d7c..93769317 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -112,6 +112,36 @@ namespace BMA.EHR.Retirement.Service.Controllers p.prefix, p.firstName, p.lastName, + p.root, + p.rootId, + p.rootShortName, + p.child1, + p.child1Id, + p.child1ShortName, + p.child2, + p.child2Id, + p.child2ShortName, + p.child3, + p.child3Id, + p.child3ShortName, + p.child4, + p.child4Id, + p.child4ShortName, + p.orgRevisionId, + p.positionId, + p.posMasterNo, + p.position, + p.PositionExecutive, + p.positionField, + p.posTypeId, + p.posTypeName, + p.posLevelId, + p.posLevelName, + node = p.root == null ? (int?)null : (p.child1 == null ? 0 : (p.child2 == null ? 1 : (p.child3 == null ? 2 : (p.child4 == null ? 3 : 4)))), + nodeName = p.root == null ? null : (p.child1 == null ? p.root : (p.child2 == null ? p.child1 : (p.child3 == null ? p.child2 : (p.child4 == null ? p.child3 : p.child4)))), + nodeId = p.rootId == null ? null : (p.child1Id == null ? p.rootId : (p.child2Id == null ? p.child1Id : (p.child3Id == null ? p.child2Id : (p.child4Id == null ? p.child3Id : p.child4Id)))), + nodeShortName = p.rootShortName == null ? null : (p.child1ShortName == null ? p.rootShortName : (p.child2ShortName == null ? p.child1ShortName : (p.child3ShortName == null ? p.child2ShortName : (p.child4ShortName == null ? p.child3ShortName : p.child4ShortName)))), + p.rootOld, p.rootOldId, p.rootShortNameOld, @@ -134,7 +164,11 @@ namespace BMA.EHR.Retirement.Service.Controllers p.posTypeNameOld, p.posLevelOldId, p.posLevelNameOld, + p.Status, + p.Amount, + p.ReportingDate, + p.CreatedAt, p.Reason, p.MilitaryDate, @@ -144,6 +178,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.PositionLevelOld, p.PositionNumberOld, p.OrganizationPositionOld, + p.posmasterId, p.PositionDate, CommandType = p.CommandType == null ? null : p.CommandType.Name, }) @@ -204,6 +239,36 @@ namespace BMA.EHR.Retirement.Service.Controllers p.prefix, p.firstName, p.lastName, + p.root, + p.rootId, + p.rootShortName, + p.child1, + p.child1Id, + p.child1ShortName, + p.child2, + p.child2Id, + p.child2ShortName, + p.child3, + p.child3Id, + p.child3ShortName, + p.child4, + p.child4Id, + p.child4ShortName, + node = p.root == null ? (int?)null : (p.child1 == null ? 0 : (p.child2 == null ? 1 : (p.child3 == null ? 2 : (p.child4 == null ? 3 : 4)))), + nodeName = p.root == null ? null : (p.child1 == null ? p.root : (p.child2 == null ? p.child1 : (p.child3 == null ? p.child2 : (p.child4 == null ? p.child3 : p.child4)))), + nodeId = p.rootId == null ? null : (p.child1Id == null ? p.rootId : (p.child2Id == null ? p.child1Id : (p.child3Id == null ? p.child2Id : (p.child4Id == null ? p.child3Id : p.child4Id)))), + nodeShortName = p.rootShortName == null ? null : (p.child1ShortName == null ? p.rootShortName : (p.child2ShortName == null ? p.child1ShortName : (p.child3ShortName == null ? p.child2ShortName : (p.child4ShortName == null ? p.child3ShortName : p.child4ShortName)))), + p.orgRevisionId, + p.positionId, + p.posMasterNo, + p.position, + p.PositionExecutive, + p.positionField, + p.posTypeId, + p.posTypeName, + p.posLevelId, + p.posLevelName, + p.rootOld, p.rootOldId, p.rootShortNameOld, @@ -219,12 +284,20 @@ namespace BMA.EHR.Retirement.Service.Controllers p.child4Old, p.child4OldId, p.child4ShortNameOld, + nodeOld = p.rootOld == null ? (int?)null : (p.child1Old == null ? 0 : (p.child2Old == null ? 1 : (p.child3Old == null ? 2 : (p.child4Old == null ? 3 : 4)))), + nodeNameOld = p.rootOld == null ? null : (p.child1Old == null ? p.root : (p.child2Old == null ? p.child1Old : (p.child3Old == null ? p.child2Old : (p.child4Old == null ? p.child3Old : p.child4Old)))), + nodeOldId = p.rootOldId == null ? null : (p.child1OldId == null ? p.rootOldId : (p.child2OldId == null ? p.child1OldId : (p.child3OldId == null ? p.child2OldId : (p.child4OldId == null ? p.child3OldId : p.child4OldId)))), + nodeShortNameOld = p.rootShortNameOld == null ? null : (p.child1ShortNameOld == null ? p.rootShortNameOld : (p.child2ShortNameOld == null ? p.child1ShortNameOld : (p.child3ShortNameOld == null ? p.child2ShortNameOld : (p.child4ShortNameOld == null ? p.child3ShortNameOld : p.child4ShortNameOld)))), p.posMasterNoOld, p.posTypeOldId, p.posTypeNameOld, p.posLevelOldId, p.posLevelNameOld, + p.Status, + p.Amount, + p.ReportingDate, + p.CreatedAt, p.Reason, p.MilitaryDate, @@ -238,6 +311,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.PositionExecutiveOld, p.OrganizationOld, p.PositionDate, + p.posmasterId, CommandType = p.CommandType == null ? null : p.CommandType.Name, }) .FirstOrDefaultAsync(); @@ -368,84 +442,97 @@ namespace BMA.EHR.Retirement.Service.Controllers return Success(); } - // /// - // /// āđ€āļĨāļ·āļ­āļāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ - // /// - // /// Id āļ­āļ·āđˆāļ™āđ† - // /// - // /// - // /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ - // /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš - // /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - // [HttpPut("position/{id:length(36)}")] - // public async Task> UpdatePositionRetirementOther([FromBody] PersonSelectPositionOtherRequest req, Guid id) - // { - // var uppdated = await _context.RetirementOthers - // .FirstOrDefaultAsync(x => x.Id == id); - // if (uppdated == null) - // return Error(GlobalMessages.RetirementOtherNotFound, 404); - // if (req.PosNoId != null) - // { - // var save_posNo = await _context.PositionNumbers.FindAsync(req.PosNoId); - // if (save_posNo == null) - // return Error(GlobalMessages.PositionPosNoNotFound, 404); - // uppdated.PositionNumber = save_posNo; + /// + /// āđ€āļĨāļ·āļ­āļāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ + /// + /// Id āļ­āļ·āđˆāļ™āđ† + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("position/{id:length(36)}")] + public async Task> UpdatePositionRetirementOther([FromBody] PersonSelectPositionOtherRequest req, Guid id) + { + var uppdated = await _context.RetirementOthers + .FirstOrDefaultAsync(x => x.Id == id); + if (uppdated == null) + return Error(GlobalMessages.RetirementOtherNotFound, 404); + + var apiUrl = $"{_configuration["API"]}/org/find/all"; - // var save_orgPosition = await _context.OrganizationPositions.FirstOrDefaultAsync(x => x.PositionNumber == save_posNo); - // if (save_orgPosition == null) - // return Error(GlobalMessages.PositionPosNoNotFound, 404); - // uppdated.OrganizationPosition = save_orgPosition; - // } + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Post, apiUrl); + var _res = await client.PostAsJsonAsync(apiUrl, new + { + node = req.node, + nodeId = req.nodeId, + }); + var _result = await _res.Content.ReadAsStringAsync(); + var org = JsonConvert.DeserializeObject(_result); - // if (req.PositionId != null) - // { - // var save = await _context.PositionPaths.FindAsync(req.PositionId); - // if (save == null) - // return Error(GlobalMessages.PositionPathNotFound, 404); - // uppdated.PositionPath = save; - // } + if (org == null || org.result == null) + return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ™āļĩāđ‰āđƒāļ™āļĢāļ°āļšāļš", 404); + uppdated.root = org.result.root; + uppdated.rootId = org.result.rootId; + uppdated.rootDnaId = org.result.rootDnaId; + uppdated.rootShortName = org.result.rootShortName; + uppdated.child1 = req.node <= 0 ? null : org.result.child1; + uppdated.child1Id = req.node <= 0 ? null : org.result.child1Id; + uppdated.child1DnaId = req.node <= 0 ? null : org.result.child1DnaId; + uppdated.child1ShortName = req.node <= 0 ? null : org.result.child1ShortName; + uppdated.child2 = req.node <= 1 ? null : org.result.child2; + uppdated.child2Id = req.node <= 1 ? null : org.result.child2Id; + uppdated.child2DnaId = req.node <= 1 ? null : org.result.child2DnaId; + uppdated.child2ShortName = req.node <= 1 ? null : org.result.child2ShortName; + uppdated.child3 = req.node <= 2 ? null : org.result.child3; + uppdated.child3Id = req.node <= 2 ? null : org.result.child3Id; + uppdated.child3DnaId = req.node <= 2 ? null : org.result.child3DnaId; + uppdated.child3ShortName = req.node <= 2 ? null : org.result.child3ShortName; + uppdated.child4 = req.node <= 3 ? null : org.result.child4; + uppdated.child4Id = req.node <= 3 ? null : org.result.child4Id; + uppdated.child4DnaId = req.node <= 3 ? null : org.result.child4DnaId; + uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; + } - // if (req.PositionLevelId != null) - // { - // var save = await _context.PositionLevels.FindAsync(req.PositionLevelId); - // if (save == null) - // return Error(GlobalMessages.PositionLevelNotFound, 404); - // uppdated.PositionLevel = save; - // } + var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new + { + posMasterOldId = uppdated.posmasterId, + posMasterId = req.posmasterId, + profileId = uppdated.profileId, + }); + } + uppdated.posmasterId = req.posmasterId; + uppdated.node = req.node; + uppdated.nodeId = req.nodeId; + uppdated.orgRevisionId = req.orgRevisionId; + uppdated.positionId = req.positionId; + uppdated.posMasterNo = req.posMasterNo; + uppdated.position = req.positionName; + uppdated.PositionExecutive = req.posExecutiveName; + uppdated.positionField = req.positionField; + uppdated.posTypeId = req.posTypeId; + uppdated.posTypeName = req.posTypeName; + uppdated.posLevelId = req.posLevelId; + uppdated.posLevelName = req.posLevelName; + uppdated.Amount = req.Amount; + uppdated.ReportingDate = req.reportingDate; + uppdated.Status = "PENDING"; + uppdated.LastUpdateFullName = FullName ?? "System Administrator"; + uppdated.LastUpdateUserId = UserId ?? ""; + uppdated.LastUpdatedAt = DateTime.Now; + await _context.SaveChangesAsync(); - // if (req.PositionLineId != null) - // { - // var save = await _context.PositionLines.FindAsync(req.PositionLineId); - // if (save == null) - // return Error(GlobalMessages.PositionLineNotFound, 404); - // uppdated.PositionLine = save; - // } - - // if (req.PositionPathSideId != null) - // { - // var save = await _context.PositionPathSides.FindAsync(req.PositionPathSideId); - // if (save == null) - // return Error(GlobalMessages.PositionPathSideNotFound, 404); - // uppdated.PositionPathSide = save; - // } - - // if (req.PositionTypeId != null) - // { - // var save = await _context.PositionTypes.FindAsync(req.PositionTypeId); - // if (save == null) - // return Error(GlobalMessages.PositionTypeNotFound, 404); - // uppdated.PositionType = save; - // } - - // uppdated.RecruitDate = req.RecruitDate; - // uppdated.Status = "PENDING"; - // uppdated.LastUpdateFullName = FullName ?? "System Administrator"; - // uppdated.LastUpdateUserId = UserId ?? ""; - // uppdated.LastUpdatedAt = DateTime.Now; - // await _context.SaveChangesAsync(); - - // return Success(); - // } + return Success(); + } /// /// āđāļāđ‰āđ„āļ‚āļ­āļ·āđˆāļ™āđ† diff --git a/BMA.EHR.Retirement.Service/Requests/PersonSelectPositionOtherRequest.cs b/BMA.EHR.Retirement.Service/Requests/PersonSelectPositionOtherRequest.cs index b903859f..e9dfc86c 100644 --- a/BMA.EHR.Retirement.Service/Requests/PersonSelectPositionOtherRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/PersonSelectPositionOtherRequest.cs @@ -6,11 +6,29 @@ namespace BMA.EHR.Retirement.Service.Requests public class PersonSelectPositionOtherRequest { public DateTime? RecruitDate { get; set; } - public Guid? PosNoId { get; set; } - public Guid? PositionId { get; set; } - public Guid? PositionLevelId { get; set; } - public Guid? PositionLineId { get; set; } - public Guid? PositionPathSideId { get; set; } - public Guid? PositionTypeId { get; set; } + // public Guid? PosNoId { get; set; } + // public Guid? PositionId { get; set; } + // public Guid? PositionLevelId { get; set; } + // public Guid? PositionLineId { get; set; } + // public Guid? PositionPathSideId { get; set; } + // public Guid? PositionTypeId { get; set; } + public double? Amount { get; set; } + + public string? posmasterId { get; set; } + public Guid? personalId { get; set; } + public DateTime? reportingDate { get; set; } + public int? node { get; set; } + public Guid? nodeId { get; set; } + public string? orgRevisionId { get; set; } + public int? posMasterNo { get; set; } + public string? positionId { get; set; } + public string? positionName { get; set; } + public string? positionField { get; set; } + public string? posTypeId { get; set; } + public string? posTypeName { get; set; } + public string? posLevelId { get; set; } + public string? posLevelName { get; set; } + public string? typeCommand { get; set; } + public string? posExecutiveName { get; set; } } } \ No newline at end of file From c5a57a1f1f3e7c7b22414e04f802212e67e94c48 Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 28 Mar 2025 16:51:39 +0700 Subject: [PATCH 172/879] =?UTF-8?q?sort=20=E0=B9=80=E0=B8=81=E0=B8=A9?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/RetirementController.cs | 358 +++++++----------- 1 file changed, 129 insertions(+), 229 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index feb87603..07036a35 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -69,7 +69,6 @@ namespace BMA.EHR.Retirement.Service.Controllers #endregion - #region " āļˆāļąāļ”āļĨāļģāļ”āļąāļšāđ€āļāļĐāļĩāļĒāļ“ " private class ObjectOrderRetire { public int Order { get; set; } @@ -81,173 +80,66 @@ namespace BMA.EHR.Retirement.Service.Controllers public DateTime? LastUpdatedAt { get; set; } public Guid? Id { get; set; } } - private async Task GenOrderByYear(Guid id) - { - var Org = await _context.Organizations.FirstOrDefaultAsync(x => x.OrganizationOrder == null); - var ocIdList = await _context.Organizations.Select(x => x.Id).ToListAsync(); - if (Org != null) - ocIdList = _documentService.GetAllIdByRoot(Org.Id); - var retire = await _context.RetirementPeriods - .FirstOrDefaultAsync(x => x.Id == id); - if (retire == null) - return; - var _retireProfile = await _context.RetirementProfiles - .Where(x => x.RetirementPeriod == retire) - .ToListAsync(); - var profiles = new List(); - if (retire.Type.Trim().ToUpper().Contains("OFFICER")) - { - profiles = await (from x in _context.RetirementProfiles - where x.RetirementPeriod == retire - select new ObjectOrderRetire - { - Id = x.Id, - Order = x.Order, - Order1 = x.Order, - // Order1 = x.Order == null ? 999999999 : x.Order, - Order2 = x.posTypeRank, - Order3 = x.posLevelRank, - LastUpdateFullName = x.LastUpdateFullName, - LastUpdateUserId = x.LastUpdateUserId, - LastUpdatedAt = x.LastUpdatedAt, - }).ToListAsync(); - } - if (retire.Type.Trim().ToUpper().Contains("EMPLOYEE")) - { - profiles = await (from x in _context.RetirementProfiles - where x.RetirementPeriod == retire - // x.Profile.PositionEmployeeLevelId == null ? null : x.Profile.PositionEmployeeLevelId.Order - select new ObjectOrderRetire - { - Id = x.Id, - Order = x.Order, - Order1 = x.Order, - // Order1 = x.Order == null ? 999999999 : x.Order, - LastUpdateFullName = x.LastUpdateFullName, - LastUpdateUserId = x.LastUpdateUserId, - LastUpdatedAt = x.LastUpdatedAt, - }).ToListAsync(); - } - var _profiles = profiles.AsQueryable().OrderBy(x => x.Order1).ThenBy(x => x.Order2).ThenBy(x => x.Order3).ToList(); - var order = 1; - foreach (var profile in _profiles) - { - var retireProfile = _retireProfile.Find(x => x.Id == profile.Id); - retireProfile.Order = order; - retireProfile.LastUpdateFullName = FullName ?? "System Administrator"; - retireProfile.LastUpdateUserId = UserId ?? ""; - retireProfile.LastUpdatedAt = DateTime.Now; - order++; - } - await _context.SaveChangesAsync(); - } - - private int SortOrg(Guid? ocId) - { - if (ocId == null) - return 999999999; - var Org = _context.Organizations.Include(x => x.OrganizationOrganization).FirstOrDefault(x => x.OrganizationOrder == null); - if (Org != null && Org.OrganizationOrganization != null && Org.OrganizationOrganization.Name.Contains("āļ›āļĨāļąāļ”")) - return -1; - var ocIdList = _context.Organizations.Select(x => x.Id).ToList(); - if (Org != null) - ocIdList = _documentService.GetAllIdByRoot(Org.Id); - int index = ocIdList.IndexOf((Guid)ocId); - if (index == -1) - return 999999999; - return index; - } - - private async Task GetAgency(Guid profileId) - { - var organizationAgency = "-"; - var _profile = await _context.Profiles - .Where(x => x.Id == profileId) - .FirstOrDefaultAsync(); - if (_profile != null) - { - if (_profile.ProfileType == "officer") - { - var organization = await _context.Organizations - .Where(x => x.Id == _profile.OcId) - .FirstOrDefaultAsync(); - if (organization != null) - { - var _organizationAgency = await _context.Organizations - .Include(x => x.OrganizationOrganization) - .Where(x => x.Id == organization.OrganizationAgencyId) - .FirstOrDefaultAsync(); - if (_organizationAgency != null && _organizationAgency.OrganizationOrganization != null) - { - organizationAgency = _organizationAgency.OrganizationOrganization.Name; - } - } - } - else - { - var profilePosition = await _context.OrganizationEmployees - .Include(x => x.OrganizationAgency) - .ThenInclude(x => x.OrganizationOrganization) - .Where(x => x.Organization != null) - .Where(x => x.OrganizationAgency != null) - .Where(x => x.OrganizationAgency.OrganizationOrganization != null) - .Where(x => x.OrganizationAgency.OrganizationOrganization.Name != null) - .Where(x => x.Organization.Id == _profile.OcId) - .FirstOrDefaultAsync(); - if (profilePosition != null) - { - organizationAgency = profilePosition.OrganizationAgency.OrganizationOrganization.Name; - } - } - } - return organizationAgency; - } - - private async Task GetGovermentAgency(Guid profileId) - { - var organizationGovernmentAgency = "-"; - var _profile = await _context.Profiles - .Where(x => x.Id == profileId) - .FirstOrDefaultAsync(); - if (_profile != null) - { - if (_profile.ProfileType == "officer") - { - var organization = await _context.Organizations - .Where(x => x.Id == _profile.OcId) - .FirstOrDefaultAsync(); - if (organization != null) - { - var _organizationGovernmentAgency = await _context.Organizations - .Include(x => x.OrganizationOrganization) - .Where(x => x.Id == organization.OrganizationGovernmentAgencyId) - .FirstOrDefaultAsync(); - if (_organizationGovernmentAgency != null && _organizationGovernmentAgency.OrganizationOrganization != null) - { - organizationGovernmentAgency = _organizationGovernmentAgency.OrganizationOrganization.Name; - } - } - } - else - { - var profilePosition = await _context.OrganizationEmployees - .Include(x => x.OrganizationGovernmentAgency) - .ThenInclude(x => x.OrganizationOrganization) - .Where(x => x.Organization != null) - .Where(x => x.OrganizationGovernmentAgency != null) - .Where(x => x.OrganizationGovernmentAgency.OrganizationOrganization != null) - .Where(x => x.OrganizationGovernmentAgency.OrganizationOrganization.Name != null) - .Where(x => x.Organization.Id == _profile.OcId) - .FirstOrDefaultAsync(); - if (profilePosition != null) - { - organizationGovernmentAgency = profilePosition.OrganizationGovernmentAgency.OrganizationOrganization.Name; - } - } - } - return organizationGovernmentAgency; - } - #endregion + // private async Task GenOrderByYear(Guid id) + // { + // // var Org = await _context.Organizations.FirstOrDefaultAsync(x => x.OrganizationOrder == null); + // // var ocIdList = await _context.Organizations.Select(x => x.Id).ToListAsync(); + // // if (Org != null) + // // ocIdList = _documentService.GetAllIdByRoot(Org.Id); + // // var retire = await _context.RetirementPeriods + // // .FirstOrDefaultAsync(x => x.Id == id); + // // if (retire == null) + // // return; + // // var _retireProfile = await _context.RetirementProfiles + // // .Where(x => x.RetirementPeriod == retire) + // // .ToListAsync(); + // // var profiles = new List(); + // // if (retire.Type.Trim().ToUpper().Contains("OFFICER")) + // // { + // // profiles = await (from x in _context.RetirementProfiles + // // where x.RetirementPeriod == retire + // // select new ObjectOrderRetire + // // { + // // Id = x.Id, + // // Order = x.Order, + // // Order1 = x.Order, + // // // Order1 = x.Order == null ? 999999999 : x.Order, + // // Order2 = x.posTypeRank, + // // Order3 = x.posLevelRank, + // // LastUpdateFullName = x.LastUpdateFullName, + // // LastUpdateUserId = x.LastUpdateUserId, + // // LastUpdatedAt = x.LastUpdatedAt, + // // }).ToListAsync(); + // // } + // // if (retire.Type.Trim().ToUpper().Contains("EMPLOYEE")) + // // { + // // profiles = await (from x in _context.RetirementProfiles + // // where x.RetirementPeriod == retire + // // // x.Profile.PositionEmployeeLevelId == null ? null : x.Profile.PositionEmployeeLevelId.Order + // // select new ObjectOrderRetire + // // { + // // Id = x.Id, + // // Order = x.Order, + // // Order1 = x.Order, + // // // Order1 = x.Order == null ? 999999999 : x.Order, + // // LastUpdateFullName = x.LastUpdateFullName, + // // LastUpdateUserId = x.LastUpdateUserId, + // // LastUpdatedAt = x.LastUpdatedAt, + // // }).ToListAsync(); + // // } + // // var _profiles = profiles.AsQueryable().OrderBy(x => x.Order1).ThenBy(x => x.Order2).ThenBy(x => x.Order3).ToList(); + // // var order = 1; + // // foreach (var profile in _profiles) + // // { + // // var retireProfile = _retireProfile.Find(x => x.Id == profile.Id); + // // retireProfile.Order = order; + // // retireProfile.LastUpdateFullName = FullName ?? "System Administrator"; + // // retireProfile.LastUpdateUserId = UserId ?? ""; + // // retireProfile.LastUpdatedAt = DateTime.Now; + // // order++; + // // } + // // await _context.SaveChangesAsync(); + // } /// /// list āļ›āļĢāļ°āļāļēāļĻāđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ @@ -538,7 +430,7 @@ namespace BMA.EHR.Retirement.Service.Controllers order++; } await _context.SaveChangesAsync(); - await GenOrderByYear(retire.Id); + // await GenOrderByYear(retire.Id); } else { @@ -1004,7 +896,7 @@ namespace BMA.EHR.Retirement.Service.Controllers retire_profile.LastUpdateUserId = UserId ?? ""; retire_profile.LastUpdatedAt = DateTime.Now; } - var num = 1; + var num = 0; var profileRawCount = await _context.RetirementRawProfiles .CountAsync(x => x.RetirementPeriod.Id == retireId); @@ -1119,10 +1011,10 @@ namespace BMA.EHR.Retirement.Service.Controllers _context.RetirementProfiles.Add(data); _context.RetirementRawProfiles.Add(dataRaw); await _context.SaveChangesAsync(); - if (retire.RetirementPeriodHistorys.Count() == 0) - { - await GenOrderByYear(retire.Id); - } + // if (retire.RetirementPeriodHistorys.Count() == 0) + // { + // await GenOrderByYear(retire.Id); + // } return Success(); } } @@ -1230,10 +1122,10 @@ namespace BMA.EHR.Retirement.Service.Controllers _context.RetirementProfiles.Add(data); _context.RetirementRawProfiles.Add(dataRaw); await _context.SaveChangesAsync(); - if (retire.RetirementPeriodHistorys.Count() == 0) - { - await GenOrderByYear(retire.Id); - } + // if (retire.RetirementPeriodHistorys.Count() == 0) + // { + // await GenOrderByYear(retire.Id); + // } return Success(); } } @@ -1313,7 +1205,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { _context.RetirementProfiles.Remove(profile); _context.SaveChanges(); - await GenOrderByYear(profile.RetirementPeriod.Id); + // await GenOrderByYear(profile.RetirementPeriod.Id); } else { @@ -1375,7 +1267,7 @@ namespace BMA.EHR.Retirement.Service.Controllers if (retire == null) return Error(GlobalMessages.RetirementNotFound, 404); - await GenOrderByYear(retire.Id); + // await GenOrderByYear(retire.Id); return Success(); } @@ -1418,58 +1310,66 @@ namespace BMA.EHR.Retirement.Service.Controllers retire.LastUpdateUserId = UserId ?? ""; retire.LastUpdatedAt = DateTime.Now; } - var apiUrl = $"{_configuration["API"]}/org/root/search/sort"; - dynamic rootOrder = new List(); - dynamic child1Order = new List(); - dynamic child2Order = new List(); - dynamic child3Order = new List(); - dynamic child4Order = new List(); - dynamic posTypeNameOrder = new List(); - dynamic posLevelNameOrder = new List(); - using (var client = new HttpClient()) + if(retire.TypeReport == null) { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); - var _res = await client.SendAsync(_req); - var _result = await _res.Content.ReadAsStringAsync(); - - var org = JsonConvert.DeserializeObject(_result); - - if (org != null && org.result != null) + var apiUrl = $"{_configuration["API"]}/org/root/search/sort"; + dynamic rootOrder = new List(); + dynamic child1Order = new List(); + dynamic child2Order = new List(); + dynamic child3Order = new List(); + dynamic child4Order = new List(); + dynamic posTypeNameOrder = new List(); + dynamic posLevelNameOrder = new List(); + using (var client = new HttpClient()) { - rootOrder = org.result.root; - child1Order = org.result.child1; - child2Order = org.result.child2; - child3Order = org.result.child3; - child4Order = org.result.child4; - posTypeNameOrder = org.result.posTypeNameOrder; - posLevelNameOrder = org.result.posLevelNameOrder; + client.DefaultRequestHeaders.Authorization = + new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org != null && org.result != null) + { + rootOrder = org.result.root; + child1Order = org.result.child1; + child2Order = org.result.child2; + child3Order = org.result.child3; + child4Order = org.result.child4; + posTypeNameOrder = org.result.posTypeNameOrder; + posLevelNameOrder = org.result.posLevelNameOrder; + } + } + + var order = 1; + foreach (var profile in retire.RetirementProfiles + .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) + .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) + .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) + .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) + .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? ""))) + { + profile.Order = order; + order++; + } + + order = 1; + foreach (var profile in retire.RetirementRawProfiles + .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) + .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) + .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) + .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) + .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? ""))) + { + profile.Order = order; + order++; } - } - var order = 1; - foreach (var profile in retire.RetirementProfiles.OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) - .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) - .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) - .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) - .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) - .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? ""))) - { - profile.Order = order; - order++; - } - order = 1; - foreach (var profile in retire.RetirementRawProfiles.OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) - .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) - .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) - .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) - .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) - .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? ""))) - { - profile.Order = order; - order++; } await _context.SaveChangesAsync(); From 1054227c652d2afb333377e01345bc3d3b43447d Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Fri, 28 Mar 2025 18:24:53 +0700 Subject: [PATCH 173/879] fix #112 --- .../Controllers/PlacementAppointmentController.cs | 10 +++++----- .../Controllers/PlacementOfficerController.cs | 4 ++-- .../Controllers/PlacementTransferController.cs | 2 +- .../Controllers/RetirementOtherController.cs | 2 +- .../Controllers/RetirementResignEmployeeController.cs | 8 ++++---- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index f2537334..ac5583e5 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -813,7 +813,7 @@ namespace BMA.EHR.Placement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = p.OrganizationPositionOld, + OldOc = p.OrganizationPositionOld == null ? "-" : p.OrganizationPositionOld, OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), @@ -1023,7 +1023,7 @@ namespace BMA.EHR.Placement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = p.OrganizationPositionOld, + OldOc = p.OrganizationPositionOld == null ? "-" : p.OrganizationPositionOld, OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), @@ -1235,7 +1235,7 @@ namespace BMA.EHR.Placement.Service.Controllers { No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - OldOrganization = p.OrganizationPositionOld, + OldOrganization = p.OrganizationPositionOld == null ? "-" : p.OrganizationPositionOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld.ToThaiNumber(), OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), @@ -1435,7 +1435,7 @@ namespace BMA.EHR.Placement.Service.Controllers { No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - OldOc = p.OrganizationPositionOld, + OldOc = p.OrganizationPositionOld == null ? "-" : p.OrganizationPositionOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : p.child4Old != null ? $"{p.child4ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : p.child3Old != null ? $"{p.child3ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : @@ -1646,7 +1646,7 @@ namespace BMA.EHR.Placement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = p.OrganizationPositionOld, + OldOc = p.OrganizationPositionOld == null ? "-" : p.OrganizationPositionOld, OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 9e14cb5a..caf6cffb 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -614,8 +614,8 @@ namespace BMA.EHR.Placement.Service.Controllers { No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - PositionName = p.OrganizationPositionOld, - Organization = p.Organization == null ? "" : p.Organization, + PositionName = p.OrganizationPositionOld == null ? "-" : p.OrganizationPositionOld, + Organization = p.Organization == null ? "-" : p.Organization, StartDate = p.DateStart == null ? "" : p.DateStart.Value.ToThaiShortDate2().ToThaiNumber(), EndDate = p.DateEnd == null ? "" : p.DateEnd.Value.ToThaiShortDate2().ToThaiNumber(), Reason = p.Reason == null ? "" : p.Reason.ToThaiNumber(), diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index c1d1e7d4..27c08a88 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -805,7 +805,7 @@ namespace BMA.EHR.Placement.Service.Controllers { No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - OldOc = p.OrganizationPositionOld, + OldOc = p.OrganizationPositionOld == null ? "-" : p.OrganizationPositionOld, PositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, PositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, PositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 93769317..dbe91957 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -912,7 +912,7 @@ namespace BMA.EHR.Retirement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = p.OrganizationPositionOld, + OldOc = p.OrganizationPositionOld == null ? "-" : p.OrganizationPositionOld, OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 3c514ec4..b11d4773 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -1610,11 +1610,11 @@ namespace BMA.EHR.Retirement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), CitizenId = r.CitizenId == null ? "-" : r.CitizenId.ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", - PositionName = p.PositionOld ?? "", - Organization = p.OrganizationPositionOld ?? "", + PositionName = p.PositionOld ?? "-", + Organization = p.OrganizationPositionOld ?? "-", PositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld.ToThaiNumber(), - PositionType = p.PositionTypeOld ?? "", - PositionNumber = p.PositionNumberOld == null ? "" : p.PositionNumberOld.ToThaiNumber(), + PositionType = p.PositionTypeOld ?? "-", + PositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), ActiveDate = p.ActiveDate == null ? "" : p.ActiveDate.Value.ToThaiShortDate2().ToThaiNumber(), Salary = p.AmountOld == null ? "" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), Remark = p.Reason ?? "", From 34b8562ffe7f3d2274bfe237d699c01fad6ac81d Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 28 Mar 2025 21:50:17 +0700 Subject: [PATCH 174/879] add api use --- .github/workflows/release_Retirement.yaml | 72 +++++++++---------- .../Controllers/RetirementOtherController.cs | 19 +++++ 2 files changed, 55 insertions(+), 36 deletions(-) diff --git a/.github/workflows/release_Retirement.yaml b/.github/workflows/release_Retirement.yaml index 6cdceae0..4e936de9 100644 --- a/.github/workflows/release_Retirement.yaml +++ b/.github/workflows/release_Retirement.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - - name: Notify Discord Success - if: success() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "✅ Deployment Success!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - "color": 3066993, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/success-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Success + # if: success() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "✅ Deployment Success!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + # "color": 3066993, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/success-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} - - name: Notify Discord Failure - if: failure() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "❌ Deployment Failed!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - "color": 15158332, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/failure-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Failure + # if: failure() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "❌ Deployment Failed!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + # "color": 15158332, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/failure-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index dbe91957..3c8500ab 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -844,6 +844,25 @@ namespace BMA.EHR.Retirement.Service.Controllers return Success(); } + /// + /// āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ–āļđāļāđ€āļĨāļ·āļ­āļāđ„āļ›āđāļĨāđ‰āļ§ + /// + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("use")] + public async Task> GetPositionUse() + { + var position = await _context.RetirementOthers + .Where(x => x.posmasterId != null) + .Where(x => x.Status != "DONE") + .Select(x => x.posmasterId) + .ToListAsync(); + return Success(position); + } + /// /// āļŠāđˆāļ‡āļĢāļēāļĒāļŠāļ·āđˆāļ­āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡ C-PM-09 /// From 18d93995aa55d600dffa8e29e40f57e6fbad4b4e Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 28 Mar 2025 23:45:36 +0700 Subject: [PATCH 175/879] =?UTF-8?q?=E0=B8=AA=E0=B9=88=E0=B8=87=E0=B8=84?= =?UTF-8?q?=E0=B8=B1=E0=B8=A7=E0=B8=81=E0=B8=A5=E0=B8=B1=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release_placement.yaml | 190 +++++++++--------- .../Controllers/PlacementOfficerController.cs | 1 + .../PlacementRepatriationController.cs | 13 +- .../Requests/PlacementAddProfileRequest.cs | 1 + 4 files changed, 108 insertions(+), 97 deletions(-) diff --git a/.github/workflows/release_placement.yaml b/.github/workflows/release_placement.yaml index e1af3041..0867aa09 100644 --- a/.github/workflows/release_placement.yaml +++ b/.github/workflows/release_placement.yaml @@ -6,102 +6,102 @@ on: - "placement-[0-9]+.[0-9]+.[0-9]+" workflow_dispatch: env: - REGISTRY: docker.frappet.com - IMAGE_NAME: ehr/bma-ehr-placement-service - DEPLOY_HOST: frappet.com - DEPLOY_PORT: 10102 - # COMPOSE_PATH: /home/frappet/docker/bma-ehr - COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-placement - TOKEN_LINE: uxuK5hDzS2DsoC5piJBrWRLiz8GgY7iMZZldOWsDDF0 + REGISTRY: docker.frappet.com + IMAGE_NAME: ehr/bma-ehr-placement-service + DEPLOY_HOST: frappet.com + DEPLOY_PORT: 10102 + # COMPOSE_PATH: /home/frappet/docker/bma-ehr + COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-placement + TOKEN_LINE: uxuK5hDzS2DsoC5piJBrWRLiz8GgY7iMZZldOWsDDF0 jobs: - # act workflow_dispatch -W .github/workflows/release_placement.yaml --input IMAGE_VER=latest -s DOCKER_USER=admin -s DOCKER_PASS=FPTadmin2357 -s SSH_PASSWORD=FPTadmin2357 - release-dev: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set output tags - id: vars - run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - - name: Gen Version - id: gen_ver - run: | - if [[ $GITHUB_REF == 'refs/tags/'* ]]; then - IMAGE_VER=${{ steps.vars.outputs.tag }} - else - IMAGE_VER=${{ github.event.inputs.IMAGE_VER }} - fi - if [[ $IMAGE_VER == '' ]]; then - IMAGE_VER='test-vBeta' - fi - echo '::set-output name=image_ver::'$IMAGE_VER - - name: Check Version - run: | - echo $GITHUB_REF - echo ${{ steps.gen_ver.outputs.image_ver }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Login in to registry - uses: docker/login-action@v2 - with: - registry: ${{env.REGISTRY}} - username: ${{secrets.DOCKER_USER}} - password: ${{secrets.DOCKER_PASS}} - - name: Build and load local docker image - uses: docker/build-push-action@v3 - with: - context: . - platforms: linux/amd64 - file: BMA.EHR.Placement.Service/Dockerfile - push: true - tags: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:${{ steps.gen_ver.outputs.image_ver }},${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest + # act workflow_dispatch -W .github/workflows/release_placement.yaml --input IMAGE_VER=latest -s DOCKER_USER=admin -s DOCKER_PASS=FPTadmin2357 -s SSH_PASSWORD=FPTadmin2357 + release-dev: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set output tags + id: vars + run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT + - name: Gen Version + id: gen_ver + run: | + if [[ $GITHUB_REF == 'refs/tags/'* ]]; then + IMAGE_VER=${{ steps.vars.outputs.tag }} + else + IMAGE_VER=${{ github.event.inputs.IMAGE_VER }} + fi + if [[ $IMAGE_VER == '' ]]; then + IMAGE_VER='test-vBeta' + fi + echo '::set-output name=image_ver::'$IMAGE_VER + - name: Check Version + run: | + echo $GITHUB_REF + echo ${{ steps.gen_ver.outputs.image_ver }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login in to registry + uses: docker/login-action@v2 + with: + registry: ${{env.REGISTRY}} + username: ${{secrets.DOCKER_USER}} + password: ${{secrets.DOCKER_PASS}} + - name: Build and load local docker image + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64 + file: BMA.EHR.Placement.Service/Dockerfile + push: true + tags: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:${{ steps.gen_ver.outputs.image_ver }},${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest - - name: Reload docker compose - uses: appleboy/ssh-action@v0.1.8 - with: - host: ${{env.DEPLOY_HOST}} - username: frappet - password: ${{ secrets.SSH_PASSWORD }} - port: ${{env.DEPLOY_PORT}} - script: | - cd "${{env.COMPOSE_PATH}}" - docker compose pull - docker compose up -d - echo "${{ steps.gen_ver.outputs.image_ver }}"> success - - name: Notify Discord Success - if: success() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "✅ Deployment Success!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - "color": 3066993, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/success-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + - name: Reload docker compose + uses: appleboy/ssh-action@v0.1.8 + with: + host: ${{env.DEPLOY_HOST}} + username: frappet + password: ${{ secrets.SSH_PASSWORD }} + port: ${{env.DEPLOY_PORT}} + script: | + cd "${{env.COMPOSE_PATH}}" + docker compose pull + docker compose up -d + echo "${{ steps.gen_ver.outputs.image_ver }}"> success + # - name: Notify Discord Success + # if: success() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "✅ Deployment Success!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + # "color": 3066993, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/success-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} - - name: Notify Discord Failure - if: failure() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "❌ Deployment Failed!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - "color": 15158332, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/failure-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Failure + # if: failure() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "❌ Deployment Failed!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + # "color": 15158332, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/failure-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index caf6cffb..d56e4744 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -672,6 +672,7 @@ namespace BMA.EHR.Placement.Service.Controllers on p.Id.ToString() equals r.refId select new { + refId = p.Id, profileId = p.profileId, amount = r.amount, amountSpecial = r.amountSpecial, diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index da1b3256..2d54a77e 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -221,10 +221,18 @@ namespace BMA.EHR.Placement.Service.Controllers [HttpPost()] public async Task> Post([FromForm] PlacementAddProfileRequest req) { + + var placementOfficer = await _context.PlacementOfficers + .Where(x => x.Id == (req.OfficerId ?? Guid.Parse("00000000-0000-0000-0000-000000000000"))) + .FirstOrDefaultAsync(); + if (placementOfficer == null) + return Error("āđ„āļĄāđˆāļžāļšāļĢāļēāļĒāļāļēāļĢāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ", 404); var placementRepatriation = new PlacementRepatriation { - Organization = Request.Form.ContainsKey("Organization") ? Request.Form["Organization"] : "", - Reason = Request.Form.ContainsKey("Reason") ? Request.Form["Reason"] : "", + Organization = placementOfficer.Organization, + // Reason = placementOfficer.Reason, + Date = placementOfficer.DateStart, + DateRepatriation = placementOfficer.DateEnd, Status = "WAITTING", CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", @@ -507,6 +515,7 @@ namespace BMA.EHR.Placement.Service.Controllers on p.Id.ToString() equals r.refId select new { + refId = p.Id, profileId = p.profileId, amount = r.amount, amountSpecial = r.amountSpecial, diff --git a/BMA.EHR.Placement.Service/Requests/PlacementAddProfileRequest.cs b/BMA.EHR.Placement.Service/Requests/PlacementAddProfileRequest.cs index eee308ea..588157e5 100644 --- a/BMA.EHR.Placement.Service/Requests/PlacementAddProfileRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/PlacementAddProfileRequest.cs @@ -6,5 +6,6 @@ namespace BMA.EHR.Placement.Service.Requests public class PlacementAddProfileRequest { public Guid Id { get; set; } + public Guid? OfficerId { get; set; } } } From 26be9d691ff5d469c055fde64931c20a823cbffc Mon Sep 17 00:00:00 2001 From: moss <> Date: Sat, 29 Mar 2025 14:59:03 +0700 Subject: [PATCH 176/879] add posexe appointment --- .../Controllers/PlacementAppointmentController.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index ac5583e5..da934623 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -310,6 +310,7 @@ namespace BMA.EHR.Placement.Service.Controllers data.positionId, data.posMasterNo, data.position, + data.PositionExecutive, data.positionField, data.posTypeId, data.posTypeName, @@ -357,6 +358,7 @@ namespace BMA.EHR.Placement.Service.Controllers data.AmountOld, organizationOld = data.OrganizationOld == "/" || data.OrganizationOld == null ? null : data.OrganizationOld, data.positionOld, + data.PositionExecutiveOld, // Docs = placementAppointmentDocs, data.typeCommand, data.posmasterId, @@ -904,7 +906,7 @@ namespace BMA.EHR.Placement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutive, positionType = p.posTypeName, positionLevel = p.posLevelName, posmasterId = p.posmasterId, @@ -1114,7 +1116,7 @@ namespace BMA.EHR.Placement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutive, positionType = p.posTypeName, positionLevel = p.posLevelName, posmasterId = p.posmasterId, @@ -1741,7 +1743,7 @@ namespace BMA.EHR.Placement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutive, positionType = p.posTypeName, positionLevel = p.posLevelName, posmasterId = p.posmasterId, From 82a2dc42e6444f9351af67c0979812696dd6129e Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 31 Mar 2025 10:59:06 +0700 Subject: [PATCH 177/879] fix #1310 --- .../Profiles/GetProfileByKeycloakIdDto.cs | 12 ++++++++++ .../Controllers/LeaveRequestController.cs | 24 +++++++++++++++++-- .../GetUserLeaveProfileResultDto.cs | 12 ++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs b/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs index 669d75ef..72213b96 100644 --- a/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs +++ b/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs @@ -67,6 +67,18 @@ namespace BMA.EHR.Application.Responses.Profiles public Guid? CommanderKeycloak { get; set; } + public string? TelephoneNumber { get; set; } + + public string? CurrentAddress { get; set; } + + public string? CurrentSubDistrict { get; set; } + + public string? CurrentDistrict { get; set; } + + public string? CurrentProvince { get; set; } + + public string? CurrentZipCode { get; set; } + } public class PosLevel diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index f461a996..72952db8 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -15,6 +15,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using Org.BouncyCastle.Asn1.Pkcs; using Swashbuckle.AspNetCore.Annotations; using System.Net.Http.Headers; using System.Security.Claims; @@ -716,6 +717,18 @@ namespace BMA.EHR.Leave.Service.Controllers var remainPrev = 0.0; + var orgName = ""; + if (profile.Child1 != null && profile.Child1 != "") + orgName += $" {profile.Child1}"; + if (profile.Child2 != null && profile.Child2 != "") + orgName += $" {profile.Child2}"; + if (profile.Child3 != null && profile.Child3 != "") + orgName += $" {profile.Child3}"; + if (profile.Child4 != null && profile.Child4 != "") + orgName += $" {profile.Child4}"; + if (profile.Root != null && profile.Root != "") + orgName += $" {profile.Root}"; + @@ -779,7 +792,7 @@ namespace BMA.EHR.Leave.Service.Controllers Dear = profile.Commander ?? "", PositionName = profile.Position == null ? "" : profile.Position, PositionLevelName = profile.PosLevel == null ? "" : profile.PosLevel, - OrganizationName = profile.Root ?? "", //profile.Oc ?? "", + OrganizationName = orgName, //profile.Oc ?? "", LeaveLimit = leaveLimit, LeaveTotal = sumLeave, @@ -789,7 +802,14 @@ namespace BMA.EHR.Leave.Service.Controllers DateAppoint = profile.DateAppoint == null ? null : profile.DateAppoint.Value.Date, Salary = lastSalary == null ? 0 : lastSalary.Amount == null ? 0 : (int)lastSalary.Amount.Value, SalaryText = lastSalary == null ? "" : lastSalary.Amount == null ? "" : ((int)lastSalary.Amount.Value).ToThaiBahtText(false), - LeaveLast = leaveLast == null ? null : leaveLast + LeaveLast = leaveLast == null ? null : leaveLast, + + TelephoneNumber = profile.TelephoneNumber ?? "-", + CurrentAddress = profile.CurrentAddress ?? "-", + CurrentSubDistrict = profile.CurrentSubDistrict ?? "-", + CurrentDistrict = profile.CurrentDistrict ?? "-", + CurrentProvince = profile.CurrentProvince ?? "-", + CurrentZipCode = profile.CurrentZipCode ?? "-", }; return Success(result); diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileResultDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileResultDto.cs index 1aa32a02..ea512127 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileResultDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileResultDto.cs @@ -33,5 +33,17 @@ public string SalaryText { get; set; } public DateTime? LeaveLast { get; set; } + + public string? TelephoneNumber { get; set; } + + public string? CurrentAddress { get; set; } + + public string? CurrentSubDistrict { get; set; } + + public string? CurrentDistrict { get; set; } + + public string? CurrentProvince { get; set; } + + public string? CurrentZipCode { get; set; } } } From 734b29c77cac130df867fef3861a48f3cabcce63 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 31 Mar 2025 11:18:03 +0700 Subject: [PATCH 178/879] fix #1327 --- .../Controllers/LeaveRequestController.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 72952db8..e73e5f45 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -624,17 +624,17 @@ namespace BMA.EHR.Leave.Service.Controllers } // add dear and oc_data - var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); - var approver = string.Empty; - if (rootOc != null) - { - var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - if (list.Count > 0) - approver = list.First().Name; - } + //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); + //var approver = string.Empty; + //if (rootOc != null) + //{ + // var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); + // if (list.Count > 0) + // approver = list.First().Name; + //} oldData.LeaveTypeCode = leaveType.Code; - oldData.Dear = approver; + oldData.Dear = profile.Commander ?? ""; oldData.PositionName = profile.Position == null ? "" : profile.Position; oldData.PositionLevelName = profile.PosLevel == null ? "" : profile.PosLevel; oldData.OrganizationName = profile.Oc ?? ""; From 9e9b3316e98496222f050b45aac38db6787305ad Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 31 Mar 2025 11:58:47 +0700 Subject: [PATCH 179/879] report --- .../Controllers/LeaveReportController.cs | 64 +++++++++++++------ 1 file changed, 44 insertions(+), 20 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index f67ece92..0995f218 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -137,14 +137,26 @@ namespace BMA.EHR.Leave.Service.Controllers await _leaveRequestRepository.GetLastLeaveRequestByTypeForUserAsync(data.KeycloakUserId, data.Type.Id); - var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); - var approver = string.Empty; - if (rootOc != null) - { - var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - if (list.Count > 0) - approver = list.First().Name; - } + //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); + //var approver = string.Empty; + //if (rootOc != null) + //{ + // var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); + // if (list.Count > 0) + // approver = list.First().Name; + //} + + var orgName = ""; + if (profile.Child1 != null && profile.Child1 != "") + orgName += $" {profile.Child1}"; + if (profile.Child2 != null && profile.Child2 != "") + orgName += $" {profile.Child2}"; + if (profile.Child3 != null && profile.Child3 != "") + orgName += $" {profile.Child3}"; + if (profile.Child4 != null && profile.Child4 != "") + orgName += $" {profile.Child4}"; + if (profile.Root != null && profile.Root != "") + orgName += $" {profile.Root}"; var sumLeave = await _leaveRequestRepository.GetSumApproveLeaveByTypeForUserAsync(data.KeycloakUserId, data.Type.Id, data.LeaveStartDate.Year); @@ -157,11 +169,11 @@ namespace BMA.EHR.Leave.Service.Controllers leaveWrote = data.LeaveWrote ?? "", dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), leaveTypeName = data.Type.Name, - dear = approver, + dear = data.Dear, fullname = fullName, positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.Position == null ? "-" : profile!.Position, - organizationName = profile!.Oc ?? "", + positionLeaveName = profile!.PosLevel == null ? "-" : profile!.PosLevel, + organizationName = orgName, leaveDetail = data.LeaveDetail, leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), @@ -188,14 +200,26 @@ namespace BMA.EHR.Leave.Service.Controllers var fullName = $"{profile!.Prefix}{profile!.FirstName} {profile!.LastName}"; - var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); - var approver = string.Empty; - if (rootOc != null) - { - var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - if (list.Count > 0) - approver = list.First().Name; - } + //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); + //var approver = string.Empty; + //if (rootOc != null) + //{ + // var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); + // if (list.Count > 0) + // approver = list.First().Name; + //} + + var orgName = ""; + if (profile.Child1 != null && profile.Child1 != "") + orgName += $" {profile.Child1}"; + if (profile.Child2 != null && profile.Child2 != "") + orgName += $" {profile.Child2}"; + if (profile.Child3 != null && profile.Child3 != "") + orgName += $" {profile.Child3}"; + if (profile.Child4 != null && profile.Child4 != "") + orgName += $" {profile.Child4}"; + if (profile.Root != null && profile.Root != "") + orgName += $" {profile.Root}"; return new { @@ -206,7 +230,7 @@ namespace BMA.EHR.Leave.Service.Controllers leaveWrote = data.LeaveWrote ?? "", dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), leaveTypeName = data.Type.Name, - dear = approver, + dear = data.Dear, fullname = fullName, positionName = profile!.Position == null ? "-" : profile!.Position, positionLeaveName = profile!.Position == null ? "-" : profile!.Position, From 9136cb8d8a6e77c5f58a51d9946e1f88bc14fca6 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 31 Mar 2025 12:17:10 +0700 Subject: [PATCH 180/879] =?UTF-8?q?add=20PositionLeaveName=20=E0=B9=83?= =?UTF-8?q?=E0=B8=99=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Profiles/GetProfileByKeycloakIdDto.cs | 2 + .../Controllers/LeaveReportController.cs | 194 ++++++++---------- 2 files changed, 88 insertions(+), 108 deletions(-) diff --git a/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs b/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs index 72213b96..b9ac4725 100644 --- a/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs +++ b/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs @@ -79,6 +79,8 @@ namespace BMA.EHR.Application.Responses.Profiles public string? CurrentZipCode { get; set; } + public string? PositionLeaveName { get; set; } + } public class PosLevel diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 0995f218..cf530522 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -146,18 +146,6 @@ namespace BMA.EHR.Leave.Service.Controllers // approver = list.First().Name; //} - var orgName = ""; - if (profile.Child1 != null && profile.Child1 != "") - orgName += $" {profile.Child1}"; - if (profile.Child2 != null && profile.Child2 != "") - orgName += $" {profile.Child2}"; - if (profile.Child3 != null && profile.Child3 != "") - orgName += $" {profile.Child3}"; - if (profile.Child4 != null && profile.Child4 != "") - orgName += $" {profile.Child4}"; - if (profile.Root != null && profile.Root != "") - orgName += $" {profile.Root}"; - var sumLeave = await _leaveRequestRepository.GetSumApproveLeaveByTypeForUserAsync(data.KeycloakUserId, data.Type.Id, data.LeaveStartDate.Year); return new @@ -172,8 +160,8 @@ namespace BMA.EHR.Leave.Service.Controllers dear = data.Dear, fullname = fullName, positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.PosLevel == null ? "-" : profile!.PosLevel, - organizationName = orgName, + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, + organizationName = profile.Oc, leaveDetail = data.LeaveDetail, leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), @@ -209,17 +197,7 @@ namespace BMA.EHR.Leave.Service.Controllers // approver = list.First().Name; //} - var orgName = ""; - if (profile.Child1 != null && profile.Child1 != "") - orgName += $" {profile.Child1}"; - if (profile.Child2 != null && profile.Child2 != "") - orgName += $" {profile.Child2}"; - if (profile.Child3 != null && profile.Child3 != "") - orgName += $" {profile.Child3}"; - if (profile.Child4 != null && profile.Child4 != "") - orgName += $" {profile.Child4}"; - if (profile.Root != null && profile.Root != "") - orgName += $" {profile.Root}"; + return new { @@ -233,7 +211,7 @@ namespace BMA.EHR.Leave.Service.Controllers dear = data.Dear, fullname = fullName, positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.Position == null ? "-" : profile!.Position, + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, organizationName = profile!.Oc ?? "", wifeDayName = data.WifeDayName ?? "", wifeDayDateBorn = data.WifeDayDateBorn ?? "", @@ -256,14 +234,14 @@ namespace BMA.EHR.Leave.Service.Controllers var fullName = $"{profile!.Prefix}{profile!.FirstName} {profile!.LastName}"; - var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); - var approver = string.Empty; - if (rootOc != null) - { - var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - if (list.Count > 0) - approver = list.First().Name; - } + //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); + //var approver = string.Empty; + //if (rootOc != null) + //{ + // var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); + // if (list.Count > 0) + // approver = list.First().Name; + //} var sumLeave = await _leaveRequestRepository.GetSumApproveLeaveByTypeForUserAsync(data.KeycloakUserId, data.Type.Id, data.LeaveStartDate.Year); @@ -276,10 +254,10 @@ namespace BMA.EHR.Leave.Service.Controllers leaveWrote = data.LeaveWrote ?? "", dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), leaveTypeName = data.Type.Name, - dear = approver, + dear = data.Dear, fullname = fullName, positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.Position == null ? "-" : profile!.Position, + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, organizationName = profile!.Oc ?? "", restDayOldTotal = data.RestDayOldTotal, @@ -307,14 +285,14 @@ namespace BMA.EHR.Leave.Service.Controllers var fullName = $"{profile!.Prefix}{profile!.FirstName} {profile!.LastName}"; - var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); - var approver = string.Empty; - if (rootOc != null) - { - var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - if (list.Count > 0) - approver = list.First().Name; - } + //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); + //var approver = string.Empty; + //if (rootOc != null) + //{ + // var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); + // if (list.Count > 0) + // approver = list.First().Name; + //} if (data.HajjDayStatus == true) { @@ -327,10 +305,10 @@ namespace BMA.EHR.Leave.Service.Controllers leaveWrote = data.LeaveWrote ?? "", dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), leaveTypeName = data.Type.Name, - dear = approver, + dear = data.Dear, fullname = fullName, positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.Position == null ? "-" : profile!.Position, + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, organizationName = profile!.Oc ?? "", @@ -355,10 +333,10 @@ namespace BMA.EHR.Leave.Service.Controllers leaveWrote = data.LeaveWrote ?? "", dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), leaveTypeName = data.Type.Name, - dear = approver, + dear = data.Dear, fullname = fullName, positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.Position == null ? "-" : profile!.Position, + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, organizationName = profile!.Oc ?? "", leavebirthDate = data.LeaveBirthDate == null ? "" : data.LeaveBirthDate.Value.Date.ToThaiShortDate(), @@ -390,14 +368,14 @@ namespace BMA.EHR.Leave.Service.Controllers var fullName = $"{profile!.Prefix}{profile!.FirstName} {profile!.LastName}"; - var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); - var approver = string.Empty; - if (rootOc != null) - { - var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - if (list.Count > 0) - approver = list.First().Name; - } + //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); + //var approver = string.Empty; + //if (rootOc != null) + //{ + // var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); + // if (list.Count > 0) + // approver = list.First().Name; + //} return new { @@ -408,10 +386,10 @@ namespace BMA.EHR.Leave.Service.Controllers leaveWrote = data.LeaveWrote ?? "", dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), leaveTypeName = data.Type.Name, - dear = approver, + dear = data.Dear, fullname = fullName, positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.Position == null ? "-" : profile!.Position, + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, organizationName = profile!.Oc ?? "", absentDaySummon = data.AbsentDaySummon, @@ -438,14 +416,14 @@ namespace BMA.EHR.Leave.Service.Controllers var fullName = $"{profile!.Prefix}{profile!.FirstName} {profile!.LastName}"; - var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); - var approver = string.Empty; - if (rootOc != null) - { - var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - if (list.Count > 0) - approver = list.First().Name; - } + //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); + //var approver = string.Empty; + //if (rootOc != null) + //{ + // var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); + // if (list.Count > 0) + // approver = list.First().Name; + //} return new { @@ -456,10 +434,10 @@ namespace BMA.EHR.Leave.Service.Controllers leaveWrote = data.LeaveWrote ?? "", dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), leaveTypeName = data.Type.Name, - dear = approver, + dear = data.Dear, fullname = fullName, positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.Position == null ? "-" : profile!.Position, + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, organizationName = profile!.Oc ?? "", leavebirthDate = data.LeaveBirthDate == null ? "" : data.LeaveBirthDate.Value.Date.ToThaiShortDate(), @@ -493,14 +471,14 @@ namespace BMA.EHR.Leave.Service.Controllers var fullName = $"{profile!.Prefix}{profile!.FirstName} {profile!.LastName}"; - var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); - var approver = string.Empty; - if (rootOc != null) - { - var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - if (list.Count > 0) - approver = list.First().Name; - } + //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); + //var approver = string.Empty; + //if (rootOc != null) + //{ + // var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); + // if (list.Count > 0) + // approver = list.First().Name; + //} return new { @@ -511,11 +489,11 @@ namespace BMA.EHR.Leave.Service.Controllers leaveWrote = data.LeaveWrote ?? "", dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), leaveTypeName = data.Type.Name, - dear = approver, + dear = data.Dear, fullname = fullName, fullnameEng = "", positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.Position == null ? "-" : profile!.Position, + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, organizationName = profile!.Oc ?? "", leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), @@ -535,14 +513,14 @@ namespace BMA.EHR.Leave.Service.Controllers var fullName = $"{profile!.Prefix}{profile!.FirstName} {profile!.LastName}"; - var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); - var approver = string.Empty; - if (rootOc != null) - { - var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - if (list.Count > 0) - approver = list.First().Name; - } + //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); + //var approver = string.Empty; + //if (rootOc != null) + //{ + // var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); + // if (list.Count > 0) + // approver = list.First().Name; + //} return new { @@ -553,10 +531,10 @@ namespace BMA.EHR.Leave.Service.Controllers leaveWrote = data.LeaveWrote ?? "", dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), leaveTypeName = data.Type.Name, - dear = approver, + dear = data.Dear, fullname = fullName, positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.Position == null ? "-" : profile!.Position, + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, organizationName = profile!.Oc ?? "", leaveSalary = data.LeaveSalary, @@ -590,14 +568,14 @@ namespace BMA.EHR.Leave.Service.Controllers var fullName = $"{profile!.Prefix}{profile!.FirstName} {profile!.LastName}"; - var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); - var approver = string.Empty; - if (rootOc != null) - { - var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - if (list.Count > 0) - approver = list.First().Name; - } + //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); + //var approver = string.Empty; + //if (rootOc != null) + //{ + // var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); + // if (list.Count > 0) + // approver = list.First().Name; + //} return new { @@ -608,10 +586,10 @@ namespace BMA.EHR.Leave.Service.Controllers leaveWrote = data.LeaveWrote ?? "", dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), leaveTypeName = data.Type.Name, - dear = approver, + dear = data.Dear, fullname = fullName, positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.Position == null ? "-" : profile!.Position, + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, organizationName = profile!.Oc ?? "", @@ -740,14 +718,14 @@ namespace BMA.EHR.Leave.Service.Controllers var fullName = $"{profile!.Prefix}{profile!.FirstName} {profile!.LastName}"; - var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); - var approver = string.Empty; - if (rootOc != null) - { - var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - if (list.Count > 0) - approver = list.First().Name; - } + //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); + //var approver = string.Empty; + //if (rootOc != null) + //{ + // var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); + // if (list.Count > 0) + // approver = list.First().Name; + //} var result = new { @@ -760,11 +738,11 @@ namespace BMA.EHR.Leave.Service.Controllers leaveTypeName = data.Type.Name, fullname = fullName, positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.Position == null ? "-" : profile!.Position, + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, organizationName = profile!.Oc ?? "", leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), - dear = approver, + dear = data.Dear, leaveTotal = data.LeaveTotal } }; From 4a13a7b06ad9148500fdb9ee9d8df5086f16aa01 Mon Sep 17 00:00:00 2001 From: moss <> Date: Mon, 31 Mar 2025 16:46:18 +0700 Subject: [PATCH 181/879] \n discipline --- .../Controllers/DisciplineDisciplinaryController.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs index 8bef41c0..9b3ac6ae 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs @@ -1455,11 +1455,11 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers FirstName = item.FirstName, LastName = item.LastName, //Organization = item.Organization, - Organization = (item.Position == null ? "" : item.Position + " ") + - (item.child4 == null ? "" : item.child4 + " ") + - (item.child3 == null ? "" : item.child3 + " ") + - (item.child2 == null ? "" : item.child2 + " ") + - (item.child1 == null ? "" : item.child1 + " ") + + Organization = (item.Position == null ? "" : item.Position + "\n") + + (item.child4 == null ? "" : item.child4 + "\n") + + (item.child3 == null ? "" : item.child3 + "\n") + + (item.child2 == null ? "" : item.child2 + "\n") + + (item.child1 == null ? "" : item.child1 + "\n") + (item.root == null ? "" : item.root), root = item.root, From 9f55dcb5a9b6e7ad9fdb8e945ee11ea15e1c7941 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 31 Mar 2025 17:32:58 +0700 Subject: [PATCH 182/879] =?UTF-8?q?=E0=B8=AA=E0=B9=88=E0=B8=87=E0=B8=9F?= =?UTF-8?q?=E0=B8=B4=E0=B8=A5=E0=B8=94=E0=B9=8C=E0=B9=84=E0=B8=9B=E0=B8=AD?= =?UTF-8?q?=E0=B8=AD=E0=B8=81=E0=B8=84=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88?= =?UTF-8?q?=E0=B8=87=E0=B8=81=E0=B8=A5=E0=B8=B1=E0=B8=9A=E0=B8=A3=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=20(=E0=B8=9F?= =?UTF-8?q?=E0=B8=B4=E0=B8=A5=E0=B8=94=E0=B9=8C=E0=B8=9B=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=A0=E0=B8=97=20=E0=B8=A3=E0=B8=B0=E0=B8=94?= =?UTF-8?q?=E0=B8=B1=E0=B8=9A=20=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB?= =?UTF-8?q?=E0=B8=99=E0=B9=88=E0=B8=87)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/RetirementOtherController.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 3c8500ab..36771b58 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -822,6 +822,9 @@ namespace BMA.EHR.Retirement.Service.Controllers commandCode = r.commandCode, commandName = r.commandName, remark = r.remark, + positionTypeNew = p.posTypeId, + positionLevelNew = p.posLevelId, + positionNameNew = p.position, }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1047,6 +1050,9 @@ namespace BMA.EHR.Retirement.Service.Controllers commandCode = r.commandCode, commandName = r.commandName, remark = r.remark, + positionTypeNew = p.posTypeId, + positionLevelNew = p.posLevelId, + positionNameNew = p.position, }).ToList(); var baseAPIOrg = _configuration["API"]; From 039431b3ce54e311dcfe6af15dfd523484d0c039 Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 1 Apr 2025 03:01:50 +0700 Subject: [PATCH 183/879] test build --- .github/workflows/release_Retirement.yaml | 72 +++++++++++------------ 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/release_Retirement.yaml b/.github/workflows/release_Retirement.yaml index 4e936de9..6cdceae0 100644 --- a/.github/workflows/release_Retirement.yaml +++ b/.github/workflows/release_Retirement.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - # - name: Notify Discord Success - # if: success() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "✅ Deployment Success!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - # "color": 3066993, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/success-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Success + if: success() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "✅ Deployment Success!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + "color": 3066993, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/success-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} - # - name: Notify Discord Failure - # if: failure() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "❌ Deployment Failed!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - # "color": 15158332, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/failure-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Failure + if: failure() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "❌ Deployment Failed!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + "color": 15158332, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/failure-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} From b1d198133fd12f825cd40681fbad112a4cf3f3a6 Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 1 Apr 2025 10:12:53 +0700 Subject: [PATCH 184/879] =?UTF-8?q?=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B8=AD?= =?UTF-8?q?=E0=B8=81=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88?= =?UTF-8?q?=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlacementAppointmentController.cs | 24 ++++++------- .../PlacementAppointmentEmployeeController.cs | 24 ++++++------- .../Controllers/PlacementReceiveController.cs | 24 ++++++------- .../Controllers/RetirementOtherController.cs | 34 +++++++++---------- 4 files changed, 53 insertions(+), 53 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index da934623..380f223a 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -556,18 +556,18 @@ namespace BMA.EHR.Placement.Service.Controllers uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; } - var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book"; - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new - { - posMasterOldId = uppdated.posmasterId, - posMasterId = req.posmasterId, - profileId = uppdated.profileId, - }); - } + // var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book"; + // using (var client = new HttpClient()) + // { + // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + // var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new + // { + // posMasterOldId = uppdated.posmasterId, + // posMasterId = req.posmasterId, + // profileId = uppdated.profileId, + // }); + // } uppdated.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper(); uppdated.posmasterId = req.posmasterId; uppdated.node = req.node; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index d3fc40a7..ddd7728f 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -581,18 +581,18 @@ namespace BMA.EHR.Placement.Service.Controllers uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; } - var apiUrlUpdate = $"{_configuration["API"]}/org/pos/employee/master-old/book"; - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new - { - posMasterOldId = uppdated.posmasterId, - posMasterId = req.posmasterId, - profileId = uppdated.profileId, - }); - } + // var apiUrlUpdate = $"{_configuration["API"]}/org/pos/employee/master-old/book"; + // using (var client = new HttpClient()) + // { + // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + // var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new + // { + // posMasterOldId = uppdated.posmasterId, + // posMasterId = req.posmasterId, + // profileId = uppdated.profileId, + // }); + // } uppdated.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper(); uppdated.posmasterId = req.posmasterId; uppdated.node = req.node; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 2522ba48..4d61fc21 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -654,18 +654,18 @@ namespace BMA.EHR.Placement.Service.Controllers uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; } - var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book"; - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new - { - posMasterOldId = uppdated.posmasterId, - posMasterId = req.posmasterId, - profileId = uppdated.profileId, - }); - } + // var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book"; + // using (var client = new HttpClient()) + // { + // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + // var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new + // { + // posMasterOldId = uppdated.posmasterId, + // posMasterId = req.posmasterId, + // profileId = uppdated.profileId, + // }); + // } uppdated.posmasterId = req.posmasterId; uppdated.node = req.node; uppdated.nodeId = req.nodeId; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 36771b58..110aa01b 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -168,7 +168,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.Status, p.Amount, p.ReportingDate, - + p.CreatedAt, p.Reason, p.MilitaryDate, @@ -268,7 +268,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.posTypeName, p.posLevelId, p.posLevelName, - + p.rootOld, p.rootOldId, p.rootShortNameOld, @@ -297,7 +297,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.Status, p.Amount, p.ReportingDate, - + p.CreatedAt, p.Reason, p.MilitaryDate, @@ -458,8 +458,8 @@ namespace BMA.EHR.Retirement.Service.Controllers .FirstOrDefaultAsync(x => x.Id == id); if (uppdated == null) return Error(GlobalMessages.RetirementOtherNotFound, 404); - - var apiUrl = $"{_configuration["API"]}/org/find/all"; + + var apiUrl = $"{_configuration["API"]}/org/find/all"; using (var client = new HttpClient()) { @@ -498,18 +498,18 @@ namespace BMA.EHR.Retirement.Service.Controllers uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; } - var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book"; - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new - { - posMasterOldId = uppdated.posmasterId, - posMasterId = req.posmasterId, - profileId = uppdated.profileId, - }); - } + // var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book"; + // using (var client = new HttpClient()) + // { + // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + // var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new + // { + // posMasterOldId = uppdated.posmasterId, + // posMasterId = req.posmasterId, + // profileId = uppdated.profileId, + // }); + // } uppdated.posmasterId = req.posmasterId; uppdated.node = req.node; uppdated.nodeId = req.nodeId; From 6dd057516f25cb1bdd1620cfb1cc448b4a83825b Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 1 Apr 2025 11:08:27 +0700 Subject: [PATCH 185/879] =?UTF-8?q?refid=20=E0=B8=AA=E0=B9=88=E0=B8=87?= =?UTF-8?q?=E0=B8=81=E0=B8=A5=E0=B8=B1=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Models/Placement/PlacementRepatriation.cs | 2 + ...lacementRepatriation_add_refId.Designer.cs | 20076 ++++++++++++++++ ...e_table_placementRepatriation_add_refId.cs | 31 + .../ApplicationDBContextModelSnapshot.cs | 4 + .../PlacementRepatriationController.cs | 31 +- 5 files changed, 20143 insertions(+), 1 deletion(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250401035607_update_table_placementRepatriation_add_refId.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250401035607_update_table_placementRepatriation_add_refId.cs diff --git a/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs b/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs index 5cb88bfd..39b2a7ba 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs @@ -101,5 +101,7 @@ namespace BMA.EHR.Domain.Models.Placement public string? posLevelOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old")] public string? posLevelNameOld { get; set; } + [Comment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ")] + public Guid? refId { get; set; } } } diff --git a/BMA.EHR.Infrastructure/Migrations/20250401035607_update_table_placementRepatriation_add_refId.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250401035607_update_table_placementRepatriation_add_refId.Designer.cs new file mode 100644 index 00000000..6c71c9b5 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250401035607_update_table_placementRepatriation_add_refId.Designer.cs @@ -0,0 +1,20076 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250401035607_update_table_placementRepatriation_add_refId")] + partial class update_table_placementRepatriation_add_refId + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250401035607_update_table_placementRepatriation_add_refId.cs b/BMA.EHR.Infrastructure/Migrations/20250401035607_update_table_placementRepatriation_add_refId.cs new file mode 100644 index 00000000..6fe86ea3 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250401035607_update_table_placementRepatriation_add_refId.cs @@ -0,0 +1,31 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class update_table_placementRepatriation_add_refId : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "refId", + table: "PlacementRepatriations", + type: "char(36)", + nullable: true, + comment: "Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ", + collation: "ascii_general_ci"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "refId", + table: "PlacementRepatriations"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 7300b6a2..fdfae870 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -14083,6 +14083,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("profile Id"); + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + b.Property("rootDnaOldId") .HasColumnType("longtext") .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index 2d54a77e..5f8275e4 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -221,7 +221,7 @@ namespace BMA.EHR.Placement.Service.Controllers [HttpPost()] public async Task> Post([FromForm] PlacementAddProfileRequest req) { - + var placementOfficer = await _context.PlacementOfficers .Where(x => x.Id == (req.OfficerId ?? Guid.Parse("00000000-0000-0000-0000-000000000000"))) .FirstOrDefaultAsync(); @@ -230,6 +230,7 @@ namespace BMA.EHR.Placement.Service.Controllers var placementRepatriation = new PlacementRepatriation { Organization = placementOfficer.Organization, + refId = req.OfficerId ?? Guid.Parse("00000000-0000-0000-0000-000000000000"), // Reason = placementOfficer.Reason, Date = placementOfficer.DateStart, DateRepatriation = placementOfficer.DateEnd, @@ -298,6 +299,20 @@ namespace BMA.EHR.Placement.Service.Controllers (org.result.root == null ? "" : org.result.root); placementRepatriation.OrganizationPositionOld = org.result.position + "\n" + (placementRepatriation.PositionExecutiveOld == null ? "" : placementRepatriation.PositionExecutiveOld + "\n") + placementRepatriation.OrganizationOld; } + + var baseAPIOrg = _configuration["API"]; + var apiUrlOrg = $"{baseAPIOrg}/org/profile/assistance/status"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.PostAsJsonAsync(apiUrlOrg, new + { + refId = req.OfficerId ?? Guid.Parse("00000000-0000-0000-0000-000000000000"), + status = "DONE" + }); + var _result = await _res.Content.ReadAsStringAsync(); + } await _context.PlacementRepatriations.AddAsync(placementRepatriation); await _context.SaveChangesAsync(); @@ -391,6 +406,20 @@ namespace BMA.EHR.Placement.Service.Controllers .FirstOrDefaultAsync(x => x.Id == id); if (deleted == null) return NotFound(); + + var baseAPIOrg = _configuration["API"]; + var apiUrlOrg = $"{baseAPIOrg}/org/profile/assistance/status"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.PostAsJsonAsync(apiUrlOrg, new + { + refId = deleted.refId ?? Guid.Parse("00000000-0000-0000-0000-000000000000"), + status = "PENDING" + }); + var _result = await _res.Content.ReadAsStringAsync(); + } _context.PlacementRepatriations.Remove(deleted); await _context.SaveChangesAsync(); From e160e1e552d137863a1361c4903e0d2e93b45a08 Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 1 Apr 2025 12:08:05 +0700 Subject: [PATCH 186/879] report retirement --- .../Repositories/Reports/RetireReportRepository.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs index 49b4dceb..12379e65 100644 --- a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs @@ -163,9 +163,9 @@ namespace BMA.EHR.Application.Repositories.Reports if (profiles.Count > 0) { mapProfiles = profiles - // .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) - // .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - // .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) + // .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + // .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + // .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) .Select((profile, index) => { // bool isDuplicateRoot = profile.root == previousRoot; @@ -176,7 +176,7 @@ namespace BMA.EHR.Application.Repositories.Reports // previousPosLevelName = profile.posLevelName; return new ProfileRetireJsonRequest { - order = $"{ (index + 1).ToString().ToThaiNumber() }. āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ { (profile.order).ToString().ToThaiNumber() }", + order = retireHistorys.TypeReport == null ? (index + 1).ToString().ToThaiNumber() : $"{(index + 1).ToString().ToThaiNumber()}. āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ {(profile.order).ToString().ToThaiNumber()}", fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", root = "", child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + @@ -305,7 +305,7 @@ namespace BMA.EHR.Application.Repositories.Reports previousPosLevelName = profile.posLevelName; return new ProfileRetireJsonRequest { - order = (index + 1).ToString().ToThaiNumber(), + order = retire.TypeReport == null ? (index + 1).ToString().ToThaiNumber() : $"{(index + 1).ToString().ToThaiNumber()}. āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ {(profile.order).ToString().ToThaiNumber()}", fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", root = (isDuplicateRoot ? "" : profile.root + "\n") + (isDuplicateHospital || !hospital.ToObject>().Contains(profile.child1) ? "" : profile.child1 + "\n") + From e51ab03a5c1264953521c78a85829c51abb3b472 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 2 Apr 2025 09:17:13 +0700 Subject: [PATCH 187/879] fix --- BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs b/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs index f84253e7..2831d2f5 100644 --- a/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs +++ b/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs @@ -1,12 +1,8 @@ -ïŧŋusing BMA.EHR.Domain.Models.HR; -using Microsoft.AspNetCore.Http; +ïŧŋusing Microsoft.AspNetCore.Http; using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging.Abstractions; using Nest; using Newtonsoft.Json; -using Serilog; using System.Diagnostics; -using System.IO; using System.Net.Http.Headers; using System.Security.Claims; using System.Text.Encodings.Web; From e947f08f8e8b982f35a87555240bc73caa949aa0 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 3 Apr 2025 11:13:25 +0700 Subject: [PATCH 188/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=AA?= =?UTF-8?q?=E0=B8=96=E0=B9=88=E0=B8=99=E0=B8=B0=E0=B8=AD=E0=B8=AD=E0=B8=81?= =?UTF-8?q?=E0=B8=84=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/DisciplineResultController.cs | 24 +++++++++---------- .../Requests/ReportPersonRequest.cs | 1 + .../PlacementAppointmentController.cs | 10 ++++---- .../Controllers/PlacementController.cs | 12 +++++----- .../Controllers/PlacementOfficerController.cs | 4 ++-- .../Controllers/PlacementReceiveController.cs | 2 +- .../PlacementRepatriationController.cs | 2 +- .../PlacementTransferController.cs | 2 +- .../Requests/ReportPersonRequest.cs | 1 + .../Controllers/RetirementOtherController.cs | 4 ++-- .../Controllers/RetirementOutController.cs | 4 ++-- .../Controllers/RetirementResignController.cs | 19 +++++++++++---- .../RetirementResignEmployeeController.cs | 13 ++++++++-- .../Requests/ReportPersonRequest.cs | 1 + 14 files changed, 60 insertions(+), 39 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs index c38dea13..1b8ae559 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs @@ -294,7 +294,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers // continue; // uppdated.CommandTypeId = commandTypeId; - // uppdated.Status = "REPORT"; + // uppdated.Status = req.status.Trim().ToUpper(); // uppdated.LastUpdateFullName = FullName ?? "System Administrator"; // uppdated.LastUpdateUserId = UserId ?? ""; // uppdated.LastUpdatedAt = DateTime.Now; @@ -769,7 +769,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - data.ForEach(profile => profile.Status = "REPORT"); + data.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } @@ -898,7 +898,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - data.ForEach(profile => profile.Status = "REPORT"); + data.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } @@ -1029,7 +1029,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers var data = await _context.DisciplineReport_Profiles .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - data.ForEach(profile => profile.Status = "REPORT"); + data.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } @@ -1209,7 +1209,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers var data = await _context.DisciplineReport_Profiles .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - data.ForEach(profile => profile.Status = "REPORT"); + data.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } @@ -1327,7 +1327,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - data.ForEach(profile => profile.Status = "REPORT"); + data.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } @@ -1443,7 +1443,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - data.ForEach(profile => profile.Status = "REPORT"); + data.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } @@ -1559,7 +1559,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - data.ForEach(profile => profile.Status = "REPORT"); + data.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } @@ -1675,7 +1675,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - data.ForEach(profile => profile.Status = "REPORT"); + data.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } @@ -1791,7 +1791,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - data.ForEach(profile => profile.Status = "REPORT"); + data.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } @@ -1908,12 +1908,12 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - data1.ForEach(profile => profile.IsReport = "REPORT"); + data1.ForEach(profile => profile.IsReport = req.status.Trim().ToUpper()); var data2 = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - data2.ForEach(profile => profile.IsReport = "REPORT"); + data2.ForEach(profile => profile.IsReport = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); diff --git a/BMA.EHR.Discipline.Service/Requests/ReportPersonRequest.cs b/BMA.EHR.Discipline.Service/Requests/ReportPersonRequest.cs index f393a864..b8d37c24 100644 --- a/BMA.EHR.Discipline.Service/Requests/ReportPersonRequest.cs +++ b/BMA.EHR.Discipline.Service/Requests/ReportPersonRequest.cs @@ -6,5 +6,6 @@ namespace BMA.EHR.Discipline.Service.Requests public class ReportPersonRequest { public string[] refIds { get; set; } + public string status { get; set; } } } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 380f223a..2ff52c69 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -759,7 +759,7 @@ namespace BMA.EHR.Placement.Service.Controllers .ToListAsync(); placementProfiles.ForEach(profile => { - profile.Status = "REPORT"; + profile.Status = req.status.Trim().ToUpper(); profile.typeCommand = "APPOINT"; }); await _context.SaveChangesAsync(); @@ -969,7 +969,7 @@ namespace BMA.EHR.Placement.Service.Controllers .ToListAsync(); placementProfiles.ForEach(profile => { - profile.Status = "REPORT"; + profile.Status = req.status.Trim().ToUpper(); profile.typeCommand = "MOVE"; }); await _context.SaveChangesAsync(); @@ -1180,7 +1180,7 @@ namespace BMA.EHR.Placement.Service.Controllers .ToListAsync(); placementProfiles.ForEach(profile => { - profile.Status = "REPORT"; + profile.Status = req.status.Trim().ToUpper(); profile.typeCommand = "SLIP"; }); await _context.SaveChangesAsync(); @@ -1380,7 +1380,7 @@ namespace BMA.EHR.Placement.Service.Controllers .ToListAsync(); placementProfiles.ForEach(profile => { - profile.Status = "REPORT"; + profile.Status = req.status.Trim().ToUpper(); profile.typeCommand = "MOVE"; }); await _context.SaveChangesAsync(); @@ -1588,7 +1588,7 @@ namespace BMA.EHR.Placement.Service.Controllers .ToListAsync(); placementProfiles.ForEach(profile => { - profile.Status = "REPORT"; + profile.Status = req.status.Trim().ToUpper(); profile.typeCommand = "SLIP"; }); await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 39a72123..eb07ddf3 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1564,7 +1564,7 @@ namespace BMA.EHR.Placement.Service.Controllers .ToListAsync(); placementProfiles.ForEach(profile => { - profile.PlacementStatus = "REPORT"; + profile.PlacementStatus = req.status.Trim().ToUpper(); profile.typeCommand = "APPOINT"; }); await _context.SaveChangesAsync(); @@ -1895,7 +1895,7 @@ namespace BMA.EHR.Placement.Service.Controllers .ToListAsync(); placementProfiles.ForEach(profile => { - profile.PlacementStatus = "REPORT"; + profile.PlacementStatus = req.status.Trim().ToUpper(); profile.typeCommand = "APPOINT"; }); await _context.SaveChangesAsync(); @@ -2219,10 +2219,10 @@ namespace BMA.EHR.Placement.Service.Controllers // .Where(x => x.Placement!.PlacementType!.Name == "āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ") // .Where(x => x.typeCommand.Trim().ToUpper() == "APPOIN") .ToListAsync(); - placementProfiles.ForEach(profile => profile.PlacementStatus = "REPORT"); + placementProfiles.ForEach(profile => profile.PlacementStatus = req.status.Trim().ToUpper()); placementProfiles.ForEach(profile => { - profile.PlacementStatus = "REPORT"; + profile.PlacementStatus = req.status.Trim().ToUpper(); profile.typeCommand = "APPOIN"; }); @@ -2455,7 +2455,7 @@ namespace BMA.EHR.Placement.Service.Controllers .ToListAsync(); placementProfiles.ForEach(profile => { - profile.PlacementStatus = "REPORT"; + profile.PlacementStatus = req.status.Trim().ToUpper(); profile.typeCommand = "MOVE"; }); await _context.SaveChangesAsync(); @@ -2681,7 +2681,7 @@ namespace BMA.EHR.Placement.Service.Controllers var placementProfiles = await _context.PlacementProfiles .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.PlacementStatus = "REPORT"); + placementProfiles.ForEach(profile => profile.PlacementStatus = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index d56e4744..a84aec2c 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -411,7 +411,7 @@ namespace BMA.EHR.Placement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementOfficer.OrganizationPositionOld = org.result.position + "\n" + (placementOfficer.PositionExecutiveOld == null ? "" : placementOfficer.PositionExecutiveOld + "\n") + placementOfficer.OrganizationOld; + placementOfficer.OrganizationPositionOld = org.result.position + "\n" + (placementOfficer.PositionExecutiveOld == null ? "" : placementOfficer.PositionExecutiveOld + "\n") + placementOfficer.OrganizationOld; } await _context.PlacementOfficers.AddAsync(placementOfficer); await _context.SaveChangesAsync(); @@ -561,7 +561,7 @@ namespace BMA.EHR.Placement.Service.Controllers var placementProfiles = await _context.PlacementOfficers .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 4d61fc21..e4a39d58 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -885,7 +885,7 @@ namespace BMA.EHR.Placement.Service.Controllers var placementProfiles = await _context.PlacementReceives .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index 5f8275e4..8b3b4a9c 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -500,7 +500,7 @@ namespace BMA.EHR.Placement.Service.Controllers var placementProfiles = await _context.PlacementRepatriations .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index 27c08a88..d38ba020 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -752,7 +752,7 @@ namespace BMA.EHR.Placement.Service.Controllers var placementProfiles = await _context.PlacementTransfers .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } diff --git a/BMA.EHR.Placement.Service/Requests/ReportPersonRequest.cs b/BMA.EHR.Placement.Service/Requests/ReportPersonRequest.cs index e061f5a1..c345f6bf 100644 --- a/BMA.EHR.Placement.Service/Requests/ReportPersonRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/ReportPersonRequest.cs @@ -6,5 +6,6 @@ namespace BMA.EHR.Placement.Service.Requests public class ReportPersonRequest { public string[] refIds { get; set; } + public string status { get; set; } } } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 110aa01b..6152ec16 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -660,7 +660,7 @@ namespace BMA.EHR.Retirement.Service.Controllers var placementProfiles = await _context.RetirementOthers .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } @@ -880,7 +880,7 @@ namespace BMA.EHR.Retirement.Service.Controllers var placementProfiles = await _context.RetirementOthers .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index 0a620b07..db256dfe 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -363,7 +363,7 @@ namespace BMA.EHR.Retirement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - retirementOut.OrganizationPositionOld = org.result.position + "\n" + (retirementOut.PositionExecutiveOld == null ? "" : retirementOut.PositionExecutiveOld + "\n") + retirementOut.OrganizationOld; + retirementOut.OrganizationPositionOld = org.result.position + "\n" + (retirementOut.PositionExecutiveOld == null ? "" : retirementOut.PositionExecutiveOld + "\n") + retirementOut.OrganizationOld; retirementOut.AmountOld = org.result.salary; } } @@ -513,7 +513,7 @@ namespace BMA.EHR.Retirement.Service.Controllers var placementProfiles = await _context.RetirementResigns .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 28c379a7..8e617dd2 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -948,7 +948,7 @@ namespace BMA.EHR.Retirement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - retirementResign.OrganizationPositionOld = org.result.position + "\n" + (retirementResign.PositionExecutiveOld == null ? "" : retirementResign.PositionExecutiveOld + "\n") + retirementResign.OrganizationOld; + retirementResign.OrganizationPositionOld = org.result.position + "\n" + (retirementResign.PositionExecutiveOld == null ? "" : retirementResign.PositionExecutiveOld + "\n") + retirementResign.OrganizationOld; } await _context.RetirementResigns.AddAsync(retirementResign); await _context.SaveChangesAsync(); @@ -1159,7 +1159,7 @@ namespace BMA.EHR.Retirement.Service.Controllers if (updated == null) return Error(GlobalMessages.RetirementResignNotFound, 404); updated.CancelReason = req.Reason; - if (updated.Status == "DONE") + if (updated.Status == "DONE" || updated.Status == "WAITTING") { var retirementResignCancel = new RetirementResignCancel { @@ -1246,6 +1246,15 @@ namespace BMA.EHR.Retirement.Service.Controllers } updated.IsCancel = true; } + else + { + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.DeleteAsync($"{_configuration["API"]}/org/command/tab2Cancel17/{updated.Id}"); + } + } updated.Status = "CANCEL"; updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; @@ -2116,7 +2125,7 @@ namespace BMA.EHR.Retirement.Service.Controllers var placementProfiles = await _context.RetirementResigns .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } @@ -2302,7 +2311,7 @@ namespace BMA.EHR.Retirement.Service.Controllers var placementProfiles = await _context.RetirementResignCancels .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } @@ -2357,7 +2366,7 @@ namespace BMA.EHR.Retirement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", PositionName = p.PositionOld ?? "-", Organization = p.OrganizationPositionOld ?? "-", - Oc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + + Oc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + (p.PositionExecutiveOld == null ? "" : $"{p.PositionExecutiveOld}\n") + (p.child4Old == null ? "" : $"{p.child4Old}\n") + (p.child3Old == null ? "" : $"{p.child3Old}\n") + diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index b11d4773..ed0659b7 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -1152,6 +1152,15 @@ namespace BMA.EHR.Retirement.Service.Controllers } updated.IsCancel = true; } + else + { + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.DeleteAsync($"{_configuration["API"]}/org/command/tab2Cancel23/{updated.Id}"); + } + } updated.Status = "CANCEL"; updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; @@ -1557,7 +1566,7 @@ namespace BMA.EHR.Retirement.Service.Controllers var placementProfiles = await _context.RetirementResignEmployees .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } @@ -1742,7 +1751,7 @@ namespace BMA.EHR.Retirement.Service.Controllers var placementProfiles = await _context.RetirementResignEmployeeCancels .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper()); await _context.SaveChangesAsync(); return Success(); } diff --git a/BMA.EHR.Retirement.Service/Requests/ReportPersonRequest.cs b/BMA.EHR.Retirement.Service/Requests/ReportPersonRequest.cs index 5a6136be..31fd36dd 100644 --- a/BMA.EHR.Retirement.Service/Requests/ReportPersonRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/ReportPersonRequest.cs @@ -6,5 +6,6 @@ namespace BMA.EHR.Retirement.Service.Requests public class ReportPersonRequest { public string[] refIds { get; set; } + public string status { get; set; } } } From 1d3f8973e0cea3453c2b5e698ea24b56225fc6b9 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 3 Apr 2025 11:51:50 +0700 Subject: [PATCH 189/879] no message --- .../RetirementDeceasedController.cs | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 27ce95c8..31add2a5 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -15,6 +15,7 @@ using Newtonsoft.Json.Linq; using Swashbuckle.AspNetCore.Annotations; using System.Net.Http.Headers; using System.Security.Claims; +using System.Text; namespace BMA.EHR.Retirement.Service.Controllers { @@ -882,5 +883,86 @@ namespace BMA.EHR.Retirement.Service.Controllers throw; } } + + /// + /// āļĢāļēāļĒāļ‡āļēāļ™āļšāļąāļ™āļ—āļķāļāđ€āļ§āļĩāļĒāļ™āđāļˆāđ‰āļ‡āļāļēāļĢāļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ + /// + /// Id āļĢāļēāļĒāļāļēāļĢāļšāļąāļ™āļ—āļķāļāđ€āļ§āļĩāļĒāļ™āđāļˆāđ‰āļ‡āļāļēāļĢāļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļāļēāļĢāļ­āđˆāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļˆāļēāļ Relational Database āļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("report/36/{id}")] + public async Task> GetDeceasedNotiReportAsync(Guid id) + { + try + { + var head = await _repositoryRetireReport.GetHeadRetirementDeceasedAsync(id); + var detail = await _repositoryRetireReport.GetRetirementDeceasedAsync(id); + + if (detail == null || head == null) + { + return Error("āļĢāļēāļĒāļāļēāļĢāļšāļąāļ™āļ—āļķāļāđ€āļ§āļĩāļĒāļ™āđāļˆāđ‰āļ‡āļāļēāļĢāļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ", 404); + } + + var mergeData = new + { + Oc = head.GetType().GetProperty("Oc")?.GetValue(head), + Number = head.GetType().GetProperty("Number")?.GetValue(head), + Date = head.GetType().GetProperty("Date")?.GetValue(head), + Subject = head.GetType().GetProperty("Subject")?.GetValue(head), + Send = head.GetType().GetProperty("Send")?.GetValue(head), + FullName = detail.GetType().GetProperty("FullName")?.GetValue(detail), + Position = detail.GetType().GetProperty("Position")?.GetValue(detail), + Reason = detail.GetType().GetProperty("Reason")?.GetValue(detail), + DeceasedDate = detail.GetType().GetProperty("Date")?.GetValue(detail), + CurrentDate = detail.GetType().GetProperty("CurrentDate")?.GetValue(detail), + DeceasedNumber = detail.GetType().GetProperty("Number")?.GetValue(detail), + Location = detail.GetType().GetProperty("Location")?.GetValue(detail), + }; + + var reqPayload = new + { + template = "deceased", + reportName = "docx-report", + data = mergeData + }; + + + //using (var client = new HttpClient()) + //{ + // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + // var _req = new HttpRequestMessage(HttpMethod.Post, _apiUrl); + // var _res = await client.PostAsJsonAsync(_apiUrl, new + // { + // isLeave = true, + // leaveReason = "āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ", + // dateLeave = req.Date, + // }); + // var _result = await _res.Content.ReadAsStringAsync(); + //} + + + var apiUrl = "https://report-server.frappet.synology.me/api/v1/report-template/docx"; + using (var client = new HttpClient()) + { + //client.DefaultRequestHeaders.Add("accept", "application/pdf"); + client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/pdf")); + var _res = await client.PostAsJsonAsync(apiUrl, reqPayload); + + if (_res.IsSuccessStatusCode) + { + var fileBytes = await _res.Content.ReadAsByteArrayAsync(); + return File(fileBytes, "application/pdf", "report"); + } + return NotFound(); + } + } + catch + { + throw; + } + } } } From 38edf0ea41b6dd373f536b3ee790d561e185f5fd Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 3 Apr 2025 14:06:18 +0700 Subject: [PATCH 190/879] change status --- .github/workflows/release_placement.yaml | 72 +++++++++---------- .../Controllers/RetirementResignController.cs | 2 +- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.github/workflows/release_placement.yaml b/.github/workflows/release_placement.yaml index 0867aa09..d9c2f266 100644 --- a/.github/workflows/release_placement.yaml +++ b/.github/workflows/release_placement.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - # - name: Notify Discord Success - # if: success() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "✅ Deployment Success!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - # "color": 3066993, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/success-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Success + if: success() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "✅ Deployment Success!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + "color": 3066993, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/success-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} - # - name: Notify Discord Failure - # if: failure() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "❌ Deployment Failed!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - # "color": 15158332, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/failure-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Failure + if: failure() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "❌ Deployment Failed!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + "color": 15158332, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/failure-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 8e617dd2..3057e343 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -1159,7 +1159,7 @@ namespace BMA.EHR.Retirement.Service.Controllers if (updated == null) return Error(GlobalMessages.RetirementResignNotFound, 404); updated.CancelReason = req.Reason; - if (updated.Status == "DONE" || updated.Status == "WAITTING") + if (updated.Status == "DONE" || updated.Status == "WAITING") { var retirementResignCancel = new RetirementResignCancel { From 7716a6fd02605ac9d5c31b5c776e353902646843 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 3 Apr 2025 14:19:39 +0700 Subject: [PATCH 191/879] =?UTF-8?q?noti=20=E0=B8=AB=E0=B8=99=E0=B8=B1?= =?UTF-8?q?=E0=B8=87=E0=B8=AA=E0=B8=B7=E0=B8=AD=E0=B9=80=E0=B8=A7=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Responses/CommandPayload.cs | 3 + .../RetirementDeceasedController.cs | 64 ++++++------------- 2 files changed, 21 insertions(+), 46 deletions(-) diff --git a/BMA.EHR.Application/Responses/CommandPayload.cs b/BMA.EHR.Application/Responses/CommandPayload.cs index 15e5598b..2aa96f4d 100644 --- a/BMA.EHR.Application/Responses/CommandPayload.cs +++ b/BMA.EHR.Application/Responses/CommandPayload.cs @@ -10,5 +10,8 @@ public string name { get; set; } public string url { get; set; } + + public bool? isReport { get; set; } + } } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 31add2a5..36d3f01d 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -435,25 +435,25 @@ namespace BMA.EHR.Retirement.Service.Controllers { if (higher.profileId != null) { - //var payload_attach = new List(); - //payload_attach.Add(new PayloadAttachment - //{ - // name = "āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ", - // url = $"{_configuration["APIV2"]}/report/deceased/copy/36/{retirementDeceased.Id}" - //}); + var payload_attach = new List(); + payload_attach.Add(new PayloadAttachment + { + name = "āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ", + url = $"{_configuration["API"]}/retirement/deceased/report/36/{retirementDeceased.Id}", + isReport = true + }); - //var payload = new CommandPayload() - //{ - // attachments = payload_attach - //}; + var payload = new CommandPayload() + { + attachments = payload_attach + }; - //var payload_str = JsonConvert.SerializeObject(payload); + var payload_str = JsonConvert.SerializeObject(payload); await _repositoryNoti.PushNotificationAsync( Guid.Parse(higher.profileId), $"āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {higher.prefix}{higher.firstName} {higher.lastName}", $"āđāļˆāđ‰āļ‡āļ‚āđˆāļēāļ§āļāļēāļĢāļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {retirementDeceased.prefix}{retirementDeceased.firstName} {retirementDeceased.lastName}", - //payload_str, - "", + payload_str, "", true, true @@ -773,7 +773,9 @@ namespace BMA.EHR.Retirement.Service.Controllers payload_attach.Add(new PayloadAttachment { name = "āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ", - url = $"{_configuration["APIV2"]}/report/deceased/copy/36/{retirementDeceased.Id}" + //url = $"{_configuration["APIV2"]}/report/deceased/copy/36/{retirementDeceased.Id}" + url = $"{_configuration["API"]}/retirement/deceased/report/36/{retirementDeceased.Id}", + isReport = true }); var payload = new CommandPayload() @@ -921,43 +923,13 @@ namespace BMA.EHR.Retirement.Service.Controllers Location = detail.GetType().GetProperty("Location")?.GetValue(detail), }; - var reqPayload = new + var data = new { template = "deceased", reportName = "docx-report", data = mergeData }; - - - //using (var client = new HttpClient()) - //{ - // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - // var _req = new HttpRequestMessage(HttpMethod.Post, _apiUrl); - // var _res = await client.PostAsJsonAsync(_apiUrl, new - // { - // isLeave = true, - // leaveReason = "āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄ", - // dateLeave = req.Date, - // }); - // var _result = await _res.Content.ReadAsStringAsync(); - //} - - - var apiUrl = "https://report-server.frappet.synology.me/api/v1/report-template/docx"; - using (var client = new HttpClient()) - { - //client.DefaultRequestHeaders.Add("accept", "application/pdf"); - client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/pdf")); - var _res = await client.PostAsJsonAsync(apiUrl, reqPayload); - - if (_res.IsSuccessStatusCode) - { - var fileBytes = await _res.Content.ReadAsByteArrayAsync(); - return File(fileBytes, "application/pdf", "report"); - } - return NotFound(); - } + return Success(data); } catch { From 07e81361889457f7fb4fc2aec4b598bf6cac2b62 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 3 Apr 2025 16:39:46 +0700 Subject: [PATCH 192/879] =?UTF-8?q?fix=20=E0=B8=82=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B9=81?= =?UTF-8?q?=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=9C=E0=B8=A5=E0=B9=83=E0=B8=99?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=AB?= =?UTF-8?q?=E0=B8=99=E0=B8=B1=E0=B8=87=E0=B8=AA=E0=B8=B7=E0=B8=AD=E0=B8=A5?= =?UTF-8?q?=E0=B8=B2=E0=B8=AD=E0=B8=AD=E0=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/Reports/RetireReportRepository.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs index 12379e65..48abbadd 100644 --- a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs @@ -482,6 +482,8 @@ namespace BMA.EHR.Application.Repositories.Reports p.SendDate, p.ActiveDate, p.Reason, + p.ReasonResign, + p.Remark, p.Status, salary = p.AmountOld, p.ApproveReason, @@ -517,6 +519,8 @@ namespace BMA.EHR.Application.Repositories.Reports p.SendDate, p.ActiveDate, p.Reason, + p.ReasonResign, + p.Remark, p.Status, salary = p.AmountOld, p.ApproveReason, @@ -547,11 +551,14 @@ namespace BMA.EHR.Application.Repositories.Reports data.prefix, data.firstName, data.lastName, - data.Location, + Location = string.IsNullOrEmpty(data.Location) ? string.Empty : data.Location.ToThaiNumber(), FullName = $"{data.prefix}{data.firstName} {data.lastName}", SendDate = string.IsNullOrEmpty(data.SendDate.ToString()) ? string.Empty : DateTime.Parse(data.SendDate.ToString()).ToThaiFullDate().ToString().ToThaiNumber(), ActiveDate = string.IsNullOrEmpty(data.ActiveDate.ToString()) ? string.Empty : DateTime.Parse(data.ActiveDate.ToString()).ToThaiFullDate().ToString().ToThaiNumber(), data.Reason, + data.ReasonResign, + data.Remark, + ReasonRemark = data.Reason == "OTHER" ? string.IsNullOrEmpty(data.Remark) ? data.ReasonResign : $"{data.ReasonResign}({data.Remark})" : data.ReasonResign, data.Status, data.salary, data.PositionTypeOld, From 337bff8853e41a44536cb42507a1041012d8a72f Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 3 Apr 2025 16:49:40 +0700 Subject: [PATCH 193/879] =?UTF-8?q?=E0=B8=A2=E0=B8=81=E0=B9=80=E0=B8=A5?= =?UTF-8?q?=E0=B8=B4=E0=B8=81=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/RetirementResignController.cs | 6 ++++-- .../Controllers/RetirementResignEmployeeController.cs | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 3057e343..992b3e85 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -1246,13 +1246,15 @@ namespace BMA.EHR.Retirement.Service.Controllers } updated.IsCancel = true; } - else + else if (updated.Status == "REPORT") { using (var client = new HttpClient()) { client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); var _res = await client.DeleteAsync($"{_configuration["API"]}/org/command/tab2Cancel17/{updated.Id}"); + Console.WriteLine(_res); + Console.WriteLine($"{_configuration["API"]}/org/command/tab2Cancel17/{updated.Id}"); } } updated.Status = "CANCEL"; @@ -2251,7 +2253,7 @@ namespace BMA.EHR.Retirement.Service.Controllers positionExecutive = "", positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, - isLeave = true, + isLeave = p.IsCancel == true ? false : true, leaveReason = "āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", dateLeave = r.commandDateAffect, commandId = r.commandId, diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index ed0659b7..909663a5 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -1152,7 +1152,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } updated.IsCancel = true; } - else + else if (updated.Status == "REPORT") { using (var client = new HttpClient()) { @@ -1691,7 +1691,7 @@ namespace BMA.EHR.Retirement.Service.Controllers mouthSalaryAmount = r.mouthSalaryAmount, positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, - isLeave = true, + isLeave = p.IsCancel == true ? false : true, leaveReason = "āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", dateLeave = r.commandDateAffect, commandId = r.commandId, From 928df2d62cb490c986e7b384c00d3e6060aef7de Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 3 Apr 2025 17:04:46 +0700 Subject: [PATCH 194/879] tag build command --- .github/workflows/release_command.yaml | 180 ++++++++++++++----------- 1 file changed, 98 insertions(+), 82 deletions(-) diff --git a/.github/workflows/release_command.yaml b/.github/workflows/release_command.yaml index ed19e8ca..d5bf4309 100644 --- a/.github/workflows/release_command.yaml +++ b/.github/workflows/release_command.yaml @@ -1,89 +1,105 @@ name: release-dev run-name: release-dev ${{ github.actor }} on: - # push: - # tags: - # - 'v[0-9]+.[0-9]+.[0-9]+' - # tags-ignore: - # - '2.*' - # Allow run workflow manually from Action tab - workflow_dispatch: + push: + tags: + - "command-[0-9]+.[0-9]+.[0-9]+" + workflow_dispatch: env: - REGISTRY: docker.frappet.com - IMAGE_NAME: ehr/bma-ehr-command-service - DEPLOY_HOST: frappet.com - DEPLOY_PORT: 10102 - # COMPOSE_PATH: /home/frappet/docker/bma-ehr - COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-command - TOKEN_LINE: uxuK5hDzS2DsoC5piJBrWRLiz8GgY7iMZZldOWsDDF0 + REGISTRY: docker.frappet.com + IMAGE_NAME: ehr/bma-ehr-command-service + DEPLOY_HOST: frappet.com + DEPLOY_PORT: 10102 + # COMPOSE_PATH: /home/frappet/docker/bma-ehr + COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-command + TOKEN_LINE: uxuK5hDzS2DsoC5piJBrWRLiz8GgY7iMZZldOWsDDF0 jobs: - # act workflow_dispatch -W .github/workflows/release_command.yaml --input IMAGE_VER=latest -s DOCKER_USER=admin -s DOCKER_PASS=FPTadmin2357 -s SSH_PASSWORD=FPTadmin2357 - release-dev: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - # skip Set up QEMU because it fail on act and container - - name: Gen Version - id: gen_ver - run: | - if [[ $GITHUB_REF == 'refs/tags/'* ]]; then - IMAGE_VER='${GITHUB_REF/refs\/tags\//}' - else - IMAGE_VER=${{ github.event.inputs.IMAGE_VER }} - fi - if [[ $IMAGE_VER == '' ]]; then - IMAGE_VER='test-vBeta' - fi - echo '::set-output name=image_ver::'$IMAGE_VER - - name: Test Version - run: | - echo $GITHUB_REF - echo ${{ steps.gen_ver.outputs.image_ver }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Login in to registry - uses: docker/login-action@v2 - with: - registry: ${{env.REGISTRY}} - username: ${{secrets.DOCKER_USER}} - password: ${{secrets.DOCKER_PASS}} - - name: Build and load local docker image - uses: docker/build-push-action@v3 - with: - context: . - platforms: linux/amd64 - file: BMA.EHR.Command.Service/Dockerfile - push: true - tags: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:${{ steps.gen_ver.outputs.image_ver }},${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest + # act workflow_dispatch -W .github/workflows/release_command.yaml --input IMAGE_VER=latest -s DOCKER_USER=admin -s DOCKER_PASS=FPTadmin2357 -s SSH_PASSWORD=FPTadmin2357 + release-dev: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # skip Set up QEMU because it fail on act and container + - name: Gen Version + id: gen_ver + run: | + if [[ $GITHUB_REF == 'refs/tags/'* ]]; then + IMAGE_VER='${GITHUB_REF/refs\/tags\//}' + else + IMAGE_VER=${{ github.event.inputs.IMAGE_VER }} + fi + if [[ $IMAGE_VER == '' ]]; then + IMAGE_VER='test-vBeta' + fi + echo '::set-output name=image_ver::'$IMAGE_VER + - name: Test Version + run: | + echo $GITHUB_REF + echo ${{ steps.gen_ver.outputs.image_ver }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login in to registry + uses: docker/login-action@v2 + with: + registry: ${{env.REGISTRY}} + username: ${{secrets.DOCKER_USER}} + password: ${{secrets.DOCKER_PASS}} + - name: Build and load local docker image + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64 + file: BMA.EHR.Command.Service/Dockerfile + push: true + tags: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:${{ steps.gen_ver.outputs.image_ver }},${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest - - name: Reload docker compose - uses: appleboy/ssh-action@v0.1.8 - with: - host: ${{env.DEPLOY_HOST}} - username: frappet - password: ${{ secrets.SSH_PASSWORD }} - port: ${{env.DEPLOY_PORT}} - script: | - cd "${{env.COMPOSE_PATH}}" - docker compose pull - docker compose up -d - echo "${{ steps.gen_ver.outputs.image_ver }}"> success - - uses: snow-actions/line-notify@v1.1.0 - if: success() - with: - access_token: ${{ env.TOKEN_LINE }} - message: | - -Success✅✅✅ - Image: ${{env.IMAGE_NAME}} - Version: ${{ github.event.inputs.IMAGE_VER }} - By: ${{secrets.DOCKER_USER}} - - uses: snow-actions/line-notify@v1.1.0 - if: failure() - with: - access_token: ${{ env.TOKEN_LINE }} - message: | - -Failure❌❌❌ - Image: ${{env.IMAGE_NAME}} - Version: ${{ github.event.inputs.IMAGE_VER }} - By: ${{secrets.DOCKER_USER}} + - name: Reload docker compose + uses: appleboy/ssh-action@v0.1.8 + with: + host: ${{env.DEPLOY_HOST}} + username: frappet + password: ${{ secrets.SSH_PASSWORD }} + port: ${{env.DEPLOY_PORT}} + script: | + cd "${{env.COMPOSE_PATH}}" + docker compose pull + docker compose up -d + echo "${{ steps.gen_ver.outputs.image_ver }}"> success + - name: Notify Discord Success + if: success() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "✅ Deployment Success!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + "color": 3066993, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/success-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} + + - name: Notify Discord Failure + if: failure() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "❌ Deployment Failed!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + "color": 15158332, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/failure-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} From d0a6f21e054d405b99f87a2541501534e7bb4c4a Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 3 Apr 2025 17:11:49 +0700 Subject: [PATCH 195/879] tag command --- .github/workflows/release_command.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_command.yaml b/.github/workflows/release_command.yaml index d5bf4309..462ed688 100644 --- a/.github/workflows/release_command.yaml +++ b/.github/workflows/release_command.yaml @@ -20,12 +20,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - # skip Set up QEMU because it fail on act and container + - name: Set output tags + id: vars + run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - name: Gen Version id: gen_ver run: | if [[ $GITHUB_REF == 'refs/tags/'* ]]; then - IMAGE_VER='${GITHUB_REF/refs\/tags\//}' + IMAGE_VER=${{ steps.vars.outputs.tag }} else IMAGE_VER=${{ github.event.inputs.IMAGE_VER }} fi @@ -33,7 +35,7 @@ jobs: IMAGE_VER='test-vBeta' fi echo '::set-output name=image_ver::'$IMAGE_VER - - name: Test Version + - name: Check Version run: | echo $GITHUB_REF echo ${{ steps.gen_ver.outputs.image_ver }} From f68eae81200587eadd8a4a3525371636d9f375a3 Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 4 Apr 2025 10:55:16 +0700 Subject: [PATCH 196/879] reportreire --- .../Reports/RetireReportRepository.cs | 132 ++++++++++++++---- 1 file changed, 103 insertions(+), 29 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs index 48abbadd..900427cf 100644 --- a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs @@ -157,39 +157,113 @@ namespace BMA.EHR.Application.Repositories.Reports profiles = profiles.OrderBy(x => x.order).ToList(); } var mapProfiles = new List(); - // string previousRoot = null; - // string previousPosTypeName = null; - // string previousPosLevelName = null; + string previousRoot = null; + string previousChild1 = null; + string previousPosTypeName = null; + string previousPosLevelName = null; if (profiles.Count > 0) { - mapProfiles = profiles - // .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) - // .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - // .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) - .Select((profile, index) => + if (retireHistorys.TypeReport == null) { - // bool isDuplicateRoot = profile.root == previousRoot; - // previousRoot = profile.root; - // bool isDuplicatePosType = profile.posTypeName == previousPosTypeName; - // previousPosTypeName = profile.posTypeName; - // bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; - // previousPosLevelName = profile.posLevelName; - return new ProfileRetireJsonRequest + profiles = profiles.OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) + .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) + .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) + .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) + .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")).ToList(); + mapProfiles = profiles.Select((profile, index) => { - order = retireHistorys.TypeReport == null ? (index + 1).ToString().ToThaiNumber() : $"{(index + 1).ToString().ToThaiNumber()}. āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ {(profile.order).ToString().ToThaiNumber()}", - fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", - root = "", - child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + - (profile.child4 == null ? "" : profile.child4 + "\n") + - (profile.child3 == null ? "" : profile.child3 + "\n") + - (profile.child2 == null ? "" : profile.child2 + "\n") + - (profile.child1 == null ? "" : profile.child1 + "\n") + - (profile.reason == null ? "" : profile.reason), - position = profile.position != "" && profile.position != null ? profile.position : "-", - posNo = profile.posNo != "" && profile.posNo != null ? profile.posNo?.ToThaiNumber() : "-", - reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", - }; - }).ToList(); + bool isDuplicateRoot = profile.root == previousRoot; + previousRoot = profile.root; + if (isDuplicateRoot == false) + { + previousChild1 = null; + previousPosTypeName = null; + previousPosLevelName = null; + } + + bool isDuplicateHospital = profile.child1 == previousChild1; + previousChild1 = profile.child1; + if (isDuplicateHospital == false) + { + previousPosTypeName = null; + previousPosLevelName = null; + } + + bool isDuplicatePosType = profile.posTypeName == previousPosTypeName; + previousPosTypeName = profile.posTypeName; + bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; + previousPosLevelName = profile.posLevelName; + return new ProfileRetireJsonRequest + { + order = retireHistorys.TypeReport == null + ? (index + 1).ToString().ToThaiNumber() + : $"{(index + 1).ToString().ToThaiNumber()}. āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ {(profile.order).ToString().ToThaiNumber()}", + fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", + root = (isDuplicateRoot ? "" : profile.root + "\n") + + (isDuplicateHospital || !hospital.ToObject>() + .Contains(profile.child1) + ? "" + : profile.child1 + "\n") + + (isDuplicatePosType ? "" : $"āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—{profile.posTypeName}" + "\n") + + (isDuplicatePosLevel ? "" : $"āļĢāļ°āļ”āļąāļš{profile.posLevelName}"), + child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + + (profile.child4 == null ? "" : profile.child4 + "\n") + + (profile.child3 == null ? "" : profile.child3 + "\n") + + (profile.child2 == null ? "" : profile.child2 + "\n") + + (profile.child1 == null || hospital.ToObject>() + .Contains(profile.child1) + ? "" + : profile.child1 + "\n") + + (profile.reason == null ? "" : profile.reason), + position = profile.position != "" && profile.position != null + ? profile.position + : "-", + posNo = profile.posNo != "" && profile.posNo != null + ? profile.posNo?.ToThaiNumber() + : "-", + reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", + }; + }).ToList(); + }else + { + mapProfiles = profiles + // .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + // .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + // .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) + .Select((profile, index) => + { + // bool isDuplicateRoot = profile.root == previousRoot; + // previousRoot = profile.root; + // bool isDuplicatePosType = profile.posTypeName == previousPosTypeName; + // previousPosTypeName = profile.posTypeName; + // bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; + // previousPosLevelName = profile.posLevelName; + return new ProfileRetireJsonRequest + { + order = retireHistorys.TypeReport == null + ? (index + 1).ToString().ToThaiNumber() + : $"{(index + 1).ToString().ToThaiNumber()}. āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ {(profile.order).ToString().ToThaiNumber()}", + fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", + root = "", + child = + (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + + (profile.child4 == null ? "" : profile.child4 + "\n") + + (profile.child3 == null ? "" : profile.child3 + "\n") + + (profile.child2 == null ? "" : profile.child2 + "\n") + + (profile.child1 == null ? "" : profile.child1 + "\n") + + (profile.reason == null ? "" : profile.reason), + position = profile.position != "" && profile.position != null + ? profile.position + : "-", + posNo = profile.posNo != "" && profile.posNo != null + ? profile.posNo?.ToThaiNumber() + : "-", + reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", + }; + }).ToList(); + } } string SignDate = retireHistorys.SignDate != null ? DateTime.Parse(retireHistorys.SignDate.ToString()).ToThaiFullDate().ToString().ToThaiNumber() : "-"; return new { SignDate, retireHistorys.Detail, retireHistorys.Id, retireHistorys.CreatedAt, Year = retireHistorys.Year.ToThaiYear().ToString().ToThaiNumber(), retireHistorys.Round, retireHistorys.Type, retireHistorys.TypeReport, Total = retireHistorys.Total.ToString().ToThaiNumber(), profiles = mapProfiles }; From 179d61cc166f94a45d4a54a7a592cddb36ca91ab Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 4 Apr 2025 11:43:19 +0700 Subject: [PATCH 197/879] report retire --- .../Reports/RetireReportRepository.cs | 135 ++++-------------- .../Controllers/RetirementController.cs | 22 +-- 2 files changed, 44 insertions(+), 113 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs index 900427cf..712449a2 100644 --- a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs @@ -157,113 +157,39 @@ namespace BMA.EHR.Application.Repositories.Reports profiles = profiles.OrderBy(x => x.order).ToList(); } var mapProfiles = new List(); - string previousRoot = null; - string previousChild1 = null; - string previousPosTypeName = null; - string previousPosLevelName = null; + // string previousRoot = null; + // string previousPosTypeName = null; + // string previousPosLevelName = null; if (profiles.Count > 0) { - if (retireHistorys.TypeReport == null) + mapProfiles = profiles + // .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + // .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) + // .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) + .Select((profile, index) => { - profiles = profiles.OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) - .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) - .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) - .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) - .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) - .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")).ToList(); - mapProfiles = profiles.Select((profile, index) => + // bool isDuplicateRoot = profile.root == previousRoot; + // previousRoot = profile.root; + // bool isDuplicatePosType = profile.posTypeName == previousPosTypeName; + // previousPosTypeName = profile.posTypeName; + // bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; + // previousPosLevelName = profile.posLevelName; + return new ProfileRetireJsonRequest { - bool isDuplicateRoot = profile.root == previousRoot; - previousRoot = profile.root; - if (isDuplicateRoot == false) - { - previousChild1 = null; - previousPosTypeName = null; - previousPosLevelName = null; - } - - bool isDuplicateHospital = profile.child1 == previousChild1; - previousChild1 = profile.child1; - if (isDuplicateHospital == false) - { - previousPosTypeName = null; - previousPosLevelName = null; - } - - bool isDuplicatePosType = profile.posTypeName == previousPosTypeName; - previousPosTypeName = profile.posTypeName; - bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; - previousPosLevelName = profile.posLevelName; - return new ProfileRetireJsonRequest - { - order = retireHistorys.TypeReport == null - ? (index + 1).ToString().ToThaiNumber() - : $"{(index + 1).ToString().ToThaiNumber()}. āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ {(profile.order).ToString().ToThaiNumber()}", - fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", - root = (isDuplicateRoot ? "" : profile.root + "\n") + - (isDuplicateHospital || !hospital.ToObject>() - .Contains(profile.child1) - ? "" - : profile.child1 + "\n") + - (isDuplicatePosType ? "" : $"āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—{profile.posTypeName}" + "\n") + - (isDuplicatePosLevel ? "" : $"āļĢāļ°āļ”āļąāļš{profile.posLevelName}"), - child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + - (profile.child4 == null ? "" : profile.child4 + "\n") + - (profile.child3 == null ? "" : profile.child3 + "\n") + - (profile.child2 == null ? "" : profile.child2 + "\n") + - (profile.child1 == null || hospital.ToObject>() - .Contains(profile.child1) - ? "" - : profile.child1 + "\n") + - (profile.reason == null ? "" : profile.reason), - position = profile.position != "" && profile.position != null - ? profile.position - : "-", - posNo = profile.posNo != "" && profile.posNo != null - ? profile.posNo?.ToThaiNumber() - : "-", - reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", - }; - }).ToList(); - }else - { - mapProfiles = profiles - // .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) - // .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - // .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) - .Select((profile, index) => - { - // bool isDuplicateRoot = profile.root == previousRoot; - // previousRoot = profile.root; - // bool isDuplicatePosType = profile.posTypeName == previousPosTypeName; - // previousPosTypeName = profile.posTypeName; - // bool isDuplicatePosLevel = profile.posLevelName == previousPosLevelName; - // previousPosLevelName = profile.posLevelName; - return new ProfileRetireJsonRequest - { - order = retireHistorys.TypeReport == null - ? (index + 1).ToString().ToThaiNumber() - : $"{(index + 1).ToString().ToThaiNumber()}. āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ {(profile.order).ToString().ToThaiNumber()}", - fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", - root = "", - child = - (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + - (profile.child4 == null ? "" : profile.child4 + "\n") + - (profile.child3 == null ? "" : profile.child3 + "\n") + - (profile.child2 == null ? "" : profile.child2 + "\n") + - (profile.child1 == null ? "" : profile.child1 + "\n") + - (profile.reason == null ? "" : profile.reason), - position = profile.position != "" && profile.position != null - ? profile.position - : "-", - posNo = profile.posNo != "" && profile.posNo != null - ? profile.posNo?.ToThaiNumber() - : "-", - reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", - }; - }).ToList(); - } + order = retireHistorys.TypeReport == null ? (index + 1).ToString().ToThaiNumber() : $"{(index + 1).ToString().ToThaiNumber()}. āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ {(profile.order).ToString().ToThaiNumber()}", + fullName = $"{profile.prefix}{profile.firstName} {profile.lastName}", + root = "", + child = (profile.posExecutiveName == null ? "" : profile.posExecutiveName + "\n") + + (profile.child4 == null ? "" : profile.child4 + "\n") + + (profile.child3 == null ? "" : profile.child3 + "\n") + + (profile.child2 == null ? "" : profile.child2 + "\n") + + (profile.child1 == null ? "" : profile.child1 + "\n") + + (profile.reason == null ? "" : profile.reason), + position = profile.position != "" && profile.position != null ? profile.position : "-", + posNo = profile.posNo != "" && profile.posNo != null ? profile.posNo?.ToThaiNumber() : "-", + reason = profile.reason != "" && profile.reason != null ? profile.reason : "-", + }; + }).ToList(); } string SignDate = retireHistorys.SignDate != null ? DateTime.Parse(retireHistorys.SignDate.ToString()).ToThaiFullDate().ToString().ToThaiNumber() : "-"; return new { SignDate, retireHistorys.Detail, retireHistorys.Id, retireHistorys.CreatedAt, Year = retireHistorys.Year.ToThaiYear().ToString().ToThaiNumber(), retireHistorys.Round, retireHistorys.Type, retireHistorys.TypeReport, Total = retireHistorys.Total.ToString().ToThaiNumber(), profiles = mapProfiles }; @@ -354,7 +280,8 @@ namespace BMA.EHR.Application.Repositories.Reports .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")).ToList(); + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) + .ThenBy(x => x.posNo).ToList(); } mapProfiles = profile_retire.Select((profile, index) => { diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index 07036a35..46c91da2 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -337,7 +337,8 @@ namespace BMA.EHR.Retirement.Service.Controllers .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? ""))) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) + .ThenBy(x => x.posNo)) { var data = new RetirementProfile { @@ -438,10 +439,10 @@ namespace BMA.EHR.Retirement.Service.Controllers return Error(GlobalMessages.RetirementNotCreated); if (req.Option == null) req.Option = "EDIT"; - + var profile_old = await _context.RetirementProfiles .Where(x => x.RetirementPeriod == retire) - .Select((x,index) => new + .Select((x, index) => new { order = x.Order, id = x.Id, @@ -1291,8 +1292,8 @@ namespace BMA.EHR.Retirement.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var retire = await _context.RetirementPeriods - .Include(x=>x.RetirementProfiles) - .Include(x=>x.RetirementRawProfiles) + .Include(x => x.RetirementProfiles) + .Include(x => x.RetirementRawProfiles) .FirstOrDefaultAsync(x => x.Id == retireId); if (retire == null) return Error(GlobalMessages.RetirementNotFound, 404); @@ -1310,7 +1311,7 @@ namespace BMA.EHR.Retirement.Service.Controllers retire.LastUpdateUserId = UserId ?? ""; retire.LastUpdatedAt = DateTime.Now; } - if(retire.TypeReport == null) + if (retire.TypeReport == null) { var apiUrl = $"{_configuration["API"]}/org/root/search/sort"; dynamic rootOrder = new List(); @@ -1351,7 +1352,8 @@ namespace BMA.EHR.Retirement.Service.Controllers .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? ""))) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) + .ThenBy(x => x.posNo)) { profile.Order = order; order++; @@ -1365,7 +1367,8 @@ namespace BMA.EHR.Retirement.Service.Controllers .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) .ThenBy(x => child4Order.ToObject>().IndexOf(x.child4 ?? "")) .ThenBy(x => posTypeNameOrder.ToObject>().IndexOf(x.posTypeName ?? "")) - .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? ""))) + .ThenBy(x => posLevelNameOrder.ToObject>().IndexOf(x.posLevelName ?? "")) + .ThenBy(x => x.posNo)) { profile.Order = order; order++; @@ -2119,7 +2122,8 @@ namespace BMA.EHR.Retirement.Service.Controllers [HttpGet("31/{exportType}/{Id}")] public async Task> GetProfileRetirement([FromRoute] Guid Id, string exportType = "pdf") { - var retire = await _service.GetProfileRetirementdAsync(Id,token); + var retire = await _service.GetProfileRetirementdAsync(Id, token); + return Success("xxx"); if (retire != null) { var reportfile = string.Empty; From 887d01527678b2f5a5abdf4f36656dbc854ff1dc Mon Sep 17 00:00:00 2001 From: moss <> Date: Sat, 5 Apr 2025 16:45:44 +0700 Subject: [PATCH 198/879] space posno --- .github/workflows/release_Retirement.yaml | 72 +- .github/workflows/release_discipline.yaml | 190 +- .github/workflows/release_placement.yaml | 72 +- .../Commands/CommandReportRepository.cs | 130 +- .../Commands/CommandRepository.cs | 100 +- .../DisciplineComplaint_AppealController.cs | 142 +- .../DisciplineSuspendController.cs | 12 +- .../Retirement/RetirementDeceasedNoti.cs | 4 +- ...acementRepatriation_add_refId1.Designer.cs | 20074 ++++++++++++++++ ..._table_placementRepatriation_add_refId1.cs | 82 + .../ApplicationDBContextModelSnapshot.cs | 2 - .../PlacementAppointmentController.cs | 72 +- .../PlacementAppointmentEmployeeController.cs | 2 +- .../Controllers/PlacementController.cs | 80 +- .../Controllers/PlacementOfficerController.cs | 2 +- .../Controllers/PlacementReceiveController.cs | 12 +- .../PlacementRepatriationController.cs | 2 +- .../PlacementTransferController.cs | 2 +- .../Controllers/RetirementOtherController.cs | 2 +- .../Controllers/RetirementOutController.cs | 4 +- .../Controllers/RetirementResignController.cs | 2 +- .../RetirementResignEmployeeController.cs | 2 +- 22 files changed, 20618 insertions(+), 444 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250405091100_update_table_placementRepatriation_add_refId1.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250405091100_update_table_placementRepatriation_add_refId1.cs diff --git a/.github/workflows/release_Retirement.yaml b/.github/workflows/release_Retirement.yaml index 6cdceae0..4e936de9 100644 --- a/.github/workflows/release_Retirement.yaml +++ b/.github/workflows/release_Retirement.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - - name: Notify Discord Success - if: success() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "✅ Deployment Success!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - "color": 3066993, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/success-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Success + # if: success() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "✅ Deployment Success!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + # "color": 3066993, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/success-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} - - name: Notify Discord Failure - if: failure() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "❌ Deployment Failed!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - "color": 15158332, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/failure-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Failure + # if: failure() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "❌ Deployment Failed!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + # "color": 15158332, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/failure-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/release_discipline.yaml b/.github/workflows/release_discipline.yaml index 80639a84..9969bfdd 100644 --- a/.github/workflows/release_discipline.yaml +++ b/.github/workflows/release_discipline.yaml @@ -6,102 +6,102 @@ on: - "discipline-[0-9]+.[0-9]+.[0-9]+" workflow_dispatch: env: - REGISTRY: docker.frappet.com - IMAGE_NAME: ehr/bma-ehr-discipline-service - DEPLOY_HOST: frappet.com - DEPLOY_PORT: 10102 - # COMPOSE_PATH: /home/frappet/docker/bma-ehr - COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-discipline - TOKEN_LINE: uxuK5hDzS2DsoC5piJBrWRLiz8GgY7iMZZldOWsDDF0 + REGISTRY: docker.frappet.com + IMAGE_NAME: ehr/bma-ehr-discipline-service + DEPLOY_HOST: frappet.com + DEPLOY_PORT: 10102 + # COMPOSE_PATH: /home/frappet/docker/bma-ehr + COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-discipline + TOKEN_LINE: uxuK5hDzS2DsoC5piJBrWRLiz8GgY7iMZZldOWsDDF0 jobs: - # act workflow_dispatch -W .github/workflows/release_discipline.yaml --input IMAGE_VER=latest -s DOCKER_USER=admin -s DOCKER_PASS=FPTadmin2357 -s SSH_PASSWORD=FPTadmin2357 - release-dev: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set output tags - id: vars - run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - - name: Gen Version - id: gen_ver - run: | - if [[ $GITHUB_REF == 'refs/tags/'* ]]; then - IMAGE_VER=${{ steps.vars.outputs.tag }} - else - IMAGE_VER=${{ github.event.inputs.IMAGE_VER }} - fi - if [[ $IMAGE_VER == '' ]]; then - IMAGE_VER='test-vBeta' - fi - echo '::set-output name=image_ver::'$IMAGE_VER - - name: Check Version - run: | - echo $GITHUB_REF - echo ${{ steps.gen_ver.outputs.image_ver }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Login in to registry - uses: docker/login-action@v2 - with: - registry: ${{env.REGISTRY}} - username: ${{secrets.DOCKER_USER}} - password: ${{secrets.DOCKER_PASS}} - - name: Build and load local docker image - uses: docker/build-push-action@v3 - with: - context: . - platforms: linux/amd64 - file: BMA.EHR.Discipline.Service/Dockerfile - push: true - tags: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:${{ steps.gen_ver.outputs.image_ver }},${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest + # act workflow_dispatch -W .github/workflows/release_discipline.yaml --input IMAGE_VER=latest -s DOCKER_USER=admin -s DOCKER_PASS=FPTadmin2357 -s SSH_PASSWORD=FPTadmin2357 + release-dev: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set output tags + id: vars + run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT + - name: Gen Version + id: gen_ver + run: | + if [[ $GITHUB_REF == 'refs/tags/'* ]]; then + IMAGE_VER=${{ steps.vars.outputs.tag }} + else + IMAGE_VER=${{ github.event.inputs.IMAGE_VER }} + fi + if [[ $IMAGE_VER == '' ]]; then + IMAGE_VER='test-vBeta' + fi + echo '::set-output name=image_ver::'$IMAGE_VER + - name: Check Version + run: | + echo $GITHUB_REF + echo ${{ steps.gen_ver.outputs.image_ver }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login in to registry + uses: docker/login-action@v2 + with: + registry: ${{env.REGISTRY}} + username: ${{secrets.DOCKER_USER}} + password: ${{secrets.DOCKER_PASS}} + - name: Build and load local docker image + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64 + file: BMA.EHR.Discipline.Service/Dockerfile + push: true + tags: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:${{ steps.gen_ver.outputs.image_ver }},${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest - - name: Reload docker compose - uses: appleboy/ssh-action@v0.1.8 - with: - host: ${{env.DEPLOY_HOST}} - username: frappet - password: ${{ secrets.SSH_PASSWORD }} - port: ${{env.DEPLOY_PORT}} - script: | - cd "${{env.COMPOSE_PATH}}" - docker compose pull - docker compose up -d - echo "${{ steps.gen_ver.outputs.image_ver }}"> success - - name: Notify Discord Success - if: success() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "✅ Deployment Success!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - "color": 3066993, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/success-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + - name: Reload docker compose + uses: appleboy/ssh-action@v0.1.8 + with: + host: ${{env.DEPLOY_HOST}} + username: frappet + password: ${{ secrets.SSH_PASSWORD }} + port: ${{env.DEPLOY_PORT}} + script: | + cd "${{env.COMPOSE_PATH}}" + docker compose pull + docker compose up -d + echo "${{ steps.gen_ver.outputs.image_ver }}"> success + # - name: Notify Discord Success + # if: success() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "✅ Deployment Success!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + # "color": 3066993, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/success-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} - - name: Notify Discord Failure - if: failure() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "❌ Deployment Failed!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - "color": 15158332, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/failure-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Failure + # if: failure() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "❌ Deployment Failed!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + # "color": 15158332, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/failure-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/release_placement.yaml b/.github/workflows/release_placement.yaml index d9c2f266..0867aa09 100644 --- a/.github/workflows/release_placement.yaml +++ b/.github/workflows/release_placement.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - - name: Notify Discord Success - if: success() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "✅ Deployment Success!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - "color": 3066993, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/success-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Success + # if: success() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "✅ Deployment Success!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + # "color": 3066993, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/success-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} - - name: Notify Discord Failure - if: failure() - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{ - "embeds": [{ - "title": "❌ Deployment Failed!", - "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - "color": 15158332, - "footer": { - "text": "Release Notification", - "icon_url": "https://example.com/failure-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} + # - name: Notify Discord Failure + # if: failure() + # run: | + # curl -H "Content-Type: application/json" \ + # -X POST \ + # -d '{ + # "embeds": [{ + # "title": "❌ Deployment Failed!", + # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + # "color": 15158332, + # "footer": { + # "text": "Release Notification", + # "icon_url": "https://example.com/failure-icon.png" + # }, + # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + # }] + # }' \ + # ${{ secrets.DISCORD_WEBHOOK }} diff --git a/BMA.EHR.Application/Repositories/Commands/CommandReportRepository.cs b/BMA.EHR.Application/Repositories/Commands/CommandReportRepository.cs index 75f98dd4..7db52edd 100644 --- a/BMA.EHR.Application/Repositories/Commands/CommandReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Commands/CommandReportRepository.cs @@ -99,11 +99,11 @@ namespace BMA.EHR.Application.Repositories.Commands PositionLevel = p.posLevelName == null ? "" : p.posLevelName, PositionType = p.posTypeName == null ? "" : p.posTypeName, PositionNumber = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", Salary = p.Amount == null ? "0" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), ExamNumber = p.ExamNumber == null ? "0" : p.ExamNumber.Value.ToString().ToThaiNumber(), @@ -152,11 +152,11 @@ namespace BMA.EHR.Application.Repositories.Commands PositionLevel = p.posLevelName == null ? "" : p.posLevelName, PositionType = p.posTypeName == null ? "" : p.posTypeName, PositionNumber = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", Salary = p.Amount == null ? "" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), ExamNumber = p.ExamNumber == null ? "" : p.ExamNumber.Value.ToString().ToThaiNumber(), @@ -206,11 +206,11 @@ namespace BMA.EHR.Application.Repositories.Commands OldPositionLevel = p.posLevelNameOld == null ? "" : p.posLevelNameOld, OldPositionType = p.posTypeNameOld == null ? "" : p.posTypeNameOld, OldPositionNumber = p.posMasterNoOld == null ? "" : - p.nodeOld == "4" ? $"{p.child4ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "3" ? $"{p.child3ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "2" ? $"{p.child2ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "1" ? $"{p.child1ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "0" ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "", + p.nodeOld == "4" ? $"{p.child4ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "3" ? $"{p.child3ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "2" ? $"{p.child2ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "1" ? $"{p.child1ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "0" ? $"{p.rootShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : "", OldSalary = p.AmountOld == null ? "" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = p.root == null ? "" : p.root, @@ -218,11 +218,11 @@ namespace BMA.EHR.Application.Repositories.Commands NewPositionLevel = p.posLevelName == null ? "" : p.posLevelName, NewPositionType = p.posTypeName == null ? "" : p.posTypeName, NewPositionNumber = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", NewSalary = p.Amount == null ? "" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), RemarkHorizontal = p.RemarkHorizontal, @@ -269,22 +269,22 @@ namespace BMA.EHR.Application.Repositories.Commands OldPositionLevel = p.posLevelNameOld == null ? "" : p.posLevelNameOld, OldPositionType = p.posTypeNameOld == null ? "" : p.posTypeNameOld, OldPositionNumber = p.posMasterNoOld == null ? "" : - p.nodeOld == "4" ? $"{p.child4ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "3" ? $"{p.child3ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "2" ? $"{p.child2ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "1" ? $"{p.child1ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "0" ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "", + p.nodeOld == "4" ? $"{p.child4ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "3" ? $"{p.child3ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "2" ? $"{p.child2ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "1" ? $"{p.child1ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "0" ? $"{p.rootShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : "", OldSalary = p.AmountOld == null ? "" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = p.root == null ? "" : p.root, NewPositionName = p.positionName == null ? "" : p.positionName, NewPositionLevel = p.posLevelName == null ? "" : p.posLevelName, NewPositionType = p.posTypeName == null ? "" : p.posTypeName, NewPositionNumber = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", NewSalary = p.Amount == null ? "" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber() }) @@ -329,22 +329,22 @@ namespace BMA.EHR.Application.Repositories.Commands OldPositionLevel = p.posLevelNameOld == null ? "" : p.posLevelNameOld, OldPositionType = p.posTypeNameOld == null ? "" : p.posTypeNameOld, OldPositionNumber = p.posMasterNoOld == null ? "" : - p.nodeOld == "4" ? $"{p.child4ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "3" ? $"{p.child3ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "2" ? $"{p.child2ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "1" ? $"{p.child1ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "0" ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "", + p.nodeOld == "4" ? $"{p.child4ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "3" ? $"{p.child3ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "2" ? $"{p.child2ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "1" ? $"{p.child1ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "0" ? $"{p.rootShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : "", OldSalary = p.AmountOld == null ? "" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = p.root == null ? "" : p.root, NewPositionName = p.positionName == null ? "" : p.positionName, NewPositionLevel = p.posLevelName == null ? "" : p.posLevelName, NewPositionType = p.posTypeName == null ? "" : p.posTypeName, NewPositionNumber = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", NewSalary = p.Amount == null ? "" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber() }) @@ -407,11 +407,11 @@ namespace BMA.EHR.Application.Repositories.Commands NewPositionLevel = p.posLevelName == null ? "" : p.posLevelName, NewPositionType = p.posTypeName == null ? "" : p.posTypeName, NewPositionNumber = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", NewSalary = r.Amount == null ? "" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), Reason = p.Reason == null ? "-" : p.Reason, @@ -477,11 +477,11 @@ namespace BMA.EHR.Application.Repositories.Commands NewPositionLevel = p.posLevelName == null ? "" : p.posLevelName, NewPositionType = p.posTypeName == null ? "" : p.posTypeName, NewPositionNumber = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", NewSalary = r.Amount == null ? "" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), Reason = p.Reason == null ? "-" : p.Reason, @@ -750,11 +750,11 @@ namespace BMA.EHR.Application.Repositories.Commands NewPositionLevel = p.posLevelName == null ? "" : p.posLevelName, NewPositionType = p.posTypeName == null ? "" : p.posTypeName, NewPositionNumber = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", NewSalary = r.Amount == null ? "" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), Reason = p.Reason == null ? "-" : p.Reason, @@ -1173,11 +1173,11 @@ namespace BMA.EHR.Application.Repositories.Commands NewPositionLevel = p.posLevelName == null ? "" : p.posLevelName.ToThaiNumber(), // NewPositionType = p.posTypeName == null ? "" : p.posTypeName, NewPositionNumber = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", NewSalary = r.Amount == null ? "" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), Reason = p.Reason == null ? "-" : p.Reason, }) @@ -1307,11 +1307,11 @@ namespace BMA.EHR.Application.Repositories.Commands NewPositionLevel = p.posLevelName == null ? "" : p.posLevelName, // NewPositionType = p.posTypeName == null ? "" : p.posTypeName, NewPositionNumber = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", NewSalary = r.Amount == null ? "" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), Reason = p.Reason == null ? "-" : p.Reason, }) diff --git a/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs b/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs index 52e1a517..02d03fe3 100644 --- a/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs +++ b/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs @@ -3113,11 +3113,11 @@ namespace BMA.EHR.Application.Repositories.Commands positionSalaryAmount = placementProfile.PositionSalaryAmount, mouthSalaryAmount = placementProfile.MouthSalaryAmount, posNo = placementProfile.posMasterNo == null ? "" : - placementProfile.node == 4 ? $"{placementProfile.child4ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 3 ? $"{placementProfile.child3ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 2 ? $"{placementProfile.child2ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 1 ? $"{placementProfile.child1ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 0 ? $"{placementProfile.rootShortName}{placementProfile.posMasterNo}" : "", + placementProfile.node == 4 ? $"{placementProfile.child4ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 3 ? $"{placementProfile.child3ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 2 ? $"{placementProfile.child2ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 1 ? $"{placementProfile.child1ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 0 ? $"{placementProfile.rootShortName} {placementProfile.posMasterNo}" : "", position = placementProfile.positionName == null ? string.Empty : placementProfile.positionName, positionLine = string.Empty, positionPathSide = string.Empty, @@ -3297,11 +3297,11 @@ namespace BMA.EHR.Application.Repositories.Commands positionSalaryAmount = recv.PositionSalaryAmount, mouthSalaryAmount = recv.MouthSalaryAmount, posNo = placementProfile.posMasterNo == null ? "" : - placementProfile.node == 4 ? $"{placementProfile.child4ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 3 ? $"{placementProfile.child3ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 2 ? $"{placementProfile.child2ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 1 ? $"{placementProfile.child1ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 0 ? $"{placementProfile.rootShortName}{placementProfile.posMasterNo}" : "", + placementProfile.node == 4 ? $"{placementProfile.child4ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 3 ? $"{placementProfile.child3ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 2 ? $"{placementProfile.child2ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 1 ? $"{placementProfile.child1ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 0 ? $"{placementProfile.rootShortName} {placementProfile.posMasterNo}" : "", position = placementProfile.positionName, positionLine = "", positionPathSide = "", @@ -3478,11 +3478,11 @@ namespace BMA.EHR.Application.Repositories.Commands positionSalaryAmount = recv.PositionSalaryAmount, mouthSalaryAmount = recv.MouthSalaryAmount, posNo = placementProfile.posMasterNo == null ? "" : - placementProfile.node == 4 ? $"{placementProfile.child4ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 3 ? $"{placementProfile.child3ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 2 ? $"{placementProfile.child2ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 1 ? $"{placementProfile.child1ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 0 ? $"{placementProfile.rootShortName}{placementProfile.posMasterNo}" : "", + placementProfile.node == 4 ? $"{placementProfile.child4ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 3 ? $"{placementProfile.child3ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 2 ? $"{placementProfile.child2ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 1 ? $"{placementProfile.child1ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 0 ? $"{placementProfile.rootShortName} {placementProfile.posMasterNo}" : "", position = placementProfile.positionName, positionLine = "", positionPathSide = "", @@ -3659,11 +3659,11 @@ namespace BMA.EHR.Application.Repositories.Commands positionSalaryAmount = recv.PositionSalaryAmount, mouthSalaryAmount = recv.MouthSalaryAmount, posNo = placementProfile.posMasterNo == null ? "" : - placementProfile.node == 4 ? $"{placementProfile.child4ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 3 ? $"{placementProfile.child3ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 2 ? $"{placementProfile.child2ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 1 ? $"{placementProfile.child1ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 0 ? $"{placementProfile.rootShortName}{placementProfile.posMasterNo}" : "", + placementProfile.node == 4 ? $"{placementProfile.child4ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 3 ? $"{placementProfile.child3ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 2 ? $"{placementProfile.child2ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 1 ? $"{placementProfile.child1ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 0 ? $"{placementProfile.rootShortName} {placementProfile.posMasterNo}" : "", position = placementProfile.positionName, positionLine = "", positionPathSide = "", @@ -3842,11 +3842,11 @@ namespace BMA.EHR.Application.Repositories.Commands positionSalaryAmount = recv.PositionSalaryAmount, mouthSalaryAmount = recv.MouthSalaryAmount, posNo = placementProfile.posMasterNo == null ? "" : - placementProfile.node == 4 ? $"{placementProfile.child4ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 3 ? $"{placementProfile.child3ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 2 ? $"{placementProfile.child2ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 1 ? $"{placementProfile.child1ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 0 ? $"{placementProfile.rootShortName}{placementProfile.posMasterNo}" : "", + placementProfile.node == 4 ? $"{placementProfile.child4ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 3 ? $"{placementProfile.child3ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 2 ? $"{placementProfile.child2ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 1 ? $"{placementProfile.child1ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 0 ? $"{placementProfile.rootShortName} {placementProfile.posMasterNo}" : "", position = placementProfile.position, positionLine = "", positionPathSide = "", @@ -4027,11 +4027,11 @@ namespace BMA.EHR.Application.Repositories.Commands positionSalaryAmount = recv.PositionSalaryAmount, mouthSalaryAmount = recv.MouthSalaryAmount, posNo = placementProfile.posMasterNo == null ? "" : - placementProfile.node == 4 ? $"{placementProfile.child4ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 3 ? $"{placementProfile.child3ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 2 ? $"{placementProfile.child2ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 1 ? $"{placementProfile.child1ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 0 ? $"{placementProfile.rootShortName}{placementProfile.posMasterNo}" : "", + placementProfile.node == 4 ? $"{placementProfile.child4ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 3 ? $"{placementProfile.child3ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 2 ? $"{placementProfile.child2ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 1 ? $"{placementProfile.child1ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 0 ? $"{placementProfile.rootShortName} {placementProfile.posMasterNo}" : "", position = placementProfile.position, positionLine = "", positionPathSide = "", @@ -4209,11 +4209,11 @@ namespace BMA.EHR.Application.Repositories.Commands positionSalaryAmount = recv.PositionSalaryAmount, mouthSalaryAmount = recv.MouthSalaryAmount, posNo = placementProfile.posMasterNo == null ? "" : - placementProfile.node == 4 ? $"{placementProfile.child4ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 3 ? $"{placementProfile.child3ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 2 ? $"{placementProfile.child2ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 1 ? $"{placementProfile.child1ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 0 ? $"{placementProfile.rootShortName}{placementProfile.posMasterNo}" : "", + placementProfile.node == 4 ? $"{placementProfile.child4ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 3 ? $"{placementProfile.child3ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 2 ? $"{placementProfile.child2ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 1 ? $"{placementProfile.child1ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 0 ? $"{placementProfile.rootShortName} {placementProfile.posMasterNo}" : "", position = placementProfile.position, positionLine = "", positionPathSide = "", @@ -5450,11 +5450,11 @@ namespace BMA.EHR.Application.Repositories.Commands positionSalaryAmount = recv.PositionSalaryAmount, mouthSalaryAmount = recv.MouthSalaryAmount, posNo = placementProfile.posMasterNo == null ? "" : - placementProfile.node == 4 ? $"{placementProfile.child4ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 3 ? $"{placementProfile.child3ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 2 ? $"{placementProfile.child2ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 1 ? $"{placementProfile.child1ShortName}{placementProfile.posMasterNo}" : - placementProfile.node == 0 ? $"{placementProfile.rootShortName}{placementProfile.posMasterNo}" : "", + placementProfile.node == 4 ? $"{placementProfile.child4ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 3 ? $"{placementProfile.child3ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 2 ? $"{placementProfile.child2ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 1 ? $"{placementProfile.child1ShortName} {placementProfile.posMasterNo}" : + placementProfile.node == 0 ? $"{placementProfile.rootShortName} {placementProfile.posMasterNo}" : "", position = placementProfile.position, positionLine = "", positionPathSide = "", @@ -6887,11 +6887,11 @@ namespace BMA.EHR.Application.Repositories.Commands positionSalaryAmount = recv.PositionSalaryAmount, mouthSalaryAmount = recv.MouthSalaryAmount, posNo = data.posMasterNo == null ? "" : - data.node == 4 ? $"{data.child4ShortName}{data.posMasterNo}" : - data.node == 3 ? $"{data.child3ShortName}{data.posMasterNo}" : - data.node == 2 ? $"{data.child2ShortName}{data.posMasterNo}" : - data.node == 1 ? $"{data.child1ShortName}{data.posMasterNo}" : - data.node == 0 ? $"{data.rootShortName}{data.posMasterNo}" : "", + data.node == 4 ? $"{data.child4ShortName} {data.posMasterNo}" : + data.node == 3 ? $"{data.child3ShortName} {data.posMasterNo}" : + data.node == 2 ? $"{data.child2ShortName} {data.posMasterNo}" : + data.node == 1 ? $"{data.child1ShortName} {data.posMasterNo}" : + data.node == 0 ? $"{data.rootShortName} {data.posMasterNo}" : "", position = data.position, positionType = data.posTypeName, positionLevel = data.posLevelName, @@ -7225,11 +7225,11 @@ namespace BMA.EHR.Application.Repositories.Commands positionSalaryAmount = recv.PositionSalaryAmount, mouthSalaryAmount = recv.MouthSalaryAmount, posNo = data.posMasterNo == null ? "" : - data.node == 4 ? $"{data.child4ShortName}{data.posMasterNo}" : - data.node == 3 ? $"{data.child3ShortName}{data.posMasterNo}" : - data.node == 2 ? $"{data.child2ShortName}{data.posMasterNo}" : - data.node == 1 ? $"{data.child1ShortName}{data.posMasterNo}" : - data.node == 0 ? $"{data.rootShortName}{data.posMasterNo}" : "", + data.node == 4 ? $"{data.child4ShortName} {data.posMasterNo}" : + data.node == 3 ? $"{data.child3ShortName} {data.posMasterNo}" : + data.node == 2 ? $"{data.child2ShortName} {data.posMasterNo}" : + data.node == 1 ? $"{data.child1ShortName} {data.posMasterNo}" : + data.node == 0 ? $"{data.rootShortName} {data.posMasterNo}" : "", position = data.position, positionType = data.posTypeName, positionLevel = data.posLevelName, diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs index 1208d103..5efde9da 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs @@ -317,11 +317,13 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers [HttpPost()] public async Task> CreateDiscipline([FromForm] DisciplineComplaint_AppealRequest req) { - var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position"; + var id = ""; + var type = ""; using (var client = new HttpClient()) { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Authorization = + new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); var _res = await client.SendAsync(_req); @@ -331,78 +333,85 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers if (org == null || org.result == null) return Success(new { data = new List(), total = 0 }); - var id = org.result.profileId; + id = org.result.profileId; if (id == "") return Success(new { data = new List(), total = 0 }); - var disciplineComplaint_Appeal = new Domain.Models.Discipline.DisciplineComplaint_Appeal + type = org.result.profileType; + } + + var disciplineComplaint_Appeal = new Domain.Models.Discipline.DisciplineComplaint_Appeal + { + Title = req.Title, + Description = req.Description, + Status = "NEW", + Type = req.Type.Trim().ToUpper(), + Year = req.Year == null ? DateTime.Now.Year : req.Year, + CaseType = req.CaseType, + CaseNumber = req.CaseNumber, + Fullname = req.Fullname, + CitizenId = req.CitizenId, + ProfileId = id, + Position = req.Position, + Oc = req.Oc, + profileType = type, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }; + var disciplineComplaint_Appeal_History = new DisciplineComplaint_Appeal_History + { + DisciplineComplaint_Appeal = disciplineComplaint_Appeal, + Status = "NEW", + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }; + // await _context.DisciplineComplaint_Appeals.AddAsync(disciplineComplaint_Appeal); + await _context.DisciplineComplaint_Appeal_Historys.AddAsync(disciplineComplaint_Appeal_History); + await _context.SaveChangesAsync(); + if (Request.Form.Files != null && Request.Form.Files.Count != 0) + { + foreach (var file in Request.Form.Files) { - Title = req.Title, - Description = req.Description, - Status = "NEW", - Type = req.Type.Trim().ToUpper(), - Year = req.Year == null ? DateTime.Now.Year : req.Year, - CaseType = req.CaseType, - CaseNumber = req.CaseNumber, - Fullname = req.Fullname, - CitizenId = req.CitizenId, - ProfileId = id, - Position = req.Position, - Oc = req.Oc, - profileType = org.result.profileType, - CreatedFullName = FullName ?? "System Administrator", - CreatedUserId = UserId ?? "", - CreatedAt = DateTime.Now, - LastUpdateFullName = FullName ?? "System Administrator", - LastUpdateUserId = UserId ?? "", - LastUpdatedAt = DateTime.Now, - }; - var disciplineComplaint_Appeal_History = new DisciplineComplaint_Appeal_History - { - DisciplineComplaint_Appeal = disciplineComplaint_Appeal, - Status = "NEW", - CreatedFullName = FullName ?? "System Administrator", - CreatedUserId = UserId ?? "", - CreatedAt = DateTime.Now, - LastUpdateFullName = FullName ?? "System Administrator", - LastUpdateUserId = UserId ?? "", - LastUpdatedAt = DateTime.Now, - }; - // await _context.DisciplineComplaint_Appeals.AddAsync(disciplineComplaint_Appeal); - await _context.DisciplineComplaint_Appeal_Historys.AddAsync(disciplineComplaint_Appeal_History); - await _context.SaveChangesAsync(); - if (Request.Form.Files != null && Request.Form.Files.Count != 0) - { - foreach (var file in Request.Form.Files) + var fileExtension = Path.GetExtension(file.FileName); + var doc = await _documentService.UploadFileAsync(file, file.FileName); + var _doc = await _context.Documents.AsQueryable() + .FirstOrDefaultAsync(x => x.Id == doc.Id); + if (_doc != null) { - var fileExtension = Path.GetExtension(file.FileName); - var doc = await _documentService.UploadFileAsync(file, file.FileName); - var _doc = await _context.Documents.AsQueryable() - .FirstOrDefaultAsync(x => x.Id == doc.Id); - if (_doc != null) + var disciplineComplaint_Appeal_Doc = new DisciplineComplaint_Appeal_Doc { - var disciplineComplaint_Appeal_Doc = new DisciplineComplaint_Appeal_Doc - { - DisciplineComplaint_Appeal = disciplineComplaint_Appeal, - Document = _doc, - CreatedFullName = FullName ?? "System Administrator", - CreatedUserId = UserId ?? "", - CreatedAt = DateTime.Now, - LastUpdateFullName = FullName ?? "System Administrator", - LastUpdateUserId = UserId ?? "", - LastUpdatedAt = DateTime.Now, - }; - await _context.DisciplineComplaint_Appeal_Docs.AddAsync(disciplineComplaint_Appeal_Doc); - } + DisciplineComplaint_Appeal = disciplineComplaint_Appeal, + Document = _doc, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }; + await _context.DisciplineComplaint_Appeal_Docs.AddAsync(disciplineComplaint_Appeal_Doc); } } - var baseAPIOrg = _configuration["API"]; - var apiUrlOrg = $"{baseAPIOrg}/org/workflow/find/director"; - var refId = new List(); - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + } + var baseAPIOrg = _configuration["API"]; + var apiUrlOrg = $"{baseAPIOrg}/org/workflow/find/director"; + var refId = new List(); + + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = + new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); var __res = await client.PostAsJsonAsync(apiUrlOrg, new { - refId = new List { id }, + refId = new List { Guid.Parse(id) }, }); var __result = await __res.Content.ReadAsStringAsync(); var __org = JsonConvert.DeserializeObject(__result); @@ -410,6 +419,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers { refId = __org.result.Select(x => Guid.Parse(x.id)).ToList(); } + await _repositoryNoti.PushNotificationsAsync( refId.ToArray(), $"āļĄāļĩāļ„āļģāļ‚āļ­āļĒāļ·āđˆāļ™āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒāļˆāļēāļ {req.Fullname}", @@ -419,10 +429,10 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers true, true ); - await _context.SaveChangesAsync(); - return Success(disciplineComplaint_Appeal.Id); } + await _context.SaveChangesAsync(); + return Success(disciplineComplaint_Appeal.Id); } /// diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineSuspendController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineSuspendController.cs index a3ac490d..aaa2b38a 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineSuspendController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineSuspendController.cs @@ -58,7 +58,7 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpGet()] - public async Task> GetDisciplineSuspend(int page = 1, int pageSize = 25, string keyword = "", string profileType = "") + public async Task> GetDisciplineSuspend(DateTime? startDate, DateTime? endDate, int page = 1, int pageSize = 25, string keyword = "", string profileType = "") { var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_DISCIPLINE_SUSPENDED"); var jsonData = JsonConvert.DeserializeObject(getPermission); @@ -68,6 +68,16 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers } var data_search = (from x in _context.DisciplineReport_Profiles.Include(x => x.DisciplineDisciplinary) where + ( + endDate != null && startDate != null? + ( + (x.StartDateSuspend.Value.Date >= startDate.Value.Date && x.StartDateSuspend.Value.Date <= endDate.Value.Date) || + (x.EndDateSuspend.Value.Date >= startDate.Value.Date && x.EndDateSuspend.Value.Date <= endDate.Value.Date) || + (x.StartDateSuspend.Value.Date <= startDate.Value.Date && x.EndDateSuspend.Value.Date >= endDate.Value.Date) + ) : + true + ) + && ( (x.CitizenId != null && x.CitizenId.Contains(keyword)) || ((x.Prefix ?? "") + (x.FirstName ?? "") + " " + (x.LastName ?? "")).Contains(keyword) || diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementDeceasedNoti.cs b/BMA.EHR.Domain/Models/Retirement/RetirementDeceasedNoti.cs index 741d3fd1..03ff6172 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementDeceasedNoti.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementDeceasedNoti.cs @@ -37,10 +37,10 @@ namespace BMA.EHR.Domain.Models.Retirement public bool IsSendNotification { get; set; } = true; [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡")] - public string OrganizationName { get; set; } = string.Empty; + public string? OrganizationName { get; set; } = string.Empty; [Comment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡")] - public string PositionName { get; set; } = string.Empty; + public string? PositionName { get; set; } = string.Empty; [Comment("Fk Table Document")] public Document? Document { get; set; } diff --git a/BMA.EHR.Infrastructure/Migrations/20250405091100_update_table_placementRepatriation_add_refId1.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250405091100_update_table_placementRepatriation_add_refId1.Designer.cs new file mode 100644 index 00000000..287e3aad --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250405091100_update_table_placementRepatriation_add_refId1.Designer.cs @@ -0,0 +1,20074 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250405091100_update_table_placementRepatriation_add_refId1")] + partial class update_table_placementRepatriation_add_refId1 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250405091100_update_table_placementRepatriation_add_refId1.cs b/BMA.EHR.Infrastructure/Migrations/20250405091100_update_table_placementRepatriation_add_refId1.cs new file mode 100644 index 00000000..24c563f1 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250405091100_update_table_placementRepatriation_add_refId1.cs @@ -0,0 +1,82 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class update_table_placementRepatriation_add_refId1 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "PositionName", + table: "RetirementDeceasedNotis", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡", + oldClrType: typeof(string), + oldType: "longtext", + oldComment: "āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡") + .Annotation("MySql:CharSet", "utf8mb4") + .OldAnnotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AlterColumn( + name: "OrganizationName", + table: "RetirementDeceasedNotis", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡", + oldClrType: typeof(string), + oldType: "longtext", + oldComment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡") + .Annotation("MySql:CharSet", "utf8mb4") + .OldAnnotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.UpdateData( + table: "RetirementDeceasedNotis", + keyColumn: "PositionName", + keyValue: null, + column: "PositionName", + value: ""); + + migrationBuilder.AlterColumn( + name: "PositionName", + table: "RetirementDeceasedNotis", + type: "longtext", + nullable: false, + comment: "āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡", + oldClrType: typeof(string), + oldType: "longtext", + oldNullable: true, + oldComment: "āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡") + .Annotation("MySql:CharSet", "utf8mb4") + .OldAnnotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.UpdateData( + table: "RetirementDeceasedNotis", + keyColumn: "OrganizationName", + keyValue: null, + column: "OrganizationName", + value: ""); + + migrationBuilder.AlterColumn( + name: "OrganizationName", + table: "RetirementDeceasedNotis", + type: "longtext", + nullable: false, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡", + oldClrType: typeof(string), + oldType: "longtext", + oldNullable: true, + oldComment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡") + .Annotation("MySql:CharSet", "utf8mb4") + .OldAnnotation("MySql:CharSet", "utf8mb4"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index fdfae870..bb002941 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -14839,12 +14839,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); b.Property("OrganizationName") - .IsRequired() .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); b.Property("PositionName") - .IsRequired() .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 2ff52c69..fb31a742 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -457,7 +457,7 @@ namespace BMA.EHR.Placement.Service.Controllers placementAppointment.PositionExecutiveOld = org.result.posExecutiveName; placementAppointment.PositionLevelOld = org.result.posLevelName; placementAppointment.PositionTypeOld = org.result.posTypeName; - placementAppointment.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; + placementAppointment.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + (org.result.child3 == null ? "" : org.result.child3 + "\n") + (org.result.child2 == null ? "" : org.result.child2 + "\n") + @@ -831,11 +831,11 @@ namespace BMA.EHR.Placement.Service.Controllers NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "-", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "-", NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), @@ -1041,11 +1041,11 @@ namespace BMA.EHR.Placement.Service.Controllers NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "-", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "-", NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), @@ -1250,11 +1250,11 @@ namespace BMA.EHR.Placement.Service.Controllers (p.root == null ? "" : $"{p.root}"), NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName.ToThaiNumber(), NewPositionNumber = p.posMasterNo == null ? "-" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), RemarkHorizontal = r.RemarkHorizontal, RemarkVertical = r.RemarkVertical, @@ -1439,11 +1439,11 @@ namespace BMA.EHR.Placement.Service.Controllers FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", OldOc = p.OrganizationPositionOld == null ? "-" : p.OrganizationPositionOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : - p.child4Old != null ? $"{p.child4ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.child3Old != null ? $"{p.child3ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.child2Old != null ? $"{p.child2ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.child1Old != null ? $"{p.child1ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.rootOld != null ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", + p.child4Old != null ? $"{p.child4ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.child3Old != null ? $"{p.child3ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.child2Old != null ? $"{p.child2ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.child1Old != null ? $"{p.child1ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.rootOld != null ? $"{p.rootShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = (p.position == null ? "" : $"{p.position}\n") + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + @@ -1453,11 +1453,11 @@ namespace BMA.EHR.Placement.Service.Controllers (p.child1 == null ? "" : $"{p.child1}\n") + (p.root == null ? "" : $"{p.root}"), NewPositionNumber = p.posMasterNo == null ? "-" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), ReportingDate = p.ReportingDate == null ? "" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), @@ -1652,11 +1652,11 @@ namespace BMA.EHR.Placement.Service.Controllers OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : - p.child4Old != null ? $"{p.child4ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.child3Old != null ? $"{p.child3ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.child2Old != null ? $"{p.child2ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.child1Old != null ? $"{p.child1ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.rootOld != null ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", + p.child4Old != null ? $"{p.child4ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.child3Old != null ? $"{p.child3ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.child2Old != null ? $"{p.child2ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.child1Old != null ? $"{p.child1ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.rootOld != null ? $"{p.rootShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), PositionDate = p.PositionDate == null ? "-" : p.PositionDate.Value.ToThaiShortDate2().ToThaiNumber(), NewOc = (p.position == null ? "" : $"{p.position}\n") + @@ -1669,11 +1669,11 @@ namespace BMA.EHR.Placement.Service.Controllers NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index ddd7728f..a3d0cf47 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -482,7 +482,7 @@ namespace BMA.EHR.Placement.Service.Controllers placementAppointment.positionOld = org.result.position; placementAppointment.PositionLevelOld = org.result.posLevelName; placementAppointment.PositionTypeOld = org.result.posTypeName; - placementAppointment.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; + placementAppointment.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; placementAppointment.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + (org.result.child3 == null ? "" : org.result.child3 + "\n") + (org.result.child2 == null ? "" : org.result.child2 + "\n") + diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index eb07ddf3..51f35a74 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1639,11 +1639,11 @@ namespace BMA.EHR.Placement.Service.Controllers PositionType = p.posTypeName == null ? "-" : p.posTypeName, PositionLevel = p.posLevelName == null ? "-" : p.posLevelName, PositionNumber = p.posMasterNo == null ? "-" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "-", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "-", Salary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), @@ -1970,11 +1970,11 @@ namespace BMA.EHR.Placement.Service.Controllers PositionType = p.posTypeName == null ? "-" : p.posTypeName, PositionLevel = p.posLevelName == null ? "-" : p.posLevelName, PositionNumber = p.posMasterNo == null ? "-" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "-", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "-", Salary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), @@ -2294,11 +2294,11 @@ namespace BMA.EHR.Placement.Service.Controllers OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : - p.nodeOld == "4" ? $"{p.child4ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "3" ? $"{p.child3ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "2" ? $"{p.child2ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "1" ? $"{p.child1ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "0" ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", + p.nodeOld == "4" ? $"{p.child4ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "3" ? $"{p.child3ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "2" ? $"{p.child2ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "1" ? $"{p.child1ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "0" ? $"{p.rootShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), OldPosition = p.positionNameOld == null ? "-" : p.positionNameOld, NewOc = (p.positionName == null ? "" : $"{p.positionName}\n") + @@ -2312,11 +2312,11 @@ namespace BMA.EHR.Placement.Service.Controllers NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "-", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "-", NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), @@ -2527,11 +2527,11 @@ namespace BMA.EHR.Placement.Service.Controllers OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : - p.nodeOld == "4" ? $"{p.child4ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "3" ? $"{p.child3ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "2" ? $"{p.child2ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "1" ? $"{p.child1ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "0" ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", + p.nodeOld == "4" ? $"{p.child4ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "3" ? $"{p.child3ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "2" ? $"{p.child2ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "1" ? $"{p.child1ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "0" ? $"{p.rootShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = (p.positionName == null ? "" : $"{p.positionName}\n") + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + @@ -2544,11 +2544,11 @@ namespace BMA.EHR.Placement.Service.Controllers NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "-", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "-", NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), @@ -2747,11 +2747,11 @@ namespace BMA.EHR.Placement.Service.Controllers OldPositionType = p.posTypeNameOld == null ? "-" : p.posTypeNameOld, OldPositionLevel = p.posLevelNameOld == null ? "-" : p.posLevelNameOld, OldPositionNumber = p.posMasterNoOld == null ? "-" : - p.nodeOld == "4" ? $"{p.child4ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "3" ? $"{p.child3ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "2" ? $"{p.child2ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "1" ? $"{p.child1ShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : - p.nodeOld == "0" ? $"{p.rootShortNameOld}{p.posMasterNoOld}".ToThaiNumber() : "-", + p.nodeOld == "4" ? $"{p.child4ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "3" ? $"{p.child3ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "2" ? $"{p.child2ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "1" ? $"{p.child1ShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : + p.nodeOld == "0" ? $"{p.rootShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.Amount == null ? "-" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = "-", NewOc = (p.positionName == null ? "" : $"{p.positionName}\n") + @@ -2764,11 +2764,11 @@ namespace BMA.EHR.Placement.Service.Controllers NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "-", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "-", NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), RemarkHorizontal = r.RemarkHorizontal, diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index a84aec2c..0eecf85d 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -405,7 +405,7 @@ namespace BMA.EHR.Placement.Service.Controllers placementOfficer.PositionExecutiveOld = org.result.posExecutiveName; placementOfficer.PositionLevelOld = org.result.posLevelName; placementOfficer.PositionTypeOld = org.result.posTypeName; - placementOfficer.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; + placementOfficer.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; placementOfficer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + (org.result.child3 == null ? "" : org.result.child3 + "\n") + (org.result.child2 == null ? "" : org.result.child2 + "\n") + diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index e4a39d58..15ec2a2c 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -500,7 +500,7 @@ namespace BMA.EHR.Placement.Service.Controllers placementReceive.PositionExecutiveOld = org.result.posExecutiveName; placementReceive.PositionLevelOld = org.result.posLevelName; placementReceive.PositionTypeOld = org.result.posTypeName; - placementReceive.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; + placementReceive.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; placementReceive.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + (org.result.child3 == null ? "" : org.result.child3 + "\n") + (org.result.child2 == null ? "" : org.result.child2 + "\n") + @@ -960,11 +960,11 @@ namespace BMA.EHR.Placement.Service.Controllers NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, NewPositionNumber = p.posMasterNo == null ? "-" : - p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() : - p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "", + p.node == 4 ? $"{p.child4ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 3 ? $"{p.child3ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 2 ? $"{p.child2ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : + p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index 8b3b4a9c..aeb23069 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -291,7 +291,7 @@ namespace BMA.EHR.Placement.Service.Controllers placementRepatriation.PositionExecutiveOld = org.result.posExecutiveName; placementRepatriation.PositionLevelOld = org.result.posLevelName; placementRepatriation.PositionTypeOld = org.result.posTypeName; - placementRepatriation.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; + placementRepatriation.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; placementRepatriation.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + (org.result.child3 == null ? "" : org.result.child3 + "\n") + (org.result.child2 == null ? "" : org.result.child2 + "\n") + diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index d38ba020..cb78bacd 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -540,7 +540,7 @@ namespace BMA.EHR.Placement.Service.Controllers placementTransfer.PositionExecutiveOld = org.result.posExecutiveName; placementTransfer.PositionLevelOld = org.result.posLevelName; placementTransfer.PositionTypeOld = org.result.posTypeName; - placementTransfer.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; + placementTransfer.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; placementTransfer.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + (org.result.child3 == null ? "" : org.result.child3 + "\n") + (org.result.child2 == null ? "" : org.result.child2 + "\n") + diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 6152ec16..5e8b16ec 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -398,7 +398,7 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOther.PositionExecutiveOld = org.result.posExecutiveName; retirementOther.PositionLevelOld = org.result.posLevelName; retirementOther.PositionTypeOld = org.result.posTypeName; - retirementOther.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; + retirementOther.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; retirementOther.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + (org.result.child3 == null ? "" : org.result.child3 + "\n") + (org.result.child2 == null ? "" : org.result.child2 + "\n") + diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index db256dfe..236afd4c 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -302,7 +302,7 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOut.PositionExecutiveOld = org.result.posExecutiveName; retirementOut.PositionLevelOld = org.result.posLevelName; retirementOut.PositionTypeOld = org.result.posTypeName; - retirementOut.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; + retirementOut.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + (org.result.child3 == null ? "" : org.result.child3 + "\n") + (org.result.child2 == null ? "" : org.result.child2 + "\n") + @@ -357,7 +357,7 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOut.PositionOld = org.result.position; retirementOut.PositionLevelOld = org.result.posLevelName; retirementOut.PositionTypeOld = org.result.posTypeName; - retirementOut.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; + retirementOut.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; retirementOut.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + (org.result.child3 == null ? "" : org.result.child3 + "\n") + (org.result.child2 == null ? "" : org.result.child2 + "\n") + diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 992b3e85..63ff1b91 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -942,7 +942,7 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementResign.PositionExecutiveOld = org.result.posExecutiveName; retirementResign.PositionLevelOld = org.result.posLevelName; retirementResign.PositionTypeOld = org.result.posTypeName; - retirementResign.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; + retirementResign.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; retirementResign.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + (org.result.child3 == null ? "" : org.result.child3 + "\n") + (org.result.child2 == null ? "" : org.result.child2 + "\n") + diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 909663a5..c7940960 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -877,7 +877,7 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementResignEmployee.PositionOld = org.result.position; retirementResignEmployee.PositionLevelOld = org.result.posLevelName; retirementResignEmployee.PositionTypeOld = org.result.posTypeName; - retirementResignEmployee.PositionNumberOld = org.result.nodeShortName + org.result.posMasterNo; + retirementResignEmployee.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; retirementResignEmployee.OrganizationOld = (org.result.child4 == null ? "" : org.result.child4 + "\n") + (org.result.child3 == null ? "" : org.result.child3 + "\n") + (org.result.child2 == null ? "" : org.result.child2 + "\n") + From 0bc0fb2c99a08d853aa2c20085536ad02d40de66 Mon Sep 17 00:00:00 2001 From: moss <> Date: Sat, 5 Apr 2025 18:05:04 +0700 Subject: [PATCH 199/879] re command --- BMA.EHR.Discipline.Service/Requests/ReportPersonRequest.cs | 2 +- BMA.EHR.Placement.Service/Requests/ReportPersonRequest.cs | 2 +- BMA.EHR.Retirement.Service/Requests/ReportPersonRequest.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Requests/ReportPersonRequest.cs b/BMA.EHR.Discipline.Service/Requests/ReportPersonRequest.cs index b8d37c24..1bd61c56 100644 --- a/BMA.EHR.Discipline.Service/Requests/ReportPersonRequest.cs +++ b/BMA.EHR.Discipline.Service/Requests/ReportPersonRequest.cs @@ -6,6 +6,6 @@ namespace BMA.EHR.Discipline.Service.Requests public class ReportPersonRequest { public string[] refIds { get; set; } - public string status { get; set; } + public string? status { get; set; } } } diff --git a/BMA.EHR.Placement.Service/Requests/ReportPersonRequest.cs b/BMA.EHR.Placement.Service/Requests/ReportPersonRequest.cs index c345f6bf..a7e311b0 100644 --- a/BMA.EHR.Placement.Service/Requests/ReportPersonRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/ReportPersonRequest.cs @@ -6,6 +6,6 @@ namespace BMA.EHR.Placement.Service.Requests public class ReportPersonRequest { public string[] refIds { get; set; } - public string status { get; set; } + public string? status { get; set; } } } diff --git a/BMA.EHR.Retirement.Service/Requests/ReportPersonRequest.cs b/BMA.EHR.Retirement.Service/Requests/ReportPersonRequest.cs index 31fd36dd..968628a4 100644 --- a/BMA.EHR.Retirement.Service/Requests/ReportPersonRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/ReportPersonRequest.cs @@ -6,6 +6,6 @@ namespace BMA.EHR.Retirement.Service.Requests public class ReportPersonRequest { public string[] refIds { get; set; } - public string status { get; set; } + public string? status { get; set; } } } From 221f700722d9ef5e426b07dce0d7a146ab6d02ea Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 8 Apr 2025 17:03:33 +0700 Subject: [PATCH 200/879] report leave --- .../Leaves/TimeAttendants/ProcessUserTimeStampRepository.cs | 4 +++- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/ProcessUserTimeStampRepository.cs b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/ProcessUserTimeStampRepository.cs index ee897d88..17d07e75 100644 --- a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/ProcessUserTimeStampRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/ProcessUserTimeStampRepository.cs @@ -139,7 +139,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants return data; } - public async Task> GetTimestampByDateLateAsync(string type, string role, string nodeId, int node) + public async Task> GetTimestampByDateLateAsync(string type, string role, string nodeId, int node, DateTime StartDate, DateTime EndDate) { var _nodeId = Guid.Parse(nodeId); var data = new List(); @@ -147,6 +147,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants { data = await _dbContext.Set().AsQueryable() .Where(x => x.CheckInStatus == "LATE") + .Where(u => u.CheckIn.Date >= StartDate && u.CheckIn.Date <= EndDate) .Where(x => x.ProfileType == type.Trim().ToUpper()) .Where(x => node == 4 ? x.Child4Id == _nodeId : (node == 3 ? x.Child3Id == _nodeId : (node == 2 ? x.Child2Id == _nodeId : (node == 1 ? x.Child1Id == _nodeId : (node == 0 ? x.RootId == _nodeId : true))))) .ToListAsync(); @@ -155,6 +156,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants { data = await _dbContext.Set().AsQueryable() .Where(x => x.CheckInStatus == "LATE") + .Where(u => u.CheckIn.Date >= StartDate && u.CheckIn.Date <= EndDate) .Where(x => x.ProfileType == type.Trim().ToUpper()) .Where(x => node == 4 ? x.Child4Id == _nodeId : (node == 3 ? x.Child3Id == _nodeId : (node == 2 ? x.Child2Id == _nodeId : (node == 1 ? x.Child1Id == _nodeId : (node == 0 ? x.RootId == _nodeId : true))))) .Where(x => node == 0 ? x.Child1Id == null : (node == 1 ? x.Child2Id == null : (node == 2 ? x.Child3Id == null : (node == 3 ? x.Child4Id == null : true)))) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index cf530522..1f00526f 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -197,7 +197,7 @@ namespace BMA.EHR.Leave.Service.Controllers // approver = list.First().Name; //} - + return new { @@ -1357,7 +1357,7 @@ namespace BMA.EHR.Leave.Service.Controllers count++; } } - employees = employees.OrderBy(x => x.checkInTimeRaw ?? DateTime.MaxValue).ThenBy(x => x.checkOutTimeRaw ?? DateTime.MaxValue).ToList(); + employees = employees.OrderBy(x => x.checkInDate).ThenBy(x => x.checkInTimeRaw ?? DateTime.MaxValue).ThenBy(x => x.checkOutTimeRaw ?? DateTime.MaxValue).ToList(); for (int i = 0; i < employees.Count; i++) { employees[i].no = i + 1; @@ -1421,7 +1421,7 @@ namespace BMA.EHR.Leave.Service.Controllers var employees = new List(); var count = 1; - var userTimeStamps = await _processUserTimeStampRepository.GetTimestampByDateLateAsync(type.Trim().ToUpper(), jsonData["result"]?.ToString(), req.nodeId, req.node); + var userTimeStamps = await _processUserTimeStampRepository.GetTimestampByDateLateAsync(type.Trim().ToUpper(), jsonData["result"]?.ToString(), req.nodeId, req.node, req.StartDate, req.EndDate); foreach (var p in userTimeStamps) { var fullName = $"{p.Prefix}{p.FirstName} {p.LastName}"; From db20be6e503599d9df2ca50fc46728fc5047559f Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 8 Apr 2025 17:44:59 +0700 Subject: [PATCH 201/879] =?UTF-8?q?Noti=20=E0=B8=9E=E0=B8=99=E0=B8=B1?= =?UTF-8?q?=E0=B8=81=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=9C=E0=B8=B9=E0=B9=89?= =?UTF-8?q?=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=AD=E0=B8=B8=E0=B8=97=E0=B8=98?= =?UTF-8?q?=E0=B8=A3=E0=B8=93=E0=B9=8C=20&=20filter=20=E0=B8=A3=E0=B8=B2?= =?UTF-8?q?=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=94=E0=B8=B3=E0=B9=80=E0=B8=99=E0=B8=B4=E0=B8=99=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B8=97=E0=B8=B2=E0=B8=87=E0=B8=A7=E0=B8=B4?= =?UTF-8?q?=E0=B8=99=E0=B8=B1=E0=B8=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DisciplineComplaint_AppealController.cs | 6 ++- .../Controllers/DisciplineReportController.cs | 52 +++++++++++++------ 2 files changed, 40 insertions(+), 18 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs index 5efde9da..0b063984 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs @@ -401,7 +401,8 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers } } var baseAPIOrg = _configuration["API"]; - var apiUrlOrg = $"{baseAPIOrg}/org/workflow/find/director"; + var system = "SYS_DISCIPLINE_APPEAL"; + var apiUrlOrg = $"{baseAPIOrg}/org/workflow/find/director/{system}"; var refId = new List(); using (var client = new HttpClient()) @@ -508,7 +509,8 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers } } var baseAPIOrg = _configuration["API"]; - var apiUrlOrg = $"{baseAPIOrg}/org/workflow/find/director"; + var system = "SYS_DISCIPLINE_APPEAL"; + var apiUrlOrg = $"{baseAPIOrg}/org/workflow/find/director/{system}"; var refId = new List(); using (var client = new HttpClient()) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs index f819e6a0..d189108a 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs @@ -74,20 +74,20 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - var profile = new List(); - if (type.Trim().ToUpper() == "OFFICER") - { - profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficer(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); - } - else - { - profile = await _userProfileRepository.GetProfileWithKeycloakAllEmployee(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); - } + //var profile = new List(); + //if (type.Trim().ToUpper() == "OFFICER") + //{ + // profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficer(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + //} + //else + //{ + // profile = await _userProfileRepository.GetProfileWithKeycloakAllEmployee(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + //} - if (req.posLevel != null || req.posType != null) - { - profile = profile.Where(x => x.PositionType == req.posType || x.PositionLevel == req.posLevel).ToList(); - } + //if (req.posLevel != null || req.posType != null) + //{ + // profile = profile.Where(x => x.PositionType == req.posType || x.PositionLevel == req.posLevel).ToList(); + //} var data_search = await _context.DisciplineDisciplinarys .Include(x => x.DisciplineDisciplinary_ProfileComplaintInvestigates) @@ -122,9 +122,25 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers : "" : "", faultLevel = d.DisciplinaryFaultLevel, + Child4Id = profile.child4Id, + Child4 = profile.child4, + Child3Id = profile.child3Id, + Child3 = profile.child3, + Child2Id = profile.child2Id, + Child2 = profile.child2, + Child1Id = profile.child1Id, + Child1 = profile.child1, + RootId = profile.rootId, + Root = profile.root, + PosType = profile.posTypeName, + PosLevel = profile.posLevelName })) - .Where(x => - x.citizenId != null && profile.Any(p => p.CitizenId == x.citizenId)) + //.Where(x => + // x.citizenId != null && profile.Any(p => p.CitizenId == x.citizenId)) + .Where(x => req.node == 4 ? x.Child4Id == req.nodeId : (req.node == 3 ? x.Child3Id == req.nodeId : (req.node == 2 ? x.Child2Id == req.nodeId : (req.node == 1 ? x.Child1Id == req.nodeId : (req.node == 0 ? x.RootId == req.nodeId : (req.node == null ? true : true)))))) + .Where(x => jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD" ? true : (req.node == 0 ? x.Child1Id == null : (req.node == 1 ? x.Child2Id == null : (req.node == 2 ? x.Child3Id == null : (req.node == 3 ? x.Child4Id == null : true))))) + .Where(x => string.IsNullOrEmpty(req.posType) || x.PosType == req.posType) + .Where(x => string.IsNullOrEmpty(req.posLevel) || x.PosLevel == req.posLevel) .OrderByDescending(x => x.CreatedAt) .ToList(); @@ -139,7 +155,11 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers citizenId = p.citizenId, position = p.position, posLevel = p.posLevel, - oc = profile.FirstOrDefault(x => x.CitizenId == p.citizenId)?.Oc ?? "", + oc = (p.Child4 == null ? "" : p.Child4 + "\n") + + (p.Child3 == null ? "" : p.Child3 + "\n") + + (p.Child2 == null ? "" : p.Child2 + "\n") + + (p.Child1 == null ? "" : p.Child1 + "\n") + + (p.Root == null ? "" : p.Root), offense = p.offense, faultLevel = p.faultLevel, one = 0, From a4d2e5dc15ec75265e6e6441b396c19b947b69dd Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 8 Apr 2025 18:01:31 +0700 Subject: [PATCH 202/879] salary-leave-discipline --- .../Controllers/DisciplineResultController.cs | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs index 1b8ae559..e8fb21b7 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs @@ -835,6 +835,13 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers commandCode = r.commandCode, commandName = r.commandName, remark = r.remark, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + posNo = p.posMasterNo, + posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -964,6 +971,13 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers commandCode = r.commandCode, commandName = r.commandName, remark = r.remark, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + posNo = p.posMasterNo, + posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1171,6 +1185,13 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers commandCode = r.commandCode, commandName = r.commandName, remark = r.remark, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + posNo = p.posMasterNo, + posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1289,6 +1310,13 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers commandCode = r.commandCode, commandName = r.commandName, remark = r.remark, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + posNo = p.posMasterNo, + posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1405,6 +1433,13 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers commandCode = r.commandCode, commandName = r.commandName, remark = r.remark, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + posNo = p.posMasterNo, + posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1521,6 +1556,13 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers commandCode = r.commandCode, commandName = r.commandName, remark = r.remark, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + posNo = p.posMasterNo, + posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1637,6 +1679,13 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers commandCode = r.commandCode, commandName = r.commandName, remark = r.remark, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + posNo = p.posMasterNo, + posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1753,6 +1802,13 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers commandCode = r.commandCode, commandName = r.commandName, remark = r.remark, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + posNo = p.posMasterNo, + posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1869,6 +1925,13 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers commandCode = r.commandCode, commandName = r.commandName, remark = r.remark, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + posNo = p.posMasterNo, + posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -2001,7 +2064,15 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers commandCode = r.commandCode, commandName = r.commandName, remark = r.remark, + orgRoot = p.root, + orgChild1 = p.child1, + orgChild2 = p.child2, + orgChild3 = p.child3, + orgChild4 = p.child4, + posNo = p.posMasterNo, + posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); + var baseAPIOrg = _configuration["API"]; var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave-discipline"; using (var client = new HttpClient()) From 50f3d22090622e030ae328ac3e1edd590c87a94d Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 9 Apr 2025 16:05:07 +0700 Subject: [PATCH 203/879] Add Migration --- .../LeaveRequests/LeaveRequestRepository.cs | 13 +- .../Models/Leave/Requests/LeaveRequest.cs | 4 + ...250409082848_Add Leave SubType.Designer.cs | 1368 ++++++++++++++++ .../20250409082848_Add Leave SubType.cs | 29 + ...54_Add Leave CommanderPosition.Designer.cs | 1371 +++++++++++++++++ ...50409090154_Add Leave CommanderPosition.cs | 29 + .../LeaveDb/LeaveDbContextModelSnapshot.cs | 6 + .../Controllers/LeaveRequestController.cs | 20 +- .../LeaveRequest/CreateLeaveRequestDto.cs | 3 + .../GetCancelLeaveRequestByIdDto.cs | 2 + .../GetLeaveCancelRequestResultDto.cs | 4 +- .../LeaveRequest/GetLeaveRequestByIdDto.cs | 2 + .../GetLeaveRequestForAdminByIdDto.cs | 2 + .../GetLeaveRequestForAdminResultDto.cs | 2 + 14 files changed, 2846 insertions(+), 9 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409082848_Add Leave SubType.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409082848_Add Leave SubType.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409090154_Add Leave CommanderPosition.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409090154_Add Leave CommanderPosition.cs diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index bdd93692..cb3820c4 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -240,6 +240,10 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests public async Task GetRestDayTotalByYearForUserAsync(Guid keycloakUserId, int year) { + var startFiscalDate = new DateTime(year - 1, 10, 1); + var endFiscalDate = new DateTime(year, 9, 30); + + var leaveType = await _dbContext.Set().AsQueryable().AsNoTracking() .FirstOrDefaultAsync(l => l.Code.Trim().ToUpper() == "LV-005"); @@ -252,7 +256,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Include(x => x.Type) .Where(x => x.KeycloakUserId == keycloakUserId) .Where(x => x.Type.Id == leaveType.Id) - .Where(x => x.LeaveStartDate.Year == year) + //.Where(x => x.LeaveStartDate.Year == year) + .Where(x => x.LeaveStartDate.Date >= startFiscalDate && x.LeaveStartDate.Date <= endFiscalDate) .Where(x => x.LeaveStatus == "APPROVE") .Sum(x => x.LeaveTotal); @@ -261,11 +266,15 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests public async Task GetSumLeaveByTypeForUserAsync(Guid keycloakUserId, Guid leaveTypeId, int year) { + var startFiscalDate = new DateTime(year - 1, 10, 1); + var endFiscalDate = new DateTime(year, 9, 30); + var data = await _dbContext.Set().AsQueryable().AsNoTracking() .Include(x => x.Type) .Where(x => x.KeycloakUserId == keycloakUserId) .Where(x => x.Type.Id == leaveTypeId) - .Where(x => x.LeaveStartDate.Year == year) + //.Where(x => x.LeaveStartDate.Year == year) + .Where(x => x.LeaveStartDate.Date >= startFiscalDate && x.LeaveStartDate.Date <= endFiscalDate) .Where(x => x.LeaveStatus == "APPROVE") //.Where(x => x.LeaveStatus != "REJECT" && x.LeaveStatus != "DELETE") .ToListAsync(); diff --git a/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs b/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs index 3e3d2ef2..ea730276 100644 --- a/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs +++ b/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs @@ -191,5 +191,9 @@ namespace BMA.EHR.Domain.Models.Leave.Requests public DateTime? BirthDate { get; set; } = DateTime.MinValue; public DateTime? DateAppoint { get; set; } = DateTime.MinValue; + public string? LeaveSubTypeName { get; set; } = string.Empty; + + public string? CommanderPosition { get; set; } = string.Empty; + } } diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409082848_Add Leave SubType.Designer.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409082848_Add Leave SubType.Designer.cs new file mode 100644 index 00000000..50070c0a --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409082848_Add Leave SubType.Designer.cs @@ -0,0 +1,1368 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + [DbContext(typeof(LeaveDbContext))] + [Migration("20250409082848_Add Leave SubType")] + partial class AddLeaveSubType + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Code") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Limit") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļŠāļđāļ‡āļŠāļļāļ”āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("LeaveTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDays") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļē"); + + b.Property("LeaveTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.HasIndex("LeaveTypeId"); + + b.ToTable("LeaveBeginnings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AbsentDayAt") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayGetIn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayLocation") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayRegistorDate") + .HasColumnType("datetime(6)"); + + b.Property("AbsentDaySummon") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("CancelLeaveWrote") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ (āļ‚āļ­āļĒāļāđ€āļĨāļīāļ)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CoupleDayCountryHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayEndDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDayLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayLevelCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayPosition") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayStartDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDaySumTotalHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayTotalHistory") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("Dear") + .HasColumnType("longtext") + .HasComment("āđ€āļĢāļĩāļĒāļ™āđƒāļ„āļĢ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("HajjDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveAddress") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveBirthDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveCancelComment") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveCancelDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveCancelStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("LeaveDetail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļĨāļē"); + + b.Property("LeaveDirectorComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļ­āļģāļ™āļ§āļĒāļāļēāļĢāļŠāļģāļ™āļąāļ"); + + b.Property("LeaveDraftDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("LeaveGovernmentDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveLast") + .HasColumnType("datetime(6)"); + + b.Property("LeaveNumber") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveRange") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļē āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveSalary") + .HasColumnType("int"); + + b.Property("LeaveSalaryText") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LeaveStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļĨāļē"); + + b.Property("LeaveStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļĢāđ‰āļ­āļ‡"); + + b.Property("LeaveSubTypeName") + .HasColumnType("longtext"); + + b.Property("LeaveTotal") + .HasColumnType("double"); + + b.Property("LeaveTypeCode") + .HasColumnType("longtext") + .HasComment("code āļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveWrote") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ"); + + b.Property("OrdainDayBuddhistLentAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayBuddhistLentName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationNumber") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayOrdination") + .HasColumnType("datetime(6)"); + + b.Property("OrdainDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionLevelName") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RestDayCurrentTotal") + .HasColumnType("double"); + + b.Property("RestDayOldTotal") + .HasColumnType("double"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("StudyDayCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayDegreeLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayScholarship") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDaySubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingSubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayUniversityName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("TypeId") + .HasColumnType("char(36)"); + + b.Property("WifeDayDateBorn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("WifeDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("LeaveCancelDocumentId"); + + b.HasIndex("LeaveDraftDocumentId"); + + b.HasIndex("TypeId"); + + b.ToTable("LeaveRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.AdditionalCheckRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckDate") + .HasColumnType("datetime(6)") + .HasComment("*āļ§āļąāļ™āļ—āļĩāđˆāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("CheckInEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("CheckOutEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđƒāļ™āļāļēāļĢāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("*āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āļ‚āļ­"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("AdditionalCheckRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ"); + + b.Property("EndTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("EndTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļīāļ”āđƒāļŠāđ‰āļ‡āļēāļ™ (āđ€āļ›āļīāļ”/āļ›āļīāļ”)"); + + b.Property("IsDefault") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ§āđˆāļēāļĢāļ­āļšāđƒāļ”āđ€āļ›āđ‡āļ™āļ„āđˆāļē Default āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ (āļŠāļģāļŦāļĢāļąāļšāļ—āļļāļāļ„āļ™āļ—āļĩāđˆāļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ—āļģāļāļēāļĢāđ€āļĨāļ·āļ­āļāļĢāļ­āļš)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("StartTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("StartTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("DutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.ProcessUserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckInStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("CheckOutStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EditReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("EditStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ‚āļ­āļ‡āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("ProcessUserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserCalendar", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Calendar") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļāļīāļ—āļīāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡ āļ‚āļĢāļ āļ›āļāļ•āļī āļŦāļĢāļ·āļ­ 6 āļ§āļąāļ™āļ•āđˆāļ­āļŠāļąāļ›āļ”āļēāļŦāđŒ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("UserCalendars"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("EffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļœāļĨ"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DutyTimeId"); + + b.ToTable("UserDutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("UserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "LeaveType") + .WithMany() + .HasForeignKey("LeaveTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("LeaveDocument") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveCancelDocument") + .WithMany() + .HasForeignKey("LeaveCancelDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveDraftDocument") + .WithMany() + .HasForeignKey("LeaveDraftDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "Type") + .WithMany() + .HasForeignKey("TypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveCancelDocument"); + + b.Navigation("LeaveDraftDocument"); + + b.Navigation("Type"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", "DutyTime") + .WithMany() + .HasForeignKey("DutyTimeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DutyTime"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Navigation("LeaveDocument"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409082848_Add Leave SubType.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409082848_Add Leave SubType.cs new file mode 100644 index 00000000..14411688 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409082848_Add Leave SubType.cs @@ -0,0 +1,29 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + /// + public partial class AddLeaveSubType : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "LeaveSubTypeName", + table: "LeaveRequests", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "LeaveSubTypeName", + table: "LeaveRequests"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409090154_Add Leave CommanderPosition.Designer.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409090154_Add Leave CommanderPosition.Designer.cs new file mode 100644 index 00000000..6c2f91c0 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409090154_Add Leave CommanderPosition.Designer.cs @@ -0,0 +1,1371 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + [DbContext(typeof(LeaveDbContext))] + [Migration("20250409090154_Add Leave CommanderPosition")] + partial class AddLeaveCommanderPosition + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Code") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Limit") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļŠāļđāļ‡āļŠāļļāļ”āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("LeaveTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDays") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļē"); + + b.Property("LeaveTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.HasIndex("LeaveTypeId"); + + b.ToTable("LeaveBeginnings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AbsentDayAt") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayGetIn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayLocation") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayRegistorDate") + .HasColumnType("datetime(6)"); + + b.Property("AbsentDaySummon") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("CancelLeaveWrote") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ (āļ‚āļ­āļĒāļāđ€āļĨāļīāļ)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CommanderPosition") + .HasColumnType("longtext"); + + b.Property("CoupleDayCountryHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayEndDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDayLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayLevelCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayPosition") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayStartDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDaySumTotalHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayTotalHistory") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("Dear") + .HasColumnType("longtext") + .HasComment("āđ€āļĢāļĩāļĒāļ™āđƒāļ„āļĢ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("HajjDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveAddress") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveBirthDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveCancelComment") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveCancelDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveCancelStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("LeaveDetail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļĨāļē"); + + b.Property("LeaveDirectorComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļ­āļģāļ™āļ§āļĒāļāļēāļĢāļŠāļģāļ™āļąāļ"); + + b.Property("LeaveDraftDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("LeaveGovernmentDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveLast") + .HasColumnType("datetime(6)"); + + b.Property("LeaveNumber") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveRange") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļē āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveSalary") + .HasColumnType("int"); + + b.Property("LeaveSalaryText") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LeaveStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļĨāļē"); + + b.Property("LeaveStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļĢāđ‰āļ­āļ‡"); + + b.Property("LeaveSubTypeName") + .HasColumnType("longtext"); + + b.Property("LeaveTotal") + .HasColumnType("double"); + + b.Property("LeaveTypeCode") + .HasColumnType("longtext") + .HasComment("code āļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveWrote") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ"); + + b.Property("OrdainDayBuddhistLentAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayBuddhistLentName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationNumber") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayOrdination") + .HasColumnType("datetime(6)"); + + b.Property("OrdainDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionLevelName") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RestDayCurrentTotal") + .HasColumnType("double"); + + b.Property("RestDayOldTotal") + .HasColumnType("double"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("StudyDayCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayDegreeLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayScholarship") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDaySubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingSubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayUniversityName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("TypeId") + .HasColumnType("char(36)"); + + b.Property("WifeDayDateBorn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("WifeDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("LeaveCancelDocumentId"); + + b.HasIndex("LeaveDraftDocumentId"); + + b.HasIndex("TypeId"); + + b.ToTable("LeaveRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.AdditionalCheckRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckDate") + .HasColumnType("datetime(6)") + .HasComment("*āļ§āļąāļ™āļ—āļĩāđˆāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("CheckInEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("CheckOutEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđƒāļ™āļāļēāļĢāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("*āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āļ‚āļ­"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("AdditionalCheckRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ"); + + b.Property("EndTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("EndTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļīāļ”āđƒāļŠāđ‰āļ‡āļēāļ™ (āđ€āļ›āļīāļ”/āļ›āļīāļ”)"); + + b.Property("IsDefault") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ§āđˆāļēāļĢāļ­āļšāđƒāļ”āđ€āļ›āđ‡āļ™āļ„āđˆāļē Default āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ (āļŠāļģāļŦāļĢāļąāļšāļ—āļļāļāļ„āļ™āļ—āļĩāđˆāļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ—āļģāļāļēāļĢāđ€āļĨāļ·āļ­āļāļĢāļ­āļš)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("StartTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("StartTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("DutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.ProcessUserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckInStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("CheckOutStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EditReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("EditStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ‚āļ­āļ‡āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("ProcessUserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserCalendar", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Calendar") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļāļīāļ—āļīāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡ āļ‚āļĢāļ āļ›āļāļ•āļī āļŦāļĢāļ·āļ­ 6 āļ§āļąāļ™āļ•āđˆāļ­āļŠāļąāļ›āļ”āļēāļŦāđŒ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("UserCalendars"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("EffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļœāļĨ"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DutyTimeId"); + + b.ToTable("UserDutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("UserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "LeaveType") + .WithMany() + .HasForeignKey("LeaveTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("LeaveDocument") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveCancelDocument") + .WithMany() + .HasForeignKey("LeaveCancelDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveDraftDocument") + .WithMany() + .HasForeignKey("LeaveDraftDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "Type") + .WithMany() + .HasForeignKey("TypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveCancelDocument"); + + b.Navigation("LeaveDraftDocument"); + + b.Navigation("Type"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", "DutyTime") + .WithMany() + .HasForeignKey("DutyTimeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DutyTime"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Navigation("LeaveDocument"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409090154_Add Leave CommanderPosition.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409090154_Add Leave CommanderPosition.cs new file mode 100644 index 00000000..ce1c055d --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409090154_Add Leave CommanderPosition.cs @@ -0,0 +1,29 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + /// + public partial class AddLeaveCommanderPosition : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "CommanderPosition", + table: "LeaveRequests", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "CommanderPosition", + table: "LeaveRequests"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs index 3ed10221..0a0e94c9 100644 --- a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs @@ -320,6 +320,9 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb b.Property("CitizenId") .HasColumnType("longtext"); + b.Property("CommanderPosition") + .HasColumnType("longtext"); + b.Property("CoupleDayCountryHistory") .HasColumnType("longtext"); @@ -481,6 +484,9 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb .HasColumnType("longtext") .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļĢāđ‰āļ­āļ‡"); + b.Property("LeaveSubTypeName") + .HasColumnType("longtext"); + b.Property("LeaveTotal") .HasColumnType("double"); diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index e73e5f45..a0b50b1e 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -170,6 +170,7 @@ namespace BMA.EHR.Leave.Service.Controllers var leaveRequest = new LeaveRequest { Type = leaveType, + LeaveSubTypeName = req.LeaveSubTypeName, LeaveRange = req.LeaveRange, LeaveStartDate = req.LeaveStartDate, LeaveEndDate = req.LeaveEndDate, @@ -1170,7 +1171,7 @@ namespace BMA.EHR.Leave.Service.Controllers LeaveTypeId = item.Type.Id, LeaveTypeName = item.Type.Name, FullName = $"{item.Prefix}{item.FirstName} {item.LastName}", - DateSendLeave = item.CreatedAt.Date, + DateSendLeave = item.CreatedAt, IsDelete = item.LeaveStatus == "DELETE", Status = item.LeaveStatus, LeaveStartDate = item.LeaveStartDate, @@ -1233,15 +1234,17 @@ namespace BMA.EHR.Leave.Service.Controllers var sumWeekend = _holidayRepository.GetWeekEndCount(rawData.LeaveStartDate, rawData.LeaveEndDate, category); - var orgName = rawData.Root ?? ""; + var orgName = ""; if (rawData.Child1 != null && rawData.Child1 != "") - orgName += $"/{rawData.Child1}"; + orgName += $" {rawData.Child1}"; if (rawData.Child2 != null && rawData.Child2 != "") - orgName += $"/{rawData.Child2}"; + orgName += $" {rawData.Child2}"; if (rawData.Child3 != null && rawData.Child3 != "") - orgName += $"/{rawData.Child3}"; + orgName += $" {rawData.Child3}"; if (rawData.Child4 != null && rawData.Child4 != "") - orgName += $"/{rawData.Child4}"; + orgName += $" {rawData.Child4}"; + if (rawData.Root != null && rawData.Root != "") + orgName += $" {rawData.Root}"; var result = new GetLeaveRequestByIdDto @@ -1249,6 +1252,7 @@ namespace BMA.EHR.Leave.Service.Controllers Id = rawData.Id, LeaveRange = rawData.LeaveRange ?? "", LeaveTypeName = rawData.Type.Name, + LeaveSubTypeName = rawData.LeaveSubTypeName, LeaveTypeId = rawData.Type.Id, FullName = $"{rawData.Prefix}{rawData.FirstName} {rawData.LastName}", DateSendLeave = rawData.CreatedAt, @@ -1397,6 +1401,7 @@ namespace BMA.EHR.Leave.Service.Controllers Id = item.Id, LeaveTypeId = item.Type.Id, LeaveTypeName = item.Type.Name, + LeaveSubTypeName = item.LeaveSubTypeName, FullName = $"{item.Prefix}{item.FirstName} {item.LastName}", ProfileType = item.ProfileType ?? "-", DateSendLeave = item.CreatedAt, @@ -1509,6 +1514,7 @@ namespace BMA.EHR.Leave.Service.Controllers Id = item.Id, LeaveTypeId = item.Type.Id, LeaveTypeName = item.Type.Name, + LeaveSubTypeName = item.LeaveSubTypeName, ProfileType = item.ProfileType ?? "-", FullName = $"{item.Prefix}{item.FirstName} {item.LastName}", DateSendLeave = item.CreatedAt.Date, @@ -1561,6 +1567,7 @@ namespace BMA.EHR.Leave.Service.Controllers { Id = rawData.Id, LeaveTypeName = rawData.Type.Name, + LeaveSubTypeName = rawData.LeaveSubTypeName, FullName = $"{rawData.Prefix}{rawData.FirstName} {rawData.LastName}", Status = rawData.LeaveCancelStatus ?? "", LeaveStartDate = rawData.LeaveStartDate, @@ -1894,6 +1901,7 @@ namespace BMA.EHR.Leave.Service.Controllers ReasonOligarch = rawData.LeaveDirectorComment ?? "", ProfileType = rawData.ProfileType, LeaveTypeName = rawData.Type.Name, + LeaveSubTypeName = rawData.LeaveSubTypeName, LeaveTypeId = rawData.Type.Id, FullName = $"{rawData.Prefix}{rawData.FirstName} {rawData.LastName}", DateSendLeave = rawData.CreatedAt, diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs index aa7d390c..e5e19cef 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs @@ -7,6 +7,8 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest [Required] public Guid Type { get; set; } = Guid.Empty; + public string? LeaveSubTypeName { get; set; } = string.Empty; + [Required] public DateTime LeaveStartDate { get; set; } = DateTime.Now; @@ -97,5 +99,6 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string? CoupleDaySumTotalHistory { get; set; } + } } diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetCancelLeaveRequestByIdDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetCancelLeaveRequestByIdDto.cs index 2859ba6f..c44d35b6 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetCancelLeaveRequestByIdDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetCancelLeaveRequestByIdDto.cs @@ -6,6 +6,8 @@ public string LeaveTypeName { get; set; } = string.Empty; + public string? LeaveSubTypeName { get; set; } = string.Empty; + public string FullName { get; set; } = string.Empty; public string Status { get; set; } = string.Empty; diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCancelRequestResultDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCancelRequestResultDto.cs index a8023f5e..8bede60f 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCancelRequestResultDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCancelRequestResultDto.cs @@ -6,7 +6,9 @@ public string LeaveTypeName { get; set; } - public Guid LeaveTypeId { get; set; } + public string? LeaveSubTypeName { get; set; } = string.Empty; + + public Guid LeaveTypeId { get; set; } public string FullName { get; set; } diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs index b97474a2..73d1563f 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs @@ -9,6 +9,8 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string LeaveTypeName { get; set; } = string.Empty; + public string? LeaveSubTypeName { get; set; } = string.Empty; + public Guid LeaveTypeId { get; set; } = Guid.Empty; public string FullName { get; set; } = string.Empty; diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs index 22759a03..57492b78 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs @@ -18,6 +18,8 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string LeaveTypeName { get; set; } = string.Empty; + public string? LeaveSubTypeName { get; set; } = string.Empty; + public Guid LeaveTypeId { get; set; } = Guid.Empty; public string FullName { get; set; } = string.Empty; diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs index b5873f22..19aa8b96 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs @@ -6,6 +6,8 @@ public string LeaveTypeName { get; set; } = string.Empty; + public string? LeaveSubTypeName { get; set; } = string.Empty; + public Guid LeaveTypeId { get; set; } = Guid.Empty; public string FullName { get; set; } = string.Empty; From 59be7ac619e8ecd4f5396dfc2493ae9c67d1ca1b Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 9 Apr 2025 16:19:54 +0700 Subject: [PATCH 204/879] - commander position --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 13 +++++++++++++ .../DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs | 2 ++ .../LeaveRequest/GetLeaveRequestForAdminByIdDto.cs | 2 ++ .../LeaveRequest/GetUserLeaveProfileResultDto.cs | 4 ++++ 4 files changed, 21 insertions(+) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index a0b50b1e..8002bcd0 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -170,6 +170,7 @@ namespace BMA.EHR.Leave.Service.Controllers var leaveRequest = new LeaveRequest { Type = leaveType, + LeaveSubTypeName = req.LeaveSubTypeName, LeaveRange = req.LeaveRange, LeaveStartDate = req.LeaveStartDate, @@ -356,6 +357,10 @@ namespace BMA.EHR.Leave.Service.Controllers leaveRequest.LeaveTypeCode = leaveType.Code; leaveRequest.Dear = approver; + + // āđ€āļžāļīāđˆāļĄāļ•āļģāđāļŦāļ™āđˆāļ‡ + //leaveRequest.CommanderPosition = req.CommanderPosition ?? ""; + leaveRequest.PositionName = profile.Position == null ? "" : profile.Position; leaveRequest.PositionLevelName = profile.PosLevel == null ? "" : profile.PosLevel; leaveRequest.OrganizationName = userOc; @@ -471,6 +476,8 @@ namespace BMA.EHR.Leave.Service.Controllers oldData.LeaveTotal = req.LeaveTotal; oldData.LeaveSalaryText = req.LeaveSalaryText ?? ""; + //oldData.CommanderPosition = req.CommanderPosition ?? ""; + /*** remove old code var leaveRequest = new LeaveRequest @@ -636,6 +643,10 @@ namespace BMA.EHR.Leave.Service.Controllers oldData.LeaveTypeCode = leaveType.Code; oldData.Dear = profile.Commander ?? ""; + + //oldData.CommanderPosition = profile.CommanderPosition ?? ""; + + oldData.PositionName = profile.Position == null ? "" : profile.Position; oldData.PositionLevelName = profile.PosLevel == null ? "" : profile.PosLevel; oldData.OrganizationName = profile.Oc ?? ""; @@ -1322,6 +1333,7 @@ namespace BMA.EHR.Leave.Service.Controllers CoupleDaySumTotalHistory = rawData.CoupleDaySumTotalHistory, Dear = rawData.Dear ?? "", + CommanderPosition = rawData.CommanderPosition ?? "", PositionName = rawData.PositionName ?? "", PositionLevelName = rawData.PositionLevelName ?? "", OrganizationName = orgName, @@ -1975,6 +1987,7 @@ namespace BMA.EHR.Leave.Service.Controllers // āđ€āļ›āļĨāļĩāđˆāļĒāļ™āļĄāļēāļ­āđˆāļēāļ™āļˆāļēāļāļāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđāļ—āļ™ read_db Dear = rawData.Dear ?? "", + CommanderPosition = rawData.CommanderPosition ?? "", PositionName = rawData.PositionName ?? "", PositionLevelName = rawData.PositionLevelName ?? "", OrganizationName = orgName, diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs index 73d1563f..508c9173 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs @@ -128,5 +128,7 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string? OrganizationName { get; set; } = string.Empty; public DateTime? LeaveLast { get; set; } + + public string? CommanderPosition { get; set; } = string.Empty; } } diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs index 57492b78..71c5d970 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs @@ -136,5 +136,7 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string LeaveRange { get; set; } = string.Empty; public string? ProfileType { get; set; } + + public string? CommanderPosition { get; set; } = string.Empty; } } diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileResultDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileResultDto.cs index ea512127..5434223d 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileResultDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileResultDto.cs @@ -8,6 +8,10 @@ public string Dear { get; set; } + public string? LeaveSubTypeName { get; set; } = string.Empty; + + public string? CommanderPosition { get; set; } = string.Empty; + public string FullName { get; set; } public string PositionName { get; set; } From 885478f672dfd187ead3bf715e7e0277807e9ee5 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 17 Apr 2025 09:31:05 +0700 Subject: [PATCH 205/879] add commander position and leave approvers --- .../Profiles/GetProfileByKeycloakIdDto.cs | 2 + .../Models/Leave/Requests/LeaveRequest.cs | 2 + .../Leave/Requests/LeaveRequestApprover.cs | 27 + ...50417022255_Add LeaveApprovers.Designer.cs | 1474 +++++++++++++++++ .../20250417022255_Add LeaveApprovers.cs | 71 + .../LeaveDb/LeaveDbContextModelSnapshot.cs | 103 ++ .../Persistence/LeaveDbContext.cs | 2 + .../Controllers/LeaveRequestController.cs | 6 +- 8 files changed, 1685 insertions(+), 2 deletions(-) create mode 100644 BMA.EHR.Domain/Models/Leave/Requests/LeaveRequestApprover.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250417022255_Add LeaveApprovers.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250417022255_Add LeaveApprovers.cs diff --git a/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs b/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs index b9ac4725..bb377f3e 100644 --- a/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs +++ b/BMA.EHR.Application/Responses/Profiles/GetProfileByKeycloakIdDto.cs @@ -81,6 +81,8 @@ namespace BMA.EHR.Application.Responses.Profiles public string? PositionLeaveName { get; set; } + public string? CommanderPositionName { get; set; } = string.Empty; + } public class PosLevel diff --git a/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs b/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs index ea730276..64c6bef8 100644 --- a/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs +++ b/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs @@ -195,5 +195,7 @@ namespace BMA.EHR.Domain.Models.Leave.Requests public string? CommanderPosition { get; set; } = string.Empty; + public List Approvers { get; set; } = new(); + } } diff --git a/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequestApprover.cs b/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequestApprover.cs new file mode 100644 index 00000000..88e86dd7 --- /dev/null +++ b/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequestApprover.cs @@ -0,0 +1,27 @@ +ïŧŋusing BMA.EHR.Domain.Models.Base; + +namespace BMA.EHR.Domain.Models.Leave.Requests +{ + public class LeaveRequestApprover: EntityBase + { + public LeaveRequest LeaveRequest { get; set; } + + public int Seq { get; set; } = 0; + + public string Prefix { get; set; } = string.Empty; + + public string FirstName { get; set; } = string.Empty; + + public string LastName { get; set; } = string.Empty; + + public string PositionName { get; set; } = string.Empty; + + public Guid ProfileId { get; set; } = Guid.Empty; + + public Guid KeycloakId { get; set; } = Guid.Empty; + + public string ApproveStatus { get; set; } = string.Empty; + + public string Comment { get; set; } = string.Empty; + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250417022255_Add LeaveApprovers.Designer.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250417022255_Add LeaveApprovers.Designer.cs new file mode 100644 index 00000000..85f4c8e5 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250417022255_Add LeaveApprovers.Designer.cs @@ -0,0 +1,1474 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + [DbContext(typeof(LeaveDbContext))] + [Migration("20250417022255_Add LeaveApprovers")] + partial class AddLeaveApprovers + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Code") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Limit") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļŠāļđāļ‡āļŠāļļāļ”āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("LeaveTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDays") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļē"); + + b.Property("LeaveTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.HasIndex("LeaveTypeId"); + + b.ToTable("LeaveBeginnings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AbsentDayAt") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayGetIn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayLocation") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayRegistorDate") + .HasColumnType("datetime(6)"); + + b.Property("AbsentDaySummon") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("CancelLeaveWrote") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ (āļ‚āļ­āļĒāļāđ€āļĨāļīāļ)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CommanderPosition") + .HasColumnType("longtext"); + + b.Property("CoupleDayCountryHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayEndDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDayLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayLevelCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayPosition") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayStartDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDaySumTotalHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayTotalHistory") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("Dear") + .HasColumnType("longtext") + .HasComment("āđ€āļĢāļĩāļĒāļ™āđƒāļ„āļĢ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("HajjDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveAddress") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveBirthDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveCancelComment") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveCancelDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveCancelStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("LeaveDetail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļĨāļē"); + + b.Property("LeaveDirectorComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļ­āļģāļ™āļ§āļĒāļāļēāļĢāļŠāļģāļ™āļąāļ"); + + b.Property("LeaveDraftDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("LeaveGovernmentDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveLast") + .HasColumnType("datetime(6)"); + + b.Property("LeaveNumber") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveRange") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļē āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveSalary") + .HasColumnType("int"); + + b.Property("LeaveSalaryText") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LeaveStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļĨāļē"); + + b.Property("LeaveStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļĢāđ‰āļ­āļ‡"); + + b.Property("LeaveSubTypeName") + .HasColumnType("longtext"); + + b.Property("LeaveTotal") + .HasColumnType("double"); + + b.Property("LeaveTypeCode") + .HasColumnType("longtext") + .HasComment("code āļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveWrote") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ"); + + b.Property("OrdainDayBuddhistLentAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayBuddhistLentName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationNumber") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayOrdination") + .HasColumnType("datetime(6)"); + + b.Property("OrdainDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionLevelName") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RestDayCurrentTotal") + .HasColumnType("double"); + + b.Property("RestDayOldTotal") + .HasColumnType("double"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("StudyDayCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayDegreeLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayScholarship") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDaySubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingSubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayUniversityName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("TypeId") + .HasColumnType("char(36)"); + + b.Property("WifeDayDateBorn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("WifeDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("LeaveCancelDocumentId"); + + b.HasIndex("LeaveDraftDocumentId"); + + b.HasIndex("TypeId"); + + b.ToTable("LeaveRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveRequestApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.AdditionalCheckRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckDate") + .HasColumnType("datetime(6)") + .HasComment("*āļ§āļąāļ™āļ—āļĩāđˆāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("CheckInEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("CheckOutEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđƒāļ™āļāļēāļĢāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("*āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āļ‚āļ­"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("AdditionalCheckRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ"); + + b.Property("EndTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("EndTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļīāļ”āđƒāļŠāđ‰āļ‡āļēāļ™ (āđ€āļ›āļīāļ”/āļ›āļīāļ”)"); + + b.Property("IsDefault") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ§āđˆāļēāļĢāļ­āļšāđƒāļ”āđ€āļ›āđ‡āļ™āļ„āđˆāļē Default āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ (āļŠāļģāļŦāļĢāļąāļšāļ—āļļāļāļ„āļ™āļ—āļĩāđˆāļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ—āļģāļāļēāļĢāđ€āļĨāļ·āļ­āļāļĢāļ­āļš)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("StartTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("StartTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("DutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.ProcessUserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckInStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("CheckOutStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EditReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("EditStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ‚āļ­āļ‡āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("ProcessUserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserCalendar", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Calendar") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļāļīāļ—āļīāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡ āļ‚āļĢāļ āļ›āļāļ•āļī āļŦāļĢāļ·āļ­ 6 āļ§āļąāļ™āļ•āđˆāļ­āļŠāļąāļ›āļ”āļēāļŦāđŒ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("UserCalendars"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("EffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļœāļĨ"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DutyTimeId"); + + b.ToTable("UserDutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("UserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "LeaveType") + .WithMany() + .HasForeignKey("LeaveTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("LeaveDocument") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveCancelDocument") + .WithMany() + .HasForeignKey("LeaveCancelDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveDraftDocument") + .WithMany() + .HasForeignKey("LeaveDraftDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "Type") + .WithMany() + .HasForeignKey("TypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveCancelDocument"); + + b.Navigation("LeaveDraftDocument"); + + b.Navigation("Type"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("Approvers") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", "DutyTime") + .WithMany() + .HasForeignKey("DutyTimeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DutyTime"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Navigation("Approvers"); + + b.Navigation("LeaveDocument"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250417022255_Add LeaveApprovers.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250417022255_Add LeaveApprovers.cs new file mode 100644 index 00000000..13894111 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250417022255_Add LeaveApprovers.cs @@ -0,0 +1,71 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + /// + public partial class AddLeaveApprovers : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "LeaveRequestApprovers", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + LeaveRequestId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + Seq = table.Column(type: "int", nullable: false), + Prefix = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + FirstName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + LastName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + PositionName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ProfileId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + KeycloakId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + ApproveStatus = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Comment = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_LeaveRequestApprovers", x => x.Id); + table.ForeignKey( + name: "FK_LeaveRequestApprovers_LeaveRequests_LeaveRequestId", + column: x => x.LeaveRequestId, + principalTable: "LeaveRequests", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateIndex( + name: "IX_LeaveRequestApprovers_LeaveRequestId", + table: "LeaveRequestApprovers", + column: "LeaveRequestId"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "LeaveRequestApprovers"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs index 0a0e94c9..4e378377 100644 --- a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs @@ -608,6 +608,96 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb b.ToTable("LeaveRequests"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveRequestApprovers"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.AdditionalCheckRequest", b => { b.Property("Id") @@ -1347,6 +1437,17 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb b.Navigation("Type"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("Approvers") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveRequest"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => { b.HasOne("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", "DutyTime") @@ -1360,6 +1461,8 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => { + b.Navigation("Approvers"); + b.Navigation("LeaveDocument"); }); #pragma warning restore 612, 618 diff --git a/BMA.EHR.Infrastructure/Persistence/LeaveDbContext.cs b/BMA.EHR.Infrastructure/Persistence/LeaveDbContext.cs index 1b2dcbdf..c6d37b7a 100644 --- a/BMA.EHR.Infrastructure/Persistence/LeaveDbContext.cs +++ b/BMA.EHR.Infrastructure/Persistence/LeaveDbContext.cs @@ -34,6 +34,8 @@ namespace BMA.EHR.Infrastructure.Persistence public DbSet LeaveBeginnings { get; set; } + public DbSet LeaveRequestApprovers { get; set; } + #endregion diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 8002bcd0..25a391de 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -357,6 +357,7 @@ namespace BMA.EHR.Leave.Service.Controllers leaveRequest.LeaveTypeCode = leaveType.Code; leaveRequest.Dear = approver; + leaveRequest.CommanderPosition = profile.CommanderPositionName ?? ""; // āđ€āļžāļīāđˆāļĄāļ•āļģāđāļŦāļ™āđˆāļ‡ //leaveRequest.CommanderPosition = req.CommanderPosition ?? ""; @@ -643,8 +644,7 @@ namespace BMA.EHR.Leave.Service.Controllers oldData.LeaveTypeCode = leaveType.Code; oldData.Dear = profile.Commander ?? ""; - - //oldData.CommanderPosition = profile.CommanderPosition ?? ""; + oldData.CommanderPosition = profile.CommanderPositionName ?? ""; oldData.PositionName = profile.Position == null ? "" : profile.Position; @@ -802,6 +802,8 @@ namespace BMA.EHR.Leave.Service.Controllers FullName = $"{profile.Prefix}{profile.FirstName} {profile.LastName}", Dear = profile.Commander ?? "", + CommanderPosition = profile.CommanderPositionName ?? "", + PositionName = profile.Position == null ? "" : profile.Position, PositionLevelName = profile.PosLevel == null ? "" : profile.PosLevel, OrganizationName = orgName, //profile.Oc ?? "", From 28b573bfb8bebbcd30d26275f33584c9abf29ebe Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 17 Apr 2025 10:58:09 +0700 Subject: [PATCH 206/879] =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97?= =?UTF-8?q?=E0=B8=B6=E0=B8=81=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B8=B8=E0=B8=A1=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=A5=E0=B8=B2=20=E0=B9=82=E0=B9=82=E0=B8=A2?= =?UTF-8?q?=E0=B9=81=E0=B8=9B=E0=B8=A5=E0=B8=87=20json=20=E0=B8=97?= =?UTF-8?q?=E0=B8=B5=E0=B9=88=E0=B8=A1=E0=B8=B2=E0=B8=88=E0=B8=B2=E0=B8=81?= =?UTF-8?q?=20FormData?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/LeaveRequestController.cs | 29 +++++++++++++++++-- .../LeaveRequest/CreateLeaveRequestDto.cs | 28 +++++++++++++++++- 2 files changed, 54 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 25a391de..632d5e4e 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -20,6 +20,7 @@ using Swashbuckle.AspNetCore.Annotations; using System.Net.Http.Headers; using System.Security.Claims; using System.Security.Policy; +using System.Text.Json.Nodes; namespace BMA.EHR.Leave.Service.Controllers { @@ -170,7 +171,7 @@ namespace BMA.EHR.Leave.Service.Controllers var leaveRequest = new LeaveRequest { Type = leaveType, - + LeaveSubTypeName = req.LeaveSubTypeName, LeaveRange = req.LeaveRange, LeaveStartDate = req.LeaveStartDate, @@ -366,6 +367,30 @@ namespace BMA.EHR.Leave.Service.Controllers leaveRequest.PositionLevelName = profile.PosLevel == null ? "" : profile.PosLevel; leaveRequest.OrganizationName = userOc; + if (req.Approvers != null && req.Approvers != "") + { + //var jsonString = System.Text.Json.JsonSerializer.Deserialize(req.Approvers ?? ""); + //var fixedJson = req.Approvers.Replace("\\\"", "\""); + var approvers = JsonConvert.DeserializeObject>(req.Approvers); + if (approver != null) + { + foreach (var r in approvers!) + { + leaveRequest.Approvers.Add(new LeaveRequestApprover + { + Seq = r.Seq, + Prefix = r.Prefix, + FirstName = r.FirstName, + LastName = r.LastName, + PositionName = r.PositionName, + ProfileId = r.ProfileId, + KeycloakId = r.KeycloakId, + ApproveStatus = "PENDING", + }); + } + } + + } // save to database @@ -1989,7 +2014,7 @@ namespace BMA.EHR.Leave.Service.Controllers // āđ€āļ›āļĨāļĩāđˆāļĒāļ™āļĄāļēāļ­āđˆāļēāļ™āļˆāļēāļāļāļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđāļ—āļ™ read_db Dear = rawData.Dear ?? "", - CommanderPosition = rawData.CommanderPosition ?? "", + CommanderPosition = rawData.CommanderPosition ?? "", PositionName = rawData.PositionName ?? "", PositionLevelName = rawData.PositionLevelName ?? "", OrganizationName = orgName, diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs index e5e19cef..c431388d 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs @@ -1,4 +1,6 @@ -ïŧŋusing System.ComponentModel.DataAnnotations; +ïŧŋusing BMA.EHR.Domain.Models.Base; +using Newtonsoft.Json; +using System.ComponentModel.DataAnnotations; namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest { @@ -99,6 +101,30 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string? CoupleDaySumTotalHistory { get; set; } + public string? Approvers { get; set; } = string.Empty; + } + public class LeaveRequestApproverDto + { + [JsonProperty("seq")] + public int Seq { get; set; } = 0; + + [JsonProperty("prefix")] + public string Prefix { get; set; } = string.Empty; + + [JsonProperty("firstName")] + public string FirstName { get; set; } = string.Empty; + + [JsonProperty("lastName")] + public string LastName { get; set; } = string.Empty; + + [JsonProperty("positionName")] + public string PositionName { get; set; } = string.Empty; + + [JsonProperty("profileId")] + public Guid ProfileId { get; set; } = Guid.Empty; + + [JsonProperty("keycloakId")] + public Guid KeycloakId { get; set; } = Guid.Empty; } } From ccb183dc957025ac621ac87f57db7c4e2b871a20 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 17 Apr 2025 15:54:19 +0700 Subject: [PATCH 207/879] =?UTF-8?q?=E0=B8=A7=E0=B8=B4=E0=B8=99=E0=B8=B1?= =?UTF-8?q?=E0=B8=A2=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=E0=B8=AB?= =?UTF-8?q?=E0=B8=A1=E0=B8=B2=E0=B8=A2=E0=B9=80=E0=B8=AB=E0=B8=95=E0=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release_Retirement.yaml | 72 +- .github/workflows/release_discipline.yaml | 72 +- .github/workflows/release_placement.yaml | 72 +- .../DisciplineInvestigateController.cs | 35 +- .../Controllers/DisciplineResultController.cs | 32 + .../DisciplineResultSummaryRequest.cs | 10 + .../Requests/RetirementProfileRequest.cs | 4 +- ...isciplinary_ProfileComplaintInvestigate.cs | 4 + .../DisciplineInvestigate_ProfileComplaint.cs | 4 + ...le_disciplineresult_add_remark.Designer.cs | 20074 ++++++++++++++++ ...pdate_table_disciplineresult_add_remark.cs | 22 + 11 files changed, 20289 insertions(+), 112 deletions(-) create mode 100644 BMA.EHR.Discipline.Service/Requests/DisciplineResultSummaryRequest.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250417083557_update_table_disciplineresult_add_remark.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250417083557_update_table_disciplineresult_add_remark.cs diff --git a/.github/workflows/release_Retirement.yaml b/.github/workflows/release_Retirement.yaml index 4e936de9..6cdceae0 100644 --- a/.github/workflows/release_Retirement.yaml +++ b/.github/workflows/release_Retirement.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - # - name: Notify Discord Success - # if: success() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "✅ Deployment Success!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - # "color": 3066993, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/success-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Success + if: success() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "✅ Deployment Success!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + "color": 3066993, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/success-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} - # - name: Notify Discord Failure - # if: failure() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "❌ Deployment Failed!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - # "color": 15158332, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/failure-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Failure + if: failure() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "❌ Deployment Failed!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + "color": 15158332, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/failure-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/release_discipline.yaml b/.github/workflows/release_discipline.yaml index 9969bfdd..0e8737f4 100644 --- a/.github/workflows/release_discipline.yaml +++ b/.github/workflows/release_discipline.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - # - name: Notify Discord Success - # if: success() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "✅ Deployment Success!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - # "color": 3066993, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/success-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Success + if: success() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "✅ Deployment Success!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + "color": 3066993, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/success-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} - # - name: Notify Discord Failure - # if: failure() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "❌ Deployment Failed!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - # "color": 15158332, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/failure-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Failure + if: failure() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "❌ Deployment Failed!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + "color": 15158332, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/failure-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/release_placement.yaml b/.github/workflows/release_placement.yaml index 0867aa09..d9c2f266 100644 --- a/.github/workflows/release_placement.yaml +++ b/.github/workflows/release_placement.yaml @@ -68,40 +68,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - # - name: Notify Discord Success - # if: success() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "✅ Deployment Success!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", - # "color": 3066993, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/success-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Success + if: success() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "✅ Deployment Success!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + "color": 3066993, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/success-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} - # - name: Notify Discord Failure - # if: failure() - # run: | - # curl -H "Content-Type: application/json" \ - # -X POST \ - # -d '{ - # "embeds": [{ - # "title": "❌ Deployment Failed!", - # "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", - # "color": 15158332, - # "footer": { - # "text": "Release Notification", - # "icon_url": "https://example.com/failure-icon.png" - # }, - # "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - # }] - # }' \ - # ${{ secrets.DISCORD_WEBHOOK }} + - name: Notify Discord Failure + if: failure() + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "❌ Deployment Failed!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + "color": 15158332, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/failure-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs index c25438d2..48ba0493 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs @@ -366,6 +366,8 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers posLevelName = p.posLevelName, IsSend = p.IsReport, + // DocumentReject = p.DocumentReject, + RemarkReject = p.RemarkReject, IsDisciplinary = p.IsDisciplinary, profileType = p.profileType, CreatedAt = p.CreatedAt, @@ -403,6 +405,18 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers }; disciplineInvestigateRelevantDocs.Add(_doc); } + + // var persons = new List(); + // foreach (var doc in _data.Persons) + // { + // var _doc = new + // { + // doc.Id, + // doc.FileName, + // PathName = await _documentService.ImagesPath(doc.Id) + // }; + // disciplineInvestigateRelevantDocs.Add(_doc); + // } var data = new { _data.Id, @@ -1167,18 +1181,33 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers // [HttpPut("report/{commandTypeId:length(36)}")] public async Task> PostToReport([FromBody] DisciplineProfileRequest req) { - foreach (var item in req.Id) + foreach (var item in req.id) { var uppdated = await _context.DisciplineInvestigate_ProfileComplaints .FirstOrDefaultAsync(x => x.Id == item); if (uppdated == null) continue; - // uppdated.CommandTypeId = commandTypeId; - uppdated.IsReport = "REPORT"; + uppdated.IsReport = "DONE"; + uppdated.RemarkReject = req.remark; uppdated.LastUpdateFullName = FullName ?? "System Administrator"; uppdated.LastUpdateUserId = UserId ?? ""; uppdated.LastUpdatedAt = DateTime.Now; + + if (Request.Form.Files != null && Request.Form.Files.Count != 0) + { + foreach (var file in Request.Form.Files) + { + var fileExtension = Path.GetExtension(file.FileName); + var doc = await _documentService.UploadFileAsync(file, file.FileName); + var _doc = await _context.Documents.AsQueryable() + .FirstOrDefaultAsync(x => x.Id == doc.Id); + if (_doc != null) + { + uppdated.DocumentReject = _doc; + } + } + } } await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs index e8fb21b7..6a201b1b 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs @@ -194,6 +194,8 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers Status = p.Status, StatusDiscard = p.StatusDiscard, profileType = p.profileType, + Remark = p.Remark, + Offense = p.Offense, CreatedAt = p.CreatedAt }),//āļĢāļēāļĒāļāļēāļĢāļ‚āđ‰āļ­āļĄāļđāļĨāļšāļļāļ„āļĨāļœāļđāđ‰āļ–āļđāļāļŠāļ·āļšāļŠāļ§āļ™ Organization = x.Organization,//id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļāļĢāļ“āļĩ type āđ€āļ›āđ‡āļ™āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ @@ -2141,5 +2143,35 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers return Success(); } + + /// + /// āđāļāđ‰āđ„āļ‚āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨ + /// + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("summary/{id:guid}")] + public async Task> UpdateSummaryDisciplineResult([FromBody] DisciplineResultSummaryRequest req, Guid id) + { + var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_DISCIPLINE_RESULT"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates.Where(x => x.Id == id).FirstOrDefaultAsync(); + if (data == null) + return Error(new Exception(GlobalMessages.DataNotFound), (int)StatusCodes.Status404NotFound); + + data.Remark = req.remark; + data.Offense = req.offense; + data.LastUpdateFullName = FullName ?? "System Administrator"; + data.LastUpdateUserId = UserId ?? ""; + data.LastUpdatedAt = DateTime.Now; + await _context.SaveChangesAsync(); + return Success(data.Id); + } } } diff --git a/BMA.EHR.Discipline.Service/Requests/DisciplineResultSummaryRequest.cs b/BMA.EHR.Discipline.Service/Requests/DisciplineResultSummaryRequest.cs new file mode 100644 index 00000000..4451361f --- /dev/null +++ b/BMA.EHR.Discipline.Service/Requests/DisciplineResultSummaryRequest.cs @@ -0,0 +1,10 @@ +using Microsoft.EntityFrameworkCore; + +namespace BMA.EHR.Discipline.Service.Requests +{ + public class DisciplineResultSummaryRequest + { + public string? remark { get; set; } + public string? offense { get; set; } + } +} diff --git a/BMA.EHR.Discipline.Service/Requests/RetirementProfileRequest.cs b/BMA.EHR.Discipline.Service/Requests/RetirementProfileRequest.cs index 42d10463..ff999c8a 100644 --- a/BMA.EHR.Discipline.Service/Requests/RetirementProfileRequest.cs +++ b/BMA.EHR.Discipline.Service/Requests/RetirementProfileRequest.cs @@ -5,6 +5,8 @@ namespace BMA.EHR.Discipline.Service.Requests { public class DisciplineProfileRequest { - public List Id { get; set; } + public List id { get; set; } + public FormFile? file { get; set; } + public string? remark { get; set; } } } diff --git a/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs b/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs index 27d1126e..ea6afbb0 100644 --- a/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs +++ b/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs @@ -100,6 +100,10 @@ namespace BMA.EHR.Domain.Models.Discipline [Comment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)")] public string? profileType { get; set; } + [Comment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ")] + public string? Remark { get; set; } + [Comment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨ")] + public string? Offense { get; set; } [Required, Comment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ­āļšāļŠāļ§āļ™")] public DisciplineDisciplinary DisciplineDisciplinary { get; set; } diff --git a/BMA.EHR.Domain/Models/Discipline/DisciplineInvestigate_ProfileComplaint.cs b/BMA.EHR.Domain/Models/Discipline/DisciplineInvestigate_ProfileComplaint.cs index f94f1fa1..65f85db6 100644 --- a/BMA.EHR.Domain/Models/Discipline/DisciplineInvestigate_ProfileComplaint.cs +++ b/BMA.EHR.Domain/Models/Discipline/DisciplineInvestigate_ProfileComplaint.cs @@ -81,6 +81,10 @@ namespace BMA.EHR.Domain.Models.Discipline public double? Salary { get; set; } [Comment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡")] public string? IsReport { get; set; } = "NEW"; + [Comment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡")] + public string? RemarkReject { get; set; } + [Comment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļŦāļąāļŠāđ€āļ­āļāļŠāļēāļĢ")] + public Document? DocumentReject { get; set; } [Comment("āļŠāđˆāļ‡āđ„āļ›āļŠāļ­āļšāļŠāļ§āļ™")] public bool? IsDisciplinary { get; set; } = false; [Comment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē")] diff --git a/BMA.EHR.Infrastructure/Migrations/20250417083557_update_table_disciplineresult_add_remark.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250417083557_update_table_disciplineresult_add_remark.Designer.cs new file mode 100644 index 00000000..7c551ef4 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250417083557_update_table_disciplineresult_add_remark.Designer.cs @@ -0,0 +1,20074 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250417083557_update_table_disciplineresult_add_remark")] + partial class update_table_disciplineresult_add_remark + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250417083557_update_table_disciplineresult_add_remark.cs b/BMA.EHR.Infrastructure/Migrations/20250417083557_update_table_disciplineresult_add_remark.cs new file mode 100644 index 00000000..ab559bec --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250417083557_update_table_disciplineresult_add_remark.cs @@ -0,0 +1,22 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class update_table_disciplineresult_add_remark : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} From 7db251aea9b9c53f579c2475f5698d5e3ed26e70 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 17 Apr 2025 16:20:19 +0700 Subject: [PATCH 208/879] edit param --- .../Controllers/DisciplineDisciplinaryController.cs | 2 +- .../Controllers/DisciplineSuspendController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs index 9b3ac6ae..975d4350 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineDisciplinaryController.cs @@ -1561,7 +1561,7 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - foreach (var item in req.Id) + foreach (var item in req.id) { var uppdated = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates .FirstOrDefaultAsync(x => x.Id == item); diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineSuspendController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineSuspendController.cs index aaa2b38a..25603274 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineSuspendController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineSuspendController.cs @@ -288,7 +288,7 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - foreach (var item in req.Id) + foreach (var item in req.id) { var uppdated = await _context.DisciplineReport_Profiles .FirstOrDefaultAsync(x => x.Id == item); From 864c348531e6a2b19628824be9ef40eca4251f20 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 17 Apr 2025 18:05:42 +0700 Subject: [PATCH 209/879] report discipline --- .../Controllers/DisciplineReportController.cs | 226 +- ...le_disciplineresult_add_remark.Designer.cs | 3599 +++++++++++++++++ ...pdate_table_disciplineresult_add_remark.cs | 86 + .../DisciplineDbContextModelSnapshot.cs | 23 + 4 files changed, 3901 insertions(+), 33 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417101128_update_table_disciplineresult_add_remark.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417101128_update_table_disciplineresult_add_remark.cs diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs index d189108a..4367ef7c 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineReportController.cs @@ -89,21 +89,149 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers // profile = profile.Where(x => x.PositionType == req.posType || x.PositionLevel == req.posLevel).ToList(); //} - var data_search = await _context.DisciplineDisciplinarys - .Include(x => x.DisciplineDisciplinary_ProfileComplaintInvestigates) + var data_search1 = await _context.DisciplineComplaints + .Include(x => x.DisciplineComplaint_Profiles) + .Where(x => req.status.Trim().ToUpper() == "ALL" ? true : (x.Status != null && x.Status.Contains(req.status.Trim().ToUpper()))) + .Where(x => req.offenseDetail.Trim().ToUpper() == "ALL" ? true : (x.OffenseDetails != null && x.OffenseDetails.Contains(req.status.Trim().ToUpper()))) + // .Where(x => req.disciplinaryFaultLevel.Trim().ToUpper() == "ALL" ? true : (x.DisciplinaryFaultLevel != null && x.DisciplinaryFaultLevel.Contains(req.status.Trim().ToUpper()))) .OrderByDescending(x => x.CreatedAt) .ToListAsync(); - if (req.status.Trim().ToUpper() != "ALL") - data_search = data_search.Where(x => x.Status != null && x.Status.Contains(req.status.Trim().ToUpper())).ToList(); + var mapData1 = data_search1 + .SelectMany((d) => d.DisciplineComplaint_Profiles.Select((profile) => new + { + fullName = $"{profile.Prefix}{profile.FirstName} {profile.LastName}", + citizenId = profile.CitizenId, + position = profile.Position, + posLevel = profile.posLevelName, + oc = profile.Organization, + CreatedAt = profile.CreatedAt, + offense = d.OffenseDetails != null && d.OffenseDetails != "" + ? d.OffenseDetails == "NOT_SPECIFIED" + ? "āļ„āļ§āļēāļĄāļœāļīāļ”āļ§āļīāļ™āļąāļĒāļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ" + : d.OffenseDetails == "NOT_DEADLY" + ? "āļ„āļ§āļēāļĄāļœāļīāļ”āļ§āļīāļ™āļąāļĒāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡" + : d.OffenseDetails == "DEADLY" + ? "āļ„āļ§āļēāļĄāļœāļīāļ”āļ§āļīāļ™āļąāļĒāļĢāđ‰āļēāļĒāđāļĢāļ‡" + : "" + : "", + faultLevel = "", + Child4Id = profile.child4DnaId, + Child4 = profile.child4, + Child3Id = profile.child3DnaId, + Child3 = profile.child3, + Child2Id = profile.child2DnaId, + Child2 = profile.child2, + Child1Id = profile.child1DnaId, + Child1 = profile.child1, + RootId = profile.rootDnaId, + Root = profile.root, + PosType = profile.posTypeName, + PosLevel = profile.posLevelName + })) + .Where(x => req.node == 4 ? x.Child4Id == req.nodeId : (req.node == 3 ? x.Child3Id == req.nodeId : (req.node == 2 ? x.Child2Id == req.nodeId : (req.node == 1 ? x.Child1Id == req.nodeId : (req.node == 0 ? x.RootId == req.nodeId : (req.node == null ? true : true)))))) + .Where(x => jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD" ? true : (req.node == 0 ? x.Child1Id == null : (req.node == 1 ? x.Child2Id == null : (req.node == 2 ? x.Child3Id == null : (req.node == 3 ? x.Child4Id == null : true))))) + .Where(x => string.IsNullOrEmpty(req.posType) || x.PosType == req.posType) + .Where(x => string.IsNullOrEmpty(req.posLevel) || x.PosLevel == req.posLevel) + .OrderByDescending(x => x.CreatedAt) + .ToList(); + var groupedResult1 = mapData1 + .GroupBy(x => x.fullName) + .Select(g => new + { + one = g.Count(), // Count of records per fullName + two = 0, + three = 0, + g.Where(x => x.fullName != null || x.fullName != "").FirstOrDefault()?.fullName, + g.Where(x => x.citizenId != null || x.citizenId != "").FirstOrDefault()?.citizenId, + g.Where(x => x.position != null || x.position != "").FirstOrDefault()?.position, + g.Where(x => x.posLevel != null || x.posLevel != "").FirstOrDefault()?.posLevel, + oc = (g.Where(x => x.Child4 != null || x.Child4 != "").FirstOrDefault()?.Child4 == null ? "" : g.Where(x => x.Child4 != null || x.Child4 != "").FirstOrDefault()?.Child4 + "\n") + + (g.Where(x => x.Child3 != null || x.Child3 != "").FirstOrDefault()?.Child3 == null ? "" : g.Where(x => x.Child3 != null || x.Child3 != "").FirstOrDefault()?.Child3 + "\n") + + (g.Where(x => x.Child2 != null || x.Child2 != "").FirstOrDefault()?.Child2 == null ? "" : g.Where(x => x.Child2 != null || x.Child2 != "").FirstOrDefault()?.Child2 + "\n") + + (g.Where(x => x.Child1 != null || x.Child1 != "").FirstOrDefault()?.Child1 == null ? "" : g.Where(x => x.Child1 != null || x.Child1 != "").FirstOrDefault()?.Child1 + "\n") + + (g.Where(x => x.Root != null || x.Root != "").FirstOrDefault()?.Root == null ? "" : g.Where(x => x.Root != null || x.Root != "").FirstOrDefault()?.Root), + g.Where(x => x.offense != null || x.offense != "").FirstOrDefault()?.offense, + g.Where(x => x.faultLevel != null || x.faultLevel != "").FirstOrDefault()?.faultLevel, + }) + .ToList(); - if (req.offenseDetail.Trim().ToUpper() != "ALL") - data_search = data_search.Where(x => x.OffenseDetails != null && x.OffenseDetails.Contains(req.status.Trim().ToUpper())).ToList(); + var data_search2 = await _context.DisciplineInvestigates + .Include(x => x.DisciplineInvestigate_ProfileComplaints) + .Where(x => req.status.Trim().ToUpper() == "ALL" ? true : (x.Status != null && x.Status.Contains(req.status.Trim().ToUpper()))) + .Where(x => req.offenseDetail.Trim().ToUpper() == "ALL" ? true : (x.OffenseDetails != null && x.OffenseDetails.Contains(req.status.Trim().ToUpper()))) + // .Where(x => req.disciplinaryFaultLevel.Trim().ToUpper() == "ALL" ? true : (x.DisciplinaryFaultLevel != null && x.DisciplinaryFaultLevel.Contains(req.status.Trim().ToUpper()))) + .OrderByDescending(x => x.CreatedAt) + .ToListAsync(); - if (req.disciplinaryFaultLevel.Trim().ToUpper() != "ALL") - data_search = data_search.Where(x => x.DisciplinaryFaultLevel != null && x.DisciplinaryFaultLevel.Contains(req.status.Trim().ToUpper())).ToList(); + var mapData2 = data_search2 + .SelectMany((d) => d.DisciplineInvestigate_ProfileComplaints.Select((profile) => new + { + fullName = $"{profile.Prefix}{profile.FirstName} {profile.LastName}", + citizenId = profile.CitizenId, + position = profile.Position, + posLevel = profile.posLevelName, + oc = profile.Organization, + CreatedAt = profile.CreatedAt, + offense = d.OffenseDetails != null && d.OffenseDetails != "" + ? d.OffenseDetails == "NOT_SPECIFIED" + ? "āļ„āļ§āļēāļĄāļœāļīāļ”āļ§āļīāļ™āļąāļĒāļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ" + : d.OffenseDetails == "NOT_DEADLY" + ? "āļ„āļ§āļēāļĄāļœāļīāļ”āļ§āļīāļ™āļąāļĒāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡" + : d.OffenseDetails == "DEADLY" + ? "āļ„āļ§āļēāļĄāļœāļīāļ”āļ§āļīāļ™āļąāļĒāļĢāđ‰āļēāļĒāđāļĢāļ‡" + : "" + : "", + faultLevel = "", + Child4Id = profile.child4DnaId, + Child4 = profile.child4, + Child3Id = profile.child3DnaId, + Child3 = profile.child3, + Child2Id = profile.child2DnaId, + Child2 = profile.child2, + Child1Id = profile.child1DnaId, + Child1 = profile.child1, + RootId = profile.rootDnaId, + Root = profile.root, + PosType = profile.posTypeName, + PosLevel = profile.posLevelName + })) + .Where(x => req.node == 4 ? x.Child4Id == req.nodeId : (req.node == 3 ? x.Child3Id == req.nodeId : (req.node == 2 ? x.Child2Id == req.nodeId : (req.node == 1 ? x.Child1Id == req.nodeId : (req.node == 0 ? x.RootId == req.nodeId : (req.node == null ? true : true)))))) + .Where(x => jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD" ? true : (req.node == 0 ? x.Child1Id == null : (req.node == 1 ? x.Child2Id == null : (req.node == 2 ? x.Child3Id == null : (req.node == 3 ? x.Child4Id == null : true))))) + .Where(x => string.IsNullOrEmpty(req.posType) || x.PosType == req.posType) + .Where(x => string.IsNullOrEmpty(req.posLevel) || x.PosLevel == req.posLevel) + .OrderByDescending(x => x.CreatedAt) + .ToList(); + var groupedResult2 = mapData2 + .GroupBy(x => x.fullName) + .Select(g => new + { + one = 0, + two = g.Count(), // Count of records per fullName + three = 0, + g.Where(x => x.fullName != null || x.fullName != "").FirstOrDefault()?.fullName, + g.Where(x => x.citizenId != null || x.citizenId != "").FirstOrDefault()?.citizenId, + g.Where(x => x.position != null || x.position != "").FirstOrDefault()?.position, + g.Where(x => x.posLevel != null || x.posLevel != "").FirstOrDefault()?.posLevel, + oc = (g.Where(x => x.Child4 != null || x.Child4 != "").FirstOrDefault()?.Child4 == null ? "" : g.Where(x => x.Child4 != null || x.Child4 != "").FirstOrDefault()?.Child4 + "\n") + + (g.Where(x => x.Child3 != null || x.Child3 != "").FirstOrDefault()?.Child3 == null ? "" : g.Where(x => x.Child3 != null || x.Child3 != "").FirstOrDefault()?.Child3 + "\n") + + (g.Where(x => x.Child2 != null || x.Child2 != "").FirstOrDefault()?.Child2 == null ? "" : g.Where(x => x.Child2 != null || x.Child2 != "").FirstOrDefault()?.Child2 + "\n") + + (g.Where(x => x.Child1 != null || x.Child1 != "").FirstOrDefault()?.Child1 == null ? "" : g.Where(x => x.Child1 != null || x.Child1 != "").FirstOrDefault()?.Child1 + "\n") + + (g.Where(x => x.Root != null || x.Root != "").FirstOrDefault()?.Root == null ? "" : g.Where(x => x.Root != null || x.Root != "").FirstOrDefault()?.Root), + g.Where(x => x.offense != null || x.offense != "").FirstOrDefault()?.offense, + g.Where(x => x.faultLevel != null || x.faultLevel != "").FirstOrDefault()?.faultLevel, + }) + .ToList(); - var mapData = data_search + var data_search3 = await _context.DisciplineDisciplinarys + .Include(x => x.DisciplineDisciplinary_ProfileComplaintInvestigates) + .Where(x => req.status.Trim().ToUpper() == "ALL" ? true : (x.Status != null && x.Status.Contains(req.status.Trim().ToUpper()))) + .Where(x => req.offenseDetail.Trim().ToUpper() == "ALL" ? true : (x.OffenseDetails != null && x.OffenseDetails.Contains(req.status.Trim().ToUpper()))) + .Where(x => req.disciplinaryFaultLevel.Trim().ToUpper() == "ALL" ? true : (x.DisciplinaryFaultLevel != null && x.DisciplinaryFaultLevel.Contains(req.status.Trim().ToUpper()))) + .OrderByDescending(x => x.CreatedAt) + .ToListAsync(); + + var mapData3 = data_search3 .SelectMany((d) => d.DisciplineDisciplinary_ProfileComplaintInvestigates.Select((profile) => new { fullName = $"{profile.Prefix}{profile.FirstName} {profile.LastName}", @@ -122,31 +250,68 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers : "" : "", faultLevel = d.DisciplinaryFaultLevel, - Child4Id = profile.child4Id, + Child4Id = profile.child4DnaId, Child4 = profile.child4, - Child3Id = profile.child3Id, + Child3Id = profile.child3DnaId, Child3 = profile.child3, - Child2Id = profile.child2Id, + Child2Id = profile.child2DnaId, Child2 = profile.child2, - Child1Id = profile.child1Id, + Child1Id = profile.child1DnaId, Child1 = profile.child1, - RootId = profile.rootId, + RootId = profile.rootDnaId, Root = profile.root, PosType = profile.posTypeName, PosLevel = profile.posLevelName })) - //.Where(x => - // x.citizenId != null && profile.Any(p => p.CitizenId == x.citizenId)) - .Where(x => req.node == 4 ? x.Child4Id == req.nodeId : (req.node == 3 ? x.Child3Id == req.nodeId : (req.node == 2 ? x.Child2Id == req.nodeId : (req.node == 1 ? x.Child1Id == req.nodeId : (req.node == 0 ? x.RootId == req.nodeId : (req.node == null ? true : true)))))) - .Where(x => jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD" ? true : (req.node == 0 ? x.Child1Id == null : (req.node == 1 ? x.Child2Id == null : (req.node == 2 ? x.Child3Id == null : (req.node == 3 ? x.Child4Id == null : true))))) - .Where(x => string.IsNullOrEmpty(req.posType) || x.PosType == req.posType) - .Where(x => string.IsNullOrEmpty(req.posLevel) || x.PosLevel == req.posLevel) + .Where(x => req.node == 4 ? x.Child4Id == req.nodeId : (req.node == 3 ? x.Child3Id == req.nodeId : (req.node == 2 ? x.Child2Id == req.nodeId : (req.node == 1 ? x.Child1Id == req.nodeId : (req.node == 0 ? x.RootId == req.nodeId : (req.node == null ? true : true)))))) + .Where(x => jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD" ? true : (req.node == 0 ? x.Child1Id == null : (req.node == 1 ? x.Child2Id == null : (req.node == 2 ? x.Child3Id == null : (req.node == 3 ? x.Child4Id == null : true))))) + .Where(x => string.IsNullOrEmpty(req.posType) || x.PosType == req.posType) + .Where(x => string.IsNullOrEmpty(req.posLevel) || x.PosLevel == req.posLevel) .OrderByDescending(x => x.CreatedAt) .ToList(); + var groupedResult3 = mapData3 + .GroupBy(x => x.fullName) + .Select(g => new + { + one = 0, + two = 0, + three = g.Count(), // Count of records per fullName + g.Where(x => x.fullName != null || x.fullName != "").FirstOrDefault()?.fullName, + g.Where(x => x.citizenId != null || x.citizenId != "").FirstOrDefault()?.citizenId, + g.Where(x => x.position != null || x.position != "").FirstOrDefault()?.position, + g.Where(x => x.posLevel != null || x.posLevel != "").FirstOrDefault()?.posLevel, + oc = (g.Where(x => x.Child4 != null || x.Child4 != "").FirstOrDefault()?.Child4 == null ? "" : g.Where(x => x.Child4 != null || x.Child4 != "").FirstOrDefault()?.Child4 + "\n") + + (g.Where(x => x.Child3 != null || x.Child3 != "").FirstOrDefault()?.Child3 == null ? "" : g.Where(x => x.Child3 != null || x.Child3 != "").FirstOrDefault()?.Child3 + "\n") + + (g.Where(x => x.Child2 != null || x.Child2 != "").FirstOrDefault()?.Child2 == null ? "" : g.Where(x => x.Child2 != null || x.Child2 != "").FirstOrDefault()?.Child2 + "\n") + + (g.Where(x => x.Child1 != null || x.Child1 != "").FirstOrDefault()?.Child1 == null ? "" : g.Where(x => x.Child1 != null || x.Child1 != "").FirstOrDefault()?.Child1 + "\n") + + (g.Where(x => x.Root != null || x.Root != "").FirstOrDefault()?.Root == null ? "" : g.Where(x => x.Root != null || x.Root != "").FirstOrDefault()?.Root), + g.Where(x => x.offense != null || x.offense != "").FirstOrDefault()?.offense, + g.Where(x => x.faultLevel != null || x.faultLevel != "").FirstOrDefault()?.faultLevel, + }) + .ToList(); + var resultSum = groupedResult1.Concat(groupedResult2).Concat(groupedResult3).ToArray(); + var groupedResult = resultSum + .GroupBy(x => x.fullName) + .Select(g => new + { + // g.Where(x => x.no != null || x.no != "").FirstOrDefault()?.no, + g.Where(x => x.fullName != null || x.fullName != "").FirstOrDefault()?.fullName, + g.Where(x => x.citizenId != null || x.citizenId != "").FirstOrDefault()?.citizenId, + g.Where(x => x.position != null || x.position != "").FirstOrDefault()?.position, + g.Where(x => x.posLevel != null || x.posLevel != "").FirstOrDefault()?.posLevel, + g.Where(x => x.oc != null || x.oc != "").FirstOrDefault()?.oc, + g.Where(x => x.offense != null || x.offense != "").FirstOrDefault()?.offense, + g.Where(x => x.faultLevel != null || x.faultLevel != "").FirstOrDefault()?.faultLevel, + one = g.Sum(x => x.one), // Replace `score` with actual field name + two = g.Sum(x => x.two), // Replace `score` with actual field name + three = g.Sum(x => x.three), // Replace `score` with actual field name + }) + .OrderBy(x => x.citizenId) + .ToList(); + var resultMap = new List(); var count = 1; - var employees = new List(); - foreach (var p in mapData) + foreach (var p in groupedResult) { var emp = new { @@ -155,21 +320,16 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers citizenId = p.citizenId, position = p.position, posLevel = p.posLevel, - oc = (p.Child4 == null ? "" : p.Child4 + "\n") + - (p.Child3 == null ? "" : p.Child3 + "\n") + - (p.Child2 == null ? "" : p.Child2 + "\n") + - (p.Child1 == null ? "" : p.Child1 + "\n") + - (p.Root == null ? "" : p.Root), + oc = p.oc, offense = p.offense, faultLevel = p.faultLevel, - one = 0, - two = 0, - three = 0, + one = p.one, + two = p.two, + three = p.three, }; - employees.Add(emp); + resultMap.Add(emp); count++; } - var result = new { template = "reportDiscipline", @@ -178,7 +338,7 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers { year = (req.year + 543).ToString().ToThaiNumber(), dateCurrent = $"āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {DateTime.Now.Date.ToThaiShortDate().ToThaiNumber()}", - data = employees + data = resultMap } }; return Success(result); diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417101128_update_table_disciplineresult_add_remark.Designer.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417101128_update_table_disciplineresult_add_remark.Designer.cs new file mode 100644 index 00000000..a5f9d02b --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417101128_update_table_disciplineresult_add_remark.Designer.cs @@ -0,0 +1,3599 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + [DbContext(typeof(DisciplineDbContext))] + [Migration("20250417101128_update_table_disciplineresult_add_remark")] + partial class update_table_disciplineresult_add_remark + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CaseNumber") + .HasColumnType("longtext") + .HasComment("āļ„āļ”āļĩāđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("CaseType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļ”āļĩ"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Fullname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļ™āļēāļĄāļŠāļāļļāļĨāļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("ProfileId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("ProfileId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļļāļ—āļ˜āļĢāļ“āđŒāļŦāļĢāļ·āļ­āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Appeals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Appeal_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.ToTable("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Channel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Channels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineComplaint_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Email") + .HasColumnType("longtext") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Phone") + .HasColumnType("longtext") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("Position") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.ToTable("DisciplineDirectors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryCauseText") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨ"); + + b.Property("DisciplinaryDateAllegation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāļ—āļĢāļēāļšāļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateEvident") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™"); + + b.Property("DisciplinaryDateInvestigation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļ„āļģāļŠāļąāđˆāļ‡āđƒāļŦāđ‰āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateResult") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplinaryExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplinaryFaultLevelOther") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ”āļāļĢāļ“āļĩāļ­āļ·āđˆāļ™āđ†"); + + b.Property("DisciplinaryInvestigateAt") + .HasColumnType("longtext") + .HasComment("āļŠāļ­āļšāļŠāļ§āļ™āļ—āļĩāđˆ"); + + b.Property("DisciplinaryRecordAccuser") + .HasColumnType("longtext") + .HasComment("āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļ‚āļ­āļ‡āļœāļđāđ‰āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryRefLaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļŽāļŦāļĄāļēāļĒ"); + + b.Property("DisciplinaryResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("DisciplinaryStatusResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļœāļĨ"); + + b.Property("DisciplinarySummaryEvidence") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™āļŠāļ™āļąāļšāļŠāļ™āļļāļ™āļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryWitnesses") + .HasColumnType("longtext") + .HasComment("āļžāļĒāļēāļ™āđāļĨāļ°āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļžāļĒāļēāļ™"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (APPOINT_DIRECTORS āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, SECRET_INVESTIGATION āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, OTHER āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, HAVE_CAUSE āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, NO_CAUSE āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ResultDescription") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļœāļĨāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("ResultDisciplineType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ§āļīāļ™āļąāļĒ"); + + b.Property("ResultInvestigate") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("ResultOc") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļĒ/āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ResultTitleType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("ResultYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineDisciplinarys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinaryExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_DirectorInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigateRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRecordAccusers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocResults"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocSummaryEvidences"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocWitnessess"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandDiscardCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("CommandTypeDiscardId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("IsSuspend") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļžāļąāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Offense") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨ"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("StatusDiscard") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (appoint_directors āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, secret_investigation āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, other āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (not_specified āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, have_cause āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, no_cause āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigateExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigateRelevant_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_DocComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentRejectId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsDisciplinary") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("RemarkReject") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentRejectId"); + + b.ToTable("DisciplineInvestigate_ProfileComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DescriptionSuspend") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļ—āļĩāđˆāļ–āļđāļāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("EndDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("StartDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineReport_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.ProfileComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("commandType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ (C-PM-19->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ›āļĨāļ”āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ C-PM-20->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāđ„āļĨāđˆāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.HasKey("Id"); + + b.ToTable("ProfileComplaintInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Docs") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Historys") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Docs") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Profiles") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineDisciplinarys") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinaryExtends") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigateRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocOthers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRecordAccusers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocResults") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocSummaryEvidences") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocWitnessess") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_ProfileComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineInvestigates") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateExtends") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateRelevant_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_DocComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_ProfileComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "DocumentReject") + .WithMany() + .HasForeignKey("DocumentRejectId"); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("DocumentReject"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany() + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Navigation("DisciplineComplaint_Docs"); + + b.Navigation("DisciplineComplaint_Profiles"); + + b.Navigation("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Navigation("DisciplineComplaint_Appeal_Docs"); + + b.Navigation("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Navigation("DisciplineDisciplinaryExtends"); + + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocComplaintInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocInvestigateRelevants"); + + b.Navigation("DisciplineDisciplinary_DocInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocOthers"); + + b.Navigation("DisciplineDisciplinary_DocRecordAccusers"); + + b.Navigation("DisciplineDisciplinary_DocRelevants"); + + b.Navigation("DisciplineDisciplinary_DocResults"); + + b.Navigation("DisciplineDisciplinary_DocSummaryEvidences"); + + b.Navigation("DisciplineDisciplinary_DocWitnessess"); + + b.Navigation("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Navigation("DisciplineDisciplinarys"); + + b.Navigation("DisciplineInvestigateExtends"); + + b.Navigation("DisciplineInvestigateRelevant_Docs"); + + b.Navigation("DisciplineInvestigate_Directors"); + + b.Navigation("DisciplineInvestigate_DocComplaints"); + + b.Navigation("DisciplineInvestigate_Docs"); + + b.Navigation("DisciplineInvestigate_ProfileComplaints"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417101128_update_table_disciplineresult_add_remark.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417101128_update_table_disciplineresult_add_remark.cs new file mode 100644 index 00000000..bc1d5878 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417101128_update_table_disciplineresult_add_remark.cs @@ -0,0 +1,86 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + /// + public partial class update_table_disciplineresult_add_remark : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "DocumentRejectId", + table: "DisciplineInvestigate_ProfileComplaints", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "RemarkReject", + table: "DisciplineInvestigate_ProfileComplaints", + type: "longtext", + nullable: true, + comment: "āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "Offense", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates", + type: "longtext", + nullable: true, + comment: "āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "Remark", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates", + type: "longtext", + nullable: true, + comment: "āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateIndex( + name: "IX_DisciplineInvestigate_ProfileComplaints_DocumentRejectId", + table: "DisciplineInvestigate_ProfileComplaints", + column: "DocumentRejectId"); + + migrationBuilder.AddForeignKey( + name: "FK_DisciplineInvestigate_ProfileComplaints_Documents_DocumentRe~", + table: "DisciplineInvestigate_ProfileComplaints", + column: "DocumentRejectId", + principalTable: "Documents", + principalColumn: "Id"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropForeignKey( + name: "FK_DisciplineInvestigate_ProfileComplaints_Documents_DocumentRe~", + table: "DisciplineInvestigate_ProfileComplaints"); + + migrationBuilder.DropIndex( + name: "IX_DisciplineInvestigate_ProfileComplaints_DocumentRejectId", + table: "DisciplineInvestigate_ProfileComplaints"); + + migrationBuilder.DropColumn( + name: "DocumentRejectId", + table: "DisciplineInvestigate_ProfileComplaints"); + + migrationBuilder.DropColumn( + name: "RemarkReject", + table: "DisciplineInvestigate_ProfileComplaints"); + + migrationBuilder.DropColumn( + name: "Offense", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); + + migrationBuilder.DropColumn( + name: "Remark", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs index 26d50619..0d9d0bd7 100644 --- a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs @@ -1851,6 +1851,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnOrder(102) .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + b.Property("Offense") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨ"); + b.Property("Organization") .HasColumnType("longtext") .HasComment("āļŠāļąāļ‡āļāļąāļ”"); @@ -1871,6 +1875,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + b.Property("Salary") .HasColumnType("double") .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); @@ -2531,6 +2539,9 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb b.Property("DisciplineInvestigateId") .HasColumnType("char(36)"); + b.Property("DocumentRejectId") + .HasColumnType("char(36)"); + b.Property("FirstName") .IsRequired() .HasMaxLength(100) @@ -2594,6 +2605,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + b.Property("RemarkReject") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + b.Property("Salary") .HasColumnType("double") .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); @@ -2706,6 +2721,8 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb b.HasIndex("DisciplineInvestigateId"); + b.HasIndex("DocumentRejectId"); + b.ToTable("DisciplineInvestigate_ProfileComplaints"); }); @@ -3487,7 +3504,13 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .OnDelete(DeleteBehavior.Cascade) .IsRequired(); + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "DocumentReject") + .WithMany() + .HasForeignKey("DocumentRejectId"); + b.Navigation("DisciplineInvestigate"); + + b.Navigation("DocumentReject"); }); modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => From c89ecf8cdaa3431cc74203e015cb7c926b38e084 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 17 Apr 2025 23:09:37 +0700 Subject: [PATCH 210/879] =?UTF-8?q?search=20=E0=B8=81=E0=B8=A3=E0=B8=A3?= =?UTF-8?q?=E0=B8=A1=E0=B8=81=E0=B8=B2=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/UserProfileRepository.cs | 12 +- .../Responses/Profiles/GetUserOCIdDto.cs | 21 +- .../DisciplineComplaintController.cs | 10 + .../DisciplineDirectorController.cs | 16 + .../DisciplineInvestigateController.cs | 1 + .../Models/Discipline/DisciplineComplaint.cs | 3 + .../Discipline/DisciplineDisciplinary.cs | 3 + .../Discipline/DisciplineInvestigate.cs | 3 + ...e_disciplineresult_add_remark1.Designer.cs | 3611 +++++++++++++++++ ...date_table_disciplineresult_add_remark1.cs | 55 + .../DisciplineDbContextModelSnapshot.cs | 12 + 11 files changed, 3729 insertions(+), 18 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417153725_update_table_disciplineresult_add_remark1.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417153725_update_table_disciplineresult_add_remark1.cs diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index 30e4a792..483859ec 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -756,7 +756,7 @@ namespace BMA.EHR.Application.Repositories } } - public GetUserOCIdDto? GetUserOC(Guid keycloakId, string? accessToken) + public async Task GetUserOC(Guid keycloakId, string? accessToken) { try { @@ -767,15 +767,11 @@ namespace BMA.EHR.Application.Repositories var apiResult = GetExternalAPIAsync(apiPath, accessToken ?? "", apiKey); if (apiResult.Result != null) { - var raw = JsonConvert.DeserializeObject(apiResult.Result); + var raw = JsonConvert.DeserializeObject(apiResult.Result); - return raw; - - //if (raw == null || raw.RootId == null) - // return Guid.Empty; - //return raw.RootId; + if (raw != null) + return raw.Result; } - return null; } catch diff --git a/BMA.EHR.Application/Responses/Profiles/GetUserOCIdDto.cs b/BMA.EHR.Application/Responses/Profiles/GetUserOCIdDto.cs index db187a17..874d36cf 100644 --- a/BMA.EHR.Application/Responses/Profiles/GetUserOCIdDto.cs +++ b/BMA.EHR.Application/Responses/Profiles/GetUserOCIdDto.cs @@ -4,26 +4,27 @@ { public Guid ProfileId { get; set; } - public string Prefix { get; set; } = string.Empty; + public string? Prefix { get; set; } = string.Empty; - public string Rank { get; set; } = string.Empty; + public string? Rank { get; set; } = string.Empty; - public string Avatar { get; set; } = string.Empty; + public string? Avatar { get; set; } = string.Empty; - public string FirstName { get; set; } = string.Empty; + public string? FirstName { get; set; } = string.Empty; - public string LastName { get; set; } = string.Empty; + public string? LastName { get; set; } = string.Empty; - public string CitizenId { get; set; } = string.Empty; + public string? CitizenId { get; set; } = string.Empty; - public DateTime BirthDate { get; set; } = DateTime.MinValue; + public DateTime? BirthDate { get; set; } = DateTime.MinValue; - public string Position { get; set; } = string.Empty; + public string? Position { get; set; } = string.Empty; public Guid RootId { get; set; } + public Guid? RootDnaId { get; set; } - public string Root { get; set; } = string.Empty; + public string? Root { get; set; } = string.Empty; - public string RootShortName { get; set; } = string.Empty; + public string? RootShortName { get; set; } = string.Empty; } } diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaintController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaintController.cs index ca921ac9..3d3c9708 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaintController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaintController.cs @@ -33,12 +33,14 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers private readonly NotificationRepository _repositoryNoti; private readonly PermissionRepository _permission; private readonly IConfiguration _configuration; + private readonly UserProfileRepository _userProfileRepository; public DisciplineComplaintController(DisciplineDbContext context, MinIODisciplineService documentService, NotificationRepository repositoryNoti, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, + UserProfileRepository userProfileRepository, PermissionRepository permission) { // _repository = repository; @@ -48,6 +50,7 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers _repositoryNoti = repositoryNoti; _permission = permission; _configuration = configuration; + _userProfileRepository = userProfileRepository; } #region " Properties " @@ -299,6 +302,11 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + var profile = await _userProfileRepository.GetUserOC(userId, token.Replace("Bearer ", "")); + if (profile == null) + return Error(GlobalMessages.DataNotFound); var disciplineComplaint = new Domain.Models.Discipline.DisciplineComplaint { RespondentType = req.respondentType.Trim().ToUpper(), @@ -310,6 +318,7 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers Title = req.title, Description = req.description, DateReceived = req.dateReceived, + RootDnaId = profile.RootDnaId, LevelConsideration = req.levelConsideration == null ? null : req.levelConsideration.Trim().ToUpper(), DateConsideration = req.dateConsideration, OffenseDetails = req.offenseDetails == null ? null : req.offenseDetails.Trim().ToUpper(), @@ -582,6 +591,7 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers { RespondentType = data.RespondentType.Trim().ToUpper(), Organization = data.Organization, + RootDnaId = data.RootDnaId, ConsideredAgency = data.ConsideredAgency, OrganizationId = data.OrganizationId, ConsideredAgencyId = data.ConsideredAgencyId, diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineDirectorController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineDirectorController.cs index 26a0c293..895e7f9c 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineDirectorController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineDirectorController.cs @@ -29,10 +29,12 @@ namespace BMA.EHR.DisciplineDirector.Service.Controllers private readonly MinIOService _documentService; private readonly IHttpContextAccessor _httpContextAccessor; private readonly PermissionRepository _permission; + private readonly UserProfileRepository _userProfileRepository; public DisciplineDirectorController(DisciplineDbContext context, MinIOService documentService, IHttpContextAccessor httpContextAccessor, + UserProfileRepository userProfileRepository, PermissionRepository permission) { // _repository = repository; @@ -40,6 +42,7 @@ namespace BMA.EHR.DisciplineDirector.Service.Controllers _documentService = documentService; _httpContextAccessor = httpContextAccessor; _permission = permission; + _userProfileRepository = userProfileRepository; } #region " Properties " @@ -47,6 +50,7 @@ namespace BMA.EHR.DisciplineDirector.Service.Controllers private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; + private string? token => _httpContextAccessor.HttpContext.Request.Headers["Authorization"]; #endregion @@ -279,7 +283,13 @@ namespace BMA.EHR.DisciplineDirector.Service.Controllers if (director == null) return Error(new Exception(GlobalMessages.DataNotFound), StatusCodes.Status404NotFound); + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + var profile = await _userProfileRepository.GetUserOC(userId, token.Replace("Bearer ", "")); + if (profile == null) + return Error(GlobalMessages.DataNotFound); + var data = await _context.DisciplineInvestigates + .Where(x => x.RootDnaId == profile.RootDnaId || x.RootDnaId == null) .Where(x => x.DisciplineInvestigate_Directors .Where(x => x.DisciplineDirector == director) .FirstOrDefault() != null @@ -316,7 +326,13 @@ namespace BMA.EHR.DisciplineDirector.Service.Controllers if (director == null) return Error(new Exception(GlobalMessages.DataNotFound), StatusCodes.Status404NotFound); + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, token.Replace("Bearer ", "")); + if (profile == null) + return Error(GlobalMessages.DataNotFound); + var data = await _context.DisciplineDisciplinarys + .Where(x => x.RootDnaId == profile.RootDnaId || x.RootDnaId == null) .Where(x => x.DisciplineDisciplinary_DirectorInvestigates .Where(x => x.DisciplineDirector == director) .FirstOrDefault() != null diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs index 48ba0493..5bc9c87c 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs @@ -674,6 +674,7 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers { RespondentType = data.RespondentType.Trim().ToUpper(), Organization = data.Organization, + RootDnaId = data.RootDnaId, ConsideredAgency = data.ConsideredAgency, OrganizationId = data.OrganizationId, ConsideredAgencyId = data.ConsideredAgencyId, diff --git a/BMA.EHR.Domain/Models/Discipline/DisciplineComplaint.cs b/BMA.EHR.Domain/Models/Discipline/DisciplineComplaint.cs index d0bda1f9..e67c2c7b 100644 --- a/BMA.EHR.Domain/Models/Discipline/DisciplineComplaint.cs +++ b/BMA.EHR.Domain/Models/Discipline/DisciplineComplaint.cs @@ -58,6 +58,9 @@ namespace BMA.EHR.Domain.Models.Discipline [Comment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™")] public string? activeId { get; set; } + + [Comment("RootDnaId")] + public Guid? RootDnaId { get; set; } public virtual List DisciplineComplaint_Profiles { get; set; } = new List(); public virtual List DisciplineComplaint_Docs { get; set; } = new List(); public virtual List DisciplineInvestigates { get; set; } = new List(); diff --git a/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary.cs b/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary.cs index 76c277f2..ff0a5ca5 100644 --- a/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary.cs +++ b/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary.cs @@ -146,6 +146,9 @@ namespace BMA.EHR.Domain.Models.Discipline [Comment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ”āļāļĢāļ“āļĩāļ­āļ·āđˆāļ™āđ†")] public string? DisciplinaryFaultLevelOther { get; set; } + [Comment("RootDnaId")] + public Guid? RootDnaId { get; set; } + public DisciplineInvestigate DisciplineInvestigate { get; set; } public virtual List DisciplineDisciplinary_ProfileComplaintInvestigates { get; set; } = new List(); public virtual List DisciplineDisciplinary_DocComplaintInvestigates { get; set; } = new List(); diff --git a/BMA.EHR.Domain/Models/Discipline/DisciplineInvestigate.cs b/BMA.EHR.Domain/Models/Discipline/DisciplineInvestigate.cs index 49b847a5..de50574e 100644 --- a/BMA.EHR.Domain/Models/Discipline/DisciplineInvestigate.cs +++ b/BMA.EHR.Domain/Models/Discipline/DisciplineInvestigate.cs @@ -89,6 +89,9 @@ namespace BMA.EHR.Domain.Models.Discipline [Comment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ")] public int? InvestigationDaysExtend { get; set; } + + [Comment("RootDnaId")] + public Guid? RootDnaId { get; set; } public DisciplineComplaint DisciplineComplaint { get; set; } public virtual List DisciplineInvestigate_ProfileComplaints { get; set; } = new List(); public virtual List DisciplineInvestigate_DocComplaints { get; set; } = new List(); diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417153725_update_table_disciplineresult_add_remark1.Designer.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417153725_update_table_disciplineresult_add_remark1.Designer.cs new file mode 100644 index 00000000..d29cf032 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417153725_update_table_disciplineresult_add_remark1.Designer.cs @@ -0,0 +1,3611 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + [DbContext(typeof(DisciplineDbContext))] + [Migration("20250417153725_update_table_disciplineresult_add_remark1")] + partial class update_table_disciplineresult_add_remark1 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("RootDnaId") + .HasColumnType("char(36)") + .HasComment("RootDnaId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CaseNumber") + .HasColumnType("longtext") + .HasComment("āļ„āļ”āļĩāđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("CaseType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļ”āļĩ"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Fullname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļ™āļēāļĄāļŠāļāļļāļĨāļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("ProfileId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("ProfileId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļļāļ—āļ˜āļĢāļ“āđŒāļŦāļĢāļ·āļ­āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Appeals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Appeal_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.ToTable("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Channel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Channels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineComplaint_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Email") + .HasColumnType("longtext") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Phone") + .HasColumnType("longtext") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("Position") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.ToTable("DisciplineDirectors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryCauseText") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨ"); + + b.Property("DisciplinaryDateAllegation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāļ—āļĢāļēāļšāļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateEvident") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™"); + + b.Property("DisciplinaryDateInvestigation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļ„āļģāļŠāļąāđˆāļ‡āđƒāļŦāđ‰āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateResult") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplinaryExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplinaryFaultLevelOther") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ”āļāļĢāļ“āļĩāļ­āļ·āđˆāļ™āđ†"); + + b.Property("DisciplinaryInvestigateAt") + .HasColumnType("longtext") + .HasComment("āļŠāļ­āļšāļŠāļ§āļ™āļ—āļĩāđˆ"); + + b.Property("DisciplinaryRecordAccuser") + .HasColumnType("longtext") + .HasComment("āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļ‚āļ­āļ‡āļœāļđāđ‰āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryRefLaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļŽāļŦāļĄāļēāļĒ"); + + b.Property("DisciplinaryResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("DisciplinaryStatusResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļœāļĨ"); + + b.Property("DisciplinarySummaryEvidence") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™āļŠāļ™āļąāļšāļŠāļ™āļļāļ™āļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryWitnesses") + .HasColumnType("longtext") + .HasComment("āļžāļĒāļēāļ™āđāļĨāļ°āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļžāļĒāļēāļ™"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (APPOINT_DIRECTORS āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, SECRET_INVESTIGATION āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, OTHER āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, HAVE_CAUSE āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, NO_CAUSE āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ResultDescription") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļœāļĨāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("ResultDisciplineType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ§āļīāļ™āļąāļĒ"); + + b.Property("ResultInvestigate") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("ResultOc") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļĒ/āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ResultTitleType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("ResultYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("RootDnaId") + .HasColumnType("char(36)") + .HasComment("RootDnaId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineDisciplinarys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinaryExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_DirectorInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigateRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRecordAccusers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocResults"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocSummaryEvidences"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocWitnessess"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandDiscardCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("CommandTypeDiscardId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("IsSuspend") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļžāļąāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Offense") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨ"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("StatusDiscard") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (appoint_directors āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, secret_investigation āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, other āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (not_specified āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, have_cause āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, no_cause āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("RootDnaId") + .HasColumnType("char(36)") + .HasComment("RootDnaId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigateExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigateRelevant_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_DocComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentRejectId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsDisciplinary") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("RemarkReject") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentRejectId"); + + b.ToTable("DisciplineInvestigate_ProfileComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DescriptionSuspend") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļ—āļĩāđˆāļ–āļđāļāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("EndDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("StartDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineReport_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.ProfileComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("commandType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ (C-PM-19->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ›āļĨāļ”āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ C-PM-20->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāđ„āļĨāđˆāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.HasKey("Id"); + + b.ToTable("ProfileComplaintInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Docs") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Historys") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Docs") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Profiles") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineDisciplinarys") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinaryExtends") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigateRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocOthers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRecordAccusers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocResults") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocSummaryEvidences") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocWitnessess") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_ProfileComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineInvestigates") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateExtends") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateRelevant_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_DocComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_ProfileComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "DocumentReject") + .WithMany() + .HasForeignKey("DocumentRejectId"); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("DocumentReject"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany() + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Navigation("DisciplineComplaint_Docs"); + + b.Navigation("DisciplineComplaint_Profiles"); + + b.Navigation("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Navigation("DisciplineComplaint_Appeal_Docs"); + + b.Navigation("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Navigation("DisciplineDisciplinaryExtends"); + + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocComplaintInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocInvestigateRelevants"); + + b.Navigation("DisciplineDisciplinary_DocInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocOthers"); + + b.Navigation("DisciplineDisciplinary_DocRecordAccusers"); + + b.Navigation("DisciplineDisciplinary_DocRelevants"); + + b.Navigation("DisciplineDisciplinary_DocResults"); + + b.Navigation("DisciplineDisciplinary_DocSummaryEvidences"); + + b.Navigation("DisciplineDisciplinary_DocWitnessess"); + + b.Navigation("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Navigation("DisciplineDisciplinarys"); + + b.Navigation("DisciplineInvestigateExtends"); + + b.Navigation("DisciplineInvestigateRelevant_Docs"); + + b.Navigation("DisciplineInvestigate_Directors"); + + b.Navigation("DisciplineInvestigate_DocComplaints"); + + b.Navigation("DisciplineInvestigate_Docs"); + + b.Navigation("DisciplineInvestigate_ProfileComplaints"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417153725_update_table_disciplineresult_add_remark1.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417153725_update_table_disciplineresult_add_remark1.cs new file mode 100644 index 00000000..eb7aab6e --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417153725_update_table_disciplineresult_add_remark1.cs @@ -0,0 +1,55 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + /// + public partial class update_table_disciplineresult_add_remark1 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "RootDnaId", + table: "DisciplineInvestigates", + type: "char(36)", + nullable: true, + comment: "RootDnaId", + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "RootDnaId", + table: "DisciplineDisciplinarys", + type: "char(36)", + nullable: true, + comment: "RootDnaId", + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "RootDnaId", + table: "DisciplineComplaints", + type: "char(36)", + nullable: true, + comment: "RootDnaId", + collation: "ascii_general_ci"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "RootDnaId", + table: "DisciplineInvestigates"); + + migrationBuilder.DropColumn( + name: "RootDnaId", + table: "DisciplineDisciplinarys"); + + migrationBuilder.DropColumn( + name: "RootDnaId", + table: "DisciplineComplaints"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs index 0d9d0bd7..b8c0beb8 100644 --- a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs @@ -123,6 +123,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + b.Property("RootDnaId") + .HasColumnType("char(36)") + .HasComment("RootDnaId"); + b.Property("Status") .IsRequired() .HasColumnType("longtext") @@ -1030,6 +1034,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("int") .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + b.Property("RootDnaId") + .HasColumnType("char(36)") + .HasComment("RootDnaId"); + b.Property("Status") .IsRequired() .HasColumnType("longtext") @@ -2149,6 +2157,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("longtext") .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + b.Property("RootDnaId") + .HasColumnType("char(36)") + .HasComment("RootDnaId"); + b.Property("Status") .IsRequired() .HasColumnType("longtext") From 4340454e41a11f96db81446d0170047eaa97fe3e Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 17 Apr 2025 23:16:48 +0700 Subject: [PATCH 211/879] =?UTF-8?q?=E0=B8=A5=E0=B8=9A=E0=B8=84=E0=B8=B3?= =?UTF-8?q?=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=E0=B9=80=E0=B8=A5=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/PlacementAppointmentController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index fb31a742..d900e5ed 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -1610,7 +1610,7 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => req.refIds.Contains(x.Id.ToString())) // .Where(x => x.PlacementStatus.ToUpper() == "REPORT") .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "PREPARE-CONTAIN"); + placementProfiles.ForEach(profile => profile.Status = "PENDING"); await _context.SaveChangesAsync(); return Success(); } From 0697cdd3eed27fd63e13b05a9a82932582661036 Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 18 Apr 2025 10:14:12 +0700 Subject: [PATCH 212/879] =?UTF-8?q?=E0=B8=A2=E0=B8=81=E0=B9=80=E0=B8=A5?= =?UTF-8?q?=E0=B8=B4=E0=B8=81=E0=B8=A5=E0=B8=B2=E0=B8=AD=E0=B8=AD=E0=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/RetirementResignController.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 63ff1b91..68331ad6 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -343,7 +343,7 @@ namespace BMA.EHR.Retirement.Service.Controllers .FirstOrDefaultAsync(); if (dataMain == null) return Error(GlobalMessages.RetirementResignNotFound, 404); - + Console.WriteLine("xxxx"); if (dataMain.IsCancel != true) { var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "SYS_RESIGN"); @@ -351,8 +351,13 @@ namespace BMA.EHR.Retirement.Service.Controllers .Where(x => x.Id == id) .Where(x => x.CreatedUserId == UserId) .FirstOrDefaultAsync(); + Console.WriteLine("xxxx"); if (getWorkflow == false && createdUserId == null) { + Console.WriteLine("xxxx"); + Console.WriteLine(UserId); + Console.WriteLine(createdUserId); + Console.WriteLine(getWorkflow); var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") @@ -512,13 +517,19 @@ namespace BMA.EHR.Retirement.Service.Controllers } else { + Console.WriteLine("xxx1x"); var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "RETIREMENT_CANCEL"); var createdUserId = await _context.RetirementResignCancels.AsQueryable() .Where(x => x.CreatedUserId == UserId) - .Where(x => x.Id == id) + .Where(x => x.RetirementResign.Id == id) .FirstOrDefaultAsync(); + Console.WriteLine("xxx2x"); if (getWorkflow == false && createdUserId == null) { + Console.WriteLine("xx3xx"); + Console.WriteLine(UserId); + Console.WriteLine(createdUserId); + Console.WriteLine(getWorkflow); var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") From bfc49ee9a6fceac38211cbc5e427afd823089a79 Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 18 Apr 2025 11:41:13 +0700 Subject: [PATCH 213/879] =?UTF-8?q?=E0=B8=A5=E0=B8=9A=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/RetirementResignController.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 68331ad6..85042ef6 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -343,7 +343,6 @@ namespace BMA.EHR.Retirement.Service.Controllers .FirstOrDefaultAsync(); if (dataMain == null) return Error(GlobalMessages.RetirementResignNotFound, 404); - Console.WriteLine("xxxx"); if (dataMain.IsCancel != true) { var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "SYS_RESIGN"); @@ -351,13 +350,8 @@ namespace BMA.EHR.Retirement.Service.Controllers .Where(x => x.Id == id) .Where(x => x.CreatedUserId == UserId) .FirstOrDefaultAsync(); - Console.WriteLine("xxxx"); if (getWorkflow == false && createdUserId == null) { - Console.WriteLine("xxxx"); - Console.WriteLine(UserId); - Console.WriteLine(createdUserId); - Console.WriteLine(getWorkflow); var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") @@ -517,19 +511,13 @@ namespace BMA.EHR.Retirement.Service.Controllers } else { - Console.WriteLine("xxx1x"); var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "RETIREMENT_CANCEL"); var createdUserId = await _context.RetirementResignCancels.AsQueryable() .Where(x => x.CreatedUserId == UserId) .Where(x => x.RetirementResign.Id == id) .FirstOrDefaultAsync(); - Console.WriteLine("xxx2x"); if (getWorkflow == false && createdUserId == null) { - Console.WriteLine("xx3xx"); - Console.WriteLine(UserId); - Console.WriteLine(createdUserId); - Console.WriteLine(getWorkflow); var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") From e57274d446def10143b30a1830fc775b2b5b04b7 Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 18 Apr 2025 13:50:56 +0700 Subject: [PATCH 214/879] edit param dis --- .../Controllers/DisciplineInvestigateController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs index 5bc9c87c..d945d358 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs @@ -1180,7 +1180,7 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ [HttpPost("report")] // [HttpPut("report/{commandTypeId:length(36)}")] - public async Task> PostToReport([FromBody] DisciplineProfileRequest req) + public async Task> PostToReport([FromForm] DisciplineProfileRequest req) { foreach (var item in req.id) { From ed98f171badb6772df69872e4fe43394d2344fda Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 18 Apr 2025 16:30:01 +0700 Subject: [PATCH 215/879] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20?= =?UTF-8?q?noti=20(add-workflow)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 1 + .../Controllers/PlacementTransferController.cs | 1 + .../Controllers/RetirementResignController.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index e73e5f45..b8a44347 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1746,6 +1746,7 @@ namespace BMA.EHR.Leave.Service.Controllers sysName = "SYS_LEAVE_LIST", posLevelName = profile.PosLevel ?? "", posTypeName = profile.PosType ?? "", + fullName = $"{profile.Prefix}{profile.FirstName} {profile.LastName}" }); } } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index cb78bacd..7e35d753 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -589,6 +589,7 @@ namespace BMA.EHR.Placement.Service.Controllers sysName = "SYS_TRANSFER_REQ", posLevelName = placementTransfer.posLevelNameOld, posTypeName = placementTransfer.posTypeNameOld, + fullName = $"{placementTransfer.prefix}{placementTransfer.firstName} {placementTransfer.lastName}" }); } await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 85042ef6..c1351f3a 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -988,6 +988,7 @@ namespace BMA.EHR.Retirement.Service.Controllers sysName = "SYS_RESIGN", posLevelName = retirementResign.PositionLevelOld, posTypeName = retirementResign.PositionTypeOld, + fullName = $"{retirementResign.prefix}{retirementResign.firstName} {retirementResign.lastName}" }); } return Success(retirementResign); From 5c215b9213782ecfcc8922c929f40524cbea8dc1 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 21 Apr 2025 11:40:59 +0700 Subject: [PATCH 216/879] =?UTF-8?q?fix=20=E0=B8=A3=E0=B8=B0=E0=B8=9A?= =?UTF-8?q?=E0=B8=9A=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2?= =?UTF-8?q?=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95?= =?UTF-8?q?=E0=B8=B4=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=9E=E0=B9=89=E0=B8=99?= =?UTF-8?q?=E0=B8=88=E0=B8=B2=E0=B8=81=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=20=E0=B8=82=E0=B8=A3=E0=B8=81.=20>>=E0=B8=95?= =?UTF-8?q?=E0=B8=B1=E0=B8=A7=E0=B8=AD=E0=B8=B1=E0=B8=81=E0=B8=A9=E0=B8=A3?= =?UTF-8?q?=E0=B8=A2=E0=B9=88=E0=B8=AD=E0=B9=80=E0=B8=A5=E0=B8=82=E0=B8=97?= =?UTF-8?q?=E0=B8=B5=E0=B9=88=E0=B8=97=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=81=E0=B8=AA?= =?UTF-8?q?=E0=B8=94=E0=B8=87=20=E0=B8=81=E0=B8=A3=E0=B8=93=E0=B8=B5?= =?UTF-8?q?=E0=B9=82=E0=B8=94=E0=B8=99=E0=B8=A5=E0=B8=87=E0=B9=82=E0=B8=97?= =?UTF-8?q?=E0=B8=A9=E0=B8=97=E0=B8=B2=E0=B8=87=E0=B8=A7=E0=B8=B4=E0=B8=99?= =?UTF-8?q?=E0=B8=B1=E0=B8=A2=20#1399?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/DisciplineResultController.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs index 6a201b1b..5b495be6 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineResultController.cs @@ -842,7 +842,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers orgChild2 = p.child2, orgChild3 = p.child3, orgChild4 = p.child4, - posNo = p.posMasterNo, + posNo = p.posMasterNo != null ? p.posMasterNo.ToString() : null, posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); @@ -978,7 +978,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers orgChild2 = p.child2, orgChild3 = p.child3, orgChild4 = p.child4, - posNo = p.posMasterNo, + posNo = p.posMasterNo != null ? p.posMasterNo.ToString() : null, posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); @@ -1192,7 +1192,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers orgChild2 = p.child2, orgChild3 = p.child3, orgChild4 = p.child4, - posNo = p.posMasterNo, + posNo = p.posMasterNo != null ? p.posMasterNo.ToString() : null, posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); @@ -1317,7 +1317,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers orgChild2 = p.child2, orgChild3 = p.child3, orgChild4 = p.child4, - posNo = p.posMasterNo, + posNo = p.posMasterNo != null ? p.posMasterNo.ToString() : null, posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); @@ -1440,7 +1440,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers orgChild2 = p.child2, orgChild3 = p.child3, orgChild4 = p.child4, - posNo = p.posMasterNo, + posNo = p.posMasterNo != null ? p.posMasterNo.ToString() : null, posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); @@ -1563,7 +1563,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers orgChild2 = p.child2, orgChild3 = p.child3, orgChild4 = p.child4, - posNo = p.posMasterNo, + posNo = p.posMasterNo != null ? p.posMasterNo.ToString() : null, posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); @@ -1686,7 +1686,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers orgChild2 = p.child2, orgChild3 = p.child3, orgChild4 = p.child4, - posNo = p.posMasterNo, + posNo = p.posMasterNo != null ? p.posMasterNo.ToString() : null, posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); @@ -1809,7 +1809,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers orgChild2 = p.child2, orgChild3 = p.child3, orgChild4 = p.child4, - posNo = p.posMasterNo, + posNo = p.posMasterNo != null ? p.posMasterNo.ToString() : null, posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); @@ -1932,7 +1932,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers orgChild2 = p.child2, orgChild3 = p.child3, orgChild4 = p.child4, - posNo = p.posMasterNo, + posNo = p.posMasterNo != null ? p.posMasterNo.ToString() : null, posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); @@ -2071,7 +2071,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers orgChild2 = p.child2, orgChild3 = p.child3, orgChild4 = p.child4, - posNo = p.posMasterNo, + posNo = p.posMasterNo != null ? p.posMasterNo.ToString() : null, posNoAbb = p.child4ShortName != null ? p.child4ShortName : (p.child3ShortName != null ? p.child3ShortName : (p.child2ShortName != null ? p.child2ShortName : (p.child1ShortName != null ? p.child1ShortName : (p.child4ShortName != null ? p.child4ShortName : "")))), }).ToList(); From 1552225e9c4a8b7cd78429d93ef96d54f597cb41 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 21 Apr 2025 13:24:47 +0700 Subject: [PATCH 217/879] =?UTF-8?q?fix=20=E0=B8=A3=E0=B8=B0=E0=B8=9A?= =?UTF-8?q?=E0=B8=9A=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2?= =?UTF-8?q?=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95?= =?UTF-8?q?=E0=B8=B4=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=9E=E0=B9=89=E0=B8=99?= =?UTF-8?q?=E0=B8=88=E0=B8=B2=E0=B8=81=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=20=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88?= =?UTF-8?q?=E0=B9=89=E0=B8=B2=E0=B8=87=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=88?= =?UTF-8?q?=E0=B8=B3=E0=B8=AF=20>>=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A?= =?UTF-8?q?=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87=20Null=20=E0=B8=81?= =?UTF-8?q?=E0=B8=A3=E0=B8=93=E0=B8=B5=E0=B8=AA=E0=B9=88=E0=B8=87=E0=B8=A1?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=AD=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=99=20=E0=B9=86=20#1404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/RetirementOtherController.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 5e8b16ec..e61d1a10 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -348,7 +348,17 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, }; - var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{req.Id}"; + var apiUrl = string.Empty; + if (req.profileType.Trim().ToUpper() == "EMPLOYEE") + { + + apiUrl = $"{_configuration["API"]}/org/profile-employee/profileid/position/{req.Id}"; + } + else + { + apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{req.Id}"; + } + using (var client = new HttpClient()) { client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); From 58f52cbb84d72e6ab07592539d260135cbe83540 Mon Sep 17 00:00:00 2001 From: moss <> Date: Mon, 21 Apr 2025 14:07:10 +0700 Subject: [PATCH 218/879] return dis --- .../DisciplineInvestigateController.cs | 32 +++++++++++-------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs index d945d358..fca63951 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs @@ -366,7 +366,8 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers posLevelName = p.posLevelName, IsSend = p.IsReport, - // DocumentReject = p.DocumentReject, + DocumentReject = p.DocumentReject, + disciplineRejectDoc = new List(), RemarkReject = p.RemarkReject, IsDisciplinary = p.IsDisciplinary, profileType = p.profileType, @@ -406,17 +407,22 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers disciplineInvestigateRelevantDocs.Add(_doc); } - // var persons = new List(); - // foreach (var doc in _data.Persons) - // { - // var _doc = new - // { - // doc.Id, - // doc.FileName, - // PathName = await _documentService.ImagesPath(doc.Id) - // }; - // disciplineInvestigateRelevantDocs.Add(_doc); - // } + var persons = new List(); + foreach (var doc in _data.Persons) + { + if (doc.DocumentReject != null) + { + var _doc = new + { + doc.DocumentReject.Id, + doc.DocumentReject.FileName, + PathName = await _documentService.ImagesPath(doc.DocumentReject.Id) + }; + doc.disciplineRejectDoc.Add(_doc); + } + persons.Add(doc); + } + var data = new { _data.Id, @@ -435,7 +441,7 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers _data.Result, _data.Director, _data.RespondentType, - _data.Persons, + persons, _data.Organization, _data.OrganizationId, disciplineInvestigateDocs, From d408d875db6c148a7d64cb88a88e29106effc93a Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 21 Apr 2025 17:19:46 +0700 Subject: [PATCH 219/879] =?UTF-8?q?fix=20leave=20report=20=E0=B9=80?= =?UTF-8?q?=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=20leavesubtype=20=E0=B9=81?= =?UTF-8?q?=E0=B8=81=E0=B9=89=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=B9=80=E0=B8=A5?= =?UTF-8?q?=E0=B8=82=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B9=81=E0=B8=AA=E0=B8=94?= =?UTF-8?q?=E0=B8=87=E0=B9=80=E0=B8=A5=E0=B8=82=E0=B9=84=E0=B8=97=E0=B8=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/LeaveReportController.cs | 294 +++++++++--------- 1 file changed, 152 insertions(+), 142 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 1f00526f..8b387472 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -154,25 +154,26 @@ namespace BMA.EHR.Leave.Service.Controllers reportName = $"leave_form", data = new { - leaveWrote = data.LeaveWrote ?? "", - dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), + leaveWrote = data.LeaveWrote.ToThaiNumber() ?? "", + dateSendLeave = data.CreatedAt.Date.ToThaiShortDate().ToThaiNumber(), leaveTypeName = data.Type.Name, - dear = data.Dear, + leaveSubTypeName = data.LeaveSubTypeName != null ? data.LeaveSubTypeName.ToThaiNumber() : "", + dear = data.CommanderPosition == null ? data.Dear : data.CommanderPosition.ToThaiNumber(), fullname = fullName, - positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, - organizationName = profile.Oc, - leaveDetail = data.LeaveDetail, - leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), - leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate), - leaveAddress = data.LeaveAddress, - leaveNumber = data.LeaveNumber, - LeaveLastStart = lastLeaveRequest == null ? "" : lastLeaveRequest.LeaveStartDate.Date.ToThaiShortDate(), - LeaveLastEnd = lastLeaveRequest == null ? "" : lastLeaveRequest.LeaveEndDate.Date.ToThaiShortDate(), + positionName = profile!.Position == null ? "-" : profile!.Position.ToThaiNumber(), + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), + organizationName = profile!.Oc!.ToThaiNumber(), + leaveDetail = data.LeaveDetail.ToThaiNumber(), + leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), + leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), + LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), + leaveAddress = data.LeaveAddress.ToThaiNumber(), + leaveNumber = data.LeaveNumber.ToThaiNumber(), + LeaveLastStart = lastLeaveRequest == null ? "" : lastLeaveRequest.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), + LeaveLastEnd = lastLeaveRequest == null ? "" : lastLeaveRequest.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), - LeaveSummary = sumLeave, - LeaveRemain = data.Type.Limit - sumLeave, + LeaveSummary = sumLeave.ToString().ToThaiNumber(), + LeaveRemain = (data.Type.Limit - sumLeave).ToString().ToThaiNumber(), } }; @@ -205,21 +206,22 @@ namespace BMA.EHR.Leave.Service.Controllers reportName = $"leave_form", data = new { - leaveWrote = data.LeaveWrote ?? "", - dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), + leaveWrote = data.LeaveWrote.ToThaiNumber() ?? "", + dateSendLeave = data.CreatedAt.Date.ToThaiShortDate().ToThaiNumber(), leaveTypeName = data.Type.Name, - dear = data.Dear, + leaveSubTypeName = data.LeaveSubTypeName != null ? data.LeaveSubTypeName.ToThaiNumber() : "", + dear = data.CommanderPosition == null ? data.Dear : data.CommanderPosition.ToThaiNumber(), fullname = fullName, - positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, - organizationName = profile!.Oc ?? "", + positionName = profile!.Position == null ? "-" : profile!.Position.ToThaiNumber(), + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), + organizationName = profile!.Oc!.ToThaiNumber() ?? "", wifeDayName = data.WifeDayName ?? "", - wifeDayDateBorn = data.WifeDayDateBorn ?? "", - leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), - leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate), - leaveAddress = data.LeaveAddress, - leaveNumber = data.LeaveNumber, + wifeDayDateBorn = data.WifeDayDateBorn.ToThaiNumber() ?? "", + leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), + leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), + LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), + leaveAddress = data.LeaveAddress.ToThaiNumber(), + leaveNumber = data.LeaveNumber.ToThaiNumber(), } }; } @@ -251,26 +253,27 @@ namespace BMA.EHR.Leave.Service.Controllers reportName = $"leave_form", data = new { - leaveWrote = data.LeaveWrote ?? "", - dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), + leaveWrote = data.LeaveWrote.ToThaiNumber() ?? "", + dateSendLeave = data.CreatedAt.Date.ToThaiShortDate().ToThaiNumber(), leaveTypeName = data.Type.Name, - dear = data.Dear, + leaveSubTypeName = data.LeaveSubTypeName != null ? data.LeaveSubTypeName.ToThaiNumber() : "", + dear = data.CommanderPosition == null ? data.Dear : data.CommanderPosition.ToThaiNumber(), fullname = fullName, - positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, - organizationName = profile!.Oc ?? "", + positionName = profile!.Position == null ? "-" : profile!.Position.ToThaiNumber(), + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), + organizationName = profile!.Oc!.ToThaiNumber() ?? "", - restDayOldTotal = data.RestDayOldTotal, - restDayCurrentTotal = data.RestDayCurrentTotal, + restDayOldTotal = data.RestDayOldTotal.ToString().ToThaiNumber(), + restDayCurrentTotal = data.RestDayCurrentTotal.ToString().ToThaiNumber(), - leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), - leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate), - leaveAddress = data.LeaveAddress, - leaveNumber = data.LeaveNumber, + leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), + leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), + LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), + leaveAddress = data.LeaveAddress.ToThaiNumber(), + leaveNumber = data.LeaveNumber.ToThaiNumber(), - LeaveSummary = sumLeave, - LeaveRemain = data.Type.Limit - sumLeave, + LeaveSummary = sumLeave.ToString().ToThaiNumber(), + LeaveRemain = (data.Type.Limit - sumLeave).ToString().ToThaiNumber(), } }; } @@ -302,22 +305,23 @@ namespace BMA.EHR.Leave.Service.Controllers reportName = $"leave_form", data = new { - leaveWrote = data.LeaveWrote ?? "", - dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), + leaveWrote = data.LeaveWrote.ToThaiNumber() ?? "", + dateSendLeave = data.CreatedAt.Date.ToThaiShortDate().ToThaiNumber(), leaveTypeName = data.Type.Name, - dear = data.Dear, + leaveSubTypeName = data.LeaveSubTypeName != null ? data.LeaveSubTypeName.ToThaiNumber() : "", + dear = data.CommanderPosition == null ? data.Dear : data.CommanderPosition.ToThaiNumber(), fullname = fullName, - positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, - organizationName = profile!.Oc ?? "", + positionName = profile!.Position == null ? "-" : profile!.Position.ToThaiNumber(), + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), + organizationName = profile!.Oc!.ToThaiNumber() ?? "", - leavegovernmentDate = data.LeaveGovernmentDate == null ? "" : data.LeaveGovernmentDate.Value.Date.ToThaiShortDate(), + leavegovernmentDate = data.LeaveGovernmentDate == null ? "" : data.LeaveGovernmentDate.Value.Date.ToThaiShortDate().ToThaiNumber(), hajjDayStatus = data.HajjDayStatus, - leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), - leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate), + leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), + leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), + LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), } }; @@ -330,28 +334,29 @@ namespace BMA.EHR.Leave.Service.Controllers reportName = $"leave_form", data = new { - leaveWrote = data.LeaveWrote ?? "", - dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), + leaveWrote = data.LeaveWrote.ToThaiNumber() ?? "", + dateSendLeave = data.CreatedAt.Date.ToThaiShortDate().ToThaiNumber(), leaveTypeName = data.Type.Name, - dear = data.Dear, + leaveSubTypeName = data.LeaveSubTypeName != null ? data.LeaveSubTypeName.ToThaiNumber() : "", + dear = data.CommanderPosition == null ? data.Dear : data.CommanderPosition.ToThaiNumber(), fullname = fullName, - positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, - organizationName = profile!.Oc ?? "", + positionName = profile!.Position == null ? "-" : profile!.Position.ToThaiNumber(), + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), + organizationName = profile!.Oc!.ToThaiNumber() ?? "", - leavebirthDate = data.LeaveBirthDate == null ? "" : data.LeaveBirthDate.Value.Date.ToThaiShortDate(), - leavegovernmentDate = data.LeaveGovernmentDate == null ? "" : data.LeaveGovernmentDate.Value.Date.ToThaiShortDate(), + leavebirthDate = data.LeaveBirthDate == null ? "" : data.LeaveBirthDate.Value.Date.ToThaiShortDate().ToThaiNumber(), + leavegovernmentDate = data.LeaveGovernmentDate == null ? "" : data.LeaveGovernmentDate.Value.Date.ToThaiShortDate().ToThaiNumber(), ordainDayStatus = data.OrdainDayStatus, - ordainDayLocationName = data.OrdainDayLocationName, - ordainDayLocationAddress = data.OrdainDayLocationAddress, - ordainDayLocationNumber = data.OrdainDayLocationNumber, - ordainDayOrdination = data.OrdainDayOrdination, - ordainDayBuddhistLentName = data.OrdainDayBuddhistLentName, - ordainDayBuddhistLentAddress = data.OrdainDayBuddhistLentAddress, + ordainDayLocationName = data.OrdainDayLocationName.ToThaiNumber(), + ordainDayLocationAddress = data.OrdainDayLocationAddress.ToThaiNumber(), + ordainDayLocationNumber = data.OrdainDayLocationNumber.ToThaiNumber(), + ordainDayOrdination = data.OrdainDayOrdination.ToThaiShortDate().ToThaiNumber(), + ordainDayBuddhistLentName = data.OrdainDayBuddhistLentName.ToThaiNumber(), + ordainDayBuddhistLentAddress = data.OrdainDayBuddhistLentAddress.ToThaiNumber(), - leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), - leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate), + leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), + leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), + LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), } }; @@ -383,24 +388,25 @@ namespace BMA.EHR.Leave.Service.Controllers reportName = $"leave_form", data = new { - leaveWrote = data.LeaveWrote ?? "", - dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), + leaveWrote = data.LeaveWrote.ToThaiNumber() ?? "", + dateSendLeave = data.CreatedAt.Date.ToThaiShortDate().ToThaiNumber(), leaveTypeName = data.Type.Name, - dear = data.Dear, + leaveSubTypeName = data.LeaveSubTypeName != null ? data.LeaveSubTypeName.ToThaiNumber() : "", + dear = data.CommanderPosition == null ? data.Dear : data.CommanderPosition.ToThaiNumber(), fullname = fullName, - positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, - organizationName = profile!.Oc ?? "", + positionName = profile!.Position == null ? "-" : profile!.Position.ToThaiNumber(), + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), + organizationName = profile!.Oc!.ToThaiNumber() ?? "", - absentDaySummon = data.AbsentDaySummon, - absentDayLocation = data.AbsentDayLocation, - absentDayRegistorDate = data.AbsentDayRegistorDate.Date.ToThaiShortDate(), - absentDayGetIn = data.AbsentDayGetIn, - absentDayAt = data.AbsentDayAt, + absentDaySummon = data.AbsentDaySummon.ToThaiNumber(), + absentDayLocation = data.AbsentDayLocation.ToThaiNumber(), + absentDayRegistorDate = data.AbsentDayRegistorDate.Date.ToThaiShortDate().ToThaiNumber(), + absentDayGetIn = data.AbsentDayGetIn.ToThaiNumber(), + absentDayAt = data.AbsentDayAt.ToThaiNumber(), - leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), - leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate), + leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), + leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), + LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), } }; @@ -431,32 +437,33 @@ namespace BMA.EHR.Leave.Service.Controllers reportName = $"leave_form", data = new { - leaveWrote = data.LeaveWrote ?? "", - dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), + leaveWrote = data.LeaveWrote.ToThaiNumber() ?? "", + dateSendLeave = data.CreatedAt.Date.ToThaiShortDate().ToThaiNumber(), leaveTypeName = data.Type.Name, - dear = data.Dear, + leaveSubTypeName = data.LeaveSubTypeName != null ? data.LeaveSubTypeName.ToThaiNumber() : "", + dear = data.CommanderPosition == null ? data.Dear : data.CommanderPosition.ToThaiNumber(), fullname = fullName, - positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, - organizationName = profile!.Oc ?? "", + positionName = profile!.Position == null ? "-" : profile!.Position.ToThaiNumber(), + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), + organizationName = profile!.Oc!.ToThaiNumber() ?? "", - leavebirthDate = data.LeaveBirthDate == null ? "" : data.LeaveBirthDate.Value.Date.ToThaiShortDate(), - leavegovernmentDate = data.LeaveGovernmentDate == null ? "" : data.LeaveGovernmentDate.Value.Date.ToThaiShortDate(), - leaveSalary = data.LeaveSalary, - leaveSalaryText = data.LeaveSalaryText, - studyDaySubject = data.StudyDaySubject ?? "", - studyDayDegreeLevel = data.StudyDayDegreeLevel ?? "", - studyDayUniversityName = data.StudyDayUniversityName ?? "", - studyDayCountry = data.StudyDayCountry ?? "", - studyDayScholarship = data.StudyDayScholarship ?? "", - studyDayTrainingSubject = data.StudyDayTrainingSubject ?? "", - studyDayTrainingName = data.StudyDayTrainingName ?? "", + leavebirthDate = data.LeaveBirthDate == null ? "" : data.LeaveBirthDate.Value.Date.ToThaiShortDate().ToThaiNumber(), + leavegovernmentDate = data.LeaveGovernmentDate == null ? "" : data.LeaveGovernmentDate.Value.Date.ToThaiShortDate().ToThaiNumber(), + leaveSalary = data.LeaveSalary == null ? "" : data.LeaveSalary.Value.ToNumericText().ToThaiNumber(), + leaveSalaryText = data.LeaveSalaryText.ToThaiNumber(), + studyDaySubject = data.StudyDaySubject.ToThaiNumber() ?? "", + studyDayDegreeLevel = data.StudyDayDegreeLevel.ToThaiNumber() ?? "", + studyDayUniversityName = data.StudyDayUniversityName.ToThaiNumber() ?? "", + studyDayCountry = data.StudyDayCountry.ToThaiNumber() ?? "", + studyDayScholarship = data.StudyDayScholarship.ToThaiNumber() ?? "", + studyDayTrainingSubject = data.StudyDayTrainingSubject.ToThaiNumber() ?? "", + studyDayTrainingName = data.StudyDayTrainingName.ToThaiNumber() ?? "", - leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), - leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate), - leaveAddress = data.LeaveAddress, - leaveNumber = data.LeaveNumber, + leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), + leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), + LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), + leaveAddress = data.LeaveAddress.ToThaiNumber(), + leaveNumber = data.LeaveNumber.ToThaiNumber(), } }; } @@ -486,18 +493,19 @@ namespace BMA.EHR.Leave.Service.Controllers reportName = $"leave_form", data = new { - leaveWrote = data.LeaveWrote ?? "", - dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), + leaveWrote = data.LeaveWrote.ToThaiNumber() ?? "", + dateSendLeave = data.CreatedAt.Date.ToThaiShortDate().ToThaiNumber(), leaveTypeName = data.Type.Name, - dear = data.Dear, + leaveSubTypeName = data.LeaveSubTypeName != null ? data.LeaveSubTypeName.ToThaiNumber() : "", + dear = data.CommanderPosition == null ? data.Dear : data.CommanderPosition.ToThaiNumber(), fullname = fullName, fullnameEng = "", - positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, - organizationName = profile!.Oc ?? "", + positionName = profile!.Position == null ? "-" : profile!.Position.ToThaiNumber(), + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), + organizationName = profile!.Oc!.ToThaiNumber() ?? "", - leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), - leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), + leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), + leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), } }; @@ -528,32 +536,33 @@ namespace BMA.EHR.Leave.Service.Controllers reportName = $"leave_form", data = new { - leaveWrote = data.LeaveWrote ?? "", - dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), + leaveWrote = data.LeaveWrote.ToThaiNumber() ?? "", + dateSendLeave = data.CreatedAt.Date.ToThaiShortDate().ToThaiNumber(), leaveTypeName = data.Type.Name, - dear = data.Dear, + leaveSubTypeName = data.LeaveSubTypeName != null ? data.LeaveSubTypeName.ToThaiNumber() : "", + dear = data.CommanderPosition == null ? data.Dear : data.CommanderPosition.ToThaiNumber(), fullname = fullName, - positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, - organizationName = profile!.Oc ?? "", + positionName = profile!.Position == null ? "-" : profile!.Position.ToThaiNumber(), + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), + organizationName = profile!.Oc!.ToThaiNumber() ?? "", - leaveSalary = data.LeaveSalary, - leaveSalaryText = data.LeaveSalaryText, - coupleDayName = data.CoupleDayName, - coupleDayLevel = data.CoupleDayLevel, - coupleDayPosition = data.CoupleDayPosition, + leaveSalary = data.LeaveSalary == null ? "" : data.LeaveSalary.Value.ToNumericText().ToThaiNumber(), + leaveSalaryText = data.LeaveSalaryText.ToThaiNumber(), + coupleDayName = data.CoupleDayName.ToThaiNumber(), + coupleDayLevel = data.CoupleDayLevel.ToThaiNumber(), + coupleDayPosition = data.CoupleDayPosition.ToThaiNumber(), coupleDayOrganizationName = "-", - coupleDayLevelCountry = data.CoupleDayLevelCountry, - coupleDayCountryHistory = data.CoupleDayCountryHistory ?? "", - coupleDayTotalHistory = data.CoupleDayTotalHistory ?? "", - coupleDayStartDateHistory = data.CoupleDayStartDateHistory == null ? "" : data.CoupleDayStartDateHistory.Value.Date.ToThaiShortDate(), - coupleDayEndDateHistory = data.CoupleDayEndDateHistory == null ? "" : data.CoupleDayEndDateHistory.Value.Date.ToThaiShortDate(), - coupleDaySumTotalHistory = data.CoupleDaySumTotalHistory, + coupleDayLevelCountry = data.CoupleDayLevelCountry.ToThaiNumber(), + coupleDayCountryHistory = data.CoupleDayCountryHistory!.ToThaiNumber() ?? "", + coupleDayTotalHistory = data.CoupleDayTotalHistory!.ToThaiNumber() ?? "", + coupleDayStartDateHistory = data.CoupleDayStartDateHistory == null ? "" : data.CoupleDayStartDateHistory.Value.Date.ToThaiShortDate().ToThaiNumber(), + coupleDayEndDateHistory = data.CoupleDayEndDateHistory == null ? "" : data.CoupleDayEndDateHistory.Value.Date.ToThaiShortDate().ToThaiNumber(), + coupleDaySumTotalHistory = data.CoupleDaySumTotalHistory!.ToThaiNumber(), - leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), - leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate), + leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), + leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), + LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), } }; } @@ -583,20 +592,21 @@ namespace BMA.EHR.Leave.Service.Controllers reportName = $"leave_form", data = new { - leaveWrote = data.LeaveWrote ?? "", - dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), + leaveWrote = data.LeaveWrote.ToThaiNumber() ?? "", + dateSendLeave = data.CreatedAt.Date.ToThaiShortDate().ToThaiNumber(), leaveTypeName = data.Type.Name, - dear = data.Dear, + leaveSubTypeName = data.LeaveSubTypeName != null ? data.LeaveSubTypeName.ToThaiNumber() : "", + dear = data.CommanderPosition == null ? data.Dear : data.CommanderPosition.ToThaiNumber(), fullname = fullName, - positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, - organizationName = profile!.Oc ?? "", + positionName = profile!.Position == null ? "-" : profile!.Position.ToThaiNumber(), + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), + organizationName = profile!.Oc!.ToThaiNumber() ?? "", - leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), - leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), + leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), + leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), } }; } From d0b8c4ee351e6c0d5d603cfaf9071f66bbabfb6e Mon Sep 17 00:00:00 2001 From: moss <> Date: Mon, 21 Apr 2025 18:16:20 +0700 Subject: [PATCH 220/879] create retire --- ...isciplinary_ProfileComplaintInvestigate.cs | 2 +- ...e_disciplineresult_add_remark2.Designer.cs | 3611 +++++++++++++++++ ...date_table_disciplineresult_add_remark2.cs | 44 + .../DisciplineDbContextModelSnapshot.cs | 2 +- .../Controllers/RetirementController.cs | 2 +- 5 files changed, 3658 insertions(+), 3 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250421073757_update_table_disciplineresult_add_remark2.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250421073757_update_table_disciplineresult_add_remark2.cs diff --git a/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs b/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs index ea6afbb0..07bad58e 100644 --- a/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs +++ b/BMA.EHR.Domain/Models/Discipline/DisciplineDisciplinary_ProfileComplaintInvestigate.cs @@ -100,7 +100,7 @@ namespace BMA.EHR.Domain.Models.Discipline [Comment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)")] public string? profileType { get; set; } - [Comment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ")] + [Comment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"), Column(TypeName = "text")] public string? Remark { get; set; } [Comment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨ")] public string? Offense { get; set; } diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250421073757_update_table_disciplineresult_add_remark2.Designer.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250421073757_update_table_disciplineresult_add_remark2.Designer.cs new file mode 100644 index 00000000..189094de --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250421073757_update_table_disciplineresult_add_remark2.Designer.cs @@ -0,0 +1,3611 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + [DbContext(typeof(DisciplineDbContext))] + [Migration("20250421073757_update_table_disciplineresult_add_remark2")] + partial class update_table_disciplineresult_add_remark2 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("RootDnaId") + .HasColumnType("char(36)") + .HasComment("RootDnaId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CaseNumber") + .HasColumnType("longtext") + .HasComment("āļ„āļ”āļĩāđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("CaseType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļ”āļĩ"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Fullname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļ™āļēāļĄāļŠāļāļļāļĨāļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("ProfileId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("ProfileId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļļāļ—āļ˜āļĢāļ“āđŒāļŦāļĢāļ·āļ­āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Appeals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Appeal_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.ToTable("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Channel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Channels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineComplaint_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Email") + .HasColumnType("longtext") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Phone") + .HasColumnType("longtext") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("Position") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.ToTable("DisciplineDirectors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryCauseText") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨ"); + + b.Property("DisciplinaryDateAllegation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāļ—āļĢāļēāļšāļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateEvident") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™"); + + b.Property("DisciplinaryDateInvestigation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļ„āļģāļŠāļąāđˆāļ‡āđƒāļŦāđ‰āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateResult") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplinaryExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplinaryFaultLevelOther") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ”āļāļĢāļ“āļĩāļ­āļ·āđˆāļ™āđ†"); + + b.Property("DisciplinaryInvestigateAt") + .HasColumnType("longtext") + .HasComment("āļŠāļ­āļšāļŠāļ§āļ™āļ—āļĩāđˆ"); + + b.Property("DisciplinaryRecordAccuser") + .HasColumnType("longtext") + .HasComment("āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļ‚āļ­āļ‡āļœāļđāđ‰āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryRefLaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļŽāļŦāļĄāļēāļĒ"); + + b.Property("DisciplinaryResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("DisciplinaryStatusResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļœāļĨ"); + + b.Property("DisciplinarySummaryEvidence") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™āļŠāļ™āļąāļšāļŠāļ™āļļāļ™āļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryWitnesses") + .HasColumnType("longtext") + .HasComment("āļžāļĒāļēāļ™āđāļĨāļ°āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļžāļĒāļēāļ™"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (APPOINT_DIRECTORS āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, SECRET_INVESTIGATION āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, OTHER āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, HAVE_CAUSE āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, NO_CAUSE āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ResultDescription") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļœāļĨāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("ResultDisciplineType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ§āļīāļ™āļąāļĒ"); + + b.Property("ResultInvestigate") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("ResultOc") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļĒ/āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ResultTitleType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("ResultYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("RootDnaId") + .HasColumnType("char(36)") + .HasComment("RootDnaId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineDisciplinarys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinaryExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_DirectorInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigateRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRecordAccusers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocResults"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocSummaryEvidences"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocWitnessess"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandDiscardCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("CommandTypeDiscardId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("IsSuspend") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļžāļąāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Offense") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨ"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Remark") + .HasColumnType("text") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("StatusDiscard") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (appoint_directors āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, secret_investigation āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, other āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (not_specified āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, have_cause āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, no_cause āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("RootDnaId") + .HasColumnType("char(36)") + .HasComment("RootDnaId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigateExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigateRelevant_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_DocComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentRejectId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsDisciplinary") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("RemarkReject") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentRejectId"); + + b.ToTable("DisciplineInvestigate_ProfileComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DescriptionSuspend") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļ—āļĩāđˆāļ–āļđāļāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("EndDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("StartDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineReport_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.ProfileComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("commandType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ (C-PM-19->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ›āļĨāļ”āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ C-PM-20->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāđ„āļĨāđˆāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.HasKey("Id"); + + b.ToTable("ProfileComplaintInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Docs") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Historys") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Docs") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Profiles") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineDisciplinarys") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinaryExtends") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigateRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocOthers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRecordAccusers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocResults") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocSummaryEvidences") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocWitnessess") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_ProfileComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineInvestigates") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateExtends") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateRelevant_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_DocComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_ProfileComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "DocumentReject") + .WithMany() + .HasForeignKey("DocumentRejectId"); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("DocumentReject"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany() + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Navigation("DisciplineComplaint_Docs"); + + b.Navigation("DisciplineComplaint_Profiles"); + + b.Navigation("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Navigation("DisciplineComplaint_Appeal_Docs"); + + b.Navigation("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Navigation("DisciplineDisciplinaryExtends"); + + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocComplaintInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocInvestigateRelevants"); + + b.Navigation("DisciplineDisciplinary_DocInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocOthers"); + + b.Navigation("DisciplineDisciplinary_DocRecordAccusers"); + + b.Navigation("DisciplineDisciplinary_DocRelevants"); + + b.Navigation("DisciplineDisciplinary_DocResults"); + + b.Navigation("DisciplineDisciplinary_DocSummaryEvidences"); + + b.Navigation("DisciplineDisciplinary_DocWitnessess"); + + b.Navigation("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Navigation("DisciplineDisciplinarys"); + + b.Navigation("DisciplineInvestigateExtends"); + + b.Navigation("DisciplineInvestigateRelevant_Docs"); + + b.Navigation("DisciplineInvestigate_Directors"); + + b.Navigation("DisciplineInvestigate_DocComplaints"); + + b.Navigation("DisciplineInvestigate_Docs"); + + b.Navigation("DisciplineInvestigate_ProfileComplaints"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250421073757_update_table_disciplineresult_add_remark2.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250421073757_update_table_disciplineresult_add_remark2.cs new file mode 100644 index 00000000..d010dd34 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250421073757_update_table_disciplineresult_add_remark2.cs @@ -0,0 +1,44 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + /// + public partial class update_table_disciplineresult_add_remark2 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "Remark", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates", + type: "text", + nullable: true, + comment: "āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ", + oldClrType: typeof(string), + oldType: "longtext", + oldNullable: true, + oldComment: "āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ") + .Annotation("MySql:CharSet", "utf8mb4") + .OldAnnotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "Remark", + table: "DisciplineDisciplinary_ProfileComplaintInvestigates", + type: "longtext", + nullable: true, + comment: "āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ", + oldClrType: typeof(string), + oldType: "text", + oldNullable: true, + oldComment: "āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ") + .Annotation("MySql:CharSet", "utf8mb4") + .OldAnnotation("MySql:CharSet", "utf8mb4"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs index b8c0beb8..0b64f30d 100644 --- a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs @@ -1884,7 +1884,7 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); b.Property("Remark") - .HasColumnType("longtext") + .HasColumnType("text") .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); b.Property("Salary") diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index 46c91da2..6a69c8f5 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -442,7 +442,7 @@ namespace BMA.EHR.Retirement.Service.Controllers var profile_old = await _context.RetirementProfiles .Where(x => x.RetirementPeriod == retire) - .Select((x, index) => new + .Select(x => new { order = x.Order, id = x.Id, From 3659d03d94b0816e2c2f88af4771f174f58df81c Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 22 Apr 2025 10:39:17 +0700 Subject: [PATCH 221/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=20/leave/user/check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit āđ€āļžāļīāđˆāļĄ range and rangeEnd āđ€āļžāļ·āđˆāļ­āļ•āļĢāļ§āļˆāļŠāļ­āļšāļāļēāļĢāļĨāļē āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰āļŠāļēāļĄāļēāļĢāļ–āļĨāļēāļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™ āļĢāļ§āļĄāļāļąāļšāļĨāļēāđ€āļ•āđ‡āļĄāļ§āļąāļ™āđ„āļ”āđ‰ --- .../Models/Leave/Requests/LeaveRequest.cs | 5 +- ...0421230201_Add Leave Range End.Designer.cs | 1478 +++++++++++++++++ .../20250421230201_Add Leave Range End.cs | 56 + .../LeaveDb/LeaveDbContextModelSnapshot.cs | 6 +- .../Controllers/LeaveRequestController.cs | 42 +- .../DTOs/LeaveRequest/GetLeaveCheckDto.cs | 6 + 6 files changed, 1590 insertions(+), 3 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250421230201_Add Leave Range End.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250421230201_Add Leave Range End.cs diff --git a/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs b/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs index 64c6bef8..ad6accc7 100644 --- a/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs +++ b/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs @@ -137,9 +137,12 @@ namespace BMA.EHR.Domain.Models.Leave.Requests [Comment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ (āļ‚āļ­āļĒāļāđ€āļĨāļīāļ)")] public string? CancelLeaveWrote { get; set; } = string.Empty; - [Comment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļē āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ")] + [Comment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄ āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ")] public string? LeaveRange { get; set; } = string.Empty; + [Comment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ” āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ")] + public string? LeaveRangeEnd { get; set; } = string.Empty; + [Comment("āđ€āļĢāļĩāļĒāļ™āđƒāļ„āļĢ")] public string? Dear { get; set; } = string.Empty; diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250421230201_Add Leave Range End.Designer.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250421230201_Add Leave Range End.Designer.cs new file mode 100644 index 00000000..bb34e16f --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250421230201_Add Leave Range End.Designer.cs @@ -0,0 +1,1478 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + [DbContext(typeof(LeaveDbContext))] + [Migration("20250421230201_Add Leave Range End")] + partial class AddLeaveRangeEnd + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Code") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Limit") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļŠāļđāļ‡āļŠāļļāļ”āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("LeaveTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDays") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļē"); + + b.Property("LeaveTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.HasIndex("LeaveTypeId"); + + b.ToTable("LeaveBeginnings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AbsentDayAt") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayGetIn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayLocation") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayRegistorDate") + .HasColumnType("datetime(6)"); + + b.Property("AbsentDaySummon") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("CancelLeaveWrote") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ (āļ‚āļ­āļĒāļāđ€āļĨāļīāļ)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CommanderPosition") + .HasColumnType("longtext"); + + b.Property("CoupleDayCountryHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayEndDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDayLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayLevelCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayPosition") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayStartDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDaySumTotalHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayTotalHistory") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("Dear") + .HasColumnType("longtext") + .HasComment("āđ€āļĢāļĩāļĒāļ™āđƒāļ„āļĢ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("HajjDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveAddress") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveBirthDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveCancelComment") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveCancelDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveCancelStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("LeaveDetail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļĨāļē"); + + b.Property("LeaveDirectorComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļ­āļģāļ™āļ§āļĒāļāļēāļĢāļŠāļģāļ™āļąāļ"); + + b.Property("LeaveDraftDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("LeaveGovernmentDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveLast") + .HasColumnType("datetime(6)"); + + b.Property("LeaveNumber") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveRange") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄ āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveRangeEnd") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ” āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveSalary") + .HasColumnType("int"); + + b.Property("LeaveSalaryText") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LeaveStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļĨāļē"); + + b.Property("LeaveStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļĢāđ‰āļ­āļ‡"); + + b.Property("LeaveSubTypeName") + .HasColumnType("longtext"); + + b.Property("LeaveTotal") + .HasColumnType("double"); + + b.Property("LeaveTypeCode") + .HasColumnType("longtext") + .HasComment("code āļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveWrote") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ"); + + b.Property("OrdainDayBuddhistLentAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayBuddhistLentName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationNumber") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayOrdination") + .HasColumnType("datetime(6)"); + + b.Property("OrdainDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionLevelName") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RestDayCurrentTotal") + .HasColumnType("double"); + + b.Property("RestDayOldTotal") + .HasColumnType("double"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("StudyDayCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayDegreeLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayScholarship") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDaySubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingSubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayUniversityName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("TypeId") + .HasColumnType("char(36)"); + + b.Property("WifeDayDateBorn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("WifeDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("LeaveCancelDocumentId"); + + b.HasIndex("LeaveDraftDocumentId"); + + b.HasIndex("TypeId"); + + b.ToTable("LeaveRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveRequestApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.AdditionalCheckRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckDate") + .HasColumnType("datetime(6)") + .HasComment("*āļ§āļąāļ™āļ—āļĩāđˆāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("CheckInEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("CheckOutEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđƒāļ™āļāļēāļĢāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("*āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āļ‚āļ­"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("AdditionalCheckRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ"); + + b.Property("EndTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("EndTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļīāļ”āđƒāļŠāđ‰āļ‡āļēāļ™ (āđ€āļ›āļīāļ”/āļ›āļīāļ”)"); + + b.Property("IsDefault") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ§āđˆāļēāļĢāļ­āļšāđƒāļ”āđ€āļ›āđ‡āļ™āļ„āđˆāļē Default āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ (āļŠāļģāļŦāļĢāļąāļšāļ—āļļāļāļ„āļ™āļ—āļĩāđˆāļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ—āļģāļāļēāļĢāđ€āļĨāļ·āļ­āļāļĢāļ­āļš)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("StartTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("StartTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("DutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.ProcessUserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckInStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("CheckOutStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EditReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("EditStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ‚āļ­āļ‡āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("ProcessUserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserCalendar", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Calendar") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļāļīāļ—āļīāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡ āļ‚āļĢāļ āļ›āļāļ•āļī āļŦāļĢāļ·āļ­ 6 āļ§āļąāļ™āļ•āđˆāļ­āļŠāļąāļ›āļ”āļēāļŦāđŒ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("UserCalendars"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("EffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļœāļĨ"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DutyTimeId"); + + b.ToTable("UserDutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("UserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "LeaveType") + .WithMany() + .HasForeignKey("LeaveTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("LeaveDocument") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveCancelDocument") + .WithMany() + .HasForeignKey("LeaveCancelDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveDraftDocument") + .WithMany() + .HasForeignKey("LeaveDraftDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "Type") + .WithMany() + .HasForeignKey("TypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveCancelDocument"); + + b.Navigation("LeaveDraftDocument"); + + b.Navigation("Type"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("Approvers") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", "DutyTime") + .WithMany() + .HasForeignKey("DutyTimeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DutyTime"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Navigation("Approvers"); + + b.Navigation("LeaveDocument"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250421230201_Add Leave Range End.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250421230201_Add Leave Range End.cs new file mode 100644 index 00000000..7a267852 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250421230201_Add Leave Range End.cs @@ -0,0 +1,56 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + /// + public partial class AddLeaveRangeEnd : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "LeaveRange", + table: "LeaveRequests", + type: "longtext", + nullable: true, + comment: "āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄ āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ", + oldClrType: typeof(string), + oldType: "longtext", + oldNullable: true, + oldComment: "āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļē āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ") + .Annotation("MySql:CharSet", "utf8mb4") + .OldAnnotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "LeaveRangeEnd", + table: "LeaveRequests", + type: "longtext", + nullable: true, + comment: "āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ” āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "LeaveRangeEnd", + table: "LeaveRequests"); + + migrationBuilder.AlterColumn( + name: "LeaveRange", + table: "LeaveRequests", + type: "longtext", + nullable: true, + comment: "āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļē āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ", + oldClrType: typeof(string), + oldType: "longtext", + oldNullable: true, + oldComment: "āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄ āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ") + .Annotation("MySql:CharSet", "utf8mb4") + .OldAnnotation("MySql:CharSet", "utf8mb4"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs index 4e378377..c0baddfa 100644 --- a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs @@ -466,7 +466,11 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb b.Property("LeaveRange") .HasColumnType("longtext") - .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļē āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄ āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveRangeEnd") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ” āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); b.Property("LeaveSalary") .HasColumnType("int"); diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 6a659a3a..03cd8833 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -868,6 +868,13 @@ namespace BMA.EHR.Leave.Service.Controllers [ProducesResponseType(StatusCodes.Status500InternalServerError)] public async Task> CheckUserLeaveAsync([FromBody] GetLeaveCheckDto req) { + var totalDay = (double)req.StartLeaveDate.DiffDay(req.EndLeaveDate.Date); + + + + + + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); @@ -893,7 +900,7 @@ namespace BMA.EHR.Leave.Service.Controllers var sumLeave = await _leaveRequestRepository.GetSumLeaveByTypeForUserAsync(userId, req.Type, req.StartLeaveDate.Year); var sumWorkDay = await _holidayRepository.GetHolidayCountAsync(req.StartLeaveDate.Date, req.EndLeaveDate.Date, category); - var totalDay = req.StartLeaveDate.DiffDay(req.EndLeaveDate.Date); + var sumWeekend = _holidayRepository.GetWeekEndCount(req.StartLeaveDate.Date, req.EndLeaveDate.Date, category); var sumApproveLeave = await _leaveRequestRepository.GetSumApproveLeaveByTypeForUserAsync(userId, req.Type, req.StartLeaveDate.Year); @@ -921,6 +928,10 @@ namespace BMA.EHR.Leave.Service.Controllers var isLeave = false; + + + + switch (leaveType.Code.ToUpper().Trim()) { case "LV-001": @@ -1086,6 +1097,35 @@ namespace BMA.EHR.Leave.Service.Controllers break; } + if (totalDay > 1) + { + if (req.LeaveRange == "MORNING" || req.LeaveRangeEnd == "AFTERNOON") + { + isLeave = false; + message = "āļŠāđˆāļ§āļ‡āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāļĢāļ°āļšāļļāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡"; + } + + if (req.LeaveRange != "ALL") + totalDay -= 0.5; + + if (req.LeaveRangeEnd != "ALL") + totalDay -= 0.5; + + } + else if (totalDay == 1) + { + + if (req.LeaveRange != req.LeaveRangeEnd) + { + isLeave = false; + message = "āļŠāđˆāļ§āļ‡āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāļĢāļ°āļšāļļāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡"; + } + if (req.LeaveRange != "ALL") + totalDay -= 0.5; + + } + + //var isLeave = sumLeave + (totalDay - sumWorkDay - sumWeekend) <= leaveType.Limit; var result = new GetLeaveCheckResultDto diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCheckDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCheckDto.cs index e7a29847..4e977669 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCheckDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCheckDto.cs @@ -12,5 +12,11 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest [Required] public DateTime EndLeaveDate { get; set;} = DateTime.MinValue; + + [Required] + public string LeaveRange { get; set; } = "ALL"; + + [Required] + public string LeaveRangeEnd { get; set; } = "ALL"; } } From 6b453b8bdf02e168542cd37ab8ccd4f89cf89bd4 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 22 Apr 2025 10:51:58 +0700 Subject: [PATCH 222/879] =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97?= =?UTF-8?q?=E0=B8=B6=E0=B8=81=E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B9=81=E0=B8=81?= =?UTF-8?q?=E0=B9=89=E0=B9=84=E0=B8=82=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=80?= =?UTF-8?q?=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=20LeaveRangeEnd=20?= =?UTF-8?q?=E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=80?= =?UTF-8?q?=E0=B8=AD=E0=B8=B2=E0=B8=84=E0=B9=88=E0=B8=B2=E0=B8=A1=E0=B8=B2?= =?UTF-8?q?=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 7 +++++++ BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 7 ++++++- BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs | 2 ++ BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs | 2 ++ .../DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs | 3 +++ .../DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs | 2 ++ 6 files changed, 22 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 8b387472..0adcd9e5 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -1258,6 +1258,13 @@ namespace BMA.EHR.Leave.Service.Controllers remarkStr += "āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē"; else if (leaveRange == "AFTERNOON") remarkStr += "āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"; + + + var leaveRangeEnd = leaveReq.LeaveRangeEnd == null ? "" : leaveReq.LeaveRangeEnd.ToUpper(); + if (leaveRangeEnd == "MORNING") + remarkStr += "āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē"; + else if (leaveRangeEnd == "AFTERNOON") + remarkStr += "āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"; break; default: remarkStr += leaveReq.Type.Name; diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 03cd8833..9472c635 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -174,6 +174,7 @@ namespace BMA.EHR.Leave.Service.Controllers LeaveSubTypeName = req.LeaveSubTypeName, LeaveRange = req.LeaveRange, + LeaveRangeEnd = req.LeaveRangeEnd, LeaveStartDate = req.LeaveStartDate, LeaveEndDate = req.LeaveEndDate, LeaveWrote = req.LeaveWrote ?? "", @@ -493,6 +494,7 @@ namespace BMA.EHR.Leave.Service.Controllers // āļĨāļ­āļ‡āđƒāļŠāđ‰ oldData oldData.LeaveRange = req.LeaveRange; + oldData.LeaveRangeEnd = req.LeaveRangeEnd; oldData.LeaveStartDate = req.LeaveStartDate; oldData.LeaveEndDate = req.LeaveEndDate; oldData.LeaveWrote = req.LeaveWrote ?? ""; @@ -1328,7 +1330,8 @@ namespace BMA.EHR.Leave.Service.Controllers var result = new GetLeaveRequestByIdDto { Id = rawData.Id, - LeaveRange = rawData.LeaveRange ?? "", + LeaveRange = rawData.LeaveRange ?? "ALL", + LeaveRangeEnd = rawData.LeaveRangeEnd ?? "ALL", LeaveTypeName = rawData.Type.Name, LeaveSubTypeName = rawData.LeaveSubTypeName, LeaveTypeId = rawData.Type.Id, @@ -1493,6 +1496,7 @@ namespace BMA.EHR.Leave.Service.Controllers Agency = agency_name,//agency == null ? "" : agency.Name, Org = item.Root ?? "",//userOc == null ? "-" : userOc.Root, LeaveRange = item.LeaveRange ?? "ALL", + LeaveRangeEnd = item.LeaveRangeEnd ?? "ALL", HajjDayStatus = item.HajjDayStatus, }; @@ -1993,6 +1997,7 @@ namespace BMA.EHR.Leave.Service.Controllers LeaveNumber = rawData.LeaveNumber, LeaveDetail = rawData.LeaveDetail, LeaveRange = rawData.LeaveRange ?? "ALL", + LeaveRangeEnd = rawData.LeaveRangeEnd ?? "ALL", LeaveDocument = new(), //LeaveDocument = rawData.LeaveDocument == null ? "" : await _minIOService.ImagesPath(rawData.LeaveDocument.Id), LeaveDraftDocument = rawData.LeaveDraftDocument == null ? "" : await _minIOService.ImagesPath(rawData.LeaveDraftDocument.Id), diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs index c431388d..62e9ab4f 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs @@ -21,6 +21,8 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string? LeaveRange { get; set; } = "ALL"; + public string? LeaveRangeEnd { get; set; } = "ALL"; + public double LeaveTotal { get; set; } = 0.0; public string? LeaveAddress { get; set; } diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs index 508c9173..449cecc3 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs @@ -27,6 +27,8 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string? LeaveRange { get; set; } = string.Empty; + public string? LeaveRangeEnd { get; set; } = string.Empty; + public string LeaveAddress { get; set; } = string.Empty; public string LeaveNumber { get; set; } = string.Empty; diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs index 71c5d970..3693a941 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs @@ -135,6 +135,9 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public double LeaveRemain { get; set; } = 0; public string LeaveRange { get; set; } = string.Empty; + + public string LeaveRangeEnd { get; set; } = string.Empty; + public string? ProfileType { get; set; } public string? CommanderPosition { get; set; } = string.Empty; diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs index 19aa8b96..42a508ff 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminResultDto.cs @@ -32,6 +32,8 @@ public string LeaveRange { get; set; } = string.Empty; + public string LeaveRangeEnd { get; set; } = string.Empty; + public bool? HajjDayStatus { get; set; } public string? ProfileType { get; set; } From 15385286da89e803fdad85adbb44b6fd1929bc3f Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 22 Apr 2025 10:54:11 +0700 Subject: [PATCH 223/879] =?UTF-8?q?fix=20=E0=B8=A3=E0=B8=B0=E0=B8=9A?= =?UTF-8?q?=E0=B8=9A=E0=B8=9E=E0=B9=89=E0=B8=99=E0=B8=88=E0=B8=B2=E0=B8=81?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3>>?= =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=81=E0=B8=B2=E0=B8=A8=E0=B9=80?= =?UTF-8?q?=E0=B8=81=E0=B8=A9=E0=B8=B5=E0=B8=A2=E0=B8=93=20(=E0=B8=94?= =?UTF-8?q?=E0=B8=B2=E0=B8=A7=E0=B8=99=E0=B9=8C=E0=B9=82=E0=B8=AB=E0=B8=A5?= =?UTF-8?q?=E0=B8=94=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=81=E0=B8=B2=E0=B8=A8=E0=B9=80?= =?UTF-8?q?=E0=B8=81=E0=B8=A9=E0=B8=B5=E0=B8=A2=E0=B8=93=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=9A=E0=B8=9A=E0=B9=81=E0=B8=88=E0=B9=89=E0=B8=87=20Error)?= =?UTF-8?q?=20#1380?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Retirement.Service/Controllers/RetirementController.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index 6a69c8f5..d0290010 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -2123,7 +2123,6 @@ namespace BMA.EHR.Retirement.Service.Controllers public async Task> GetProfileRetirement([FromRoute] Guid Id, string exportType = "pdf") { var retire = await _service.GetProfileRetirementdAsync(Id, token); - return Success("xxx"); if (retire != null) { var reportfile = string.Empty; From b61e36e5320836e393f0ff448dd262149a7e0e96 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 22 Apr 2025 13:05:47 +0700 Subject: [PATCH 224/879] fix #1136 --- .../Controllers/LeaveRequestController.cs | 40 +++++++++++++++++-- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 9472c635..665b7cab 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -12,10 +12,12 @@ using BMA.EHR.Infrastructure.Persistence; using BMA.EHR.Leave.Service.DTOs.LeaveRequest; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Org.BouncyCastle.Asn1.Pkcs; +using Sentry; using Swashbuckle.AspNetCore.Annotations; using System.Net.Http.Headers; using System.Security.Claims; @@ -1978,6 +1980,38 @@ namespace BMA.EHR.Leave.Service.Controllers if (rawData.Root != null && rawData.Root != "") orgName += $" {rawData.Root}"; + // #1136 + var extendLeave = 0.0; + var leaveLimit = rawData.Type.Limit; + + var approvePrevYear = await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear - 1); + + if (rawData.Type.Code == "LV-005") + { + var apprvPrevData = approvePrevYear.FirstOrDefault(x => x.KeycloakUserId == rawData.KeycloakUserId && x.LeaveTypeId == rawData.Type.Id); + var apprvPrev = apprvPrevData == null ? 0 : apprvPrevData.SumLeaveDay; + + var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(rawData.KeycloakUserId, AccessToken); + var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); + + if (govAge >= 180) + { + if (govAge >= 3650) + { + // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ + extendLeave = 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + if (extendLeave >= 20) extendLeave = 20; + } + else + { + extendLeave = 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + if (extendLeave >= 10) extendLeave = 10; + } + } + else + leaveLimit = 0; + } + var result = new GetLeaveRequestForAdminByIdDto { Id = rawData.Id, @@ -2071,9 +2105,9 @@ namespace BMA.EHR.Leave.Service.Controllers ApproveStep = rawData.ApproveStep ?? "-", - LeaveLimit = rawData.Type.Limit, + LeaveLimit = rawData.Type.Limit + extendLeave, LeaveSummary = leaveSummary, - LeaveRemain = rawData.Type.Limit - leaveSummary + LeaveRemain = (rawData.Type.Limit + extendLeave) - leaveSummary }; if (rawData.LeaveDocument != null && rawData.LeaveDocument.Count > 0) @@ -2141,7 +2175,7 @@ namespace BMA.EHR.Leave.Service.Controllers if (leaveType.Code == "LV-005") { var apprvPrevData = approvePrevYear.FirstOrDefault(x => x.KeycloakUserId == userId && x.LeaveTypeId == leaveType.Id); - var apprvPrev = apprvPrevData == null ? 0 : approveData.SumLeaveDay; + var apprvPrev = apprvPrevData == null ? 0 : apprvPrevData.SumLeaveDay; var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); From 2730ac9174e73e5413969874edf2142a89a70212 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 22 Apr 2025 13:16:37 +0700 Subject: [PATCH 225/879] fix #1134 --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 665b7cab..7c765654 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -2051,8 +2051,12 @@ namespace BMA.EHR.Leave.Service.Controllers WifeDayName = rawData.WifeDayName, WifeDayDateBorn = rawData.WifeDayDateBorn, - RestDayOldTotal = rawData.RestDayOldTotal, - RestDayCurrentTotal = rawData.RestDayCurrentTotal, + RestDayOldTotal = extendLeave, + RestDayCurrentTotal = rawData.Type.Limit, + // #1134 + //RestDayOldTotal = rawData.RestDayOldTotal, + //RestDayCurrentTotal = rawData.RestDayCurrentTotal, + OrdainDayStatus = rawData.OrdainDayStatus, OrdainDayLocationName = rawData.OrdainDayLocationName, OrdainDayLocationAddress = rawData.OrdainDayLocationAddress, From 0f705431d4420bcf72b89104e0c42385621dcb6c Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 22 Apr 2025 13:25:11 +0700 Subject: [PATCH 226/879] =?UTF-8?q?fix=20=E0=B8=A3=E0=B8=B0=E0=B8=9A?= =?UTF-8?q?=E0=B8=9A=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2?= =?UTF-8?q?=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95?= =?UTF-8?q?=E0=B8=B4=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=9E=E0=B9=89=E0=B8=99?= =?UTF-8?q?=E0=B8=88=E0=B8=B2=E0=B8=81=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=20=E0=B8=82=E0=B8=A3=E0=B8=81.=20>>=E0=B8=81?= =?UTF-8?q?=E0=B8=A3=E0=B8=93=E0=B8=B5=E0=B8=AA=E0=B9=88=E0=B8=87=E0=B8=81?= =?UTF-8?q?=E0=B8=A5=E0=B8=B1=E0=B8=9A=E0=B9=80=E0=B8=82=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=20(=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1?= =?UTF-8?q?=E0=B8=B9=E0=B8=A5=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=A7=E0=B8=A2?= =?UTF-8?q?=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=9A?= =?UTF-8?q?=E0=B8=A3=E0=B8=A3=E0=B8=88=E0=B8=B8=E0=B9=81=E0=B8=AA=E0=B8=94?= =?UTF-8?q?=E0=B8=87=E0=B8=9C=E0=B8=B4=E0=B8=94)=20#1401?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/RetirementOtherController.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index e61d1a10..777bef02 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -730,7 +730,14 @@ namespace BMA.EHR.Retirement.Service.Controllers OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = p.LeaveDate == null ? "-" : p.LeaveDate.Value.ToThaiShortDate2().ToThaiNumber(), - NewOc = (p.OrganizationPositionOld == null ? "" : p.OrganizationPositionOld) + "\n" + (p.rootOld == null ? "" : p.rootOld), + //NewOc = (p.OrganizationPositionOld == null ? "" : p.OrganizationPositionOld) + "\n" + (p.rootOld == null ? "" : p.rootOld), + NewOc = (p.position == null ? "" : $"{p.position}\n") + + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + + (p.child4 == null ? "" : $"{p.child4}\n") + + (p.child3 == null ? "" : $"{p.child3}\n") + + (p.child2 == null ? "" : $"{p.child2}\n") + + (p.child1 == null ? "" : $"{p.child1}\n") + + (p.root == null ? "" : $"{p.root}"), NewPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, NewPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, NewPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), From 56501b5bcdcd01af9c2dd58d39e32b52f5ed86d4 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 22 Apr 2025 13:31:54 +0700 Subject: [PATCH 227/879] fix #1337 --- .../Controllers/LeaveRequestController.cs | 81 ++++++++++--------- 1 file changed, 44 insertions(+), 37 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 7c765654..d5d1ddd7 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1816,49 +1816,56 @@ namespace BMA.EHR.Leave.Service.Controllers public async Task> SendLeaveRequestAsync(Guid id, [FromBody] LeaveRequestApproveDto req) { - await _leaveRequestRepository.SendToOfficerAsync(id); + try + { + await _leaveRequestRepository.SendToOfficerAsync(id); - var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); - if (profile == null) - { - return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); - } - var baseAPIOrg = _configuration["API"]; - var apiUrlOrg = $"{baseAPIOrg}/org/workflow/add-workflow"; - if (profile.ProfileType == "OFFICER") - { - using (var client = new HttpClient()) + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); + if (profile == null) { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _res = await client.PostAsJsonAsync(apiUrlOrg, new - { - refId = id, - sysName = "SYS_LEAVE_LIST", - posLevelName = profile.PosLevel ?? "", - posTypeName = profile.PosType ?? "", - fullName = $"{profile.Prefix}{profile.FirstName} {profile.LastName}" - }); + return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); } - } - else - { - using (var client = new HttpClient()) + var baseAPIOrg = _configuration["API"]; + var apiUrlOrg = $"{baseAPIOrg}/org/workflow/add-workflow"; + if (profile.ProfileType == "OFFICER") { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _res = await client.PostAsJsonAsync(apiUrlOrg, new + using (var client = new HttpClient()) { - refId = id, - sysName = "SYS_LEAVE_LIST_EMP", - posLevelName = "EMP", - posTypeName = "EMP", - }); + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.PostAsJsonAsync(apiUrlOrg, new + { + refId = id, + sysName = "SYS_LEAVE_LIST", + posLevelName = profile.PosLevel ?? "", + posTypeName = profile.PosType ?? "", + fullName = $"{profile.Prefix}{profile.FirstName} {profile.LastName}" + }); + } + } + else + { + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.PostAsJsonAsync(apiUrlOrg, new + { + refId = id, + sysName = "SYS_LEAVE_LIST_EMP", + posLevelName = "EMP", + posTypeName = "EMP", + }); + } } - } - return Success(); + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } } /// @@ -1984,7 +1991,7 @@ namespace BMA.EHR.Leave.Service.Controllers var extendLeave = 0.0; var leaveLimit = rawData.Type.Limit; - var approvePrevYear = await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear - 1); + var approvePrevYear = await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear - 1); if (rawData.Type.Code == "LV-005") { From 193cffa7c4b73cd7d459fdb25812b7413e710bc3 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 22 Apr 2025 13:46:35 +0700 Subject: [PATCH 228/879] fix #1335 --- .../Controllers/LeaveReportController.cs | 66 +++++++++++++++++-- 1 file changed, 59 insertions(+), 7 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 0adcd9e5..a8a2a0d0 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -3,6 +3,7 @@ using BMA.EHR.Application.Repositories.Commands; using BMA.EHR.Application.Repositories.Leaves.LeaveRequests; using BMA.EHR.Application.Repositories.Leaves.TimeAttendants; using BMA.EHR.Application.Repositories.MetaData; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Leave.Requests; @@ -10,13 +11,15 @@ using BMA.EHR.Domain.Shared; using BMA.EHR.Leave.Service.DTOs.Reports; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Newtonsoft.Json.Linq; +using Microsoft.OpenApi.Any; using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using Org.BouncyCastle.Asn1.Pkcs; +using Org.BouncyCastle.Ocsp; +using Sentry; using Swashbuckle.AspNetCore.Annotations; using System.Globalization; using System.Security.Claims; -using BMA.EHR.Application.Responses.Profiles; -using Microsoft.OpenApi.Any; namespace BMA.EHR.Leave.Service.Controllers { @@ -228,12 +231,17 @@ namespace BMA.EHR.Leave.Service.Controllers private async Task GetReport03(LeaveRequest data) { + + + var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(data.KeycloakUserId, AccessToken); if (profile == null) { return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); } + + var fullName = $"{profile!.Prefix}{profile!.FirstName} {profile!.LastName}"; //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); @@ -247,6 +255,46 @@ namespace BMA.EHR.Leave.Service.Controllers var sumLeave = await _leaveRequestRepository.GetSumApproveLeaveByTypeForUserAsync(data.KeycloakUserId, data.Type.Id, data.LeaveStartDate.Year); + //var userCalendar = await _userCalendarRepository.GetExist(profile.Id); + //var category = userCalendar == null ? "NORMAL" : userCalendar.Calendar; + + //var sumWorkDay = await _holidayRepository.GetHolidayCountAsync(data.LeaveStartDate.Date, data.LeaveEndDate.Date, category); + + //var sumWeekend = _holidayRepository.GetWeekEndCount(data.LeaveStartDate.Date, data.LeaveEndDate.Date, category); + + + + var extendLeave = 0.0; + var leaveLimit = data.Type.Limit; + + var approvePrevYear = await _leaveRequestRepository.GetSumApproveLeaveAsync(data.LeaveStartDate.Year - 1); + + if (data.Type.Code == "LV-005") + { + var apprvPrevData = approvePrevYear.FirstOrDefault(x => x.KeycloakUserId == data.KeycloakUserId && x.LeaveTypeId == data.Type.Id); + var apprvPrev = apprvPrevData == null ? 0 : apprvPrevData.SumLeaveDay; + + //var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(data.KeycloakUserId, AccessToken); + var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); + + if (govAge >= 180) + { + if (govAge >= 3650) + { + // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ + extendLeave = 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + if (extendLeave >= 20) extendLeave = 20; + } + else + { + extendLeave = 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + if (extendLeave >= 10) extendLeave = 10; + } + } + else + leaveLimit = 0; + } + return new { template = "leave11", @@ -263,17 +311,21 @@ namespace BMA.EHR.Leave.Service.Controllers positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), organizationName = profile!.Oc!.ToThaiNumber() ?? "", - restDayOldTotal = data.RestDayOldTotal.ToString().ToThaiNumber(), - restDayCurrentTotal = data.RestDayCurrentTotal.ToString().ToThaiNumber(), + restDayOldTotal = extendLeave.ToString().ToThaiNumber(), + restDayCurrentTotal = leaveLimit.ToString().ToThaiNumber(), + + //restDayOldTotal = data.RestDayOldTotal.ToString().ToThaiNumber(), + //restDayCurrentTotal = data.RestDayCurrentTotal.ToString().ToThaiNumber(), leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), + leaveTotal = data.LeaveTotal.ToString().ToThaiNumber(), + //LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), leaveAddress = data.LeaveAddress.ToThaiNumber(), leaveNumber = data.LeaveNumber.ToThaiNumber(), LeaveSummary = sumLeave.ToString().ToThaiNumber(), - LeaveRemain = (data.Type.Limit - sumLeave).ToString().ToThaiNumber(), + LeaveRemain = (data.Type.Limit + extendLeave - sumLeave).ToString().ToThaiNumber(), } }; } From ddc3d268be1c71a8898738c82f57a4b47eb0ca1e Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 22 Apr 2025 14:28:51 +0700 Subject: [PATCH 229/879] =?UTF-8?q?add=20api=20add=20commander=20and=20app?= =?UTF-8?q?rover=20=E0=B8=94=E0=B9=89=E0=B8=A7=E0=B8=A2=20=E0=B9=81?= =?UTF-8?q?=E0=B8=A5=E0=B8=B0=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B9=80=E0=B8=A0=E0=B8=97=E0=B8=82?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B8=B8=E0=B8=A1=E0=B8=B1=E0=B8=95=E0=B8=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveRequestRepository.cs | 2 + .../Leave/Requests/LeaveRequestApprover.cs | 2 + ...250422065634_Add Approver Type.Designer.cs | 1481 +++++++++++++++++ .../20250422065634_Add Approver Type.cs | 29 + .../LeaveDb/LeaveDbContextModelSnapshot.cs | 3 + .../Controllers/LeaveRequestController.cs | 97 +- .../LeaveRequest/CreateLeaveRequestDto.cs | 26 +- .../LeaveRequest/LeaveRequestApproverDto.cs | 28 + 8 files changed, 1620 insertions(+), 48 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250422065634_Add Approver Type.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250422065634_Add Approver Type.cs create mode 100644 BMA.EHR.Leave/DTOs/LeaveRequest/LeaveRequestApproverDto.cs diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index cb3820c4..85e45658 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -74,6 +74,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests { var data = await _dbContext.Set().AsQueryable() //.AsNoTracking() + .Include(x => x.Approvers) .Include(x => x.LeaveDocument) .ThenInclude(x => x.Document) .Include(x => x.LeaveDraftDocument) @@ -88,6 +89,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests { var data = await _dbContext.Set().AsQueryable() .AsNoTracking() + .Include(x => x.Approvers) .Include(x => x.LeaveDocument) .ThenInclude(x => x.Document) .Include(x => x.LeaveDraftDocument) diff --git a/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequestApprover.cs b/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequestApprover.cs index 88e86dd7..11b1b719 100644 --- a/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequestApprover.cs +++ b/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequestApprover.cs @@ -23,5 +23,7 @@ namespace BMA.EHR.Domain.Models.Leave.Requests public string ApproveStatus { get; set; } = string.Empty; public string Comment { get; set; } = string.Empty; + + public string? ApproveType { get; set; } = string.Empty; // āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē = commander, āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļī = Approver } } diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250422065634_Add Approver Type.Designer.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250422065634_Add Approver Type.Designer.cs new file mode 100644 index 00000000..8e5e5319 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250422065634_Add Approver Type.Designer.cs @@ -0,0 +1,1481 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + [DbContext(typeof(LeaveDbContext))] + [Migration("20250422065634_Add Approver Type")] + partial class AddApproverType + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Code") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Limit") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļŠāļđāļ‡āļŠāļļāļ”āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("LeaveTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDays") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļē"); + + b.Property("LeaveTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.HasIndex("LeaveTypeId"); + + b.ToTable("LeaveBeginnings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AbsentDayAt") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayGetIn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayLocation") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayRegistorDate") + .HasColumnType("datetime(6)"); + + b.Property("AbsentDaySummon") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("CancelLeaveWrote") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ (āļ‚āļ­āļĒāļāđ€āļĨāļīāļ)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CommanderPosition") + .HasColumnType("longtext"); + + b.Property("CoupleDayCountryHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayEndDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDayLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayLevelCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayPosition") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayStartDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDaySumTotalHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayTotalHistory") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("Dear") + .HasColumnType("longtext") + .HasComment("āđ€āļĢāļĩāļĒāļ™āđƒāļ„āļĢ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("HajjDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveAddress") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveBirthDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveCancelComment") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveCancelDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveCancelStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("LeaveDetail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļĨāļē"); + + b.Property("LeaveDirectorComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļ­āļģāļ™āļ§āļĒāļāļēāļĢāļŠāļģāļ™āļąāļ"); + + b.Property("LeaveDraftDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("LeaveGovernmentDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveLast") + .HasColumnType("datetime(6)"); + + b.Property("LeaveNumber") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveRange") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄ āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveRangeEnd") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ” āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveSalary") + .HasColumnType("int"); + + b.Property("LeaveSalaryText") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LeaveStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļĨāļē"); + + b.Property("LeaveStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļĢāđ‰āļ­āļ‡"); + + b.Property("LeaveSubTypeName") + .HasColumnType("longtext"); + + b.Property("LeaveTotal") + .HasColumnType("double"); + + b.Property("LeaveTypeCode") + .HasColumnType("longtext") + .HasComment("code āļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveWrote") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ"); + + b.Property("OrdainDayBuddhistLentAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayBuddhistLentName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationNumber") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayOrdination") + .HasColumnType("datetime(6)"); + + b.Property("OrdainDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionLevelName") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RestDayCurrentTotal") + .HasColumnType("double"); + + b.Property("RestDayOldTotal") + .HasColumnType("double"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("StudyDayCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayDegreeLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayScholarship") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDaySubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingSubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayUniversityName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("TypeId") + .HasColumnType("char(36)"); + + b.Property("WifeDayDateBorn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("WifeDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("LeaveCancelDocumentId"); + + b.HasIndex("LeaveDraftDocumentId"); + + b.HasIndex("TypeId"); + + b.ToTable("LeaveRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveRequestApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.AdditionalCheckRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckDate") + .HasColumnType("datetime(6)") + .HasComment("*āļ§āļąāļ™āļ—āļĩāđˆāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("CheckInEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("CheckOutEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđƒāļ™āļāļēāļĢāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("*āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āļ‚āļ­"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("AdditionalCheckRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ"); + + b.Property("EndTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("EndTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļīāļ”āđƒāļŠāđ‰āļ‡āļēāļ™ (āđ€āļ›āļīāļ”/āļ›āļīāļ”)"); + + b.Property("IsDefault") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ§āđˆāļēāļĢāļ­āļšāđƒāļ”āđ€āļ›āđ‡āļ™āļ„āđˆāļē Default āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ (āļŠāļģāļŦāļĢāļąāļšāļ—āļļāļāļ„āļ™āļ—āļĩāđˆāļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ—āļģāļāļēāļĢāđ€āļĨāļ·āļ­āļāļĢāļ­āļš)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("StartTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("StartTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("DutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.ProcessUserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckInStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("CheckOutStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EditReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("EditStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ‚āļ­āļ‡āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("ProcessUserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserCalendar", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Calendar") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļāļīāļ—āļīāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡ āļ‚āļĢāļ āļ›āļāļ•āļī āļŦāļĢāļ·āļ­ 6 āļ§āļąāļ™āļ•āđˆāļ­āļŠāļąāļ›āļ”āļēāļŦāđŒ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("UserCalendars"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("EffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļœāļĨ"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DutyTimeId"); + + b.ToTable("UserDutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("UserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "LeaveType") + .WithMany() + .HasForeignKey("LeaveTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("LeaveDocument") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveCancelDocument") + .WithMany() + .HasForeignKey("LeaveCancelDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveDraftDocument") + .WithMany() + .HasForeignKey("LeaveDraftDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "Type") + .WithMany() + .HasForeignKey("TypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveCancelDocument"); + + b.Navigation("LeaveDraftDocument"); + + b.Navigation("Type"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("Approvers") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", "DutyTime") + .WithMany() + .HasForeignKey("DutyTimeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DutyTime"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Navigation("Approvers"); + + b.Navigation("LeaveDocument"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250422065634_Add Approver Type.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250422065634_Add Approver Type.cs new file mode 100644 index 00000000..a3241003 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250422065634_Add Approver Type.cs @@ -0,0 +1,29 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + /// + public partial class AddApproverType : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "ApproveType", + table: "LeaveRequestApprovers", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "ApproveType", + table: "LeaveRequestApprovers"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs index c0baddfa..fc298018 100644 --- a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs @@ -625,6 +625,9 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb .IsRequired() .HasColumnType("longtext"); + b.Property("ApproveType") + .HasColumnType("longtext"); + b.Property("Comment") .IsRequired() .HasColumnType("longtext"); diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index d5d1ddd7..956ed233 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -113,6 +113,57 @@ namespace BMA.EHR.Leave.Service.Controllers #region " Methods " + /// + /// āđ€āļžāļīāđˆāļĄāļĢāļēāļĒāļŠāļīāļ·āđˆāļ­āļœāļđāđ‰āļ­āļ™āļļāļĄāļąāļ•āļī āļŦāļĢāļ·āļ­ āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("officer/add-approver/{type}/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> AddApprover(string type, Guid id, [FromBody] List req) + { + try + { + var leaveReq = await _leaveRequestRepository.GetByIdAsync(id); + if (leaveReq == null) + { + return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); + } + + var delete = leaveReq.Approvers.RemoveAll(x => x.ApproveType == type.Trim().ToUpper()); + + foreach (var r in req) + { + leaveReq.Approvers.Add(new LeaveRequestApprover + { + Seq = r.Seq, + Prefix = r.Prefix, + FirstName = r.FirstName, + LastName = r.LastName, + PositionName = r.PositionName, + ProfileId = r.ProfileId, + KeycloakId = r.KeycloakId, + ApproveStatus = "PENDING", + ApproveType = type.Trim().ToUpper() + }); + } + + await _leaveRequestRepository.UpdateAsync(leaveReq); + + return Success(); + + } + catch (Exception ex) + { + return Error(ex); + } + } + /// /// LV2_001 - āļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ‚āļ­āļāļēāļĢāļĨāļē (USER) /// @@ -370,30 +421,30 @@ namespace BMA.EHR.Leave.Service.Controllers leaveRequest.PositionLevelName = profile.PosLevel == null ? "" : profile.PosLevel; leaveRequest.OrganizationName = userOc; - if (req.Approvers != null && req.Approvers != "") - { - //var jsonString = System.Text.Json.JsonSerializer.Deserialize(req.Approvers ?? ""); - //var fixedJson = req.Approvers.Replace("\\\"", "\""); - var approvers = JsonConvert.DeserializeObject>(req.Approvers); - if (approver != null) - { - foreach (var r in approvers!) - { - leaveRequest.Approvers.Add(new LeaveRequestApprover - { - Seq = r.Seq, - Prefix = r.Prefix, - FirstName = r.FirstName, - LastName = r.LastName, - PositionName = r.PositionName, - ProfileId = r.ProfileId, - KeycloakId = r.KeycloakId, - ApproveStatus = "PENDING", - }); - } - } + //if (req.Approvers != null && req.Approvers != "") + //{ + // //var jsonString = System.Text.Json.JsonSerializer.Deserialize(req.Approvers ?? ""); + // //var fixedJson = req.Approvers.Replace("\\\"", "\""); + // var approvers = JsonConvert.DeserializeObject>(req.Approvers); + // if (approver != null) + // { + // foreach (var r in approvers!) + // { + // leaveRequest.Approvers.Add(new LeaveRequestApprover + // { + // Seq = r.Seq, + // Prefix = r.Prefix, + // FirstName = r.FirstName, + // LastName = r.LastName, + // PositionName = r.PositionName, + // ProfileId = r.ProfileId, + // KeycloakId = r.KeycloakId, + // ApproveStatus = "PENDING", + // }); + // } + // } - } + //} // save to database diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs index 62e9ab4f..b8cc2c03 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs @@ -102,31 +102,7 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public DateTime? CoupleDayEndDateHistory { get; set; } public string? CoupleDaySumTotalHistory { get; set; } - - public string? Approvers { get; set; } = string.Empty; } - public class LeaveRequestApproverDto - { - [JsonProperty("seq")] - public int Seq { get; set; } = 0; - - [JsonProperty("prefix")] - public string Prefix { get; set; } = string.Empty; - - [JsonProperty("firstName")] - public string FirstName { get; set; } = string.Empty; - - [JsonProperty("lastName")] - public string LastName { get; set; } = string.Empty; - - [JsonProperty("positionName")] - public string PositionName { get; set; } = string.Empty; - - [JsonProperty("profileId")] - public Guid ProfileId { get; set; } = Guid.Empty; - - [JsonProperty("keycloakId")] - public Guid KeycloakId { get; set; } = Guid.Empty; - } + } diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/LeaveRequestApproverDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/LeaveRequestApproverDto.cs new file mode 100644 index 00000000..57a70e8d --- /dev/null +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/LeaveRequestApproverDto.cs @@ -0,0 +1,28 @@ +ïŧŋusing Newtonsoft.Json; + +namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest +{ + public class LeaveRequestApproverDto + { + [JsonProperty("seq")] + public int Seq { get; set; } = 0; + + [JsonProperty("prefix")] + public string Prefix { get; set; } = string.Empty; + + [JsonProperty("firstName")] + public string FirstName { get; set; } = string.Empty; + + [JsonProperty("lastName")] + public string LastName { get; set; } = string.Empty; + + [JsonProperty("positionName")] + public string PositionName { get; set; } = string.Empty; + + [JsonProperty("profileId")] + public Guid ProfileId { get; set; } = Guid.Empty; + + [JsonProperty("keycloakId")] + public Guid KeycloakId { get; set; } = Guid.Empty; + } +} From e635e4ff61fd45650897faf2008ed38adfe02712 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 22 Apr 2025 15:35:10 +0700 Subject: [PATCH 230/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=E0=B8=A1=E0=B8=82=E0=B8=B1=E0=B9=89=E0=B8=99=E0=B8=95?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B8=B8=E0=B8=A1=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B9=83=E0=B8=9A?= =?UTF-8?q?=E0=B8=A5=E0=B8=B2=20=E0=B9=82=E0=B8=94=E0=B8=A2=E0=B8=94?= =?UTF-8?q?=E0=B8=B6=E0=B8=87=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9?= =?UTF-8?q?=E0=B8=A5=E0=B8=88=E0=B8=B2=E0=B8=81=E0=B8=95=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=87=20approver?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveRequestRepository.cs | 367 +++++++++++++----- .../Controllers/LeaveRequestController.cs | 100 ++++- 2 files changed, 339 insertions(+), 128 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 85e45658..8b828b00 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -510,6 +510,10 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests public async Task CommanderApproveLeaveRequest(Guid id, string reason) { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + var rawData = await GetByIdAsync(id); if (rawData == null) { @@ -518,18 +522,117 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests if (rawData.ApproveStep != "st2") { - throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); } - rawData.LeaveStatus = "PENDING"; - rawData.LeaveComment = reason; - rawData.ApproveStep = "st3"; + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); + var maxSeq = approvers.Max(x => x.Seq); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + approver.ApproveStatus = "APPROVE"; + approver.Comment = reason; + + if (approver.Seq != maxSeq) + { + + + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.FirstName} {rawData.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = "", + }; + _appDbContext.Set().Add(noti); + await _appDbContext.SaveChangesAsync(); + + rawData.LeaveStatus = "PENDING"; + await UpdateAsync(rawData); + } + else + { + rawData.LeaveStatus = "PENDING"; + rawData.LeaveComment = reason; + rawData.ApproveStep = "st3"; + + await UpdateAsync(rawData); + } + + } + + public async Task CommanderRejectLeaveRequest(Guid id, string reason) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + + var rawData = await GetByIdAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + if (rawData.ApproveStep != "st2") + { + throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + } + + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); + var maxSeq = approvers.Max(x => x.Seq); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + approver.ApproveStatus = "REJECT"; + approver.Comment = reason; + + if (approver.Seq != maxSeq) + { + + + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.FirstName} {rawData.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = "", + }; + _appDbContext.Set().Add(noti); + await _appDbContext.SaveChangesAsync(); + + rawData.LeaveStatus = "PENDING"; + await UpdateAsync(rawData); + } + else + { + rawData.LeaveStatus = "PENDING"; + rawData.LeaveComment = reason; + rawData.ApproveStep = "st3"; + + await UpdateAsync(rawData); + } - await UpdateAsync(rawData); } public async Task ApproveLeaveRequest(Guid id, string reason) { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + var rawData = await GetByIdAsync(id); if (rawData == null) { @@ -538,107 +641,125 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests if (rawData.ApproveStep != "st3") { - throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); } - var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(rawData.KeycloakUserId, AccessToken); - if (profile == null) + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); + var maxSeq = approvers.Max(x => x.Seq); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) { - throw new Exception(GlobalMessages.DataNotFound); + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); } - rawData.LeaveStatus = "APPROVE"; - rawData.LeaveDirectorComment = reason; - rawData.ApproveStep = "st4"; + approver.ApproveStatus = "APPROVE"; + approver.Comment = reason; - await UpdateAsync(rawData); - - //var leaveType = await _appDbContext.Set() - // .FirstOrDefaultAsync(x => x.Name == rawData.Type.Name); - - - // insert to profile leave - // var profileLeave = new ProfileLeave - // { - // DateStartLeave = rawData.LeaveStartDate, - // DateEndLeave = rawData.LeaveEndDate, - - // TotalLeave = rawData.LeaveTotal, - // Status = "approve", - // Reason = rawData.LeaveDetail, - - // ProfileId = profile.Id, // change from profile object to id - // TypeLeave = leaveType - // }; - // _appDbContext.Set().Add(profileLeave); - var _baseAPI = _configuration["API"]; - var apiUrlSalary = string.Empty; - if (profile.ProfileType == "OFFICER") + if (approver.Seq != maxSeq) { - apiUrlSalary = $"{_baseAPI}/org/profile/leave"; - using (var client = new HttpClient()) + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti1 = new Notification { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _res = await client.PostAsJsonAsync(apiUrlSalary, new - { - profileId = profile.Id, - leaveTypeId = rawData?.Type?.Id ?? null, - dateLeaveStart = rawData.LeaveStartDate, - dateLeaveEnd = rawData.LeaveEndDate, - totalLeave = 0,//āļŦāļ™āđ‰āļē fe āđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰ - leaveCount = 0,//āļŦāļ™āđ‰āļē fe āđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰ - leaveDays = rawData.LeaveTotal, - status = "approve", - reason = rawData.LeaveDetail, - }); - // var _result = await _res.Content.ReadAsStringAsync(); - } - } - else if (profile.ProfileType == "EMPLOYEE") - { - apiUrlSalary = $"{_baseAPI}/org/profile-employee/leave"; - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _res = await client.PostAsJsonAsync(apiUrlSalary, new - { - profileEmployeeId = profile.Id, - leaveTypeId = rawData?.Type?.Id ?? null, - dateLeaveStart = rawData.LeaveStartDate, - dateLeaveEnd = rawData.LeaveEndDate, - totalLeave = 0, - leaveCount = 0, - leaveDays = rawData.LeaveTotal, - status = "approve", - reason = rawData.LeaveDetail, - }); - } + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.FirstName} {rawData.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = "", + }; + _appDbContext.Set().Add(noti1); + await _appDbContext.SaveChangesAsync(); + + await UpdateAsync(rawData); } else { - throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(rawData.KeycloakUserId, AccessToken); + if (profile == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + rawData.LeaveStatus = "APPROVE"; + rawData.LeaveDirectorComment = reason; + rawData.ApproveStep = "st4"; + + await UpdateAsync(rawData); + + var _baseAPI = _configuration["API"]; + var apiUrlSalary = string.Empty; + if (profile.ProfileType == "OFFICER") + { + apiUrlSalary = $"{_baseAPI}/org/profile/leave"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.PostAsJsonAsync(apiUrlSalary, new + { + profileId = profile.Id, + leaveTypeId = rawData?.Type?.Id ?? null, + dateLeaveStart = rawData.LeaveStartDate, + dateLeaveEnd = rawData.LeaveEndDate, + totalLeave = 0,//āļŦāļ™āđ‰āļē fe āđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰ + leaveCount = 0,//āļŦāļ™āđ‰āļē fe āđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰ + leaveDays = rawData.LeaveTotal, + status = "approve", + reason = rawData.LeaveDetail, + }); + // var _result = await _res.Content.ReadAsStringAsync(); + } + } + else if (profile.ProfileType == "EMPLOYEE") + { + apiUrlSalary = $"{_baseAPI}/org/profile-employee/leave"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _res = await client.PostAsJsonAsync(apiUrlSalary, new + { + profileEmployeeId = profile.Id, + leaveTypeId = rawData?.Type?.Id ?? null, + dateLeaveStart = rawData.LeaveStartDate, + dateLeaveEnd = rawData.LeaveEndDate, + totalLeave = 0, + leaveCount = 0, + leaveDays = rawData.LeaveTotal, + status = "approve", + reason = rawData.LeaveDetail, + }); + } + } + else + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + } + await _appDbContext.SaveChangesAsync(); + + // insert to process timestamp + + + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", + ReceiverUserId = profile.Id, + Type = "", + Payload = "", + }; + _appDbContext.Set().Add(noti); + await _appDbContext.SaveChangesAsync(); } - await _appDbContext.SaveChangesAsync(); - // insert to process timestamp - - - // Send Noti - var noti = new Notification - { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", - ReceiverUserId = profile.Id, - Type = "", - Payload = "", - }; - _appDbContext.Set().Add(noti); - await _appDbContext.SaveChangesAsync(); } public async Task RejectLeaveRequest(Guid id, string reason) { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + var rawData = await GetByIdAsync(id); if (rawData == null) { @@ -647,31 +768,63 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests if (rawData.ApproveStep != "st3") { - throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); } - var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(rawData.KeycloakUserId, AccessToken); - if (profile == null) + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); + var maxSeq = approvers.Max(x => x.Seq); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) { - throw new Exception(GlobalMessages.DataNotFound); + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); } - rawData.LeaveStatus = "REJECT"; - rawData.LeaveDirectorComment = reason; - rawData.ApproveStep = "st5"; + approver.ApproveStatus = "REJECT"; + approver.Comment = reason; - await UpdateAsync(rawData); - - // Send Noti - var noti = new Notification + if (approver.Seq != maxSeq) { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī \r\nāđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļ{reason}", - ReceiverUserId = profile.Id, - Type = "", - Payload = "", - }; - _appDbContext.Set().Add(noti); - await _appDbContext.SaveChangesAsync(); + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.FirstName} {rawData.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = "", + }; + _appDbContext.Set().Add(noti1); + await _appDbContext.SaveChangesAsync(); + + await UpdateAsync(rawData); + } + else + { + var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(rawData.KeycloakUserId, AccessToken); + if (profile == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + rawData.LeaveStatus = "REJECT"; + rawData.LeaveDirectorComment = reason; + rawData.ApproveStep = "st5"; + + await UpdateAsync(rawData); + + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī \r\nāđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļ{reason}", + ReceiverUserId = profile.Id, + Type = "", + Payload = "", + }; + _appDbContext.Set().Add(noti); + await _appDbContext.SaveChangesAsync(); + } } public async Task> GetSumSendLeaveAsync(int year) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 956ed233..75264540 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1815,15 +1815,57 @@ namespace BMA.EHR.Leave.Service.Controllers public async Task> CommanderApproveLeaveRequestAsync(Guid id, [FromBody] LeaveRequestApproveDto req) { - var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") + try { - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - } - await _leaveRequestRepository.CommanderApproveLeaveRequest(id, req.Reason ?? ""); + var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + await _leaveRequestRepository.CommanderApproveLeaveRequest(id, req.Reason ?? ""); + + return Success(); + } + catch(Exception ex) + { + return Error(ex); + } + + } + + /// + /// āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē(ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin/reject/comander/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> CommanderRejectLeaveRequestAsync(Guid id, + [FromBody] LeaveRequestApproveDto req) + { + try + { + var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + await _leaveRequestRepository.CommanderRejectLeaveRequest(id, req.Reason ?? ""); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } - return Success(); } /// @@ -1841,15 +1883,23 @@ namespace BMA.EHR.Leave.Service.Controllers public async Task> ApproveLeaveRequestAsync(Guid id, [FromBody] LeaveRequestApproveDto req) { - var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") + try { - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - } - await _leaveRequestRepository.ApproveLeaveRequest(id, req.Reason ?? ""); + var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + await _leaveRequestRepository.ApproveLeaveRequest(id, req.Reason ?? ""); - return Success(); + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + } /// @@ -1934,15 +1984,23 @@ namespace BMA.EHR.Leave.Service.Controllers public async Task> RejectLeaveRequestAsync(Guid id, [FromBody] LeaveRequestApproveDto req) { - var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") + try { - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - } - await _leaveRequestRepository.RejectLeaveRequest(id, req.Reason ?? ""); + var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + await _leaveRequestRepository.RejectLeaveRequest(id, req.Reason ?? ""); - return Success(); + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + } /// From e39c6f62c8bbca617b4f139032d59ab2ac750f19 Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 23 Apr 2025 09:32:52 +0700 Subject: [PATCH 231/879] =?UTF-8?q?=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=88?= =?UTF-8?q?=E0=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/PlacementController.cs | 54 ++++++++++++++++++- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 51f35a74..e895bc75 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1834,7 +1834,32 @@ namespace BMA.EHR.Placement.Service.Controllers { posmasterId = p.posmasterId, positionId = p.positionId - } + }, + bodyMarry = new + { + marry = p.Marry, + marryPrefix = p.MarryPrefix, + marryFirstName = p.MarryFirstName, + marryLastName = p.MarryLastName, + marryOccupation = p.MarryOccupation, + marryNationality = p.MarryNationality, + }, + bodyFather = new + { + fatherPrefix = p.FatherPrefix, + fatherFirstName = p.FatherFirstName, + fatherLastName = p.FatherLastName, + fatherOccupation = p.FatherOccupation, + fatherNationality = p.FatherNationality, + }, + bodyMother = new + { + motherPrefix = p.MotherPrefix, + motherFirstName = p.MotherFirstName, + motherLastName = p.MotherLastName, + motherOccupation = p.MotherOccupation, + motherNationality = p.MotherNationality, + }, }).ToList(); var apiUrl = $"{_configuration["API"]}/org/command/excexute/create-officer-profile"; @@ -2157,7 +2182,32 @@ namespace BMA.EHR.Placement.Service.Controllers { posmasterId = p.posmasterId, positionId = p.positionId - } + }, + bodyMarry = new + { + marry = p.Marry, + marryPrefix = p.MarryPrefix, + marryFirstName = p.MarryFirstName, + marryLastName = p.MarryLastName, + marryOccupation = p.MarryOccupation, + marryNationality = p.MarryNationality, + }, + bodyFather = new + { + fatherPrefix = p.FatherPrefix, + fatherFirstName = p.FatherFirstName, + fatherLastName = p.FatherLastName, + fatherOccupation = p.FatherOccupation, + fatherNationality = p.FatherNationality, + }, + bodyMother = new + { + motherPrefix = p.MotherPrefix, + motherFirstName = p.MotherFirstName, + motherLastName = p.MotherLastName, + motherOccupation = p.MotherOccupation, + motherNationality = p.MotherNationality, + }, }).ToList(); var apiUrl = $"{_configuration["API"]}/org/command/excexute/create-officer-profile"; From 19c30e69df78f02380f5515d58ff19dd944fdec8 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 23 Apr 2025 11:25:12 +0700 Subject: [PATCH 232/879] CRUD Leave Beginning --- .../ApplicationServicesRegistration.cs | 1 + .../LeaveRequests/LeaveBeginingRepository.cs | 64 + .../Models/Leave/Requests/LeaveBeginning.cs | 11 +- ...50423024522_Add Leave Day used.Designer.cs | 1485 ++++++++++++++++ .../20250423024522_Add Leave Day used.cs | 50 + ... Profile Info to LeaveBegining.Designer.cs | 1494 +++++++++++++++++ ...25058_Add Profile Info to LeaveBegining.cs | 51 + .../LeaveDb/LeaveDbContextModelSnapshot.cs | 15 +- .../Controllers/LeaveBeginningController.cs | 300 ++++ .../CreateLeaveBeginningDto.cs | 23 + .../LeaveBeginnings/EditLeaveBeginningDto.cs | 23 + .../LeaveBeginnings/GetLeaveBeginningDto.cs | 20 + 12 files changed, 3535 insertions(+), 2 deletions(-) create mode 100644 BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423024522_Add Leave Day used.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423024522_Add Leave Day used.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423025058_Add Profile Info to LeaveBegining.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423025058_Add Profile Info to LeaveBegining.cs create mode 100644 BMA.EHR.Leave/Controllers/LeaveBeginningController.cs create mode 100644 BMA.EHR.Leave/DTOs/LeaveBeginnings/CreateLeaveBeginningDto.cs create mode 100644 BMA.EHR.Leave/DTOs/LeaveBeginnings/EditLeaveBeginningDto.cs create mode 100644 BMA.EHR.Leave/DTOs/LeaveBeginnings/GetLeaveBeginningDto.cs diff --git a/BMA.EHR.Application/ApplicationServicesRegistration.cs b/BMA.EHR.Application/ApplicationServicesRegistration.cs index 312a2597..987de7c3 100644 --- a/BMA.EHR.Application/ApplicationServicesRegistration.cs +++ b/BMA.EHR.Application/ApplicationServicesRegistration.cs @@ -55,6 +55,7 @@ namespace BMA.EHR.Application services.AddTransient(); services.AddTransient(); + services.AddTransient(); services.AddTransient(); diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs new file mode 100644 index 00000000..05a33f89 --- /dev/null +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs @@ -0,0 +1,64 @@ +ïŧŋusing BMA.EHR.Application.Common.Interfaces; +using BMA.EHR.Application.Messaging; +using BMA.EHR.Domain.Models.Leave.Requests; +using Microsoft.AspNetCore.Http; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.Configuration; + +namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests +{ + public class LeaveBeginningRepository : GenericLeaveRepository + { + #region " Fields " + + private readonly ILeaveDbContext _dbContext; + private readonly IHttpContextAccessor _httpContextAccessor; + private readonly OrganizationCommonRepository _organizationCommonRepository; + private readonly UserProfileRepository _userProfileRepository; + private readonly IConfiguration _configuration; + private readonly EmailSenderService _emailSenderService; + + #endregion + + #region " Constructor and Destuctor " + + public LeaveBeginningRepository(ILeaveDbContext dbContext, + IHttpContextAccessor httpContextAccessor, + OrganizationCommonRepository organizationCommonRepository, + UserProfileRepository userProfileRepository, + IConfiguration configuration, + EmailSenderService emailSenderService) : base(dbContext, httpContextAccessor) + { + _dbContext = dbContext; + _httpContextAccessor = httpContextAccessor; + _organizationCommonRepository = organizationCommonRepository; + _userProfileRepository = userProfileRepository; + _configuration = configuration; + _emailSenderService = emailSenderService; + } + + #endregion + + #region " Properties " + + protected Guid UserOrganizationId + { + get + { + if (UserId != null || UserId != "") + return _userProfileRepository.GetUserOCId(Guid.Parse(UserId!), AccessToken); + else + return Guid.Empty; + } + } + + #endregion + + public async Task> GetAllByYearAsync(int year) + { + return await _dbContext.Set() + .Where(x => x.LeaveYear == year) + .ToListAsync(); + } + } +} diff --git a/BMA.EHR.Domain/Models/Leave/Requests/LeaveBeginning.cs b/BMA.EHR.Domain/Models/Leave/Requests/LeaveBeginning.cs index dea7fdc6..29574a9a 100644 --- a/BMA.EHR.Domain/Models/Leave/Requests/LeaveBeginning.cs +++ b/BMA.EHR.Domain/Models/Leave/Requests/LeaveBeginning.cs @@ -10,6 +10,12 @@ namespace BMA.EHR.Domain.Models.Leave.Requests [Required, Comment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī")] public Guid ProfileId { get; set; } = Guid.Empty; + public string? Prefix { get; set; } = string.Empty; + + public string? FirstName { get; set; } = string.Empty; + + public string? LastName { get; set; } = string.Empty; + [Required, Comment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē")] public Guid LeaveTypeId { get; set; } = Guid.Empty; @@ -18,7 +24,10 @@ namespace BMA.EHR.Domain.Models.Leave.Requests [Required, Comment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“")] public int LeaveYear { get; set; } = 0; - [Required, Comment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļē")] + [Required, Comment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļĒāļāļĄāļē")] public double LeaveDays { get; set; } = 0.0; + + [Required, Comment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđƒāļŠāđ‰āđ„āļ›")] + public double LeaveDaysUsed { get; set; } = 0.0; } } diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423024522_Add Leave Day used.Designer.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423024522_Add Leave Day used.Designer.cs new file mode 100644 index 00000000..de8fb69b --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423024522_Add Leave Day used.Designer.cs @@ -0,0 +1,1485 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + [DbContext(typeof(LeaveDbContext))] + [Migration("20250423024522_Add Leave Day used")] + partial class AddLeaveDayused + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Code") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Limit") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļŠāļđāļ‡āļŠāļļāļ”āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("LeaveTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDays") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļĒāļāļĄāļē"); + + b.Property("LeaveDaysUsed") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđƒāļŠāđ‰āđ„āļ›"); + + b.Property("LeaveTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.HasIndex("LeaveTypeId"); + + b.ToTable("LeaveBeginnings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AbsentDayAt") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayGetIn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayLocation") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayRegistorDate") + .HasColumnType("datetime(6)"); + + b.Property("AbsentDaySummon") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("CancelLeaveWrote") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ (āļ‚āļ­āļĒāļāđ€āļĨāļīāļ)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CommanderPosition") + .HasColumnType("longtext"); + + b.Property("CoupleDayCountryHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayEndDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDayLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayLevelCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayPosition") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayStartDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDaySumTotalHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayTotalHistory") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("Dear") + .HasColumnType("longtext") + .HasComment("āđ€āļĢāļĩāļĒāļ™āđƒāļ„āļĢ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("HajjDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveAddress") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveBirthDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveCancelComment") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveCancelDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveCancelStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("LeaveDetail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļĨāļē"); + + b.Property("LeaveDirectorComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļ­āļģāļ™āļ§āļĒāļāļēāļĢāļŠāļģāļ™āļąāļ"); + + b.Property("LeaveDraftDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("LeaveGovernmentDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveLast") + .HasColumnType("datetime(6)"); + + b.Property("LeaveNumber") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveRange") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄ āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveRangeEnd") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ” āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveSalary") + .HasColumnType("int"); + + b.Property("LeaveSalaryText") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LeaveStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļĨāļē"); + + b.Property("LeaveStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļĢāđ‰āļ­āļ‡"); + + b.Property("LeaveSubTypeName") + .HasColumnType("longtext"); + + b.Property("LeaveTotal") + .HasColumnType("double"); + + b.Property("LeaveTypeCode") + .HasColumnType("longtext") + .HasComment("code āļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveWrote") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ"); + + b.Property("OrdainDayBuddhistLentAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayBuddhistLentName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationNumber") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayOrdination") + .HasColumnType("datetime(6)"); + + b.Property("OrdainDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionLevelName") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RestDayCurrentTotal") + .HasColumnType("double"); + + b.Property("RestDayOldTotal") + .HasColumnType("double"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("StudyDayCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayDegreeLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayScholarship") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDaySubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingSubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayUniversityName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("TypeId") + .HasColumnType("char(36)"); + + b.Property("WifeDayDateBorn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("WifeDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("LeaveCancelDocumentId"); + + b.HasIndex("LeaveDraftDocumentId"); + + b.HasIndex("TypeId"); + + b.ToTable("LeaveRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveRequestApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.AdditionalCheckRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckDate") + .HasColumnType("datetime(6)") + .HasComment("*āļ§āļąāļ™āļ—āļĩāđˆāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("CheckInEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("CheckOutEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđƒāļ™āļāļēāļĢāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("*āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āļ‚āļ­"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("AdditionalCheckRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ"); + + b.Property("EndTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("EndTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļīāļ”āđƒāļŠāđ‰āļ‡āļēāļ™ (āđ€āļ›āļīāļ”/āļ›āļīāļ”)"); + + b.Property("IsDefault") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ§āđˆāļēāļĢāļ­āļšāđƒāļ”āđ€āļ›āđ‡āļ™āļ„āđˆāļē Default āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ (āļŠāļģāļŦāļĢāļąāļšāļ—āļļāļāļ„āļ™āļ—āļĩāđˆāļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ—āļģāļāļēāļĢāđ€āļĨāļ·āļ­āļāļĢāļ­āļš)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("StartTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("StartTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("DutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.ProcessUserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckInStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("CheckOutStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EditReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("EditStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ‚āļ­āļ‡āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("ProcessUserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserCalendar", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Calendar") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļāļīāļ—āļīāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡ āļ‚āļĢāļ āļ›āļāļ•āļī āļŦāļĢāļ·āļ­ 6 āļ§āļąāļ™āļ•āđˆāļ­āļŠāļąāļ›āļ”āļēāļŦāđŒ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("UserCalendars"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("EffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļœāļĨ"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DutyTimeId"); + + b.ToTable("UserDutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("UserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "LeaveType") + .WithMany() + .HasForeignKey("LeaveTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("LeaveDocument") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveCancelDocument") + .WithMany() + .HasForeignKey("LeaveCancelDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveDraftDocument") + .WithMany() + .HasForeignKey("LeaveDraftDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "Type") + .WithMany() + .HasForeignKey("TypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveCancelDocument"); + + b.Navigation("LeaveDraftDocument"); + + b.Navigation("Type"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("Approvers") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", "DutyTime") + .WithMany() + .HasForeignKey("DutyTimeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DutyTime"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Navigation("Approvers"); + + b.Navigation("LeaveDocument"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423024522_Add Leave Day used.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423024522_Add Leave Day used.cs new file mode 100644 index 00000000..495d5e91 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423024522_Add Leave Day used.cs @@ -0,0 +1,50 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + /// + public partial class AddLeaveDayused : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "LeaveDays", + table: "LeaveBeginnings", + type: "double", + nullable: false, + comment: "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļĒāļāļĄāļē", + oldClrType: typeof(double), + oldType: "double", + oldComment: "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļē"); + + migrationBuilder.AddColumn( + name: "LeaveDaysUsed", + table: "LeaveBeginnings", + type: "double", + nullable: false, + defaultValue: 0.0, + comment: "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđƒāļŠāđ‰āđ„āļ›"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "LeaveDaysUsed", + table: "LeaveBeginnings"); + + migrationBuilder.AlterColumn( + name: "LeaveDays", + table: "LeaveBeginnings", + type: "double", + nullable: false, + comment: "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļē", + oldClrType: typeof(double), + oldType: "double", + oldComment: "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļĒāļāļĄāļē"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423025058_Add Profile Info to LeaveBegining.Designer.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423025058_Add Profile Info to LeaveBegining.Designer.cs new file mode 100644 index 00000000..06eeb93e --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423025058_Add Profile Info to LeaveBegining.Designer.cs @@ -0,0 +1,1494 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + [DbContext(typeof(LeaveDbContext))] + [Migration("20250423025058_Add Profile Info to LeaveBegining")] + partial class AddProfileInfotoLeaveBegining + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Code") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Limit") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļŠāļđāļ‡āļŠāļļāļ”āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("LeaveTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDays") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļĒāļāļĄāļē"); + + b.Property("LeaveDaysUsed") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđƒāļŠāđ‰āđ„āļ›"); + + b.Property("LeaveTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.HasIndex("LeaveTypeId"); + + b.ToTable("LeaveBeginnings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AbsentDayAt") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayGetIn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayLocation") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayRegistorDate") + .HasColumnType("datetime(6)"); + + b.Property("AbsentDaySummon") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("CancelLeaveWrote") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ (āļ‚āļ­āļĒāļāđ€āļĨāļīāļ)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CommanderPosition") + .HasColumnType("longtext"); + + b.Property("CoupleDayCountryHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayEndDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDayLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayLevelCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayPosition") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayStartDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDaySumTotalHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayTotalHistory") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("Dear") + .HasColumnType("longtext") + .HasComment("āđ€āļĢāļĩāļĒāļ™āđƒāļ„āļĢ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("HajjDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveAddress") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveBirthDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveCancelComment") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveCancelDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveCancelStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("LeaveDetail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļĨāļē"); + + b.Property("LeaveDirectorComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļ­āļģāļ™āļ§āļĒāļāļēāļĢāļŠāļģāļ™āļąāļ"); + + b.Property("LeaveDraftDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("LeaveGovernmentDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveLast") + .HasColumnType("datetime(6)"); + + b.Property("LeaveNumber") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveRange") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄ āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveRangeEnd") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ” āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveSalary") + .HasColumnType("int"); + + b.Property("LeaveSalaryText") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LeaveStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļĨāļē"); + + b.Property("LeaveStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļĢāđ‰āļ­āļ‡"); + + b.Property("LeaveSubTypeName") + .HasColumnType("longtext"); + + b.Property("LeaveTotal") + .HasColumnType("double"); + + b.Property("LeaveTypeCode") + .HasColumnType("longtext") + .HasComment("code āļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveWrote") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ"); + + b.Property("OrdainDayBuddhistLentAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayBuddhistLentName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationNumber") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayOrdination") + .HasColumnType("datetime(6)"); + + b.Property("OrdainDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionLevelName") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RestDayCurrentTotal") + .HasColumnType("double"); + + b.Property("RestDayOldTotal") + .HasColumnType("double"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("StudyDayCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayDegreeLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayScholarship") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDaySubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingSubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayUniversityName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("TypeId") + .HasColumnType("char(36)"); + + b.Property("WifeDayDateBorn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("WifeDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("LeaveCancelDocumentId"); + + b.HasIndex("LeaveDraftDocumentId"); + + b.HasIndex("TypeId"); + + b.ToTable("LeaveRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveRequestApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.AdditionalCheckRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckDate") + .HasColumnType("datetime(6)") + .HasComment("*āļ§āļąāļ™āļ—āļĩāđˆāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("CheckInEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("CheckOutEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđƒāļ™āļāļēāļĢāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("*āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āļ‚āļ­"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("AdditionalCheckRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ"); + + b.Property("EndTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("EndTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļīāļ”āđƒāļŠāđ‰āļ‡āļēāļ™ (āđ€āļ›āļīāļ”/āļ›āļīāļ”)"); + + b.Property("IsDefault") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ§āđˆāļēāļĢāļ­āļšāđƒāļ”āđ€āļ›āđ‡āļ™āļ„āđˆāļē Default āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ (āļŠāļģāļŦāļĢāļąāļšāļ—āļļāļāļ„āļ™āļ—āļĩāđˆāļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ—āļģāļāļēāļĢāđ€āļĨāļ·āļ­āļāļĢāļ­āļš)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("StartTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("StartTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("DutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.ProcessUserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckInStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("CheckOutStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EditReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("EditStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ‚āļ­āļ‡āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("ProcessUserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserCalendar", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Calendar") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļāļīāļ—āļīāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡ āļ‚āļĢāļ āļ›āļāļ•āļī āļŦāļĢāļ·āļ­ 6 āļ§āļąāļ™āļ•āđˆāļ­āļŠāļąāļ›āļ”āļēāļŦāđŒ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("UserCalendars"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("EffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļœāļĨ"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DutyTimeId"); + + b.ToTable("UserDutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("UserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "LeaveType") + .WithMany() + .HasForeignKey("LeaveTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("LeaveDocument") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveCancelDocument") + .WithMany() + .HasForeignKey("LeaveCancelDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveDraftDocument") + .WithMany() + .HasForeignKey("LeaveDraftDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "Type") + .WithMany() + .HasForeignKey("TypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveCancelDocument"); + + b.Navigation("LeaveDraftDocument"); + + b.Navigation("Type"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("Approvers") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", "DutyTime") + .WithMany() + .HasForeignKey("DutyTimeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DutyTime"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Navigation("Approvers"); + + b.Navigation("LeaveDocument"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423025058_Add Profile Info to LeaveBegining.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423025058_Add Profile Info to LeaveBegining.cs new file mode 100644 index 00000000..c3924994 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423025058_Add Profile Info to LeaveBegining.cs @@ -0,0 +1,51 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + /// + public partial class AddProfileInfotoLeaveBegining : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "FirstName", + table: "LeaveBeginnings", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "LastName", + table: "LeaveBeginnings", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "Prefix", + table: "LeaveBeginnings", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "FirstName", + table: "LeaveBeginnings"); + + migrationBuilder.DropColumn( + name: "LastName", + table: "LeaveBeginnings"); + + migrationBuilder.DropColumn( + name: "Prefix", + table: "LeaveBeginnings"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs index fc298018..73eae613 100644 --- a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs @@ -147,6 +147,12 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb .HasColumnOrder(101) .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + b.Property("LastUpdateFullName") .IsRequired() .HasMaxLength(200) @@ -168,7 +174,11 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb b.Property("LeaveDays") .HasColumnType("double") - .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļē"); + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļĒāļāļĄāļē"); + + b.Property("LeaveDaysUsed") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđƒāļŠāđ‰āđ„āļ›"); b.Property("LeaveTypeId") .HasColumnType("char(36)") @@ -178,6 +188,9 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb .HasColumnType("int") .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + b.Property("Prefix") + .HasColumnType("longtext"); + b.Property("ProfileId") .HasColumnType("char(36)") .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); diff --git a/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs b/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs new file mode 100644 index 00000000..2a148a0c --- /dev/null +++ b/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs @@ -0,0 +1,300 @@ +ïŧŋusing BMA.EHR.Application.Repositories; +using BMA.EHR.Application.Repositories.Leaves.LeaveRequests; +using BMA.EHR.Domain.Common; +using BMA.EHR.Domain.Models.Leave.Requests; +using BMA.EHR.Infrastructure.Persistence; +using BMA.EHR.Leave.Service.DTOs.LeaveBeginnings; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using Swashbuckle.AspNetCore.Annotations; +using System.Security.Claims; + +namespace BMA.EHR.Leave.Service.Controllers +{ + [Route("api/v{version:apiVersion}/leave-beginning")] + [ApiVersion("1.0")] + [ApiController] + [Produces("application/json")] + [Authorize] + [SwaggerTag("API āļĢāļ°āļšāļšāļĨāļ‡āđ€āļ§āļĨāļēāđāļĨāļ°āļāļēāļĢāļĨāļē (āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļąāļ™āļĨāļēāļĒāļāļĄāļēāđāļĨāļ°āđƒāļŠāđ‰āđ„āļ›)")] + public class LeaveBeginningController : BaseController + { + #region " Fields " + + private readonly LeaveBeginningRepository _leaveBeginningRepository; + private readonly LeaveDbContext _context; + private readonly IHttpContextAccessor _httpContextAccessor; + private readonly IWebHostEnvironment _hostingEnvironment; + private readonly IConfiguration _configuration; + private readonly UserProfileRepository _userProfileRepository; + private readonly PermissionRepository _permission; + + #endregion + + #region " Constuctor and Destructor " + + public LeaveBeginningController(LeaveBeginningRepository leaveBeginningRepository, + LeaveDbContext context, + IHttpContextAccessor httpContextAccessor, + IWebHostEnvironment hostingEnvironment, + IConfiguration configuration, + UserProfileRepository userProfileRepository, + PermissionRepository permission) + { + _leaveBeginningRepository = leaveBeginningRepository; + _context = context; + _httpContextAccessor = httpContextAccessor; + _hostingEnvironment = hostingEnvironment; + _configuration = configuration; + _userProfileRepository = userProfileRepository; + _permission = permission; + } + + #endregion + + #region " Properties " + + private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; + + private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; + + private bool? PlacementAdmin => _httpContextAccessor?.HttpContext?.User?.IsInRole("placement1"); + + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + + private Guid OcId + { + get + { + if (UserId != null || UserId != "") + return _userProfileRepository.GetUserOCId(Guid.Parse(UserId!), AccessToken); + else + return Guid.Empty; + } + } + + #endregion + + #region " Methods " + + /// + /// āđāļŠāļ”āļ‡āļĢāļēāļĒāļāļēāļĢ + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("list")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> GetListAsync([FromBody] GetLeaveBeginningDto req) + { + try + { + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_LEAVE_LIST"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + + var result = await _leaveBeginningRepository.GetAllByYearAsync(req.Year); + + if (req.Type != Guid.Empty) + result = result.Where(x => x.LeaveTypeId == req.Type).ToList(); + + if (req.Keyword != "") + result = result.Where(x => x.FirstName!.Contains(req.Keyword) || x.LastName!.Contains(req.Keyword)).ToList(); + + var pageResult = result.Skip((req.Page - 1) * req.PageSize).Take(req.PageSize).ToList(); + return Success(new { data = pageResult, total = result.Count }); + } + catch (Exception ex) + { + return Error(ex); + } + } + + /// + /// āļĨāļšāļĢāļēāļĒāļāļēāļĢ + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpDelete("{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> DeleteAsync(Guid id) + { + try + { + var getPermission = await _permission.GetPermissionAPIAsync("DELETE", "SYS_LEAVE_LIST"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + var leaveBeginning = await _leaveBeginningRepository.GetByIdAsync(id); + if (leaveBeginning == null) + return Error("āđ„āļĄāđˆāļžāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĨāļš", StatusCodes.Status404NotFound); + await _leaveBeginningRepository.DeleteAsync(leaveBeginning); + return Success("āļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļģāđ€āļĢāđ‡āļˆ"); + } + catch (Exception ex) + { + return Error(ex); + } + } + + + /// + /// āđāļŠāļ”āļ‡āļĢāļēāļĒāļāļēāļĢāļˆāļēāļ Id + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("{id:guid}")] + public async Task> GetByIdAsync(Guid id) + { + try + { + var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_LEAVE_LIST"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + var leaveBeginning = _leaveBeginningRepository.GetByIdAsync(id); + if (leaveBeginning == null) + return Error("āđ„āļĄāđˆāļžāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĨāļš", StatusCodes.Status404NotFound); + return Success(leaveBeginning); + } + catch (Exception ex) + { + return Error(ex); + } + } + + + // + /// āđāļāđ‰āđ„āļ‚āļĢāļēāļĒāļāļēāļĢ + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("{id:guid}")] + public async Task> PutAsync(Guid id, [FromBody] EditLeaveBeginningDto req) + { + try + { + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + var leaveBeginning = await _leaveBeginningRepository.GetByIdAsync(id); + if (leaveBeginning == null) + return Error("āđ„āļĄāđˆāļžāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāđāļāđ‰āđ„āļ‚", StatusCodes.Status404NotFound); + + + var profile = await _userProfileRepository.GetProfileByProfileIdAsync(req.ProfileId, AccessToken); + if(profile == null) + { + return Error("āđ„āļĄāđˆāļžāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡", StatusCodes.Status404NotFound); + } + + leaveBeginning.LeaveTypeId = req.LeaveTypeId; + leaveBeginning.LeaveYear = req.LeaveYear; + leaveBeginning.LeaveDays = req.LeaveDays; + leaveBeginning.LeaveDaysUsed = req.LeaveDaysUsed; + + leaveBeginning.ProfileId = req.ProfileId; + leaveBeginning.Prefix = profile.Prefix; + leaveBeginning.FirstName = profile.FirstName; + leaveBeginning.LastName = profile.LastName; + + leaveBeginning.LastUpdateUserId = userId.ToString("D"); + leaveBeginning.LastUpdateFullName = FullName ?? ""; + leaveBeginning.LastUpdatedAt = DateTime.Now; + + await _leaveBeginningRepository.UpdateAsync(leaveBeginning); + return Success("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļģāđ€āļĢāđ‡āļˆ"); + } + catch (Exception ex) + { + return Error(ex); + } + } + + + /// + /// āļŠāļĢāđ‰āļēāļ‡āļĢāļēāļĒāļāļēāļĢ + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost()] + public async Task> PostAsync([FromBody] EditLeaveBeginningDto req) + { + try + { + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + var getPermission = await _permission.GetPermissionAPIAsync("CREATE", "SYS_LEAVE_LIST"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + + var profile = await _userProfileRepository.GetProfileByProfileIdAsync(req.ProfileId, AccessToken); + if (profile == null) + { + return Error("āđ„āļĄāđˆāļžāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡", StatusCodes.Status404NotFound); + } + + var leaveBeginning = new LeaveBeginning(); + leaveBeginning.LeaveTypeId = req.LeaveTypeId; + leaveBeginning.LeaveYear = req.LeaveYear; + leaveBeginning.LeaveDays = req.LeaveDays; + leaveBeginning.LeaveDaysUsed = req.LeaveDaysUsed; + + leaveBeginning.ProfileId = req.ProfileId; + leaveBeginning.Prefix = profile.Prefix; + leaveBeginning.FirstName = profile.FirstName; + leaveBeginning.LastName = profile.LastName; + + leaveBeginning.CreatedUserId = userId.ToString("D"); + leaveBeginning.CreatedFullName = FullName ?? ""; + leaveBeginning.CreatedAt = DateTime.Now; + + await _leaveBeginningRepository.AddAsync(leaveBeginning); + + return Success(); + + } + catch(Exception ex) + { + return Error(ex); + } + } + + + #endregion + } +} diff --git a/BMA.EHR.Leave/DTOs/LeaveBeginnings/CreateLeaveBeginningDto.cs b/BMA.EHR.Leave/DTOs/LeaveBeginnings/CreateLeaveBeginningDto.cs new file mode 100644 index 00000000..79d33052 --- /dev/null +++ b/BMA.EHR.Leave/DTOs/LeaveBeginnings/CreateLeaveBeginningDto.cs @@ -0,0 +1,23 @@ +ïŧŋusing Microsoft.EntityFrameworkCore; +using System.ComponentModel.DataAnnotations; + +namespace BMA.EHR.Leave.Service.DTOs.LeaveBeginnings +{ + public class CreateLeaveBeginningDto + { + [Required] + public Guid ProfileId { get; set; } = Guid.Empty; + + [Required] + public Guid LeaveTypeId { get; set; } = Guid.Empty; + + [Required, Comment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“")] + public int LeaveYear { get; set; } = 0; + + [Required, Comment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļĒāļāļĄāļē")] + public double LeaveDays { get; set; } = 0.0; + + [Required, Comment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđƒāļŠāđ‰āđ„āļ›")] + public double LeaveDaysUsed { get; set; } = 0.0; + } +} diff --git a/BMA.EHR.Leave/DTOs/LeaveBeginnings/EditLeaveBeginningDto.cs b/BMA.EHR.Leave/DTOs/LeaveBeginnings/EditLeaveBeginningDto.cs new file mode 100644 index 00000000..6ecfe1f4 --- /dev/null +++ b/BMA.EHR.Leave/DTOs/LeaveBeginnings/EditLeaveBeginningDto.cs @@ -0,0 +1,23 @@ +ïŧŋusing Microsoft.EntityFrameworkCore; +using System.ComponentModel.DataAnnotations; + +namespace BMA.EHR.Leave.Service.DTOs.LeaveBeginnings +{ + public class EditLeaveBeginningDto + { + [Required] + public Guid ProfileId { get; set; } = Guid.Empty; + + [Required] + public Guid LeaveTypeId { get; set; } = Guid.Empty; + + [Required, Comment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“")] + public int LeaveYear { get; set; } = 0; + + [Required, Comment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļĒāļāļĄāļē")] + public double LeaveDays { get; set; } = 0.0; + + [Required, Comment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđƒāļŠāđ‰āđ„āļ›")] + public double LeaveDaysUsed { get; set; } = 0.0; + } +} diff --git a/BMA.EHR.Leave/DTOs/LeaveBeginnings/GetLeaveBeginningDto.cs b/BMA.EHR.Leave/DTOs/LeaveBeginnings/GetLeaveBeginningDto.cs new file mode 100644 index 00000000..3c3fe77d --- /dev/null +++ b/BMA.EHR.Leave/DTOs/LeaveBeginnings/GetLeaveBeginningDto.cs @@ -0,0 +1,20 @@ +ïŧŋusing System.ComponentModel.DataAnnotations; + +namespace BMA.EHR.Leave.Service.DTOs.LeaveBeginnings +{ + public class GetLeaveBeginningDto + { + [Required] + public int Year { get; set; } = 0; + + public Guid Type { get; set; } = Guid.Empty; + + [Required] + public int Page { get; set; } = 1; + + [Required] + public int PageSize { get; set; } = 10; + + public string Keyword { get; set; } = string.Empty; + } +} From 92847e6be2e3644254709ec87b317f23615305d3 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 24 Apr 2025 10:59:31 +0700 Subject: [PATCH 233/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=20-=20format=20response=20-=20=E0=B8=AA=E0=B9=88?= =?UTF-8?q?=E0=B8=87=20noti=20=E0=B9=82=E0=B8=94=E0=B8=A2=E0=B8=A1?= =?UTF-8?q?=E0=B8=B5=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=81=E0=B8=99=E0=B8=9A?= =?UTF-8?q?=E0=B8=A5=E0=B8=B4=E0=B8=87=E0=B8=84=E0=B9=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 10 +- .../LeaveRequests/LeaveBeginingRepository.cs | 1 + .../LeaveRequests/LeaveRequestRepository.cs | 119 ++++++++++++++++-- .../Controllers/LeaveBeginningController.cs | 38 +++++- BMA.EHR.Leave/Dockerfile | 60 ++++++++- BMA.EHR.Leave/appsettings.json | 4 +- 6 files changed, 211 insertions(+), 21 deletions(-) diff --git a/.dockerignore b/.dockerignore index 3729ff0c..8bf65212 100644 --- a/.dockerignore +++ b/.dockerignore @@ -22,4 +22,12 @@ **/secrets.dev.yaml **/values.dev.yaml LICENSE -README.md \ No newline at end of file +README.md +.git +**/bin/ +**/obj/ +.vscode/ +.dockerignore +.gitignore +README.md +*.md \ No newline at end of file diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs index 05a33f89..db09f644 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs @@ -57,6 +57,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests public async Task> GetAllByYearAsync(int year) { return await _dbContext.Set() + .Include(x => x.LeaveType) .Where(x => x.LeaveYear == year) .ToListAsync(); } diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 8b828b00..565cdf97 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -28,6 +28,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests private readonly IApplicationDBContext _appDbContext; + private readonly string URL = string.Empty; + #endregion #region " Constructor and Destuctor " @@ -47,6 +49,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests _configuration = configuration; _emailSenderService = emailSenderService; _appDbContext = appDbContext; + + URL = (_configuration["API"]).Replace("/api/v1", ""); } #endregion @@ -506,6 +510,22 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests rawData.ApproveStep = "st2"; await UpdateAsync(rawData); + + // TODO: Send notification to 1st Commander + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "COMMANDER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.FirstName} {rawData.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/leave/detail/{id}", + }; + _appDbContext.Set().Add(noti1); + await _appDbContext.SaveChangesAsync(); } public async Task CommanderApproveLeaveRequest(Guid id, string reason) @@ -527,7 +547,6 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests // check commander approve var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); - var maxSeq = approvers.Max(x => x.Seq); var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); if (approver == null) @@ -535,21 +554,34 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); } + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + var maxSeq = approvers.Max(x => x.Seq); + approver.ApproveStatus = "APPROVE"; approver.Comment = reason; if (approver.Seq != maxSeq) { - var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti var noti = new Notification { Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.FirstName} {rawData.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = "", + Payload = $"{URL}/leave/detail/{id}", }; _appDbContext.Set().Add(noti); await _appDbContext.SaveChangesAsync(); @@ -564,6 +596,22 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests rawData.ApproveStep = "st3"; await UpdateAsync(rawData); + + // TODO: Send notification to 1st Approver + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.FirstName} {rawData.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/leave/detail/{id}", + }; + _appDbContext.Set().Add(noti1); + await _appDbContext.SaveChangesAsync(); } } @@ -587,7 +635,6 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests // check commander approve var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); - var maxSeq = approvers.Max(x => x.Seq); var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); if (approver == null) @@ -595,6 +642,20 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); } + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + approver.ApproveStatus = "REJECT"; approver.Comment = reason; @@ -609,7 +670,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.FirstName} {rawData.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = "", + Payload = $"{URL}/leave/detail/{id}", }; _appDbContext.Set().Add(noti); await _appDbContext.SaveChangesAsync(); @@ -624,6 +685,22 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests rawData.ApproveStep = "st3"; await UpdateAsync(rawData); + + // TODO: Send notification to 1st Approver + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.FirstName} {rawData.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/leave/detail/{id}", + }; + _appDbContext.Set().Add(noti1); + await _appDbContext.SaveChangesAsync(); } } @@ -646,7 +723,6 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests // check commander approve var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); - var maxSeq = approvers.Max(x => x.Seq); var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); if (approver == null) @@ -654,6 +730,20 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); } + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + approver.ApproveStatus = "APPROVE"; approver.Comment = reason; @@ -773,7 +863,6 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests // check commander approve var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); - var maxSeq = approvers.Max(x => x.Seq); var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); if (approver == null) @@ -781,6 +870,20 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); } + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + approver.ApproveStatus = "REJECT"; approver.Comment = reason; @@ -824,7 +927,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests }; _appDbContext.Set().Add(noti); await _appDbContext.SaveChangesAsync(); - } + } } public async Task> GetSumSendLeaveAsync(int year) diff --git a/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs b/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs index 2a148a0c..ff714ccd 100644 --- a/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs @@ -8,6 +8,7 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using OfficeOpenXml.ConditionalFormatting; using Swashbuckle.AspNetCore.Annotations; using System.Security.Claims; @@ -102,15 +103,40 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - var result = await _leaveBeginningRepository.GetAllByYearAsync(req.Year); + var resData = await _leaveBeginningRepository.GetAllByYearAsync(req.Year); if (req.Type != Guid.Empty) - result = result.Where(x => x.LeaveTypeId == req.Type).ToList(); + resData = resData.Where(x => x.LeaveTypeId == req.Type).ToList(); if (req.Keyword != "") - result = result.Where(x => x.FirstName!.Contains(req.Keyword) || x.LastName!.Contains(req.Keyword)).ToList(); + resData = resData.Where(x => x.FirstName!.Contains(req.Keyword) || x.LastName!.Contains(req.Keyword)).ToList(); + + var result = new List(); + + foreach (var item in resData) + { + result.Add(new + { + item.Id, + item.ProfileId, + item.Prefix, + item.FirstName, + item.LastName, + item.LeaveTypeId, + LeaveTypeCode = item.LeaveType?.Code, + LeaveType = item.LeaveType?.Name, + item.LeaveYear, + item.LeaveDays, + item.LeaveDaysUsed, + item.CreatedAt, + item.CreatedFullName, + item.LastUpdatedAt, + item.LastUpdateFullName + }); + } var pageResult = result.Skip((req.Page - 1) * req.PageSize).Take(req.PageSize).ToList(); + return Success(new { data = pageResult, total = result.Count }); } catch (Exception ex) @@ -212,9 +238,9 @@ namespace BMA.EHR.Leave.Service.Controllers var profile = await _userProfileRepository.GetProfileByProfileIdAsync(req.ProfileId, AccessToken); - if(profile == null) + if (profile == null) { - return Error("āđ„āļĄāđˆāļžāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡", StatusCodes.Status404NotFound); + return Error("āđ„āļĄāđˆāļžāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡", StatusCodes.Status404NotFound); } leaveBeginning.LeaveTypeId = req.LeaveTypeId; @@ -288,7 +314,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Success(); } - catch(Exception ex) + catch (Exception ex) { return Error(ex); } diff --git a/BMA.EHR.Leave/Dockerfile b/BMA.EHR.Leave/Dockerfile index 2e851b2c..4d22d69e 100644 --- a/BMA.EHR.Leave/Dockerfile +++ b/BMA.EHR.Leave/Dockerfile @@ -1,8 +1,43 @@ -ïŧŋ#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. +ïŧŋ##See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. +# +#FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base +# +## āļ•āļąāđ‰āļ‡āļ„āđˆāļē TimeZone āđƒāļ™ Container +#ENV TZ=Asia/Bangkok +#RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +# +#WORKDIR /app +#EXPOSE 80 +#EXPOSE 443 +# +#FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +#WORKDIR /src +# +#COPY ["BMA.EHR.Domain/BMA.EHR.Domain.csproj", "BMA.EHR.Domain/"] +#COPY ["BMA.EHR.Application/BMA.EHR.Application.csproj", "BMA.EHR.Application/"] +#COPY ["BMA.EHR.Infrastructure/BMA.EHR.Infrastructure.csproj", "BMA.EHR.Infrastructure/"] +#COPY ["BMA.EHR.Leave/BMA.EHR.Leave.csproj", "BMA.EHR.Leave/"] +# +#RUN dotnet restore "BMA.EHR.Leave/BMA.EHR.Leave.csproj" +#COPY . . +#WORKDIR "/src/BMA.EHR.Leave" +#RUN dotnet build "BMA.EHR.Leave.csproj" -c Release -o /app/build +# +#FROM build AS publish +#RUN dotnet publish "BMA.EHR.Leave.csproj" -c Release -o /app/publish /p:UseAppHost=false +# +#FROM base AS final +#WORKDIR /app +#COPY --from=publish /app/publish . +#ENTRYPOINT ["dotnet", "BMA.EHR.Leave.dll"] +# +# --------------------------- +# Base image āļŠāļģāļŦāļĢāļąāļš runtime +# --------------------------- FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base -# āļ•āļąāđ‰āļ‡āļ„āđˆāļē TimeZone āđƒāļ™ Container +# āļ•āļąāđ‰āļ‡āļ„āđˆāļē TimeZone ENV TZ=Asia/Bangkok RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone @@ -10,23 +45,40 @@ WORKDIR /app EXPOSE 80 EXPOSE 443 +# --------------------------- +# Build stage +# --------------------------- FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +# 1. Copy āđ€āļ‰āļžāļēāļ° .csproj āđ„āļŸāļĨāđŒāđāļĨāļ° restore āđ€āļžāļ·āđˆāļ­āđƒāļŠāđ‰ cache āđ„āļ”āđ‰ COPY ["BMA.EHR.Domain/BMA.EHR.Domain.csproj", "BMA.EHR.Domain/"] COPY ["BMA.EHR.Application/BMA.EHR.Application.csproj", "BMA.EHR.Application/"] COPY ["BMA.EHR.Infrastructure/BMA.EHR.Infrastructure.csproj", "BMA.EHR.Infrastructure/"] COPY ["BMA.EHR.Leave/BMA.EHR.Leave.csproj", "BMA.EHR.Leave/"] RUN dotnet restore "BMA.EHR.Leave/BMA.EHR.Leave.csproj" + +# 2. Copy source code āļ—āļąāđ‰āļ‡āļŦāļĄāļ”āļŦāļĨāļąāļ‡ restore āđ€āļžāļ·āđˆāļ­āđ„āļĄāđˆāđƒāļŦāđ‰ cache āļžāļąāļ‡āļ‡āđˆāļēāļĒ COPY . . + WORKDIR "/src/BMA.EHR.Leave" -RUN dotnet build "BMA.EHR.Leave.csproj" -c Release -o /app/build +# 3. Build āđāļšāļš Release +RUN dotnet build "BMA.EHR.Leave.csproj" -c Release -warnaslevel:0 -o /app/build + +# --------------------------- +# Publish stage +# --------------------------- FROM build AS publish -RUN dotnet publish "BMA.EHR.Leave.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "BMA.EHR.Leave.csproj" -c Release -warnaslevel:0 -o /app/publish /p:UseAppHost=false +# --------------------------- +# Final runtime image +# --------------------------- FROM base AS final WORKDIR /app + COPY --from=publish /app/publish . + ENTRYPOINT ["dotnet", "BMA.EHR.Leave.dll"] diff --git a/BMA.EHR.Leave/appsettings.json b/BMA.EHR.Leave/appsettings.json index b5ad52fe..2e0134d0 100644 --- a/BMA.EHR.Leave/appsettings.json +++ b/BMA.EHR.Leave/appsettings.json @@ -17,7 +17,7 @@ "ConnectionStrings": { "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "LeaveConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "LeaveConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" //"DefaultConnection": "server=172.27.17.68;user=user;password=cDldaqkwESWvuZ37Gr0n;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", //"ExamConnection": "server=172.27.17.68;user=user;password=cDldaqkwESWvuZ37Gr0n;port=3306;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", @@ -25,7 +25,7 @@ }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/hrms", + "Issuer": "https://id.frappet.synology.me/realms/hrms" //"Key": "xY2VR-EFvvNPsMs39u8ooVBWQL6mPwrNJOh3koJFTgU", //"Issuer": "https://hrms-id.bangkok.go.th/realms/hrms" }, From 16b09904548b22352216404ea20cba13f6dfc2f5 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 24 Apr 2025 11:04:33 +0700 Subject: [PATCH 234/879] fix docker file --- BMA.EHR.Leave/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Leave/Dockerfile b/BMA.EHR.Leave/Dockerfile index 4d22d69e..834e751e 100644 --- a/BMA.EHR.Leave/Dockerfile +++ b/BMA.EHR.Leave/Dockerfile @@ -65,13 +65,13 @@ COPY . . WORKDIR "/src/BMA.EHR.Leave" # 3. Build āđāļšāļš Release -RUN dotnet build "BMA.EHR.Leave.csproj" -c Release -warnaslevel:0 -o /app/build +RUN dotnet build "BMA.EHR.Leave.csproj" -c Release -nowarn -o /app/build # --------------------------- # Publish stage # --------------------------- FROM build AS publish -RUN dotnet publish "BMA.EHR.Leave.csproj" -c Release -warnaslevel:0 -o /app/publish /p:UseAppHost=false +RUN dotnet publish "BMA.EHR.Leave.csproj" -c Release -nowarn -o /app/publish /p:UseAppHost=false # --------------------------- # Final runtime image From 4ca6b7d842a2f5c588424a57f93654dc6e04a325 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 24 Apr 2025 11:09:59 +0700 Subject: [PATCH 235/879] add nowarn --- BMA.EHR.Leave/BMA.EHR.Leave.csproj | 18 ++++++++++-------- BMA.EHR.Leave/Dockerfile | 4 ++-- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/BMA.EHR.Leave/BMA.EHR.Leave.csproj b/BMA.EHR.Leave/BMA.EHR.Leave.csproj index 44767778..07324011 100644 --- a/BMA.EHR.Leave/BMA.EHR.Leave.csproj +++ b/BMA.EHR.Leave/BMA.EHR.Leave.csproj @@ -10,17 +10,19 @@ . BMA.EHR.Leave.Service BMA.EHR.Leave - $(NoWarn);1591 + + $(NoWarn); + - + - - $(DockerDefaultDockerfile) - + + $(DockerDefaultDockerfile) + @@ -71,9 +73,9 @@ - - PreserveNewest - + + PreserveNewest + diff --git a/BMA.EHR.Leave/Dockerfile b/BMA.EHR.Leave/Dockerfile index 834e751e..5457bcbe 100644 --- a/BMA.EHR.Leave/Dockerfile +++ b/BMA.EHR.Leave/Dockerfile @@ -65,13 +65,13 @@ COPY . . WORKDIR "/src/BMA.EHR.Leave" # 3. Build āđāļšāļš Release -RUN dotnet build "BMA.EHR.Leave.csproj" -c Release -nowarn -o /app/build +RUN dotnet build "BMA.EHR.Leave.csproj" -c Release -o /app/build # --------------------------- # Publish stage # --------------------------- FROM build AS publish -RUN dotnet publish "BMA.EHR.Leave.csproj" -c Release -nowarn -o /app/publish /p:UseAppHost=false +RUN dotnet publish "BMA.EHR.Leave.csproj" -c Release -o /app/publish /p:UseAppHost=false # --------------------------- # Final runtime image From b90a0ad489ec8dc5851364a5fd7d4c45f569509a Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 24 Apr 2025 17:02:01 +0700 Subject: [PATCH 236/879] fix api --- .../Leaves/LeaveRequests/LeaveRequestRepository.cs | 12 ++++++++++-- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 1 + .../LeaveRequest/GetLeaveRequestTableResultDto.cs | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 565cdf97..9b18fbf5 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -91,7 +91,9 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests public override async Task GetByIdAsync(Guid id) { - var data = await _dbContext.Set().AsQueryable() + try + { + var data = await _dbContext.Set().AsQueryable() .AsNoTracking() .Include(x => x.Approvers) .Include(x => x.LeaveDocument) @@ -101,7 +103,13 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Include(x => x.Type) .FirstOrDefaultAsync(x => x.Id == id); - return data; + return data; + } + catch + { + throw; + } + } public override async Task AddAsync(LeaveRequest entity) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 75264540..40fd5471 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1303,6 +1303,7 @@ namespace BMA.EHR.Leave.Service.Controllers Id = item.Id, LeaveTypeId = item.Type.Id, LeaveTypeName = item.Type.Name, + LeaveSubTypeName = item.LeaveSubTypeName ?? "", FullName = $"{item.Prefix}{item.FirstName} {item.LastName}", DateSendLeave = item.CreatedAt, IsDelete = item.LeaveStatus == "DELETE", diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestTableResultDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestTableResultDto.cs index 9ba93ec2..aad7661c 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestTableResultDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestTableResultDto.cs @@ -6,6 +6,8 @@ public string LeaveTypeName { get; set; } + public string? LeaveSubTypeName { get; set; } = string.Empty; + public Guid LeaveTypeId { get; set; } public string FullName { get; set; } From db483ce18d0035bc1708707d5680b53150a043aa Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 25 Apr 2025 10:23:47 +0700 Subject: [PATCH 237/879] improve ErrorExceptionMiddleWare Code --- .../Middlewares/ErrorHandlerMiddleware.cs | 85 ++++++++----------- BMA.EHR.Placement.Service/appsettings.json | 9 +- 2 files changed, 43 insertions(+), 51 deletions(-) diff --git a/BMA.EHR.Domain/Middlewares/ErrorHandlerMiddleware.cs b/BMA.EHR.Domain/Middlewares/ErrorHandlerMiddleware.cs index 4ef7672f..af1ce4fb 100644 --- a/BMA.EHR.Domain/Middlewares/ErrorHandlerMiddleware.cs +++ b/BMA.EHR.Domain/Middlewares/ErrorHandlerMiddleware.cs @@ -7,23 +7,13 @@ namespace BMA.EHR.Domain.Middlewares { public class ErrorHandlerMiddleware { - #region " Fields " - private readonly RequestDelegate _next; - #endregion - - #region " Constructor and Destructor " - public ErrorHandlerMiddleware(RequestDelegate next) { _next = next; } - #endregion - - #region " Methods " - public async Task Invoke(HttpContext context) { try @@ -31,58 +21,57 @@ namespace BMA.EHR.Domain.Middlewares await _next(context); var response = context.Response; - + var statusCode = response.StatusCode; - var responseModel = new ResponseObject(); - responseModel.Status = response.StatusCode; + if (!response.HasStarted && + (statusCode == (int)HttpStatusCode.Unauthorized || statusCode == (int)HttpStatusCode.Forbidden)) + { + var responseModel = new ResponseObject + { + Status = statusCode, + Message = statusCode == (int)HttpStatusCode.Unauthorized + ? GlobalMessages.NotAuthorized + : GlobalMessages.ForbiddenAccess + }; - if (responseModel.Status == (int)HttpStatusCode.Unauthorized) - { response.ContentType = "application/json"; - responseModel.Message = GlobalMessages.NotAuthorized; - await response.WriteAsJsonAsync(responseModel); - } - if (responseModel.Status == (int)HttpStatusCode.Forbidden) - { - response.ContentType = "application/json"; - responseModel.Message = GlobalMessages.ForbiddenAccess; await response.WriteAsJsonAsync(responseModel); } } catch (Exception error) { var response = context.Response; - response.ContentType = "application/json"; - var responseModel = new ResponseObject(); - responseModel.Status = response.StatusCode; - var msg = error.Message; - var inner = error.InnerException; - while (inner != null) + if (!response.HasStarted) { - msg += $" {inner.Message}\r\n"; - inner = inner.InnerException; - } - responseModel.Result = msg; + response.Clear(); + response.ContentType = "application/json"; + response.StatusCode = (int)HttpStatusCode.InternalServerError; - switch (response.StatusCode) - { - case (int)HttpStatusCode.Unauthorized: - responseModel.Message = GlobalMessages.NotAuthorized; - break; - case (int)HttpStatusCode.Forbidden: - responseModel.Message = GlobalMessages.ForbiddenAccess; - break; - default: - response.StatusCode = (int)HttpStatusCode.InternalServerError; - responseModel.Status = (int)HttpStatusCode.InternalServerError; - responseModel.Message = GlobalMessages.ExceptionOccured; - break; + var msg = error.Message; + var inner = error.InnerException; + while (inner != null) + { + msg += $" {inner.Message}\r\n"; + inner = inner.InnerException; + } + + var responseModel = new ResponseObject + { + Status = response.StatusCode, + Message = GlobalMessages.ExceptionOccured, + Result = msg + }; + + await response.WriteAsJsonAsync(responseModel); + } + else + { + // logging āļāļĢāļ“āļĩāļ—āļĩāđˆ response āđ€āļĢāļīāđˆāļĄāļ–āļđāļāļŠāđˆāļ‡āđāļĨāđ‰āļ§ + Console.WriteLine("Cannot write error response, stream already started."); + Console.WriteLine(error); } - await response.WriteAsJsonAsync(responseModel); } } - - #endregion } } diff --git a/BMA.EHR.Placement.Service/appsettings.json b/BMA.EHR.Placement.Service/appsettings.json index f40436b3..6213c84c 100644 --- a/BMA.EHR.Placement.Service/appsettings.json +++ b/BMA.EHR.Placement.Service/appsettings.json @@ -15,11 +15,14 @@ }, "AllowedHosts": "*", "ConnectionStrings": { - //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "LeaveConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "MongoConnection": "mongodb://admin:adminVM123@192.168.1.80:27017", + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "RecruitConnection": "server=192.168.1.80;user=root;password=adminVM123;database=hrms_recruit;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { - "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", + "Key": "Hp3234M8rH1KjIdvhlUStayo6vIUOIeI76NKyIsiXJ8", "Issuer": "https://id.frappet.synology.me/realms/hrms" }, "EPPlus": { From a7b8c2786cde37ef753e4bae34502859d0b9af59 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 25 Apr 2025 10:44:01 +0700 Subject: [PATCH 238/879] =?UTF-8?q?fix=20:=20Add=20=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=99=E0=B8=A5=E0=B8=B2=E0=B9=83=E0=B8=8A=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=9B=20=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=E0=B9=80=E0=B8=95=E0=B8=B4=E0=B8=A1=E0=B9=84=E0=B8=9B=E0=B9=83?= =?UTF-8?q?=E0=B8=99=20func=20=E0=B8=AB=E0=B8=B2=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=A1=E0=B8=B5=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=20approve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveRequestRepository.cs | 43 ++++++++++++++++++- .../Repositories/UserProfileRepository.cs | 4 +- .../Controllers/LeaveRequestController.cs | 5 --- 3 files changed, 43 insertions(+), 9 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 9b18fbf5..e92c9627 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -109,7 +109,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests { throw; } - + } public override async Task AddAsync(LeaveRequest entity) @@ -966,6 +966,31 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests public async Task> GetSumApproveLeaveAsync(int year) { + // Get āļˆāļēāļ LeaveBeginning + var beginning = await _dbContext.Set().AsNoTracking() + .Include(x => x.LeaveType) + .Where(x => x.LeaveYear == year) + + .ToListAsync(); + + var beginningData = new List(); + + foreach (var b in beginning) + { + var pf = await _userProfileRepository.GetProfileByProfileIdAsync(b.ProfileId, AccessToken); + if (pf != null) + { + beginningData.Add(new GetSumApproveLeaveByTypeDto + { + KeycloakUserId = pf.Keycloak == null ? Guid.Empty : pf.Keycloak.Value, + LeaveTypeId = b.LeaveTypeId, + LeaveTypeCode = b.LeaveType!.Code, + SumLeaveDay = b.LeaveDaysUsed + }); + } + } + + // fix issue : #729 var startFiscalDate = new DateTime(year - 1, 10, 1); var endFiscalDate = new DateTime(year, 9, 30); @@ -977,6 +1002,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Where(x => x.LeaveStatus == "APPROVE") .ToListAsync(); + + var res = (from d in data group d by new { d.KeycloakUserId, LeaveTypeId = d.Type.Id, LeaveTypeCode = d.Type.Code } into grp select new GetSumApproveLeaveByTypeDto @@ -988,7 +1015,19 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests }) .ToList(); - return res; + + var resUnion = (from d in res.Union(beginningData) + group d by new { d.KeycloakUserId, d.LeaveTypeId, d.LeaveTypeCode } into grp + select new GetSumApproveLeaveByTypeDto + { + KeycloakUserId = grp.Key.KeycloakUserId, + LeaveTypeId = grp.Key.LeaveTypeId, + LeaveTypeCode = grp.Key.LeaveTypeCode, + SumLeaveDay = grp.Sum(x => x.SumLeaveDay) + }) + .ToList(); + + return resUnion; } public async Task> GetSumRejectLeaveAsync(int year) diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index 483859ec..1fc3e4fd 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -182,11 +182,11 @@ namespace BMA.EHR.Application.Repositories } } - public async Task GetProfileByProfileIdAsync(Guid keycloakId, string? accessToken) + public async Task GetProfileByProfileIdAsync(Guid profileId, string? accessToken) { try { - var apiPath = $"{_configuration["API"]}/org/dotnet/profile/{keycloakId}"; + var apiPath = $"{_configuration["API"]}/org/dotnet/profile/{profileId}"; var apiKey = _configuration["API_KEY"]; var apiResult = await GetExternalAPIAsync(apiPath, accessToken ?? "", apiKey); diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 40fd5471..591b257e 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -12,17 +12,12 @@ using BMA.EHR.Infrastructure.Persistence; using BMA.EHR.Leave.Service.DTOs.LeaveRequest; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Org.BouncyCastle.Asn1.Pkcs; -using Sentry; using Swashbuckle.AspNetCore.Annotations; using System.Net.Http.Headers; using System.Security.Claims; -using System.Security.Policy; -using System.Text.Json.Nodes; namespace BMA.EHR.Leave.Service.Controllers { From 04b17729e078555bb296def12123b03e764ad3fd Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 25 Apr 2025 11:05:19 +0700 Subject: [PATCH 239/879] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=80=E0=B8=AD=E0=B8=B2=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B9=83=E0=B8=8A?= =?UTF-8?q?=E0=B9=89=E0=B9=84=E0=B8=9B=20=E0=B9=81=E0=B8=A5=E0=B8=B0?= =?UTF-8?q?=E0=B8=A2=E0=B8=AD=E0=B8=94=E0=B8=A7=E0=B8=B1=E0=B8=99=E0=B8=A5?= =?UTF-8?q?=E0=B8=B2=E0=B8=9E=E0=B8=B1=E0=B8=81=E0=B8=9C=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=99=E0=B8=A2=E0=B8=81=E0=B8=A1=E0=B8=B2=20=E0=B8=A1?= =?UTF-8?q?=E0=B8=B2=E0=B9=83=E0=B8=8A=E0=B9=89=E0=B8=87=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveBeginingRepository.cs | 7 ++++ .../LeaveRequests/LeaveRequestRepository.cs | 14 +++++++- .../Controllers/LeaveReportController.cs | 18 +++++++--- .../Controllers/LeaveRequestController.cs | 36 ++++++++++++------- 4 files changed, 56 insertions(+), 19 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs index db09f644..e9cfc2e2 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs @@ -61,5 +61,12 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Where(x => x.LeaveYear == year) .ToListAsync(); } + + public async Task GetByYearAndTypeIdAsync(int year, Guid typeId) + { + return await _dbContext.Set() + .Include(x => x.LeaveType) + .FirstOrDefaultAsync(x => x.LeaveYear == year && x.LeaveTypeId == typeId); + } } } diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index e92c9627..d1ee1a61 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -280,6 +280,18 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests public async Task GetSumLeaveByTypeForUserAsync(Guid keycloakUserId, Guid leaveTypeId, int year) { + var pf = await _userProfileRepository.GetProfileByKeycloakIdAsync(keycloakUserId, AccessToken); + if (pf == null) + throw new Exception(GlobalMessages.DataNotFound); + + var beginningLeave = await _dbContext.Set().AsNoTracking() + .Where(x => x.ProfileId == pf.Id) + .Where(x => x.LeaveYear == year) + .Where(x => x.LeaveTypeId == leaveTypeId) + .FirstOrDefaultAsync(); + + + var startFiscalDate = new DateTime(year - 1, 10, 1); var endFiscalDate = new DateTime(year, 9, 30); @@ -293,7 +305,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests //.Where(x => x.LeaveStatus != "REJECT" && x.LeaveStatus != "DELETE") .ToListAsync(); - return data.Sum(x => x.LeaveTotal); + return data.Sum(x => x.LeaveTotal) + (beginningLeave == null ? 0 : beginningLeave.LeaveDaysUsed); } //public async Task GetSumApproveLeaveByTypeForUserAsync(Guid keycloakUserId, Guid leaveTypeId, int year) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index a8a2a0d0..29a51113 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -45,6 +45,7 @@ namespace BMA.EHR.Leave.Service.Controllers private readonly UserCalendarRepository _userCalendarRepository; private readonly IHttpContextAccessor _httpContextAccessor; private readonly PermissionRepository _permission; + private readonly LeaveBeginningRepository _leaveBeginningRepository; #endregion @@ -60,7 +61,8 @@ namespace BMA.EHR.Leave.Service.Controllers HolidayRepository holidayRepository, UserCalendarRepository userCalendarRepository, IHttpContextAccessor httpContextAccessor, - PermissionRepository permission) + PermissionRepository permission, + LeaveBeginningRepository leaveBeginningRepository) { _leaveRequestRepository = leaveRequestRepository; _userProfileRepository = userProfileRepository; @@ -73,6 +75,7 @@ namespace BMA.EHR.Leave.Service.Controllers _userCalendarRepository = userCalendarRepository; _httpContextAccessor = httpContextAccessor; _permission = permission; + _leaveBeginningRepository = leaveBeginningRepository; } private class LoopDate { @@ -231,7 +234,7 @@ namespace BMA.EHR.Leave.Service.Controllers private async Task GetReport03(LeaveRequest data) { - + var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(data.KeycloakUserId, AccessToken); @@ -240,7 +243,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); } - + var fullName = $"{profile!.Prefix}{profile!.FirstName} {profile!.LastName}"; @@ -274,6 +277,9 @@ namespace BMA.EHR.Leave.Service.Controllers var apprvPrevData = approvePrevYear.FirstOrDefault(x => x.KeycloakUserId == data.KeycloakUserId && x.LeaveTypeId == data.Type.Id); var apprvPrev = apprvPrevData == null ? 0 : apprvPrevData.SumLeaveDay; + //āļŦāļēāļ§āļąāļ™āļĨāļēāļĒāļāļĄāļēāļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + var leaveBeginning = await _leaveBeginningRepository.GetByYearAndTypeIdAsync(data.LeaveStartDate.Year, data.Type.Id); + //var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(data.KeycloakUserId, AccessToken); var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); @@ -282,12 +288,14 @@ namespace BMA.EHR.Leave.Service.Controllers if (govAge >= 3650) { // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ - extendLeave = 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + //extendLeave = 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + extendLeave = leaveBeginning == null ? 30 - apprvPrev : leaveBeginning.LeaveDays; if (extendLeave >= 20) extendLeave = 20; } else { - extendLeave = 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + //extendLeave = 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + extendLeave = leaveBeginning == null ? 20 - apprvPrev : leaveBeginning.LeaveDays; if (extendLeave >= 10) extendLeave = 10; } } diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 591b257e..f04e4fa8 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -15,6 +15,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using Org.BouncyCastle.Asn1.Pkcs; using Swashbuckle.AspNetCore.Annotations; using System.Net.Http.Headers; using System.Security.Claims; @@ -43,6 +44,7 @@ namespace BMA.EHR.Leave.Service.Controllers private readonly CommandRepository _commandRepository; private readonly UserCalendarRepository _userCalendarRepository; private readonly PermissionRepository _permission; + private readonly LeaveBeginningRepository _leaveBeginningRepository; private const string APPROVE_STEP_CREATE = "st1"; private const string APPROVE_STEP_OFFICER_APPROVE = "st2"; @@ -65,7 +67,8 @@ namespace BMA.EHR.Leave.Service.Controllers HolidayRepository holidayRepository, CommandRepository commandRepository, UserCalendarRepository userCalendarRepository, - PermissionRepository permission) + PermissionRepository permission, + LeaveBeginningRepository leaveBeginningRepository) { _context = context; _httpContextAccessor = httpContextAccessor; @@ -79,6 +82,7 @@ namespace BMA.EHR.Leave.Service.Controllers _commandRepository = commandRepository; _userCalendarRepository = userCalendarRepository; _permission = permission; + _leaveBeginningRepository = leaveBeginningRepository; } #endregion @@ -821,19 +825,21 @@ namespace BMA.EHR.Leave.Service.Controllers if (leaveType.Code.Trim().ToUpper() == "LV-005") { + var beginningLeave = await _leaveBeginningRepository.GetByYearAndTypeIdAsync(thisYear, leaveType.Id); + if (govAge >= 180) { var leavePrevYear = (await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear)).Where(x => x.LeaveTypeCode == "LV-005" && x.KeycloakUserId == userId).FirstOrDefault(); if (govAge >= 3650) { - leaveLimit = 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); - remainPrev = 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + leaveLimit = beginningLeave != null ? beginningLeave.LeaveDays : 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); + remainPrev = beginningLeave != null ? beginningLeave.LeaveDays : 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ if (remainPrev >= 20) remainPrev = 20; } else { - leaveLimit = 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); - remainPrev = 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + leaveLimit = beginningLeave != null ? beginningLeave.LeaveDays : 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); + remainPrev = beginningLeave != null ? beginningLeave.LeaveDays : 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ if (remainPrev >= 10) remainPrev = 10; } } @@ -1823,11 +1829,11 @@ namespace BMA.EHR.Leave.Service.Controllers return Success(); } - catch(Exception ex) + catch (Exception ex) { return Error(ex); } - + } /// @@ -1895,7 +1901,7 @@ namespace BMA.EHR.Leave.Service.Controllers { return Error(ex); } - + } /// @@ -1996,7 +2002,7 @@ namespace BMA.EHR.Leave.Service.Controllers { return Error(ex); } - + } /// @@ -2100,6 +2106,8 @@ namespace BMA.EHR.Leave.Service.Controllers if (rawData.Type.Code == "LV-005") { + var beginningLeave = await _leaveBeginningRepository.GetByYearAndTypeIdAsync(thisYear, rawData.Type.Id); + var apprvPrevData = approvePrevYear.FirstOrDefault(x => x.KeycloakUserId == rawData.KeycloakUserId && x.LeaveTypeId == rawData.Type.Id); var apprvPrev = apprvPrevData == null ? 0 : apprvPrevData.SumLeaveDay; @@ -2111,12 +2119,12 @@ namespace BMA.EHR.Leave.Service.Controllers if (govAge >= 3650) { // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ - extendLeave = 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ if (extendLeave >= 20) extendLeave = 20; } else { - extendLeave = 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ if (extendLeave >= 10) extendLeave = 10; } } @@ -2290,6 +2298,8 @@ namespace BMA.EHR.Leave.Service.Controllers if (leaveType.Code == "LV-005") { + var beginningLeave = await _leaveBeginningRepository.GetByYearAndTypeIdAsync(thisYear, leaveType.Id); + var apprvPrevData = approvePrevYear.FirstOrDefault(x => x.KeycloakUserId == userId && x.LeaveTypeId == leaveType.Id); var apprvPrev = apprvPrevData == null ? 0 : apprvPrevData.SumLeaveDay; @@ -2301,12 +2311,12 @@ namespace BMA.EHR.Leave.Service.Controllers if (govAge >= 3650) { // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ - extendLeave = 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ if (extendLeave >= 20) extendLeave = 20; } else { - extendLeave = 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ if (extendLeave >= 10) extendLeave = 10; } } From d54db7b58f84c2321ad0140bd359be0e0dc1ca6c Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 25 Apr 2025 14:48:26 +0700 Subject: [PATCH 240/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20REsponse=20LeaveRange,LeaveRangeEnd=20=E0=B8=A5?= =?UTF-8?q?=E0=B8=87=E0=B9=83=E0=B8=99=20/user/table=20=E0=B9=80=E0=B8=9E?= =?UTF-8?q?=E0=B8=B4=E0=B9=88=E0=B8=A1=20fullname=20=E0=B8=A5=E0=B8=87?= =?UTF-8?q?=E0=B9=84=E0=B8=9B=20=E0=B9=81=E0=B8=A5=E0=B8=B0=20search=20?= =?UTF-8?q?=E0=B8=88=E0=B8=B2=E0=B8=81=E0=B8=9F=E0=B8=B5=E0=B8=A5=E0=B8=99?= =?UTF-8?q?=E0=B8=B1=E0=B9=89=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveBeginningController.cs | 9 +++++---- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 2 ++ .../DTOs/LeaveRequest/GetLeaveRequestTableResultDto.cs | 4 ++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs b/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs index ff714ccd..3771aa93 100644 --- a/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs @@ -108,10 +108,7 @@ namespace BMA.EHR.Leave.Service.Controllers if (req.Type != Guid.Empty) resData = resData.Where(x => x.LeaveTypeId == req.Type).ToList(); - if (req.Keyword != "") - resData = resData.Where(x => x.FirstName!.Contains(req.Keyword) || x.LastName!.Contains(req.Keyword)).ToList(); - - var result = new List(); + var result = new List(); foreach (var item in resData) { @@ -119,6 +116,7 @@ namespace BMA.EHR.Leave.Service.Controllers { item.Id, item.ProfileId, + FullName = $"{item.Prefix}{item.FirstName} {item.LastName}", item.Prefix, item.FirstName, item.LastName, @@ -135,6 +133,9 @@ namespace BMA.EHR.Leave.Service.Controllers }); } + if (req.Keyword != "") + result = result.Where(x => x.FullName!.Contains(req.Keyword)).ToList(); + var pageResult = result.Skip((req.Page - 1) * req.PageSize).Take(req.PageSize).ToList(); return Success(new { data = pageResult, total = result.Count }); diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index f04e4fa8..c607be5f 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1312,6 +1312,8 @@ namespace BMA.EHR.Leave.Service.Controllers LeaveStartDate = item.LeaveStartDate, LeaveEndDate = item.LeaveEndDate, HajjDayStatus = item.HajjDayStatus, + LeaveRange = item.LeaveRange, + LeaveRangeEnd = item.LeaveRangeEnd, }; result.Add(res); } diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestTableResultDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestTableResultDto.cs index aad7661c..56eb8300 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestTableResultDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestTableResultDto.cs @@ -22,5 +22,9 @@ public DateTime LeaveStartDate { get; set; } = DateTime.Now; public DateTime LeaveEndDate { get; set; } = DateTime.Now; + + public string? LeaveRange { get; set; } = "ALL"; + + public string? LeaveRangeEnd { get; set; } = "ALL"; } } From 28544df284bd2d39e3f57ba2e9d926b379a547d8 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 28 Apr 2025 09:45:48 +0700 Subject: [PATCH 241/879] fix #1382 --- .../MetaData/HolidayRepository.cs | 10 +++++ .../Controllers/LeaveReportController.cs | 37 ++++++++++++++++++- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Application/Repositories/MetaData/HolidayRepository.cs b/BMA.EHR.Application/Repositories/MetaData/HolidayRepository.cs index 751b0473..c5c09a44 100644 --- a/BMA.EHR.Application/Repositories/MetaData/HolidayRepository.cs +++ b/BMA.EHR.Application/Repositories/MetaData/HolidayRepository.cs @@ -26,6 +26,16 @@ namespace BMA.EHR.Application.Repositories.MetaData #region " Methods " + public async Task GetHolidayAsync(DateTime date, string category = "NORMAL") + { + var data = await _dbContext.Set().AsQueryable() + .Where(x => x.Category == category) + .Where(x => x.HolidayDate.Date == date.Date) + .Select(x => x.Name) + .FirstOrDefaultAsync(); + return data ?? string.Empty; + } + public async Task> GetHolidayAsync(DateTime startDate, DateTime endDate, string category = "NORMAL") { var data = await _dbContext.Set().AsQueryable() diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 29a51113..7292a68a 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -18,6 +18,7 @@ using Org.BouncyCastle.Asn1.Pkcs; using Org.BouncyCastle.Ocsp; using Sentry; using Swashbuckle.AspNetCore.Annotations; +using System.Diagnostics.Eventing.Reader; using System.Globalization; using System.Security.Claims; @@ -82,6 +83,11 @@ namespace BMA.EHR.Leave.Service.Controllers public DateTime date { get; set; } public bool isHoliday { get; set; } + + public bool isWeekEnd { get; set; } + + public string dateRemark { get; set; } + } private class DateResultReport { @@ -1251,12 +1257,33 @@ namespace BMA.EHR.Leave.Service.Controllers var dateList = new List(); for (DateTime i = req.StartDate.Date; i <= req.EndDate.Date; i = i.AddDays(1)) { - if (excludeDates.Contains(i)) + //if (excludeDates.Contains(i)) + //{ + // dateList.Add(new LoopDate + // { + // date = i, + // isHoliday = true, + // }); + //} + if (holidays.Contains(i)) + { + var d = await _holidayRepository.GetHolidayAsync(i); + dateList.Add(new LoopDate + { + date = i, + isHoliday = true, + isWeekEnd = false, + dateRemark = d + }); + } + else if (weekend.Contains(i)) { dateList.Add(new LoopDate { date = i, isHoliday = true, + isWeekEnd = false, + dateRemark = "āļ§āļąāļ™āļŦāļĒāļļāļ”" }); } else @@ -1265,6 +1292,8 @@ namespace BMA.EHR.Leave.Service.Controllers { date = i, isHoliday = false, + isWeekEnd = false, + dateRemark = "" }); } } @@ -1340,7 +1369,11 @@ namespace BMA.EHR.Leave.Service.Controllers remarkStr = "āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"; if (dd.isHoliday == true) { - remarkStr = "āļ§āļąāļ™āļŦāļĒāļļāļ”"; + remarkStr = $"āļ§āļąāļ™āļŦāļĒāļļāļ” ({dd.dateRemark})"; + } + else if (dd.isWeekEnd) + { + remarkStr = dd.dateRemark; } } else remarkStr = ""; From c0383da15d2d092cf2d07e1dcd363043b5c82fa4 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 28 Apr 2025 10:11:42 +0700 Subject: [PATCH 242/879] #1448 , #1449 --- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 29a51113..9a408e6f 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -843,7 +843,7 @@ namespace BMA.EHR.Leave.Service.Controllers { try { - var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_LEAVE_REPORT"); + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_SALARY_OFFICER"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { From ae2112f23a7c63881e43761ba50c81179c35d27a Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 28 Apr 2025 12:02:29 +0700 Subject: [PATCH 243/879] fix issue --- .../LeaveRequests/LeaveRequestRepository.cs | 62 ++- .../Controllers/LeaveRequestController.cs | 515 ++++++++++-------- .../GetLeaveRequestForAdminByIdDto.cs | 25 + 3 files changed, 365 insertions(+), 237 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index d1ee1a61..77f11520 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -1,6 +1,4 @@ -ïŧŋusing System.Drawing; -using System.Net.Http.Headers; -using System.Net.Http.Json; +ïŧŋusing Amazon.S3.Model; using BMA.EHR.Application.Common.Interfaces; using BMA.EHR.Application.Messaging; using BMA.EHR.Application.Responses.Leaves; @@ -12,6 +10,10 @@ using BMA.EHR.Domain.Shared; using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; +using Nest; +using System.Drawing; +using System.Net.Http.Headers; +using System.Net.Http.Json; namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests { @@ -27,6 +29,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests private readonly EmailSenderService _emailSenderService; private readonly IApplicationDBContext _appDbContext; + private readonly MinIOLeaveService _minIOService; private readonly string URL = string.Empty; @@ -40,7 +43,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests UserProfileRepository userProfileRepository, IConfiguration configuration, EmailSenderService emailSenderService, - IApplicationDBContext appDbContext) : base(dbContext, httpContextAccessor) + IApplicationDBContext appDbContext, + MinIOLeaveService minIOService) : base(dbContext, httpContextAccessor) { _dbContext = dbContext; _httpContextAccessor = httpContextAccessor; @@ -51,6 +55,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests _appDbContext = appDbContext; URL = (_configuration["API"]).Replace("/api/v1", ""); + _minIOService = minIOService; } #endregion @@ -197,6 +202,53 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests #endregion + public async Task AddLeaveDocumentAsync(Guid id, LeaveDocument doc) + { + try + { + var req = await _dbContext.Set().FirstOrDefaultAsync(x => x.Id == id); + req!.LeaveDocument.Add(doc); + await _dbContext.SaveChangesAsync(); + } + catch + { + throw; + } + } + + public async Task AddApproversAsync(Guid id, List approvers) + { + try + { + var req = await _dbContext.Set().FirstOrDefaultAsync(x => x.Id == id); + req!.Approvers.AddRange(approvers); + await _dbContext.SaveChangesAsync(); + } + catch + { + throw; + } + } + + public async Task RemoveApproversAsync(Guid id, string type) + { + try + { + var data = await _dbContext.Set() + .Where(x => x.LeaveRequest.Id == id && x.ApproveType.ToUpper() == type.ToUpper()) + .ToListAsync(); + + _dbContext.Set().RemoveRange(data); + + await _dbContext.SaveChangesAsync(); + } + catch + { + throw; + } + } + + public async Task> GetLeaveRequestByYearAsync(int year) { var data = await _dbContext.Set().AsQueryable().AsNoTracking() @@ -289,7 +341,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Where(x => x.LeaveYear == year) .Where(x => x.LeaveTypeId == leaveTypeId) .FirstOrDefaultAsync(); - + var startFiscalDate = new DateTime(year - 1, 10, 1); diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index c607be5f..51f75e36 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -134,11 +134,15 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); } - var delete = leaveReq.Approvers.RemoveAll(x => x.ApproveType == type.Trim().ToUpper()); + await _leaveRequestRepository.RemoveApproversAsync(id, type); + //var delete = leaveReq.Approvers.RemoveAll(x => x.ApproveType.ToUpper() == type.Trim().ToUpper()); + //await _leaveRequestRepository.UpdateAsync(leaveReq); + + var addList = new List(); foreach (var r in req) { - leaveReq.Approvers.Add(new LeaveRequestApprover + addList.Add(new LeaveRequestApprover { Seq = r.Seq, Prefix = r.Prefix, @@ -152,7 +156,7 @@ namespace BMA.EHR.Leave.Service.Controllers }); } - await _leaveRequestRepository.UpdateAsync(leaveReq); + await _leaveRequestRepository.AddApproversAsync(id, addList); return Success(); @@ -503,245 +507,261 @@ namespace BMA.EHR.Leave.Service.Controllers [ProducesResponseType(StatusCodes.Status500InternalServerError)] public async Task> EditLeaveRequestAsync(Guid id, [FromForm] CreateLeaveRequestDto req) { - var oldData = await _leaveRequestRepository.GetByIdAsync(id); - if (oldData == null) + try { - return Error(GlobalMessages.DataNotFound); - } - - var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var thisYear = DateTime.Now.Year; - - // var isDuplicate = await _leaveRequestRepository.CheckDuplicateLeave(userId, req.LeaveStartDate.Date, req.LeaveEndDate.Date); - // if (isDuplicate) - // { - // return Error("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ‚āļ­āļĨāļēāđƒāļ™āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāđ€āļ”āļĩāļĒāļ§āļāļąāļ™āđ„āļ”āđ‰"); - // } - - var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); - - if (profile == null) - { - return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); - } - - var userCalendar = await _userCalendarRepository.GetExist(profile.Id); - var category = userCalendar == null ? "NORMAL" : userCalendar.Calendar; - - var leaveType = await _context.Set().AsNoTracking().FirstOrDefaultAsync(x => x.Id == req.Type); // _leaveTypeRepository.GetByIdAsync(req.Type); - if (leaveType == null) - { - return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); - } - - var sumLeave = req.LeaveStartDate.DiffDay(req.LeaveEndDate); - var sumHoliday = await _holidayRepository.GetHolidayCountAsync(req.LeaveStartDate, req.LeaveEndDate, category); - var sumWeekend = _holidayRepository.GetWeekEndCount(req.LeaveStartDate, req.LeaveEndDate, category); - - // var leaveTotal = 0.0; - // if (req.LeaveRange != "ALL") - // leaveTotal = 0.5; - // else - // leaveTotal = sumLeave - sumHoliday - sumWeekend; - - // āļĨāļ­āļ‡āđƒāļŠāđ‰ oldData - oldData.LeaveRange = req.LeaveRange; - oldData.LeaveRangeEnd = req.LeaveRangeEnd; - oldData.LeaveStartDate = req.LeaveStartDate; - oldData.LeaveEndDate = req.LeaveEndDate; - oldData.LeaveWrote = req.LeaveWrote ?? ""; - oldData.LeaveDetail = req.LeaveDetail ?? ""; - oldData.LeaveAddress = req.LeaveAddress ?? ""; - oldData.LeaveNumber = req.LeaveNumber ?? ""; - oldData.LeaveTotal = req.LeaveTotal; - oldData.LeaveSalaryText = req.LeaveSalaryText ?? ""; - - //oldData.CommanderPosition = req.CommanderPosition ?? ""; - - /*** remove old code - - var leaveRequest = new LeaveRequest - { - Id = id, - Type = leaveType, - LeaveRange = req.LeaveRange, - LeaveStartDate = req.LeaveStartDate, - LeaveEndDate = req.LeaveEndDate, - LeaveWrote = req.LeaveWrote ?? "", - LeaveDetail = req.LeaveDetail ?? "", - LeaveAddress = req.LeaveAddress ?? "", - LeaveNumber = req.LeaveNumber ?? "", - //LeaveTotal = req.LeaveStartDate.DiffDay(req.LeaveEndDate), - LeaveTotal = req.LeaveTotal, // change to get value from request - - - LeaveSalaryText = req.LeaveSalaryText ?? "", - LeaveStatus = oldData.LeaveStatus, - KeycloakUserId = userId, - ApproveStep = oldData.ApproveStep - }; - - // assign old upload documents to new request - leaveRequest.LeaveDraftDocument = oldData.LeaveDraftDocument; - leaveRequest.LeaveDocument.AddRange(oldData.LeaveDocument); - leaveRequest.LeaveCancelDocument = oldData.LeaveCancelDocument; - - // get leave last - leaveRequest.LeaveLast = await _leaveRequestRepository.GetLeaveLastByTypeForUserAsync(userId, req.Type); - - **/ - - // upload document - if (req.LeaveDocument != null) - { - foreach (var d in req.LeaveDocument) + var oldData = await _leaveRequestRepository.GetByIdAsync(id); + if (oldData == null) { - var doc = await _minIOService.UploadFileAsync(d); + return Error(GlobalMessages.DataNotFound); + } + + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + var thisYear = DateTime.Now.Year; + + // var isDuplicate = await _leaveRequestRepository.CheckDuplicateLeave(userId, req.LeaveStartDate.Date, req.LeaveEndDate.Date); + // if (isDuplicate) + // { + // return Error("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ‚āļ­āļĨāļēāđƒāļ™āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāđ€āļ”āļĩāļĒāļ§āļāļąāļ™āđ„āļ”āđ‰"); + // } + + var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); + + if (profile == null) + { + return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); + } + + var userCalendar = await _userCalendarRepository.GetExist(profile.Id); + var category = userCalendar == null ? "NORMAL" : userCalendar.Calendar; + + var leaveType = await _context.Set().AsNoTracking().FirstOrDefaultAsync(x => x.Id == req.Type); // _leaveTypeRepository.GetByIdAsync(req.Type); + if (leaveType == null) + { + return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); + } + + var sumLeave = req.LeaveStartDate.DiffDay(req.LeaveEndDate); + var sumHoliday = await _holidayRepository.GetHolidayCountAsync(req.LeaveStartDate, req.LeaveEndDate, category); + var sumWeekend = _holidayRepository.GetWeekEndCount(req.LeaveStartDate, req.LeaveEndDate, category); + + // var leaveTotal = 0.0; + // if (req.LeaveRange != "ALL") + // leaveTotal = 0.5; + // else + // leaveTotal = sumLeave - sumHoliday - sumWeekend; + + // āļĨāļ­āļ‡āđƒāļŠāđ‰ oldData + oldData.LeaveRange = req.LeaveRange; + oldData.LeaveRangeEnd = req.LeaveRangeEnd; + oldData.LeaveStartDate = req.LeaveStartDate; + oldData.LeaveEndDate = req.LeaveEndDate; + oldData.LeaveWrote = req.LeaveWrote ?? ""; + oldData.LeaveDetail = req.LeaveDetail ?? ""; + oldData.LeaveAddress = req.LeaveAddress ?? ""; + oldData.LeaveNumber = req.LeaveNumber ?? ""; + oldData.LeaveTotal = req.LeaveTotal; + oldData.LeaveSalaryText = req.LeaveSalaryText ?? ""; + + //oldData.CommanderPosition = req.CommanderPosition ?? ""; + + /*** remove old code + + var leaveRequest = new LeaveRequest + { + Id = id, + Type = leaveType, + LeaveRange = req.LeaveRange, + LeaveStartDate = req.LeaveStartDate, + LeaveEndDate = req.LeaveEndDate, + LeaveWrote = req.LeaveWrote ?? "", + LeaveDetail = req.LeaveDetail ?? "", + LeaveAddress = req.LeaveAddress ?? "", + LeaveNumber = req.LeaveNumber ?? "", + //LeaveTotal = req.LeaveStartDate.DiffDay(req.LeaveEndDate), + LeaveTotal = req.LeaveTotal, // change to get value from request + + + LeaveSalaryText = req.LeaveSalaryText ?? "", + LeaveStatus = oldData.LeaveStatus, + KeycloakUserId = userId, + ApproveStep = oldData.ApproveStep + }; + + // assign old upload documents to new request + leaveRequest.LeaveDraftDocument = oldData.LeaveDraftDocument; + leaveRequest.LeaveDocument.AddRange(oldData.LeaveDocument); + leaveRequest.LeaveCancelDocument = oldData.LeaveCancelDocument; + + // get leave last + leaveRequest.LeaveLast = await _leaveRequestRepository.GetLeaveLastByTypeForUserAsync(userId, req.Type); + + **/ + + + + // switch from leave type + switch (leaveType.Code.Trim().ToUpper()) + { + case "LV-004": + { + oldData.WifeDayName = req.WifeDayName ?? ""; + oldData.WifeDayDateBorn = req.WifeDayDateBorn ?? ""; + } + break; + case "LV-005": + { + oldData.RestDayOldTotal = + await _leaveRequestRepository.GetRestDayTotalByYearForUserAsync(userId, thisYear - 1); + oldData.RestDayCurrentTotal = + await _leaveRequestRepository.GetRestDayTotalByYearForUserAsync(userId, thisYear); + } + break; + case "LV-006": + { + oldData.OrdainDayStatus = req.OrdainDayStatus ?? false; + oldData.OrdainDayLocationName = req.OrdainDayLocationName ?? ""; + oldData.OrdainDayLocationAddress = req.OrdainDayLocationAddress ?? ""; + oldData.OrdainDayLocationNumber = req.OrdainDayLocationNumber ?? ""; + if (req.OrdainDayOrdination != null) + oldData.OrdainDayOrdination = req.OrdainDayOrdination.Value; + + oldData.OrdainDayBuddhistLentName = req.OrdainDayBuddhistLentName ?? ""; + + oldData.OrdainDayBuddhistLentAddress = req.OrdainDayBuddhistLentAddress ?? ""; + + oldData.LeaveBirthDate = profile.BirthDate; + oldData.LeaveGovernmentDate = profile.DateStart; + + oldData.HajjDayStatus = req.HajjDayStatus ?? false; + } + break; + case "LV-007": + { + oldData.AbsentDayLocation = req.AbsentDayLocation ?? ""; + oldData.AbsentDaySummon = req.AbsentDaySummon ?? ""; + if (req.AbsentDayRegistorDate != null) + oldData.AbsentDayRegistorDate = req.AbsentDayRegistorDate.Value; + + oldData.AbsentDayGetIn = req.AbsentDayGetIn ?? ""; + + oldData.AbsentDayAt = req.AbsentDayAt ?? ""; + } + break; + case "LV-008": + { + var lastSalary = profile.ProfileSalary; + + oldData.LeaveSalary = lastSalary == null ? 0 : (int)lastSalary.Amount.Value; + oldData.LeaveSalaryText = + lastSalary == null ? "" : ((int)lastSalary.Amount.Value).ToThaiBahtText(false); + oldData.LeaveBirthDate = profile.BirthDate; + oldData.LeaveGovernmentDate = profile.DateStart; + + oldData.StudyDaySubject = req.StudyDaySubject ?? ""; + oldData.StudyDayDegreeLevel = req.StudyDayDegreeLevel ?? ""; + oldData.StudyDayUniversityName = req.StudyDayUniversityName ?? ""; + oldData.StudyDayCountry = req.StudyDayCountry ?? ""; + oldData.StudyDayScholarship = req.StudyDayScholarship ?? ""; + + oldData.StudyDayTrainingSubject = req.StudyDayTrainingSubject ?? ""; + oldData.StudyDayTrainingName = req.StudyDayTrainingName ?? ""; + } + break; + case "LV-010": + { + var lastSalary = profile.ProfileSalary; + + oldData.LeaveSalary = lastSalary == null ? 0 : (int)lastSalary.Amount.Value; + oldData.LeaveSalaryText = + lastSalary == null ? "" : ((int)lastSalary.Amount.Value).ToThaiBahtText(false); + + oldData.CoupleDayName = req.CoupleDayName ?? ""; + oldData.CoupleDayPosition = req.CoupleDayPosition ?? ""; + oldData.CoupleDayLevel = req.CoupleDayLevel ?? ""; + oldData.CoupleDayLevelCountry = req.CoupleDayLevelCountry ?? ""; + oldData.CoupleDayCountryHistory = req.CoupleDayCountryHistory ?? ""; + oldData.CoupleDayTotalHistory = req.CoupleDayTotalHistory ?? ""; + + if (req.CoupleDayStartDateHistory != null) + oldData.CoupleDayStartDateHistory = req.CoupleDayStartDateHistory.Value; + + if (req.CoupleDayEndDateHistory != null) + oldData.CoupleDayEndDateHistory = req.CoupleDayEndDateHistory.Value; + + oldData.CoupleDaySumTotalHistory = req.CoupleDaySumTotalHistory ?? ""; + } + break; + } + + // add dear and oc_data + //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); + //var approver = string.Empty; + //if (rootOc != null) + //{ + // var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); + // if (list.Count > 0) + // approver = list.First().Name; + //} + + oldData.LeaveTypeCode = leaveType.Code; + oldData.Dear = profile.Commander ?? ""; + oldData.CommanderPosition = profile.CommanderPositionName ?? ""; + + + oldData.PositionName = profile.Position == null ? "" : profile.Position; + oldData.PositionLevelName = profile.PosLevel == null ? "" : profile.PosLevel; + oldData.OrganizationName = profile.Oc ?? ""; + + _context.Entry(oldData.Type).State = Microsoft.EntityFrameworkCore.EntityState.Detached; + //_context.Entry(leaveRequest.Type).State = Microsoft.EntityFrameworkCore.EntityState.Modified; + + + + // delete old + //await _leaveRequestRepository.DeleteAsync(oldData); + + // save to database + await _leaveRequestRepository.UpdateAsync(oldData); + + // upload document + if (req.LeaveDocument != null) + { + foreach (var d in req.LeaveDocument) + { + var doc = await _minIOService.UploadFileAsync(d); + if (doc != null) + { + // add new record + await _leaveRequestRepository.AddLeaveDocumentAsync(id, new LeaveDocument { Document = doc }); + + //oldData.LeaveDocument.Add(new LeaveDocument { Document = doc }); + //var a = oldData.LeaveDocument.Last(); + //_context.Entry(a).State = Microsoft.EntityFrameworkCore.EntityState.Added; + } + } + } + + // upload draft document + if (req.LeaveDraftDocument != null) + { + var doc = await _minIOService.UploadFileAsync(req.LeaveDraftDocument); if (doc != null) { - oldData.LeaveDocument.Add(new LeaveDocument { Document = doc }); - var a = oldData.LeaveDocument.Last(); - _context.Entry(a).State = Microsoft.EntityFrameworkCore.EntityState.Modified; + oldData.LeaveDraftDocument = doc; + _context.Entry(oldData.LeaveDraftDocument).State = Microsoft.EntityFrameworkCore.EntityState.Modified; } + + // save to database + await _leaveRequestRepository.UpdateAsync(oldData); } - } - // upload draft document - if (req.LeaveDraftDocument != null) + return Success(new { id = oldData.Id }); + } + catch (Exception ex) { - var doc = await _minIOService.UploadFileAsync(req.LeaveDraftDocument); - if (doc != null) - { - oldData.LeaveDraftDocument = doc; - _context.Entry(oldData.LeaveDraftDocument).State = Microsoft.EntityFrameworkCore.EntityState.Modified; - } + return Error(ex); } - // switch from leave type - switch (leaveType.Code.Trim().ToUpper()) - { - case "LV-004": - { - oldData.WifeDayName = req.WifeDayName ?? ""; - oldData.WifeDayDateBorn = req.WifeDayDateBorn ?? ""; - } - break; - case "LV-005": - { - oldData.RestDayOldTotal = - await _leaveRequestRepository.GetRestDayTotalByYearForUserAsync(userId, thisYear - 1); - oldData.RestDayCurrentTotal = - await _leaveRequestRepository.GetRestDayTotalByYearForUserAsync(userId, thisYear); - } - break; - case "LV-006": - { - oldData.OrdainDayStatus = req.OrdainDayStatus ?? false; - oldData.OrdainDayLocationName = req.OrdainDayLocationName ?? ""; - oldData.OrdainDayLocationAddress = req.OrdainDayLocationAddress ?? ""; - oldData.OrdainDayLocationNumber = req.OrdainDayLocationNumber ?? ""; - if (req.OrdainDayOrdination != null) - oldData.OrdainDayOrdination = req.OrdainDayOrdination.Value; - - oldData.OrdainDayBuddhistLentName = req.OrdainDayBuddhistLentName ?? ""; - - oldData.OrdainDayBuddhistLentAddress = req.OrdainDayBuddhistLentAddress ?? ""; - - oldData.LeaveBirthDate = profile.BirthDate; - oldData.LeaveGovernmentDate = profile.DateStart; - - oldData.HajjDayStatus = req.HajjDayStatus ?? false; - } - break; - case "LV-007": - { - oldData.AbsentDayLocation = req.AbsentDayLocation ?? ""; - oldData.AbsentDaySummon = req.AbsentDaySummon ?? ""; - if (req.AbsentDayRegistorDate != null) - oldData.AbsentDayRegistorDate = req.AbsentDayRegistorDate.Value; - - oldData.AbsentDayGetIn = req.AbsentDayGetIn ?? ""; - - oldData.AbsentDayAt = req.AbsentDayAt ?? ""; - } - break; - case "LV-008": - { - var lastSalary = profile.ProfileSalary; - - oldData.LeaveSalary = lastSalary == null ? 0 : (int)lastSalary.Amount.Value; - oldData.LeaveSalaryText = - lastSalary == null ? "" : ((int)lastSalary.Amount.Value).ToThaiBahtText(false); - oldData.LeaveBirthDate = profile.BirthDate; - oldData.LeaveGovernmentDate = profile.DateStart; - - oldData.StudyDaySubject = req.StudyDaySubject ?? ""; - oldData.StudyDayDegreeLevel = req.StudyDayDegreeLevel ?? ""; - oldData.StudyDayUniversityName = req.StudyDayUniversityName ?? ""; - oldData.StudyDayCountry = req.StudyDayCountry ?? ""; - oldData.StudyDayScholarship = req.StudyDayScholarship ?? ""; - - oldData.StudyDayTrainingSubject = req.StudyDayTrainingSubject ?? ""; - oldData.StudyDayTrainingName = req.StudyDayTrainingName ?? ""; - } - break; - case "LV-010": - { - var lastSalary = profile.ProfileSalary; - - oldData.LeaveSalary = lastSalary == null ? 0 : (int)lastSalary.Amount.Value; - oldData.LeaveSalaryText = - lastSalary == null ? "" : ((int)lastSalary.Amount.Value).ToThaiBahtText(false); - - oldData.CoupleDayName = req.CoupleDayName ?? ""; - oldData.CoupleDayPosition = req.CoupleDayPosition ?? ""; - oldData.CoupleDayLevel = req.CoupleDayLevel ?? ""; - oldData.CoupleDayLevelCountry = req.CoupleDayLevelCountry ?? ""; - oldData.CoupleDayCountryHistory = req.CoupleDayCountryHistory ?? ""; - oldData.CoupleDayTotalHistory = req.CoupleDayTotalHistory ?? ""; - - if (req.CoupleDayStartDateHistory != null) - oldData.CoupleDayStartDateHistory = req.CoupleDayStartDateHistory.Value; - - if (req.CoupleDayEndDateHistory != null) - oldData.CoupleDayEndDateHistory = req.CoupleDayEndDateHistory.Value; - - oldData.CoupleDaySumTotalHistory = req.CoupleDaySumTotalHistory ?? ""; - } - break; - } - - // add dear and oc_data - //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); - //var approver = string.Empty; - //if (rootOc != null) - //{ - // var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty); - // if (list.Count > 0) - // approver = list.First().Name; - //} - - oldData.LeaveTypeCode = leaveType.Code; - oldData.Dear = profile.Commander ?? ""; - oldData.CommanderPosition = profile.CommanderPositionName ?? ""; - - - oldData.PositionName = profile.Position == null ? "" : profile.Position; - oldData.PositionLevelName = profile.PosLevel == null ? "" : profile.PosLevel; - oldData.OrganizationName = profile.Oc ?? ""; - - _context.Entry(oldData.Type).State = Microsoft.EntityFrameworkCore.EntityState.Detached; - //_context.Entry(leaveRequest.Type).State = Microsoft.EntityFrameworkCore.EntityState.Modified; - - - - // delete old - //await _leaveRequestRepository.DeleteAsync(oldData); - - // save to database - await _leaveRequestRepository.UpdateAsync(oldData); - - return Success(new { id = oldData.Id }); } @@ -2249,6 +2269,37 @@ namespace BMA.EHR.Leave.Service.Controllers } } + var commanders = rawData.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER") + .Select(x => new GetLeaveApproverDto + { + Seq = x.Seq, + Prefix = x.Prefix, + FirstName = x.FirstName, + LastName = x.LastName, + PositionName = x.PositionName, + ApproveStatus = x.ApproveStatus, + Comment = x.Comment, + ProfileId = x.ProfileId, + KeycloakId = x.KeycloakId + }).ToList(); + + var approvers = rawData.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER") + .Select(x => new GetLeaveApproverDto + { + Seq = x.Seq, + Prefix = x.Prefix, + FirstName = x.FirstName, + LastName = x.LastName, + PositionName = x.PositionName, + ApproveStatus = x.ApproveStatus, + Comment = x.Comment, + ProfileId = x.ProfileId, + KeycloakId = x.KeycloakId + }).ToList(); + + result.Approvers.AddRange(approvers); + result.Commanders.AddRange(commanders); + return Success(result); } diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs index 3693a941..21c6d5f7 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs @@ -141,5 +141,30 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string? ProfileType { get; set; } public string? CommanderPosition { get; set; } = string.Empty; + + public List Commanders { get; set; } = new(); + + public List Approvers { get; set; } = new(); + } + + public class GetLeaveApproverDto + { + public int Seq { get; set; } = 0; + + public string Prefix { get; set; } = string.Empty; + + public string FirstName { get; set; } = string.Empty; + + public string LastName { get; set; } = string.Empty; + + public string PositionName { get; set; } = string.Empty; + + public Guid ProfileId { get; set; } = Guid.Empty; + + public Guid KeycloakId { get; set; } = Guid.Empty; + + public string ApproveStatus { get; set; } = string.Empty; + + public string Comment { get; set; } = string.Empty; } } From 124109bf578491df573455e0ab59aeb6910c270b Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 28 Apr 2025 18:41:34 +0700 Subject: [PATCH 244/879] fix issue #1401 --- .../Controllers/RetirementOtherController.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 777bef02..55ab30a7 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -738,9 +738,10 @@ namespace BMA.EHR.Retirement.Service.Controllers (p.child2 == null ? "" : $"{p.child2}\n") + (p.child1 == null ? "" : $"{p.child1}\n") + (p.root == null ? "" : $"{p.root}"), - NewPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, - NewPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, - NewPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), + NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, + NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, + NewPositionNumber = p.rootShortName == null && p.posMasterNo == null ? null : $"{(p.child1ShortName == null ? p.rootShortName : (p.child2ShortName == null ? p.child1ShortName : (p.child3ShortName == null ? p.child2ShortName : (p.child4ShortName == null ? p.child3ShortName : p.child4ShortName))))}"+ + $" {p.posMasterNo?.ToString().ToThaiNumber()}", NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.PositionDate == null ? "-" : p.PositionDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), From a710ebd297f653ab6875dad178e4519df4c78798 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 29 Apr 2025 09:12:42 +0700 Subject: [PATCH 245/879] fix using --- BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 18e9641b..1e91d64a 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -6,7 +6,6 @@ using BMA.EHR.Application.Responses.Insignias; using BMA.EHR.Application.Responses.Organizations; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; -using BMA.EHR.Domain.Models.HR; using BMA.EHR.Domain.Models.Insignias; using BMA.EHR.Domain.Shared; using BMA.EHR.Infrastructure.Persistence; @@ -47,6 +46,7 @@ namespace BMA.EHR.Insignia.Service.Controllers private readonly IConfiguration _configuration; private readonly PermissionRepository _permission; + /// /// /// From 9d2dd445492562dcbe6854a30319de51b8498771 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 29 Apr 2025 09:50:44 +0700 Subject: [PATCH 246/879] Add Keycloak UserId --- .../DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs index 21c6d5f7..eaf81698 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminByIdDto.cs @@ -145,6 +145,8 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public List Commanders { get; set; } = new(); public List Approvers { get; set; } = new(); + + public Guid? KeycloakUserId { get; set; } = Guid.Empty; } public class GetLeaveApproverDto From 16f6eb7b5009053e4b455f5a2ec351eff794cd32 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 29 Apr 2025 10:54:20 +0700 Subject: [PATCH 247/879] fix --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 51f75e36..25457406 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -2232,6 +2232,9 @@ namespace BMA.EHR.Leave.Service.Controllers CoupleDayEndDateHistory = rawData.CoupleDayEndDateHistory, CoupleDaySumTotalHistory = rawData.CoupleDaySumTotalHistory, + + KeycloakUserId = rawData.KeycloakUserId, + // Dear = approver, // PositionName = profile.Position == null ? "" : profile.Position.Name, // PositionLevelName = profile.PositionLevel == null ? "" : profile.PositionLevel.Name, From 746f435ca89dc757e3a72de1b317d6a13ec95c4d Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 29 Apr 2025 14:12:54 +0700 Subject: [PATCH 248/879] fix approve status --- .../LeaveRequests/LeaveRequestRepository.cs | 60 ++++++++++++++----- 1 file changed, 44 insertions(+), 16 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 77f11520..a82ebe9f 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -473,7 +473,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests rawData.LeaveCancelStatus = "APPROVE"; rawData.LeaveCancelComment = Reason; - await UpdateAsync(rawData); + await UpdateWithTrackingAsync(rawData); // TODO: remove āļ§āļąāļ™āļĨāļē @@ -606,7 +606,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var rawData = await GetByIdAsync(id); + var rawData = await GetByIdWithTrackingAsync(id); if (rawData == null) { throw new Exception(GlobalMessages.DataNotFound); @@ -618,6 +618,13 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests } // check commander approve + //var approvers = await _dbContext.Set() + // //.AsNoTracking() + // .Include(x => x.LeaveRequest) + // .Where(x => x.LeaveRequest.Id == id && x.ApproveType == "COMMANDER") + // .OrderBy(x => x.Seq) + // .ToListAsync(); + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); @@ -639,11 +646,33 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests var maxSeq = approvers.Max(x => x.Seq); + //var data = await _dbContext.Set() + // .AsNoTracking() + // .Include(x => x.LeaveRequest) + // .Where(x => x.LeaveRequest.Id == id && x.KeycloakId == userId && x.ApproveType == "COMMANDER") + // .FirstOrDefaultAsync(); + + //if(data != null) + //{ + // data.ApproveStatus = "APPROVE"; + // data.Comment = reason; + + // data.LastUpdatedAt = DateTime.Now; + // data.LastUpdateUserId = userId.ToString("D"); + // data.LastUpdateFullName = FullName ?? ""; + + // await _appDbContext.SaveChangesAsync(); + //} + approver.ApproveStatus = "APPROVE"; approver.Comment = reason; + //await _dbContext.SaveChangesAsync(); + if (approver.Seq != maxSeq) { + rawData.LeaveStatus = "PENDING"; + await UpdateWithTrackingAsync(rawData); var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); @@ -657,9 +686,6 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests }; _appDbContext.Set().Add(noti); await _appDbContext.SaveChangesAsync(); - - rawData.LeaveStatus = "PENDING"; - await UpdateAsync(rawData); } else { @@ -667,13 +693,14 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests rawData.LeaveComment = reason; rawData.ApproveStep = "st3"; - await UpdateAsync(rawData); + await UpdateWithTrackingAsync(rawData); // TODO: Send notification to 1st Approver var firstCommander = rawData.Approvers .Where(x => x.ApproveType!.ToUpper() == "APPROVER") .OrderBy(x => x.Seq) .FirstOrDefault(); + // Send Notification var noti1 = new Notification { @@ -685,7 +712,6 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests _appDbContext.Set().Add(noti1); await _appDbContext.SaveChangesAsync(); } - } public async Task CommanderRejectLeaveRequest(Guid id, string reason) @@ -694,7 +720,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var rawData = await GetByIdAsync(id); + var rawData = await GetByIdWithTrackingAsync(id); if (rawData == null) { throw new Exception(GlobalMessages.DataNotFound); @@ -748,7 +774,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests await _appDbContext.SaveChangesAsync(); rawData.LeaveStatus = "PENDING"; - await UpdateAsync(rawData); + await UpdateWithTrackingAsync(rawData); } else { @@ -756,7 +782,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests rawData.LeaveComment = reason; rawData.ApproveStep = "st3"; - await UpdateAsync(rawData); + await UpdateWithTrackingAsync(rawData); // TODO: Send notification to 1st Approver var firstCommander = rawData.Approvers @@ -782,7 +808,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var rawData = await GetByIdAsync(id); + var rawData = await GetByIdWithTrackingAsync(id); if (rawData == null) { throw new Exception(GlobalMessages.DataNotFound); @@ -833,7 +859,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests _appDbContext.Set().Add(noti1); await _appDbContext.SaveChangesAsync(); - await UpdateAsync(rawData); + await UpdateWithTrackingAsync(rawData); } else { @@ -847,7 +873,9 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests rawData.LeaveDirectorComment = reason; rawData.ApproveStep = "st4"; - await UpdateAsync(rawData); + await UpdateWithTrackingAsync(rawData); + + // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning var _baseAPI = _configuration["API"]; var apiUrlSalary = string.Empty; @@ -922,7 +950,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var rawData = await GetByIdAsync(id); + var rawData = await GetByIdWithTrackingAsync(id); if (rawData == null) { throw new Exception(GlobalMessages.DataNotFound); @@ -973,7 +1001,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests _appDbContext.Set().Add(noti1); await _appDbContext.SaveChangesAsync(); - await UpdateAsync(rawData); + await UpdateWithTrackingAsync(rawData); } else { @@ -987,7 +1015,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests rawData.LeaveDirectorComment = reason; rawData.ApproveStep = "st5"; - await UpdateAsync(rawData); + await UpdateWithTrackingAsync(rawData); // Send Noti var noti = new Notification From 749b2b68a1925e30a6f5cd5b36bab306005ba01a Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 29 Apr 2025 15:21:42 +0700 Subject: [PATCH 249/879] =?UTF-8?q?fix=20LeaveBeggining=20Add=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=83=E0=B8=AB?= =?UTF-8?q?=E0=B8=A1=E0=B9=88=E0=B9=80=E0=B8=A1=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B5=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=95=E0=B8=A3?= =?UTF-8?q?=E0=B8=A7=E0=B8=88=E0=B8=AA=E0=B8=AD=E0=B8=9A=20auto=20?= =?UTF-8?q?=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=95=E0=B9=89=E0=B8=AD=E0=B8=87?= =?UTF-8?q?=E0=B9=83=E0=B8=8A=E0=B9=89=20cronjob=20=E0=B9=80=E0=B8=9E?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=B0=E0=B8=A7=E0=B9=88=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=88=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=82=E0=B8=AD=E0=B8=B0=E0=B9=80=E0=B8=81=E0=B8=B4?= =?UTF-8?q?=E0=B8=99=E0=B9=84=E0=B8=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveBeginingRepository.cs | 80 +++++++- .../Controllers/LeaveRequestController.cs | 173 ++++++++++-------- .../GetUserLeaveProfileResultDto.cs | 2 + 3 files changed, 172 insertions(+), 83 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs index e9cfc2e2..fe5364ca 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs @@ -1,6 +1,10 @@ -ïŧŋusing BMA.EHR.Application.Common.Interfaces; +ïŧŋusing Amazon.S3.Model; +using BMA.EHR.Application.Common.Interfaces; using BMA.EHR.Application.Messaging; +using BMA.EHR.Domain.Extensions; +using BMA.EHR.Domain.Models.Leave.Commons; using BMA.EHR.Domain.Models.Leave.Requests; +using BMA.EHR.Domain.Shared; using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; @@ -64,9 +68,81 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests public async Task GetByYearAndTypeIdAsync(int year, Guid typeId) { - return await _dbContext.Set() + var data = await _dbContext.Set() .Include(x => x.LeaveType) .FirstOrDefaultAsync(x => x.LeaveYear == year && x.LeaveTypeId == typeId); + + + return data; } + + + public async Task GetByYearAndTypeIdForUserAsync(int year, Guid typeId, Guid userId) + { + var pf = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); + if (pf == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + var govAge = (pf?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); + + var leaveType = await _dbContext.Set().FirstOrDefaultAsync(x => x.Id == typeId); + + var data = await _dbContext.Set() + .Include(x => x.LeaveType) + .FirstOrDefaultAsync(x => x.LeaveYear == year && x.LeaveTypeId == typeId && x.ProfileId == pf.Id); + + if (data == null) + { + var limit = 0.0; + + var prev = await _dbContext.Set() + .Include(x => x.LeaveType) + .FirstOrDefaultAsync(x => x.LeaveYear == year - 1 && x.LeaveTypeId == typeId && x.ProfileId == pf.Id); + + var prevRemain = 0.0; + if (prev != null) + { + prevRemain = prev.LeaveDays - prev.LeaveDaysUsed; + } + + if (govAge >= 180) + { + if (govAge >= 3650) + { + limit = 10 + prevRemain; + if (limit > 30) limit = 30; + } + else + { + limit = 10 + prevRemain; + if (limit > 20) limit = 20; + } + } + else + { + limit = 0.0; + } + + data = new LeaveBeginning + { + LeaveYear = year, + LeaveTypeId = typeId, + ProfileId = pf.Id, + Prefix = pf.Prefix, + FirstName = pf.FirstName, + LastName = pf.LastName, + LeaveDaysUsed = 0, + LeaveDays = leaveType?.Code == "LV-005" ? limit : 0 + }; + + _dbContext.Set().Add(data); + await _dbContext.SaveChangesAsync(); + } + + return data; + } + } } diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 25457406..65b282f7 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -597,7 +597,7 @@ namespace BMA.EHR.Leave.Service.Controllers **/ - + // switch from leave type switch (leaveType.Code.Trim().ToUpper()) @@ -840,46 +840,52 @@ namespace BMA.EHR.Leave.Service.Controllers if (profile.Root != null && profile.Root != "") orgName += $" {profile.Root}"; - + var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(thisYear, req.Type, userId); if (leaveType.Code.Trim().ToUpper() == "LV-005") { - var beginningLeave = await _leaveBeginningRepository.GetByYearAndTypeIdAsync(thisYear, leaveType.Id); + leaveLimit = leaveData == null ? 0 : leaveData.LeaveDays; - if (govAge >= 180) - { - var leavePrevYear = (await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear)).Where(x => x.LeaveTypeCode == "LV-005" && x.KeycloakUserId == userId).FirstOrDefault(); - if (govAge >= 3650) - { - leaveLimit = beginningLeave != null ? beginningLeave.LeaveDays : 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); - remainPrev = beginningLeave != null ? beginningLeave.LeaveDays : 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ - if (remainPrev >= 20) remainPrev = 20; - } - else - { - leaveLimit = beginningLeave != null ? beginningLeave.LeaveDays : 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); - remainPrev = beginningLeave != null ? beginningLeave.LeaveDays : 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ - if (remainPrev >= 10) remainPrev = 10; - } - } - else - { - leaveLimit = 0; - } + + //var beginningLeave = await _leaveBeginningRepository.GetByYearAndTypeIdAsync(thisYear, leaveType.Id); + + //if (govAge >= 180) + //{ + // var leavePrevYear = (await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear)).Where(x => x.LeaveTypeCode == "LV-005" && x.KeycloakUserId == userId).FirstOrDefault(); + // if (govAge >= 3650) + // { + // leaveLimit = beginningLeave != null ? beginningLeave.LeaveDays : 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); + // remainPrev = beginningLeave != null ? beginningLeave.LeaveDays : 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + // if (remainPrev >= 20) remainPrev = 20; + // } + // else + // { + // leaveLimit = beginningLeave != null ? beginningLeave.LeaveDays : 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); + // remainPrev = beginningLeave != null ? beginningLeave.LeaveDays : 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + // if (remainPrev >= 10) remainPrev = 10; + // } + //} + //else + //{ + // leaveLimit = 0; + //} } else leaveLimit = leaveType.Limit; - var sumLeave = await _leaveRequestRepository.GetSumLeaveByTypeForUserAsync(userId, req.Type, thisYear); - var restOldDay = 0.00; - if (leaveType.Code.Trim().ToUpper() == "LV-005") - { - restOldDay = remainPrev; - } - else - restOldDay = await _leaveRequestRepository.GetRestDayTotalByYearForUserAsync(userId, thisYear - 1); + //var sumLeave = await _leaveRequestRepository.GetSumLeaveByTypeForUserAsync(userId, req.Type, thisYear); + var restOldDay = leaveData == null ? 0 : leaveData.LeaveDays - 10; + var restCurrentDay = 10.0; + var sumLeave = leaveData == null ? 0 : leaveData.LeaveDaysUsed; + + //if (leaveType.Code.Trim().ToUpper() == "LV-005") + //{ + // restOldDay = remainPrev; + //} + //else + // restOldDay = await _leaveRequestRepository.GetRestDayTotalByYearForUserAsync(userId, thisYear - 1); var lastSalary = profile.ProfileSalary; @@ -913,6 +919,7 @@ namespace BMA.EHR.Leave.Service.Controllers LeaveTotal = sumLeave, LeaveRemain = leaveLimit - sumLeave, RestDayTotalOld = restOldDay, + RestDayTotalCurrent = restCurrentDay, BirthDate = profile.BirthDate.Date, DateAppoint = profile.DateAppoint == null ? null : profile.DateAppoint.Value.Date, Salary = lastSalary == null ? 0 : lastSalary.Amount == null ? 0 : (int)lastSalary.Amount.Value, @@ -946,11 +953,6 @@ namespace BMA.EHR.Leave.Service.Controllers { var totalDay = (double)req.StartLeaveDate.DiffDay(req.EndLeaveDate.Date); - - - - - var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); @@ -981,6 +983,8 @@ namespace BMA.EHR.Leave.Service.Controllers var sumApproveLeave = await _leaveRequestRepository.GetSumApproveLeaveByTypeForUserAsync(userId, req.Type, req.StartLeaveDate.Year); + // āļ­āđˆāļēāļ™āļ„āđˆāļēāļˆāļēāļāļ•āļēāļĢāļēāļ‡ beginning āļ—āļąāđ‰āļ‡ limit āđāļĨāļ° usage + var sumLeaveDay = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(req.StartLeaveDate.Year, req.Type, userId); var minLeave = (await _context.Set().Where(x => x.Type.Id == req.Type && @@ -1003,16 +1007,15 @@ namespace BMA.EHR.Leave.Service.Controllers } var isLeave = false; - - - - + var approveDay = sumLeaveDay == null ? 0.0 : sumLeaveDay.LeaveDaysUsed; + var limitDay = sumLeaveDay == null ? 0.0 : sumLeaveDay.LeaveDays; switch (leaveType.Code.ToUpper().Trim()) { case "LV-001": // fix issue : āļĢāļ°āļšāļšāļĨāļē (āļ‚āļĢāļ.) >> āļĨāļēāļ›āđˆāļ§āļĒ (āļāļĢāļ“āļĩāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāđ€āļāļīāļ™ 120 āļ§āļąāļ™/āļ›āļĩ) #828 - isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= 120; + + isLeave = (totalDay - (sumWorkDay + sumWeekend) + approveDay) <= 120; if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; //isLeave = true; break; @@ -1021,13 +1024,13 @@ namespace BMA.EHR.Leave.Service.Controllers // fix issue : āļĢāļ°āļšāļšāļĨāļē (āļ‚āļĢāļ.) >> āļĨāļēāļāļīāļˆāļŠāđˆāļ§āļ™āļ•āļąāļ§ (āļāļĢāļ“āļĩāļœāļđāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāđ„āļĄāđˆāđ€āļāļīāļ™ 1 āļ›āļĩ āļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāđ€āļāļīāļ™ 15 āļ§āļąāļ™/āļ›āļĩ) #831 if (govAge <= 365) { - isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= 15; + isLeave = (totalDay - (sumWorkDay + sumWeekend) + approveDay) <= 15; if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; } else { - isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= 45; + isLeave = (totalDay - (sumWorkDay + sumWeekend) + approveDay) <= 45; if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; } @@ -1041,7 +1044,7 @@ namespace BMA.EHR.Leave.Service.Controllers if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; break; case "LV-004": - isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= 15; + isLeave = (totalDay - (sumWorkDay + sumWeekend) + approveDay) <= 15; if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; break; case "LV-005": @@ -1050,23 +1053,27 @@ namespace BMA.EHR.Leave.Service.Controllers //var leavePrevYearRemain = 10 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ if (govAge >= 180) - if (govAge >= 3650) - { - // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ - var leavePrevYearRemain = 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ - if (leavePrevYearRemain >= 20) leavePrevYearRemain = 20; + { + isLeave = (totalDay - (sumWorkDay + sumWeekend) + approveDay) <= (limitDay); + if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; + } + //if (govAge >= 3650) + //{ + // // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ + // //var leavePrevYearRemain = 30 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + // //if (leavePrevYearRemain >= 20) leavePrevYearRemain = 20; - isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= (10 + leavePrevYearRemain); - if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; - } - else - { - var leavePrevYearRemain = 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ - if (leavePrevYearRemain >= 10) leavePrevYearRemain = 10; + // isLeave = (totalDay - (sumWorkDay + sumWeekend) + approveDay) <= (limitDay); + // if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; + //} + //else + //{ + // //var leavePrevYearRemain = 20 - (leavePrevYear == null ? 0 : leavePrevYear.SumLeaveDay); // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + // //if (leavePrevYearRemain >= 10) leavePrevYearRemain = 10; - isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= (10 + leavePrevYearRemain); - if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; - } + // isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= (10 + leavePrevYearRemain); + // if (!isLeave) message = "āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāđ€āļāļīāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”"; + //} else { @@ -2350,34 +2357,38 @@ namespace BMA.EHR.Leave.Service.Controllers // fix issue : SIT āļĢāļ°āļšāļšāļšāļąāļ™āļ—āļķāļāļāļēāļĢāļĨāļē>> āļŠāļīāļ—āļ˜āļīāđŒāļāļēāļĢāļĨāļē(āđ‚āļ­āļ™āļŠāļīāļ—āļ˜āļīāđŒāļāļēāļĢāļĨāļē) #974 var extendLeave = 0.0; - var leaveLimit = leaveType.Limit; + var leaveLimit = (double)leaveType.Limit; if (leaveType.Code == "LV-005") { - var beginningLeave = await _leaveBeginningRepository.GetByYearAndTypeIdAsync(thisYear, leaveType.Id); + var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(thisYear, leaveType.Id, userId); + leaveLimit = leaveData == null ? 0.0 : leaveData.LeaveDays; + extendLeave = leaveLimit - 10; - var apprvPrevData = approvePrevYear.FirstOrDefault(x => x.KeycloakUserId == userId && x.LeaveTypeId == leaveType.Id); - var apprvPrev = apprvPrevData == null ? 0 : apprvPrevData.SumLeaveDay; + //var beginningLeave = await _leaveBeginningRepository.GetByYearAndTypeIdAsync(thisYear, leaveType.Id); - var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); - var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); + //var apprvPrevData = approvePrevYear.FirstOrDefault(x => x.KeycloakUserId == userId && x.LeaveTypeId == leaveType.Id); + //var apprvPrev = apprvPrevData == null ? 0 : apprvPrevData.SumLeaveDay; - if (govAge >= 180) - { - if (govAge >= 3650) - { - // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ - extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ - if (extendLeave >= 20) extendLeave = 20; - } - else - { - extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ - if (extendLeave >= 10) extendLeave = 10; - } - } - else - leaveLimit = 0; + //var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); + //var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); + + //if (govAge >= 180) + //{ + // if (govAge >= 3650) + // { + // // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ + // extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + // if (extendLeave >= 20) extendLeave = 20; + // } + // else + // { + // extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + // if (extendLeave >= 10) extendLeave = 10; + // } + //} + //else + // leaveLimit = 0; } var data = new diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileResultDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileResultDto.cs index 5434223d..6ddc93cb 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileResultDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileResultDto.cs @@ -28,6 +28,8 @@ public double RestDayTotalOld { get; set; } + public double RestDayTotalCurrent { get; set; } + public DateTime BirthDate { get; set; } public DateTime? DateAppoint { get; set; } From 6f9116ead58cbccde9f20f294065029fb3c27358 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 29 Apr 2025 15:43:06 +0700 Subject: [PATCH 250/879] =?UTF-8?q?Update=20=E0=B8=84=E0=B9=88=E0=B8=B2?= =?UTF-8?q?=E0=B9=84=E0=B8=9B=E0=B8=95=E0=B8=B2=E0=B8=A3=E0=B8=B2=E0=B8=87?= =?UTF-8?q?=20Beginning=20=E0=B9=80=E0=B8=A1=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B5=E0=B8=81=E0=B8=B2=E0=B8=A3=20approve=20?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveBeginingRepository.cs | 21 +++++++++++++++++++ .../LeaveRequests/LeaveRequestRepository.cs | 14 ++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs index fe5364ca..4d3eedd9 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveBeginingRepository.cs @@ -76,6 +76,27 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests return data; } + public async Task UpdateLeaveUsageAsync(int year, Guid typeId, Guid userId, double day) + { + var pf = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); + if (pf == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + var data = await _dbContext.Set() + .Include(x => x.LeaveType) + .FirstOrDefaultAsync(x => x.LeaveYear == year && x.LeaveTypeId == typeId && x.ProfileId == pf.Id); + + if(data == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + data.LeaveDaysUsed += day; + + await _dbContext.SaveChangesAsync(); + } + public async Task GetByYearAndTypeIdForUserAsync(int year, Guid typeId, Guid userId) { diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index a82ebe9f..abb954c7 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -31,6 +31,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests private readonly IApplicationDBContext _appDbContext; private readonly MinIOLeaveService _minIOService; + private readonly LeaveBeginningRepository _leaveBeginningRepository; + private readonly string URL = string.Empty; #endregion @@ -44,7 +46,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests IConfiguration configuration, EmailSenderService emailSenderService, IApplicationDBContext appDbContext, - MinIOLeaveService minIOService) : base(dbContext, httpContextAccessor) + MinIOLeaveService minIOService, + LeaveBeginningRepository leaveBeginningRepository) : base(dbContext, httpContextAccessor) { _dbContext = dbContext; _httpContextAccessor = httpContextAccessor; @@ -56,6 +59,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests URL = (_configuration["API"]).Replace("/api/v1", ""); _minIOService = minIOService; + _leaveBeginningRepository = leaveBeginningRepository; } #endregion @@ -435,6 +439,9 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests data.LeaveCancelStatus = "APPROVE"; data.LeaveCancelComment = Reason; + // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning + await _leaveBeginningRepository.UpdateLeaveUsageAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal); + // Send Noti var noti = new Notification { @@ -475,6 +482,9 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests await UpdateWithTrackingAsync(rawData); + // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning + await _leaveBeginningRepository.UpdateLeaveUsageAsync(rawData.LeaveStartDate.Year, rawData.Type.Id, rawData.KeycloakUserId, -1 * rawData.LeaveTotal); + // TODO: remove āļ§āļąāļ™āļĨāļē // Send Noti @@ -876,6 +886,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests await UpdateWithTrackingAsync(rawData); // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning + await _leaveBeginningRepository.UpdateLeaveUsageAsync(rawData.LeaveStartDate.Year, rawData.Type.Id, rawData.KeycloakUserId, rawData.LeaveTotal); + var _baseAPI = _configuration["API"]; var apiUrlSalary = string.Empty; From ca1a2c05c31405989eb812ddfa10ca59c37cab1b Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 29 Apr 2025 19:08:51 +0700 Subject: [PATCH 251/879] fix Leave API --- .../LeaveRequests/LeaveRequestRepository.cs | 6 ++-- .../Controllers/LeaveRequestController.cs | 28 +++++++++++++++---- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index abb954c7..cc4d7644 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -437,7 +437,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests data.LeaveCancelStatus = "APPROVE"; - data.LeaveCancelComment = Reason; + data.LeaveDirectorComment = Reason; // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning await _leaveBeginningRepository.UpdateLeaveUsageAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal); @@ -478,7 +478,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests } rawData.LeaveCancelStatus = "APPROVE"; - rawData.LeaveCancelComment = Reason; + rawData.LeaveDirectorComment = Reason; await UpdateWithTrackingAsync(rawData); @@ -514,7 +514,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests } rawData.LeaveCancelStatus = "REJECT"; - rawData.LeaveCancelComment = Reason; + rawData.LeaveDirectorComment = Reason; // fix issue : āļĢāļ°āļšāļšāļĨāļē (User) >> āļāļĢāļ“āļĩāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļāļēāļĢāļĨāļē āđāļ•āđˆāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī (āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļĨāļēāđ„āļĄāđˆāļ­āļąāļ›āđ€āļ”āļ•) #846 if (rawData.ApproveStep == "st4") diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 65b282f7..ffc4ae0a 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -915,11 +915,11 @@ namespace BMA.EHR.Leave.Service.Controllers PositionLevelName = profile.PosLevel == null ? "" : profile.PosLevel, OrganizationName = orgName, //profile.Oc ?? "", - LeaveLimit = leaveLimit, - LeaveTotal = sumLeave, + LeaveLimit = leaveLimit, // āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļ—āļąāđ‰āļ‡āļŦāļĄāļ”āđƒāļ™āļ›āļĩāļ™āļąāđ‰āļ™āđ†āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰ āđ‚āļ”āļĒāļĢāļ§āļĄāļĒāļ­āļ”āļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļˆāļēāļāļ›āļĩāļāđˆāļ­āļ™āļĄāļē (āđ€āļ­āļēāļ„āđˆāļēāļĄāļēāļˆāļēāļāļ•āļēāļĢāļēāļ‡ Beginning āđ€āļĨāļĒ) + LeaveTotal = sumLeave, // āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāļĨāļēāđ„āļ›āđāļĨāđ‰āļ§āđƒāļ™āļ›āļĩāļ™āļąāđ‰āļ™āđ† āđ‚āļ”āļĒāđ€āļĄāļ·āđˆāļ­āļĄāļĩāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļē āļˆāļ°āļĄāļēāļšāļ§āļāļ„āđˆāļēāļ™āļĩāđ‰āđ„āļ›āđ€āļĢāļ·āđˆāļ­āļĒāđ† (āđ€āļ­āļēāļ„āđˆāļēāļĄāļēāļˆāļēāļāļ•āļēāļĢāļēāļ‡ Beginning āđ€āļĨāļĒ) LeaveRemain = leaveLimit - sumLeave, - RestDayTotalOld = restOldDay, - RestDayTotalCurrent = restCurrentDay, + RestDayTotalOld = restOldDay, // āđ€āļ­āļē leaveLimit āļĄāļēāļĨāļš 10 (LV-005) + RestDayTotalCurrent = restCurrentDay,// 10 āļ§āļąāļ™āđ€āļŠāļĄāļ­ (LV-005) BirthDate = profile.BirthDate.Date, DateAppoint = profile.DateAppoint == null ? null : profile.DateAppoint.Value.Date, Salary = lastSalary == null ? 0 : lastSalary.Amount == null ? 0 : (int)lastSalary.Amount.Value, @@ -1367,6 +1367,8 @@ namespace BMA.EHR.Leave.Service.Controllers [ProducesResponseType(StatusCodes.Status500InternalServerError)] public async Task> GetLeaveRequestByIdAsync(Guid id) { + //var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + var rawData = await _leaveRequestRepository.GetByIdAsync(id); var thisYear = DateTime.Now.Year; @@ -1383,6 +1385,8 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); } + var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); + var userCalendar = await _userCalendarRepository.GetExist(profile.Id); var category = userCalendar == null ? "NORMAL" : userCalendar.Calendar; @@ -1411,6 +1415,12 @@ namespace BMA.EHR.Leave.Service.Controllers orgName += $" {rawData.Root}"; + + var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(thisYear, rawData.Type.Id, rawData.KeycloakUserId); + var restDayOld = govAge < 180 ? 0 : leaveData == null ? 0 : leaveData.LeaveDays - 10; + var restDayCurrent = govAge < 180 ? 0 : 10; + + var result = new GetLeaveRequestByIdDto { Id = rawData.Id, @@ -1451,8 +1461,14 @@ namespace BMA.EHR.Leave.Service.Controllers WifeDayName = rawData.WifeDayName, WifeDayDateBorn = rawData.WifeDayDateBorn, - RestDayOldTotal = rawData.RestDayOldTotal, - RestDayCurrentTotal = rawData.RestDayCurrentTotal, + + RestDayOldTotal = restDayOld, + RestDayCurrentTotal = restDayCurrent, + + //RestDayOldTotal = rawData.RestDayOldTotal, + //RestDayCurrentTotal = rawData.RestDayCurrentTotal, + + OrdainDayStatus = rawData.OrdainDayStatus, OrdainDayLocationName = rawData.OrdainDayLocationName, OrdainDayLocationAddress = rawData.OrdainDayLocationAddress, From 91fc939b6dca09a3ea56b7231ca450903c3175e9 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 29 Apr 2025 21:21:26 +0700 Subject: [PATCH 252/879] add field to api GET /leave/user/delete/{id} --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 5 +++++ .../DTOs/LeaveRequest/GetCancelLeaveRequestByIdDto.cs | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index ffc4ae0a..6478b9fb 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1764,6 +1764,11 @@ namespace BMA.EHR.Leave.Service.Controllers : await _minIOService.ImagesPath(rawData.LeaveCancelDocument.Id), LeaveReasonDelete = rawData.LeaveCancelComment ?? "", LeaveTotal = rawData.LeaveTotal, + + + LeaveDirectorComment = rawData.LeaveDirectorComment, + LeaveRange = rawData.LeaveRange, + LeaveRangeEnd = rawData.LeaveRangeEnd, }; return Success(result); diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetCancelLeaveRequestByIdDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetCancelLeaveRequestByIdDto.cs index c44d35b6..a9aec603 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetCancelLeaveRequestByIdDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetCancelLeaveRequestByIdDto.cs @@ -29,5 +29,11 @@ public DateTime LeaveStartDate { get; set; } = DateTime.MinValue; public DateTime LeaveEndDate { get; set;} = DateTime.MinValue; + + public string? LeaveRange { get;set; } = string.Empty; + + public string? LeaveRangeEnd { get; set; } = string.Empty; + + public string? LeaveDirectorComment { get; set; } = string.Empty; } } From 7d39720121d4ba7ea66017e22f8b1ea93ed08e04 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 30 Apr 2025 11:46:09 +0700 Subject: [PATCH 253/879] fix #1467 --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 6478b9fb..ce3ef92c 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -2354,11 +2354,11 @@ namespace BMA.EHR.Leave.Service.Controllers var thisYear = DateTime.Now.Year; var sendList = await _leaveRequestRepository.GetSumSendLeaveAsync(thisYear); - var approveList = await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear); + //var approveList = await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear); var rejectList = await _leaveRequestRepository.GetSumRejectLeaveAsync(thisYear); var deleteList = await _leaveRequestRepository.GetSumDeleteLeaveAsync(thisYear); - var approvePrevYear = await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear - 1); + //var approvePrevYear = await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear - 1); var result = new List(); foreach (var leaveType in leaveTypes) @@ -2366,8 +2366,11 @@ namespace BMA.EHR.Leave.Service.Controllers var sendData = sendList.FirstOrDefault(x => x.KeycloakUserId == userId && x.LeaveTypeId == leaveType.Id); var send = sendData == null ? 0 : sendData.SumLeaveDay; - var approveData = approveList.FirstOrDefault(x => x.KeycloakUserId == userId && x.LeaveTypeId == leaveType.Id); - var approve = approveData == null ? 0 : approveData.SumLeaveDay; + //var approveData = approveList.FirstOrDefault(x => x.KeycloakUserId == userId && x.LeaveTypeId == leaveType.Id); + //var approve = approveData == null ? 0 : approveData.SumLeaveDay; + + var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(thisYear, leaveType.Id, userId); + var approve = leaveData == null ? 0 : leaveData.LeaveDaysUsed; var rejectData = rejectList.FirstOrDefault(x => x.KeycloakUserId == userId && x.LeaveTypeId == leaveType.Id); var reject = rejectData == null ? 0 : rejectData.SumLeaveDay; @@ -2382,7 +2385,7 @@ namespace BMA.EHR.Leave.Service.Controllers if (leaveType.Code == "LV-005") { - var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(thisYear, leaveType.Id, userId); + //var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(thisYear, leaveType.Id, userId); leaveLimit = leaveData == null ? 0.0 : leaveData.LeaveDays; extendLeave = leaveLimit - 10; From 34f04999863c2baec80b1ef819c091f3d4f9390a Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 30 Apr 2025 11:57:07 +0700 Subject: [PATCH 254/879] fix #1466 --- .../Controllers/LeaveReportController.cs | 50 +++++-------------- 1 file changed, 12 insertions(+), 38 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 224bcbda..76678fba 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -6,6 +6,7 @@ using BMA.EHR.Application.Repositories.MetaData; using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; +using BMA.EHR.Domain.Models.Leave.Commons; using BMA.EHR.Domain.Models.Leave.Requests; using BMA.EHR.Domain.Shared; using BMA.EHR.Leave.Service.DTOs.Reports; @@ -158,7 +159,10 @@ namespace BMA.EHR.Leave.Service.Controllers // approver = list.First().Name; //} - var sumLeave = await _leaveRequestRepository.GetSumApproveLeaveByTypeForUserAsync(data.KeycloakUserId, data.Type.Id, data.LeaveStartDate.Year); + //var sumLeave = await _leaveRequestRepository.GetSumApproveLeaveByTypeForUserAsync(data.KeycloakUserId, data.Type.Id, data.LeaveStartDate.Year); + + var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId); + var sumLeave = leaveData == null ? 0 : leaveData.LeaveDaysUsed; return new { @@ -262,7 +266,7 @@ namespace BMA.EHR.Leave.Service.Controllers // approver = list.First().Name; //} - var sumLeave = await _leaveRequestRepository.GetSumApproveLeaveByTypeForUserAsync(data.KeycloakUserId, data.Type.Id, data.LeaveStartDate.Year); + //var sumLeave = await _leaveRequestRepository.GetSumApproveLeaveByTypeForUserAsync(data.KeycloakUserId, data.Type.Id, data.LeaveStartDate.Year); //var userCalendar = await _userCalendarRepository.GetExist(profile.Id); //var category = userCalendar == null ? "NORMAL" : userCalendar.Calendar; @@ -271,43 +275,13 @@ namespace BMA.EHR.Leave.Service.Controllers //var sumWeekend = _holidayRepository.GetWeekEndCount(data.LeaveStartDate.Date, data.LeaveEndDate.Date, category); + var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId); + var sumLeave = leaveData == null ? 0 : leaveData.LeaveDaysUsed; - var extendLeave = 0.0; - var leaveLimit = data.Type.Limit; + var leaveLimit = leaveData == null ? 0.0 : leaveData.LeaveDays; + var extendLeave = leaveLimit - 10; - var approvePrevYear = await _leaveRequestRepository.GetSumApproveLeaveAsync(data.LeaveStartDate.Year - 1); - - if (data.Type.Code == "LV-005") - { - var apprvPrevData = approvePrevYear.FirstOrDefault(x => x.KeycloakUserId == data.KeycloakUserId && x.LeaveTypeId == data.Type.Id); - var apprvPrev = apprvPrevData == null ? 0 : apprvPrevData.SumLeaveDay; - - //āļŦāļēāļ§āļąāļ™āļĨāļēāļĒāļāļĄāļēāļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ - var leaveBeginning = await _leaveBeginningRepository.GetByYearAndTypeIdAsync(data.LeaveStartDate.Year, data.Type.Id); - - //var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(data.KeycloakUserId, AccessToken); - var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); - - if (govAge >= 180) - { - if (govAge >= 3650) - { - // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ - //extendLeave = 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ - extendLeave = leaveBeginning == null ? 30 - apprvPrev : leaveBeginning.LeaveDays; - if (extendLeave >= 20) extendLeave = 20; - } - else - { - //extendLeave = 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ - extendLeave = leaveBeginning == null ? 20 - apprvPrev : leaveBeginning.LeaveDays; - if (extendLeave >= 10) extendLeave = 10; - } - } - else - leaveLimit = 0; - } return new { @@ -326,7 +300,7 @@ namespace BMA.EHR.Leave.Service.Controllers organizationName = profile!.Oc!.ToThaiNumber() ?? "", restDayOldTotal = extendLeave.ToString().ToThaiNumber(), - restDayCurrentTotal = leaveLimit.ToString().ToThaiNumber(), + restDayCurrentTotal = (10).ToString().ToThaiNumber(), //restDayOldTotal = data.RestDayOldTotal.ToString().ToThaiNumber(), //restDayCurrentTotal = data.RestDayCurrentTotal.ToString().ToThaiNumber(), @@ -339,7 +313,7 @@ namespace BMA.EHR.Leave.Service.Controllers leaveNumber = data.LeaveNumber.ToThaiNumber(), LeaveSummary = sumLeave.ToString().ToThaiNumber(), - LeaveRemain = (data.Type.Limit + extendLeave - sumLeave).ToString().ToThaiNumber(), + LeaveRemain = (leaveLimit - sumLeave).ToString().ToThaiNumber(), } }; } From c25cb43720481b1eb47b3c20a726de3f6fcc5f00 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 30 Apr 2025 13:14:01 +0700 Subject: [PATCH 255/879] fix leavetotal #1466 --- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 76678fba..c7059346 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -182,7 +182,7 @@ namespace BMA.EHR.Leave.Service.Controllers leaveDetail = data.LeaveDetail.ToThaiNumber(), leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), + LeaveTotal = data.LeaveTotal.ToString().ToThaiNumber(), //data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), leaveAddress = data.LeaveAddress.ToThaiNumber(), leaveNumber = data.LeaveNumber.ToThaiNumber(), LeaveLastStart = lastLeaveRequest == null ? "" : lastLeaveRequest.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), @@ -235,7 +235,7 @@ namespace BMA.EHR.Leave.Service.Controllers wifeDayDateBorn = data.WifeDayDateBorn.ToThaiNumber() ?? "", leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), + LeaveTotal = data.LeaveTotal.ToString().ToThaiNumber(), //data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), leaveAddress = data.LeaveAddress.ToThaiNumber(), leaveNumber = data.LeaveNumber.ToThaiNumber(), } @@ -361,7 +361,7 @@ namespace BMA.EHR.Leave.Service.Controllers leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), + LeaveTotal = data.LeaveTotal.ToString().ToThaiNumber()//data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), } }; @@ -396,7 +396,7 @@ namespace BMA.EHR.Leave.Service.Controllers leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), + LeaveTotal = data.LeaveTotal.ToString().ToThaiNumber()//data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), } }; @@ -446,7 +446,7 @@ namespace BMA.EHR.Leave.Service.Controllers leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), + LeaveTotal = data.LeaveTotal.ToString().ToThaiNumber(), //data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), } }; @@ -501,7 +501,7 @@ namespace BMA.EHR.Leave.Service.Controllers leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), + LeaveTotal = data.LeaveTotal.ToString().ToThaiNumber(), //data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), leaveAddress = data.LeaveAddress.ToThaiNumber(), leaveNumber = data.LeaveNumber.ToThaiNumber(), } @@ -602,7 +602,7 @@ namespace BMA.EHR.Leave.Service.Controllers leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), - LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), + LeaveTotal = data.LeaveTotal.ToString().ToThaiNumber(), //data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), } }; } From a5404cef72b194f80236b90920429869b31e8def Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 30 Apr 2025 14:25:28 +0700 Subject: [PATCH 256/879] fix #1471 --- .../Leaves/LeaveRequests/LeaveRequestRepository.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index cc4d7644..250a5e98 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -483,7 +483,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests await UpdateWithTrackingAsync(rawData); // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning - await _leaveBeginningRepository.UpdateLeaveUsageAsync(rawData.LeaveStartDate.Year, rawData.Type.Id, rawData.KeycloakUserId, -1 * rawData.LeaveTotal); + if (rawData.LeaveStatus == "APPROVE") + await _leaveBeginningRepository.UpdateLeaveUsageAsync(rawData.LeaveStartDate.Year, rawData.Type.Id, rawData.KeycloakUserId, -1 * rawData.LeaveTotal); // TODO: remove āļ§āļąāļ™āļĨāļē From a931dad4d955dd092667d3b2ab9bd681ce2caceb Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 30 Apr 2025 14:54:57 +0700 Subject: [PATCH 257/879] fix #1473 --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index ce3ef92c..e4e3b130 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1098,7 +1098,7 @@ namespace BMA.EHR.Leave.Service.Controllers if (prevLeave > 0) { isLeave = false; - if (!isLeave) message = "āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ‚āļ­āļĨāļēāđ„āļ”āđ‰ āđ€āļ™āļ·āđ‰āđˆāļ­āļ‡āļˆāļēāļāđ€āļ„āļĒāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāđ„āļ›āđāļĨāđ‰āļ§"; + if (!isLeave) message = "āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ‚āļ­āļĨāļēāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāđ€āļ„āļĒāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāđ„āļ›āđāļĨāđ‰āļ§"; } else { From 10571679f1d6f221068249aa6135076ba4832284 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 30 Apr 2025 19:01:55 +0700 Subject: [PATCH 258/879] Add LeaveAll to LeaveReport --- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index c7059346..d4bd7fa0 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -190,6 +190,7 @@ namespace BMA.EHR.Leave.Service.Controllers LeaveSummary = sumLeave.ToString().ToThaiNumber(), LeaveRemain = (data.Type.Limit - sumLeave).ToString().ToThaiNumber(), + LeaveAll = (data.LeaveTotal + sumLeave).ToString().ToThaiNumber(), } }; From 05e56ff6f724ad0fccc4b9f823757ca57924aae8 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 1 May 2025 10:05:17 +0700 Subject: [PATCH 259/879] fix #1471 again --- .../Leaves/LeaveRequests/LeaveRequestRepository.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 250a5e98..fbe0c2ee 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -440,7 +440,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests data.LeaveDirectorComment = Reason; // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning - await _leaveBeginningRepository.UpdateLeaveUsageAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal); + if (data.LeaveStatus == "APPROVE") + await _leaveBeginningRepository.UpdateLeaveUsageAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal); // Send Noti var noti = new Notification From c1a0a8c2b53077d234c864c5a245571b828b0156 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 1 May 2025 10:07:52 +0700 Subject: [PATCH 260/879] remove code --- .../Leaves/LeaveRequests/LeaveRequestRepository.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index fbe0c2ee..b410db23 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -440,8 +440,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests data.LeaveDirectorComment = Reason; // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning - if (data.LeaveStatus == "APPROVE") - await _leaveBeginningRepository.UpdateLeaveUsageAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal); + //if (data.LeaveStatus == "APPROVE") + // await _leaveBeginningRepository.UpdateLeaveUsageAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal); // Send Noti var noti = new Notification @@ -484,8 +484,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests await UpdateWithTrackingAsync(rawData); // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning - if (rawData.LeaveStatus == "APPROVE") - await _leaveBeginningRepository.UpdateLeaveUsageAsync(rawData.LeaveStartDate.Year, rawData.Type.Id, rawData.KeycloakUserId, -1 * rawData.LeaveTotal); + //if (rawData.LeaveStatus == "APPROVE") + // await _leaveBeginningRepository.UpdateLeaveUsageAsync(rawData.LeaveStartDate.Year, rawData.Type.Id, rawData.KeycloakUserId, -1 * rawData.LeaveTotal); // TODO: remove āļ§āļąāļ™āļĨāļē From 665e861303ef2d32682a663b57ad0c97c70d0cd7 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 1 May 2025 12:02:04 +0700 Subject: [PATCH 261/879] fix #1471 and # 1487 --- .../Leaves/LeaveRequests/LeaveRequestRepository.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index b410db23..59fad799 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -440,8 +440,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests data.LeaveDirectorComment = Reason; // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning - //if (data.LeaveStatus == "APPROVE") - // await _leaveBeginningRepository.UpdateLeaveUsageAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal); + if (data.ApproveStep == "st4") // āļ–āđ‰āļēāļĄāļĩāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđāļĨāđ‰āļ§ + await _leaveBeginningRepository.UpdateLeaveUsageAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal); // Send Noti var noti = new Notification @@ -484,8 +484,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests await UpdateWithTrackingAsync(rawData); // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning - //if (rawData.LeaveStatus == "APPROVE") - // await _leaveBeginningRepository.UpdateLeaveUsageAsync(rawData.LeaveStartDate.Year, rawData.Type.Id, rawData.KeycloakUserId, -1 * rawData.LeaveTotal); + if (rawData.ApproveStep == "st4") // āļ–āđ‰āļēāļĄāļĩāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđāļĨāđ‰āļ§ + await _leaveBeginningRepository.UpdateLeaveUsageAsync(rawData.LeaveStartDate.Year, rawData.Type.Id, rawData.KeycloakUserId, -1 * rawData.LeaveTotal); // TODO: remove āļ§āļąāļ™āļĨāļē From b5c967c5fc100394c46c9c867bac1e31d0caacf9 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 1 May 2025 19:59:05 +0700 Subject: [PATCH 262/879] =?UTF-8?q?add=20Field=20to=20/leave/report/reject?= =?UTF-8?q?/{id}=20=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82=E0=B8=9A?= =?UTF-8?q?=E0=B8=B1=E0=B9=89=E0=B8=81=20=E0=B8=99=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B8=A7=E0=B8=B1=E0=B8=99=E0=B8=A5=E0=B8=B2=E0=B8=97=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=20approve=20=E0=B8=81=E0=B9=88=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B8=A7=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=A5?= =?UTF-8?q?=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveRequestRepository.cs | 18 ++++++++++++- .../Controllers/LeaveReportController.cs | 27 ++++++++++++------- 2 files changed, 35 insertions(+), 10 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 59fad799..5d2f76e2 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -1218,6 +1218,22 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests return 0.0; } + public async Task GetSumApproveLeaveByTypeAndRangeForUser(Guid keycloakUserId, Guid leaveTypeId, DateTime startDate, DateTime endDate) + { + var data = await _dbContext.Set().AsQueryable().AsNoTracking() + .Include(x => x.Type) + .Where(x => x.KeycloakUserId == keycloakUserId) + .Where(x => x.Type.Id == leaveTypeId) + .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) + .Where(x => x.LeaveStatus == "APPROVE") + .ToListAsync(); + + if (data.Count > 0) + return data.Sum(x => x.LeaveTotal); + else + return 0; + } + public async Task GetSumApproveLeaveByRangeForUser(Guid keycloakUserId, DateTime startDate, DateTime endDate) { var data = await _dbContext.Set().AsQueryable().AsNoTracking() @@ -1347,7 +1363,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests return res; } - public async Task GetSumApproveLeaveByTypeAndRangeForUser(Guid keycloakUserId, Guid leaveTypeId, DateTime startDate, DateTime endDate) + public async Task GetSumApproveLeaveTotalByTypeAndRangeForUser(Guid keycloakUserId, Guid leaveTypeId, DateTime startDate, DateTime endDate) { var data = await _dbContext.Set().AsQueryable().AsNoTracking() .Include(x => x.Type) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index d4bd7fa0..0aa63e9d 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -160,9 +160,15 @@ namespace BMA.EHR.Leave.Service.Controllers //} //var sumLeave = await _leaveRequestRepository.GetSumApproveLeaveByTypeForUserAsync(data.KeycloakUserId, data.Type.Id, data.LeaveStartDate.Year); + //GetSumApproveLeaveByRangeForUser + + var startFiscalYear = new DateTime(data.LeaveStartDate.Year - 1, 10, 1); + var endFiscalYear = data.CreatedAt.Date.AddDays(-1); // āļ™āļąāļšāļˆāļēāļāļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļĨāļē var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId); - var sumLeave = leaveData == null ? 0 : leaveData.LeaveDaysUsed; + //var sumLeave = leaveData == null ? 0 : leaveData.LeaveDaysUsed; + + var sumLeave = await _leaveRequestRepository.GetSumApproveLeaveTotalByTypeAndRangeForUser(data.KeycloakUserId, data.Type.Id, startFiscalYear, endFiscalYear); return new { @@ -784,17 +790,20 @@ namespace BMA.EHR.Leave.Service.Controllers reportName = $"leave_cancel_form", data = new { - leaveWrote = data.CancelLeaveWrote ?? "", - dateSendLeave = data.CreatedAt.Date.ToThaiShortDate(), + leaveWrote = data.CancelLeaveWrote!.ToThaiNumber() ?? "", + dateSendLeave = data.CreatedAt.Date.ToThaiShortDate().ToThaiNumber(), leaveTypeName = data.Type.Name, fullname = fullName, - positionName = profile!.Position == null ? "-" : profile!.Position, - positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName, + positionName = profile!.Position == null ? "-" : profile!.Position.ToThaiNumber(), + positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), organizationName = profile!.Oc ?? "", - leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate(), - leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate(), - dear = data.Dear, - leaveTotal = data.LeaveTotal + leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), + leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), + dear = data.CommanderPosition == null ? data.Dear : data.CommanderPosition.ToThaiNumber(), + leaveTotal = data.LeaveTotal.ToString().ToThaiNumber(), + profileType = data.ProfileType, + leaveReasonDelete = data.LeaveCancelComment == null ? "" : data.LeaveCancelComment!.ToThaiNumber(), + leaveDetail = data.LeaveDetail.ToThaiNumber(), } }; From 9bf7ee2e9a41c56df363737010d4218ffe83cd43 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 2 May 2025 10:35:56 +0700 Subject: [PATCH 263/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20Field=20=E0=B8=95=E0=B8=B2=E0=B8=A1=20issue=20#1335?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/LeaveReportController.cs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 0aa63e9d..ca0e1120 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -282,8 +282,13 @@ namespace BMA.EHR.Leave.Service.Controllers //var sumWeekend = _holidayRepository.GetWeekEndCount(data.LeaveStartDate.Date, data.LeaveEndDate.Date, category); + var startFiscalYear = new DateTime(data.LeaveStartDate.Year - 1, 10, 1); + var endFiscalYear = data.CreatedAt.Date.AddDays(-1); // āļ™āļąāļšāļˆāļēāļāļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļĨāļē + var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId); - var sumLeave = leaveData == null ? 0 : leaveData.LeaveDaysUsed; + //var sumLeave = leaveData == null ? 0 : leaveData.LeaveDaysUsed; + + var sumLeave = await _leaveRequestRepository.GetSumApproveLeaveTotalByTypeAndRangeForUser(data.KeycloakUserId, data.Type.Id, startFiscalYear, endFiscalYear); var leaveLimit = leaveData == null ? 0.0 : leaveData.LeaveDays; @@ -314,13 +319,16 @@ namespace BMA.EHR.Leave.Service.Controllers leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), - leaveTotal = data.LeaveTotal.ToString().ToThaiNumber(), - //LeaveTotal = data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), + leaveAddress = data.LeaveAddress.ToThaiNumber(), leaveNumber = data.LeaveNumber.ToThaiNumber(), - - LeaveSummary = sumLeave.ToString().ToThaiNumber(), LeaveRemain = (leaveLimit - sumLeave).ToString().ToThaiNumber(), + + leaveTotal = data.LeaveTotal.ToString().ToThaiNumber(), // āļ§āļąāļ™āļĨāļēāļ›āļąāļˆāļˆāļļāļšāļąāļ™ + LeaveSummary = sumLeave.ToString().ToThaiNumber(), // āļ§āļąāļ™āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļāđˆāļ­āļ™ + + LeaveAll = (data.LeaveTotal + sumLeave).ToString().ToThaiNumber(), // āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ + āļ„āļĢāļąāđ‰āļ‡āļāđˆāļ­āļ™ + LeaveLimit = leaveLimit.ToString().ToThaiNumber() // āļŠāļīāļ—āļ˜āļīāđŒāļāļēāļĢāļĨāļē } }; } From 66d4a08f3ce27e6db4f04598253bf7192df5fc6b Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 2 May 2025 12:03:56 +0700 Subject: [PATCH 264/879] =?UTF-8?q?fix=20#1462=20=E0=B9=81=E0=B8=A5?= =?UTF-8?q?=E0=B8=B0=20#1497?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveRequestRepository.cs | 30 ++++++++++++++++++- BMA.EHR.Leave/BMA.EHR.Leave.csproj | 3 +- .../Controllers/LeaveRequestController.cs | 25 ++++++++++++++-- .../GetLeaveRequestForAdminDto.cs | 6 ++++ 4 files changed, 60 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 5d2f76e2..811b41c8 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -308,6 +308,33 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests return await rawData.ToListAsync(); } + public async Task> GetLeaveRequestForAdminWithAuthAsync(int year, Guid type, string status, DateTime startDate, DateTime endDate,List keycloakIdList) + { + var rawData = _dbContext.Set().AsNoTracking() + .Include(x => x.Type) + .Where(x => keycloakIdList.Contains(x.KeycloakUserId)) + .Where(x => x.LeaveStatus != "DRAFT") + .OrderByDescending(x => x.CreatedAt) + .AsQueryable(); + + if (year != 0) + rawData = rawData.Where(x => x.LeaveStartDate.Year == year); + + if (type != Guid.Empty) + rawData = rawData.Where(x => x.Type.Id == type); + + if (status.Trim().ToUpper() != "ALL") + rawData = rawData.Where(x => x.LeaveStatus == status); + + if (startDate != DateTime.MinValue) + rawData = rawData.Where(x => x.LeaveStartDate >= startDate); + + if (endDate != DateTime.MinValue) + rawData = rawData.Where(x => x.LeaveEndDate <= endDate); + + return await rawData.ToListAsync(); + } + public async Task GetRestDayTotalByYearForUserAsync(Guid keycloakUserId, int year) { var startFiscalDate = new DateTime(year - 1, 10, 1); @@ -425,7 +452,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests return await rawData.ToListAsync(); } - public async Task ApproveCancelLeaveRequestAsync(LeaveRequest data, string Reason) + public async Task ApproveCancelLeaveRequestAsync(LeaveRequest data, string Reason,string LeaveReason) { try { @@ -438,6 +465,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests data.LeaveCancelStatus = "APPROVE"; data.LeaveDirectorComment = Reason; + data.LeaveCancelComment = LeaveReason; // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning if (data.ApproveStep == "st4") // āļ–āđ‰āļēāļĄāļĩāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđāļĨāđ‰āļ§ diff --git a/BMA.EHR.Leave/BMA.EHR.Leave.csproj b/BMA.EHR.Leave/BMA.EHR.Leave.csproj index 07324011..621e568f 100644 --- a/BMA.EHR.Leave/BMA.EHR.Leave.csproj +++ b/BMA.EHR.Leave/BMA.EHR.Leave.csproj @@ -11,7 +11,8 @@ BMA.EHR.Leave.Service BMA.EHR.Leave - $(NoWarn); + false + $(NoWarn);$(WarningsNotAsErrors) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index e4e3b130..19d0b8cb 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -3,6 +3,7 @@ using BMA.EHR.Application.Repositories.Commands; using BMA.EHR.Application.Repositories.Leaves.LeaveRequests; using BMA.EHR.Application.Repositories.Leaves.TimeAttendants; using BMA.EHR.Application.Repositories.MetaData; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Leave.Commons; @@ -1552,7 +1553,27 @@ namespace BMA.EHR.Leave.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate); + + // āđ€āļžāļīāđˆāļĄāđ€āļ•āļīāļĄāļāļēāļĢāļ”āļķāļ‡āļ„āļ™āļ•āļēāļĄāļŠāļīāļ—āļ˜āļīāđŒāđāļšāļšāļ—āļĩāđˆ bright āļ—āļģ #1462 + var profileList = new List(); + if (req.ProfileType.Trim().ToUpper() == "OFFICER") + { + + profileList = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllOfficerAndRevision(AccessToken, req.Node, req.NodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.RevisionId); + } + else + { + + profileList = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllEmployeeAndRevision(AccessToken, req.Node, req.NodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.RevisionId); + } + + var keycloakList = new List(); + if(profileList != null) + { + keycloakList = profileList.Where(x => x.Keycloak != null).Select(x => x.Keycloak!.Value).ToList(); + } + + var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminWithAuthAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate, keycloakList); var result = new List(); @@ -1650,7 +1671,7 @@ namespace BMA.EHR.Leave.Service.Controllers } else { - data = await _leaveRequestRepository.ApproveCancelLeaveRequestAsync(data, "āļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļāļēāļĢāļĨāļē āđ‚āļ”āļĒāļĢāļ°āļšāļš"); + data = await _leaveRequestRepository.ApproveCancelLeaveRequestAsync(data, "āļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļāļēāļĢāļĨāļē āđ‚āļ”āļĒāļĢāļ°āļšāļš", req.Reason ?? ""); } // upload leave cancel document diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminDto.cs index 2a8e4acf..cadeea86 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminDto.cs @@ -28,5 +28,11 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string ProfileType { get; set; } = string.Empty; + public string NodeId { get; set; } = string.Empty; + + public int Node { get; set; } + + public string? RevisionId { get; set; } = string.Empty; + } } From 249911b931bce4c8e477b738b399c32d09d9e633 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 2 May 2025 12:13:14 +0700 Subject: [PATCH 265/879] fix warning --- .../BMA.EHR.Application.csproj | 3 + .../BMA.EHR.CheckInConsumer.csproj | 41 ++++---- .../BMA.EHR.Command.Service.csproj | 3 + .../BMA.EHR.Discipline.Service.csproj | 33 ++++--- BMA.EHR.Domain/BMA.EHR.Domain.csproj | 29 +++--- .../BMA.EHR.Infrastructure.csproj | 71 ++++++------- BMA.EHR.Insignia/BMA.EHR.Insignia.csproj | 99 ++++++++++--------- .../BMA.EHR.MetaData.Service.csproj | 5 +- ...MA.EHR.OrganizationEmployee.Service.csproj | 33 ++++--- .../BMA.EHR.Placement.Service.csproj | 33 ++++--- .../BMA.EHR.Report.Service.csproj | 63 ++++++------ .../BMA.EHR.Retirement.Service.csproj | 33 ++++--- 12 files changed, 241 insertions(+), 205 deletions(-) diff --git a/BMA.EHR.Application/BMA.EHR.Application.csproj b/BMA.EHR.Application/BMA.EHR.Application.csproj index b3262e4b..7a12c4b5 100644 --- a/BMA.EHR.Application/BMA.EHR.Application.csproj +++ b/BMA.EHR.Application/BMA.EHR.Application.csproj @@ -4,6 +4,9 @@ net6.0 enable enable + false + $(NoWarn);$(WarningsNotAsErrors) + diff --git a/BMA.EHR.CheckInConsumer/BMA.EHR.CheckInConsumer.csproj b/BMA.EHR.CheckInConsumer/BMA.EHR.CheckInConsumer.csproj index c59ded2b..ef4df6df 100644 --- a/BMA.EHR.CheckInConsumer/BMA.EHR.CheckInConsumer.csproj +++ b/BMA.EHR.CheckInConsumer/BMA.EHR.CheckInConsumer.csproj @@ -1,25 +1,28 @@ ïŧŋ - - Exe - net8.0 - enable - enable - Linux - + + Exe + net8.0 + enable + enable + Linux + false + $(NoWarn);$(WarningsNotAsErrors) - - - - - - - + - - - PreserveNewest - - + + + + + + + + + + + PreserveNewest + + diff --git a/BMA.EHR.Command.Service/BMA.EHR.Command.Service.csproj b/BMA.EHR.Command.Service/BMA.EHR.Command.Service.csproj index 9e86639f..4bb04261 100644 --- a/BMA.EHR.Command.Service/BMA.EHR.Command.Service.csproj +++ b/BMA.EHR.Command.Service/BMA.EHR.Command.Service.csproj @@ -9,6 +9,9 @@ True . BMA.EHR.Command.Service + false + $(NoWarn);$(WarningsNotAsErrors) + diff --git a/BMA.EHR.Discipline.Service/BMA.EHR.Discipline.Service.csproj b/BMA.EHR.Discipline.Service/BMA.EHR.Discipline.Service.csproj index b4da4155..9787eddb 100644 --- a/BMA.EHR.Discipline.Service/BMA.EHR.Discipline.Service.csproj +++ b/BMA.EHR.Discipline.Service/BMA.EHR.Discipline.Service.csproj @@ -1,17 +1,20 @@ - - net7.0 - enable - enable - 9d934a68-d1dd-449d-bde0-3078a774ad0f - Linux - True - . - BMA.EHR.Discipline.Service - + + net7.0 + enable + enable + 9d934a68-d1dd-449d-bde0-3078a774ad0f + Linux + True + . + BMA.EHR.Discipline.Service + false + $(NoWarn);$(WarningsNotAsErrors) - + + + @@ -36,10 +39,10 @@ - + - - - + + + diff --git a/BMA.EHR.Domain/BMA.EHR.Domain.csproj b/BMA.EHR.Domain/BMA.EHR.Domain.csproj index be1779a2..16f82ee7 100644 --- a/BMA.EHR.Domain/BMA.EHR.Domain.csproj +++ b/BMA.EHR.Domain/BMA.EHR.Domain.csproj @@ -1,18 +1,21 @@ ïŧŋ - - net6.0 - enable - enable - + + net6.0 + enable + enable + false + $(NoWarn);$(WarningsNotAsErrors) - - - - - - - - + + + + + + + + + + diff --git a/BMA.EHR.Infrastructure/BMA.EHR.Infrastructure.csproj b/BMA.EHR.Infrastructure/BMA.EHR.Infrastructure.csproj index 9bae0b2e..b3370a5e 100644 --- a/BMA.EHR.Infrastructure/BMA.EHR.Infrastructure.csproj +++ b/BMA.EHR.Infrastructure/BMA.EHR.Infrastructure.csproj @@ -1,41 +1,44 @@ ïŧŋ - - net6.0 - enable - enable - + + net6.0 + enable + enable + false + $(NoWarn);$(WarningsNotAsErrors) - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - + - - - + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + - - - PreserveNewest - - + + + + + + + PreserveNewest + + diff --git a/BMA.EHR.Insignia/BMA.EHR.Insignia.csproj b/BMA.EHR.Insignia/BMA.EHR.Insignia.csproj index 3c761786..93282da5 100644 --- a/BMA.EHR.Insignia/BMA.EHR.Insignia.csproj +++ b/BMA.EHR.Insignia/BMA.EHR.Insignia.csproj @@ -1,53 +1,56 @@ - - net7.0 - enable - enable - 93677512-b64b-4a19-9e7d-dd283c7ec901 - Linux - True - . - BMA.EHR.Insignia.Service - BMA.EHR.Insignia - + + net7.0 + enable + enable + 93677512-b64b-4a19-9e7d-dd283c7ec901 + Linux + True + . + BMA.EHR.Insignia.Service + BMA.EHR.Insignia + false + $(NoWarn);$(WarningsNotAsErrors) - - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - - - - - - - + - - - - - - PreserveNewest - - + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + + + + + + + + + + + PreserveNewest + + diff --git a/BMA.EHR.MetaData.Service/BMA.EHR.MetaData.Service.csproj b/BMA.EHR.MetaData.Service/BMA.EHR.MetaData.Service.csproj index 87e2fdaf..9ef27e1e 100644 --- a/BMA.EHR.MetaData.Service/BMA.EHR.MetaData.Service.csproj +++ b/BMA.EHR.MetaData.Service/BMA.EHR.MetaData.Service.csproj @@ -9,10 +9,13 @@ True . BMA.EHR.MetaData.Service + false + $(NoWarn);$(WarningsNotAsErrors) + - + diff --git a/BMA.EHR.OrganizationEmployee.Service/BMA.EHR.OrganizationEmployee.Service.csproj b/BMA.EHR.OrganizationEmployee.Service/BMA.EHR.OrganizationEmployee.Service.csproj index 10fafc6a..ccc0028b 100644 --- a/BMA.EHR.OrganizationEmployee.Service/BMA.EHR.OrganizationEmployee.Service.csproj +++ b/BMA.EHR.OrganizationEmployee.Service/BMA.EHR.OrganizationEmployee.Service.csproj @@ -1,17 +1,20 @@ - - net7.0 - enable - enable - 3d68209a-41b1-4d00-914e-b895d74467c0 - Linux - True - . - BMA.EHR.OrganizationEmployee.Service - + + net7.0 + enable + enable + 3d68209a-41b1-4d00-914e-b895d74467c0 + Linux + True + . + BMA.EHR.OrganizationEmployee.Service + false + $(NoWarn);$(WarningsNotAsErrors) - + + + @@ -33,10 +36,10 @@ - + - - - + + + diff --git a/BMA.EHR.Placement.Service/BMA.EHR.Placement.Service.csproj b/BMA.EHR.Placement.Service/BMA.EHR.Placement.Service.csproj index 9338f6b5..25abca11 100644 --- a/BMA.EHR.Placement.Service/BMA.EHR.Placement.Service.csproj +++ b/BMA.EHR.Placement.Service/BMA.EHR.Placement.Service.csproj @@ -1,17 +1,20 @@ - - net7.0 - enable - enable - 9d934a68-d1dd-449d-bde0-3078a774ad0f - Linux - True - . - BMA.EHR.Placement.Service - + + net7.0 + enable + enable + 9d934a68-d1dd-449d-bde0-3078a774ad0f + Linux + True + . + BMA.EHR.Placement.Service + false + $(NoWarn);$(WarningsNotAsErrors) - + + + @@ -36,10 +39,10 @@ - + - - - + + + diff --git a/BMA.EHR.Report.Service/BMA.EHR.Report.Service.csproj b/BMA.EHR.Report.Service/BMA.EHR.Report.Service.csproj index 8308a1be..bd9c567c 100644 --- a/BMA.EHR.Report.Service/BMA.EHR.Report.Service.csproj +++ b/BMA.EHR.Report.Service/BMA.EHR.Report.Service.csproj @@ -9,20 +9,23 @@ True . BMA.EHR.Report.Service + false + $(NoWarn);$(WarningsNotAsErrors) + - + - + - + - + @@ -49,15 +52,15 @@ - + - + - + - - Never - + + Never + @@ -157,10 +160,10 @@ PreserveNewest - + PreserveNewest - + PreserveNewest @@ -200,22 +203,22 @@ PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest PreserveNewest @@ -248,22 +251,22 @@ PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest PreserveNewest @@ -302,19 +305,19 @@ PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest - PreserveNewest + PreserveNewest PreserveNewest @@ -326,7 +329,7 @@ PreserveNewest - PreserveNewest + PreserveNewest PreserveNewest diff --git a/BMA.EHR.Retirement.Service/BMA.EHR.Retirement.Service.csproj b/BMA.EHR.Retirement.Service/BMA.EHR.Retirement.Service.csproj index 8c1fd03f..255f2a75 100644 --- a/BMA.EHR.Retirement.Service/BMA.EHR.Retirement.Service.csproj +++ b/BMA.EHR.Retirement.Service/BMA.EHR.Retirement.Service.csproj @@ -1,17 +1,20 @@ - - net7.0 - enable - enable - 7be0011e-a539-4e0e-a300-ed7f11163989 - Linux - True - . - BMA.EHR.Retirement.Service - + + net7.0 + enable + enable + 7be0011e-a539-4e0e-a300-ed7f11163989 + Linux + True + . + BMA.EHR.Retirement.Service + false + $(NoWarn);$(WarningsNotAsErrors) - + + + @@ -37,10 +40,10 @@ - + - - - + + + From ff89c2c791d7d69ed6488fbd60335424f29b023f Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Fri, 2 May 2025 13:48:07 +0700 Subject: [PATCH 266/879] fix --- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 0aa63e9d..e13349fd 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -1028,7 +1028,7 @@ namespace BMA.EHR.Leave.Service.Controllers { try { - var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_LEAVE_REPORT"); + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_SALARY_OFFICER"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { From 42bdb664406683406e5e75f5ef29fae8d43c908c Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 2 May 2025 13:55:40 +0700 Subject: [PATCH 267/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20Param=20leaveId=20=E0=B9=81=E0=B8=A5=E0=B8=B0=20?= =?UTF-8?q?=E0=B9=80=E0=B8=A3=E0=B8=B5=E0=B8=A2=E0=B8=81=20api=20=E0=B8=A2?= =?UTF-8?q?=E0=B8=81=E0=B9=80=E0=B8=A5=E0=B8=B4=E0=B8=81=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=A5=E0=B8=B2=E0=B9=83=E0=B8=99=E0=B8=97=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4=20#1492?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveRequestRepository.cs | 41 ++++++++++++++++++- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 811b41c8..393c1779 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -308,7 +308,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests return await rawData.ToListAsync(); } - public async Task> GetLeaveRequestForAdminWithAuthAsync(int year, Guid type, string status, DateTime startDate, DateTime endDate,List keycloakIdList) + public async Task> GetLeaveRequestForAdminWithAuthAsync(int year, Guid type, string status, DateTime startDate, DateTime endDate, List keycloakIdList) { var rawData = _dbContext.Set().AsNoTracking() .Include(x => x.Type) @@ -452,7 +452,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests return await rawData.ToListAsync(); } - public async Task ApproveCancelLeaveRequestAsync(LeaveRequest data, string Reason,string LeaveReason) + public async Task ApproveCancelLeaveRequestAsync(LeaveRequest data, string Reason, string LeaveReason) { try { @@ -482,6 +482,24 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests _appDbContext.Set().Add(noti); await _appDbContext.SaveChangesAsync(); + + var _baseAPI = _configuration["API"]; + var apiUrlSalary = $"{_baseAPI}/org/profile/leave/cancel/{data.Id}"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + + var request = new HttpRequestMessage(HttpMethod.Patch, apiUrlSalary); + + // āļŠāđˆāļ‡ request + var _res = await client.SendAsync(request); + if (!_res.IsSuccessStatusCode) + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļąāļžāđ€āļ”āļ•āļāļēāļĢāļĒāļāđ€āļĨāļīāļāļĢāļēāļĒāļāļēāļĢāļĨāļēāđ„āļ›āļĒāļąāļ‡āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + //var _result = await _res.Content.ReadAsStringAsync(); + } + + return data; } catch @@ -527,6 +545,23 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests }; _appDbContext.Set().Add(noti); await _appDbContext.SaveChangesAsync(); + + var _baseAPI = _configuration["API"]; + var apiUrlSalary = $"{_baseAPI}/org/profile/leave/cancel/{rawData.Id}"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + + var request = new HttpRequestMessage(HttpMethod.Patch, apiUrlSalary); + + // āļŠāđˆāļ‡ request + var _res = await client.SendAsync(request); + if (!_res.IsSuccessStatusCode) + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļąāļžāđ€āļ”āļ•āļāļēāļĢāļĒāļāđ€āļĨāļīāļāļĢāļēāļĒāļāļēāļĢāļĨāļēāđ„āļ›āļĒāļąāļ‡āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + //var _result = await _res.Content.ReadAsStringAsync(); + } + } public async Task RejectCancelLeaveRequestAsync(Guid id, string Reason) @@ -939,6 +974,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests leaveDays = rawData.LeaveTotal, status = "approve", reason = rawData.LeaveDetail, + leaveId = rawData.Id, }); // var _result = await _res.Content.ReadAsStringAsync(); } @@ -961,6 +997,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests leaveDays = rawData.LeaveTotal, status = "approve", reason = rawData.LeaveDetail, + leaveId = rawData.Id, }); } } From ae3d5dab70e3e0f41ae95ada85dfac24f802c976 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 2 May 2025 17:36:16 +0700 Subject: [PATCH 268/879] revert #1462 --- .../Controllers/LeaveRequestController.cs | 34 +++++++++---------- .../GetLeaveRequestForAdminDto.cs | 4 +-- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 19d0b8cb..420fa23e 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1554,27 +1554,27 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - // āđ€āļžāļīāđˆāļĄāđ€āļ•āļīāļĄāļāļēāļĢāļ”āļķāļ‡āļ„āļ™āļ•āļēāļĄāļŠāļīāļ—āļ˜āļīāđŒāđāļšāļšāļ—āļĩāđˆ bright āļ—āļģ #1462 - var profileList = new List(); - if (req.ProfileType.Trim().ToUpper() == "OFFICER") - { + //// āđ€āļžāļīāđˆāļĄāđ€āļ•āļīāļĄāļāļēāļĢāļ”āļķāļ‡āļ„āļ™āļ•āļēāļĄāļŠāļīāļ—āļ˜āļīāđŒāđāļšāļšāļ—āļĩāđˆ bright āļ—āļģ #1462 + //var profileList = new List(); + //if (req.ProfileType.Trim().ToUpper() == "OFFICER") + //{ - profileList = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllOfficerAndRevision(AccessToken, req.Node, req.NodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.RevisionId); - } - else - { + // profileList = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllOfficerAndRevision(AccessToken, req.Node, req.NodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.RevisionId); + //} + //else + //{ - profileList = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllEmployeeAndRevision(AccessToken, req.Node, req.NodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.RevisionId); - } + // profileList = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllEmployeeAndRevision(AccessToken, req.Node, req.NodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.RevisionId); + //} - var keycloakList = new List(); - if(profileList != null) - { - keycloakList = profileList.Where(x => x.Keycloak != null).Select(x => x.Keycloak!.Value).ToList(); - } - - var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminWithAuthAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate, keycloakList); + //var keycloakList = new List(); + //if(profileList != null) + //{ + // keycloakList = profileList.Where(x => x.Keycloak != null).Select(x => x.Keycloak!.Value).ToList(); + //} + //var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminWithAuthAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate, keycloakList); + var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate); var result = new List(); foreach (var item in rawData) diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminDto.cs index cadeea86..d867df77 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestForAdminDto.cs @@ -28,9 +28,9 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string ProfileType { get; set; } = string.Empty; - public string NodeId { get; set; } = string.Empty; + public string? NodeId { get; set; } = string.Empty; - public int Node { get; set; } + public int? Node { get; set; } public string? RevisionId { get; set; } = string.Empty; From 5ba93feb520e49f450199a65a4690a596751d99c Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 2 May 2025 20:19:01 +0700 Subject: [PATCH 269/879] =?UTF-8?q?add=20field=20=E0=B9=81=E0=B8=A5?= =?UTF-8?q?=E0=B8=B0=20=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=20cal?= =?UTF-8?q?l=20ProfileLeave=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/UserProfileRepository.cs | 24 + .../Leaves/GetProfileLeaveByKeycloakDto.cs | 46 + .../GetProfileLeaveByKeycloakResultDto.cs | 11 + .../Models/Leave/Requests/LeaveRequest.cs | 10 + ...455_Add DnaIKd to LeaveRequest.Designer.cs | 1509 +++++++++++++++++ ...250502131455_Add DnaIKd to LeaveRequest.cs | 74 + .../LeaveDb/LeaveDbContextModelSnapshot.cs | 15 + .../Controllers/LeaveRequestController.cs | 6 + 8 files changed, 1695 insertions(+) create mode 100644 BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakDto.cs create mode 100644 BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakResultDto.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250502131455_Add DnaIKd to LeaveRequest.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250502131455_Add DnaIKd to LeaveRequest.cs diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index 1fc3e4fd..8c024f68 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -1,5 +1,6 @@ ïŧŋusing BMA.EHR.Application.Common.Interfaces; using BMA.EHR.Application.Responses.Insignias; +using BMA.EHR.Application.Responses.Leaves; using BMA.EHR.Application.Responses.Organizations; using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Models.HR; @@ -182,6 +183,29 @@ namespace BMA.EHR.Application.Repositories } } + public async Task GetProfileLeaveByKeycloakIdAsync(Guid keycloakId, string? accessToken) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/profile-leave/keycloak/{keycloakId}"; + var apiKey = _configuration["API_KEY"]; + + var apiResult = await GetExternalAPIAsync(apiPath, accessToken ?? "", apiKey); + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } + } + public async Task GetProfileByProfileIdAsync(Guid profileId, string? accessToken) { try diff --git a/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakDto.cs b/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakDto.cs new file mode 100644 index 00000000..0163395c --- /dev/null +++ b/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakDto.cs @@ -0,0 +1,46 @@ +ïŧŋnamespace BMA.EHR.Application.Responses.Leaves +{ + public class GetProfileLeaveByKeycloakDto + { + public DateTime BirthDate { get; set; } + public DateTime RetireDate { get; set; } + public string GovAge { get; set; } + public string Age { get; set; } + public DateTime DateAppoint { get; set; } + public int Amount { get; set; } + public string? TelephoneNumber { get; set; } + public string PositionName { get; set; } + public string PosLevel { get; set; } + public string PosType { get; set; } + public string CurrentAddress { get; set; } + public string Oc { get; set; } + public string Root { get; set; } + public string Child1 { get; set; } + public string? Child2 { get; set; } + public string? Child3 { get; set; } + public string? Child4 { get; set; } + public List Positions { get; set; } + public List Educations { get; set; } + } + + public class ProfileLeavePosition + { + public string? PositionName { get; set; } + public DateTime Date { get; set; } + public string? PositionType { get; set; } + public string? PositionLevel { get; set; } + public string? OrgRoot { get; set; } + public string? OrgChild1 { get; set; } + public string? OrgChild2 { get; set; } + public string? OrgChild3 { get; set; } + public string? OrgChild4 { get; set; } + } + + public class ProfileLeaveEducation + { + public string EducationLevel { get; set; } + public string Institute { get; set; } + public string? Country { get; set; } + public DateTime? FinishDate { get; set; } + } +} diff --git a/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakResultDto.cs b/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakResultDto.cs new file mode 100644 index 00000000..7014cc2f --- /dev/null +++ b/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakResultDto.cs @@ -0,0 +1,11 @@ +ïŧŋnamespace BMA.EHR.Application.Responses.Leaves +{ + public class GetProfileLeaveByKeycloakResultDto + { + public string Message { get; set; } = string.Empty; + + public int Status { get; set; } = -1; + + public GetProfileLeaveByKeycloakDto? Result { get; set; } + } +} diff --git a/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs b/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs index ad6accc7..69088cbb 100644 --- a/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs +++ b/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs @@ -200,5 +200,15 @@ namespace BMA.EHR.Domain.Models.Leave.Requests public List Approvers { get; set; } = new(); + public Guid? RootDnaId { get; set; } = Guid.Empty; + + public Guid? Child1DnaId { get; set; } = Guid.Empty; + + public Guid? Child2DnaId { get; set; } = Guid.Empty; + + public Guid? Child3DnaId { get; set; } = Guid.Empty; + + public Guid? Child4DnaId { get; set; } = Guid.Empty; + } } diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250502131455_Add DnaIKd to LeaveRequest.Designer.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250502131455_Add DnaIKd to LeaveRequest.Designer.cs new file mode 100644 index 00000000..23e19b68 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250502131455_Add DnaIKd to LeaveRequest.Designer.cs @@ -0,0 +1,1509 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + [DbContext(typeof(LeaveDbContext))] + [Migration("20250502131455_Add DnaIKd to LeaveRequest")] + partial class AddDnaIKdtoLeaveRequest + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Code") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Limit") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļŠāļđāļ‡āļŠāļļāļ”āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("LeaveTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDays") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļĒāļāļĄāļē"); + + b.Property("LeaveDaysUsed") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđƒāļŠāđ‰āđ„āļ›"); + + b.Property("LeaveTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.HasIndex("LeaveTypeId"); + + b.ToTable("LeaveBeginnings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AbsentDayAt") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayGetIn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayLocation") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayRegistorDate") + .HasColumnType("datetime(6)"); + + b.Property("AbsentDaySummon") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("CancelLeaveWrote") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ (āļ‚āļ­āļĒāļāđ€āļĨāļīāļ)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CommanderPosition") + .HasColumnType("longtext"); + + b.Property("CoupleDayCountryHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayEndDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDayLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayLevelCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayPosition") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayStartDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDaySumTotalHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayTotalHistory") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("Dear") + .HasColumnType("longtext") + .HasComment("āđ€āļĢāļĩāļĒāļ™āđƒāļ„āļĢ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("HajjDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveAddress") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveBirthDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveCancelComment") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveCancelDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveCancelStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("LeaveDetail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļĨāļē"); + + b.Property("LeaveDirectorComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļ­āļģāļ™āļ§āļĒāļāļēāļĢāļŠāļģāļ™āļąāļ"); + + b.Property("LeaveDraftDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("LeaveGovernmentDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveLast") + .HasColumnType("datetime(6)"); + + b.Property("LeaveNumber") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveRange") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄ āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveRangeEnd") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ” āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveSalary") + .HasColumnType("int"); + + b.Property("LeaveSalaryText") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LeaveStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļĨāļē"); + + b.Property("LeaveStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļĢāđ‰āļ­āļ‡"); + + b.Property("LeaveSubTypeName") + .HasColumnType("longtext"); + + b.Property("LeaveTotal") + .HasColumnType("double"); + + b.Property("LeaveTypeCode") + .HasColumnType("longtext") + .HasComment("code āļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveWrote") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ"); + + b.Property("OrdainDayBuddhistLentAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayBuddhistLentName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationNumber") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayOrdination") + .HasColumnType("datetime(6)"); + + b.Property("OrdainDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionLevelName") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RestDayCurrentTotal") + .HasColumnType("double"); + + b.Property("RestDayOldTotal") + .HasColumnType("double"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("StudyDayCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayDegreeLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayScholarship") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDaySubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingSubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayUniversityName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("TypeId") + .HasColumnType("char(36)"); + + b.Property("WifeDayDateBorn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("WifeDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("LeaveCancelDocumentId"); + + b.HasIndex("LeaveDraftDocumentId"); + + b.HasIndex("TypeId"); + + b.ToTable("LeaveRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveRequestApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.AdditionalCheckRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckDate") + .HasColumnType("datetime(6)") + .HasComment("*āļ§āļąāļ™āļ—āļĩāđˆāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("CheckInEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("CheckOutEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđƒāļ™āļāļēāļĢāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("*āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āļ‚āļ­"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("AdditionalCheckRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ"); + + b.Property("EndTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("EndTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļīāļ”āđƒāļŠāđ‰āļ‡āļēāļ™ (āđ€āļ›āļīāļ”/āļ›āļīāļ”)"); + + b.Property("IsDefault") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ§āđˆāļēāļĢāļ­āļšāđƒāļ”āđ€āļ›āđ‡āļ™āļ„āđˆāļē Default āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ (āļŠāļģāļŦāļĢāļąāļšāļ—āļļāļāļ„āļ™āļ—āļĩāđˆāļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ—āļģāļāļēāļĢāđ€āļĨāļ·āļ­āļāļĢāļ­āļš)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("StartTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("StartTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("DutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.ProcessUserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckInStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("CheckOutStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EditReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("EditStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ‚āļ­āļ‡āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("ProcessUserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserCalendar", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Calendar") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļāļīāļ—āļīāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡ āļ‚āļĢāļ āļ›āļāļ•āļī āļŦāļĢāļ·āļ­ 6 āļ§āļąāļ™āļ•āđˆāļ­āļŠāļąāļ›āļ”āļēāļŦāđŒ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("UserCalendars"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("EffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļœāļĨ"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DutyTimeId"); + + b.ToTable("UserDutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("UserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "LeaveType") + .WithMany() + .HasForeignKey("LeaveTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("LeaveDocument") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveCancelDocument") + .WithMany() + .HasForeignKey("LeaveCancelDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveDraftDocument") + .WithMany() + .HasForeignKey("LeaveDraftDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "Type") + .WithMany() + .HasForeignKey("TypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveCancelDocument"); + + b.Navigation("LeaveDraftDocument"); + + b.Navigation("Type"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("Approvers") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", "DutyTime") + .WithMany() + .HasForeignKey("DutyTimeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DutyTime"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Navigation("Approvers"); + + b.Navigation("LeaveDocument"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250502131455_Add DnaIKd to LeaveRequest.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250502131455_Add DnaIKd to LeaveRequest.cs new file mode 100644 index 00000000..d5206d49 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250502131455_Add DnaIKd to LeaveRequest.cs @@ -0,0 +1,74 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + /// + public partial class AddDnaIKdtoLeaveRequest : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "Child1DnaId", + table: "LeaveRequests", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "Child2DnaId", + table: "LeaveRequests", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "Child3DnaId", + table: "LeaveRequests", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "Child4DnaId", + table: "LeaveRequests", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "RootDnaId", + table: "LeaveRequests", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Child1DnaId", + table: "LeaveRequests"); + + migrationBuilder.DropColumn( + name: "Child2DnaId", + table: "LeaveRequests"); + + migrationBuilder.DropColumn( + name: "Child3DnaId", + table: "LeaveRequests"); + + migrationBuilder.DropColumn( + name: "Child4DnaId", + table: "LeaveRequests"); + + migrationBuilder.DropColumn( + name: "RootDnaId", + table: "LeaveRequests"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs index 73eae613..8723c584 100644 --- a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs @@ -309,24 +309,36 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb b.Property("Child1") .HasColumnType("longtext"); + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + b.Property("Child1Id") .HasColumnType("char(36)"); b.Property("Child2") .HasColumnType("longtext"); + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + b.Property("Child2Id") .HasColumnType("char(36)"); b.Property("Child3") .HasColumnType("longtext"); + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + b.Property("Child3Id") .HasColumnType("char(36)"); b.Property("Child4") .HasColumnType("longtext"); + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + b.Property("Child4Id") .HasColumnType("char(36)"); @@ -572,6 +584,9 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb b.Property("Root") .HasColumnType("longtext"); + b.Property("RootDnaId") + .HasColumnType("char(36)"); + b.Property("RootId") .HasColumnType("char(36)"); diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 19d0b8cb..472b8c4c 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -270,6 +270,12 @@ namespace BMA.EHR.Leave.Service.Controllers Amount = profile.Amount, BirthDate = profile.BirthDate, DateAppoint = profile.DateAppoint, + + RootDnaId = profile.RootDnaId, + Child1DnaId = profile.Child1DnaId, + Child2DnaId = profile.Child2DnaId, + Child3DnaId = profile.Child3DnaId, + Child4DnaId = profile.Child4DnaId, }; // get leave last From 2240c383c725566224b847682cd4076c3406300b Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 2 May 2025 20:49:59 +0700 Subject: [PATCH 270/879] =?UTF-8?q?add=20=E0=B8=82=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=88=E0=B8=B2=E0=B8=81=20api=20leave-profile=20#1?= =?UTF-8?q?476?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Leaves/GetProfileLeaveByKeycloakDto.cs | 46 ++++---- .../Controllers/LeaveReportController.cs | 104 +++++++++++++++++- 2 files changed, 125 insertions(+), 25 deletions(-) diff --git a/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakDto.cs b/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakDto.cs index 0163395c..f3d26ed1 100644 --- a/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakDto.cs +++ b/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakDto.cs @@ -4,43 +4,43 @@ { public DateTime BirthDate { get; set; } public DateTime RetireDate { get; set; } - public string GovAge { get; set; } - public string Age { get; set; } + public string GovAge { get; set; } = string.Empty; + public string Age { get; set; } = string.Empty; public DateTime DateAppoint { get; set; } public int Amount { get; set; } - public string? TelephoneNumber { get; set; } - public string PositionName { get; set; } - public string PosLevel { get; set; } - public string PosType { get; set; } - public string CurrentAddress { get; set; } - public string Oc { get; set; } - public string Root { get; set; } - public string Child1 { get; set; } + public string? TelephoneNumber { get; set; } = string.Empty; + public string PositionName { get; set; } = string.Empty; + public string PosLevel { get; set; } = string.Empty; + public string PosType { get; set; } = string.Empty; + public string CurrentAddress { get; set; } = string.Empty; + public string Oc { get; set; } = string.Empty; + public string Root { get; set; } = string.Empty; + public string? Child1 { get; set; } public string? Child2 { get; set; } public string? Child3 { get; set; } public string? Child4 { get; set; } - public List Positions { get; set; } - public List Educations { get; set; } + public List Positions { get; set; } = new(); + public List Educations { get; set; } = new(); } public class ProfileLeavePosition { - public string? PositionName { get; set; } + public string? PositionName { get; set; } = string.Empty; public DateTime Date { get; set; } - public string? PositionType { get; set; } - public string? PositionLevel { get; set; } - public string? OrgRoot { get; set; } - public string? OrgChild1 { get; set; } - public string? OrgChild2 { get; set; } - public string? OrgChild3 { get; set; } - public string? OrgChild4 { get; set; } + public string? PositionType { get; set; } = string.Empty; + public string? PositionLevel { get; set; } = string.Empty; + public string? OrgRoot { get; set; } = string.Empty; + public string? OrgChild1 { get; set; } = string.Empty; + public string? OrgChild2 { get; set; } = string.Empty; + public string? OrgChild3 { get; set; } = string.Empty; + public string? OrgChild4 { get; set; } = string.Empty; } public class ProfileLeaveEducation { - public string EducationLevel { get; set; } - public string Institute { get; set; } - public string? Country { get; set; } + public string EducationLevel { get; set; } = string.Empty; + public string Institute { get; set; } = string.Empty; + public string? Country { get; set; } = string.Empty; public DateTime? FinishDate { get; set; } } } diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 613bb2a2..de03013f 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -8,6 +8,8 @@ using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Leave.Commons; using BMA.EHR.Domain.Models.Leave.Requests; +using BMA.EHR.Domain.Models.MetaData; +using BMA.EHR.Domain.ModelsExam.Candidate; using BMA.EHR.Domain.Shared; using BMA.EHR.Leave.Service.DTOs.Reports; using Microsoft.AspNetCore.Authorization; @@ -20,8 +22,10 @@ using Org.BouncyCastle.Ocsp; using Sentry; using Swashbuckle.AspNetCore.Annotations; using System.Diagnostics.Eventing.Reader; +using System.Diagnostics.Metrics; using System.Globalization; using System.Security.Claims; +using static Nest.JoinField; namespace BMA.EHR.Leave.Service.Controllers { @@ -319,14 +323,14 @@ namespace BMA.EHR.Leave.Service.Controllers leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), - + leaveAddress = data.LeaveAddress.ToThaiNumber(), leaveNumber = data.LeaveNumber.ToThaiNumber(), LeaveRemain = (leaveLimit - sumLeave).ToString().ToThaiNumber(), leaveTotal = data.LeaveTotal.ToString().ToThaiNumber(), // āļ§āļąāļ™āļĨāļēāļ›āļąāļˆāļˆāļļāļšāļąāļ™ LeaveSummary = sumLeave.ToString().ToThaiNumber(), // āļ§āļąāļ™āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļāđˆāļ­āļ™ - + LeaveAll = (data.LeaveTotal + sumLeave).ToString().ToThaiNumber(), // āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ + āļ„āļĢāļąāđ‰āļ‡āļāđˆāļ­āļ™ LeaveLimit = leaveLimit.ToString().ToThaiNumber() // āļŠāļīāļ—āļ˜āļīāđŒāļāļēāļĢāļĨāļē } @@ -531,6 +535,12 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); } + var profileLeave = await _userProfileRepository.GetProfileLeaveByKeycloakIdAsync(data.KeycloakUserId, AccessToken); + if (profileLeave == null) + { + return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); + } + var fullName = $"{profile!.Prefix}{profile!.FirstName} {profile!.LastName}"; //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); @@ -562,6 +572,49 @@ namespace BMA.EHR.Leave.Service.Controllers leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), + profileType = profile.ProfileType, + + birthDate = profileLeave.BirthDate.ToThaiShortDate().ToThaiNumber(), + retireDate = profileLeave.RetireDate.ToThaiShortDate().ToThaiNumber(), + govAge = profileLeave.GovAge.ToThaiNumber(), + age = profileLeave.Age.ToThaiNumber(), + dateAppoint = profileLeave.DateAppoint.ToThaiShortDate().ToThaiNumber(), + amount = ((double)profileLeave.Amount).ToNumericText().ToThaiNumber(), + telephoneNumber = profileLeave.TelephoneNumber == null ? "" : profileLeave.TelephoneNumber.ToThaiNumber(), + + posLevel = profileLeave.PosLevel.ToThaiNumber(), + posType = profileLeave.PosType.ToThaiNumber(), + currentAddress = profileLeave.CurrentAddress.ToThaiNumber(), + oc = profileLeave.Oc.ToThaiNumber(), + root = profileLeave.Root.ToThaiNumber(), + child1 = profileLeave.Child1 == null ? "" : profileLeave.Child1!.ToThaiNumber(), + child2 = profileLeave.Child2 == null ? "" : profileLeave.Child2!.ToThaiNumber(), + child3 = profileLeave.Child3 == null ? "" : profileLeave.Child3!.ToThaiNumber(), + child4 = profileLeave.Child4 == null ? "" : profileLeave.Child4!.ToThaiNumber(), + + positions = profileLeave.Positions.Select(x => new + { + positionName = x.PositionName == null ? "" : x.PositionName.ToThaiNumber(), + date = x.Date.ToThaiShortDate().ToThaiNumber(), + positionType = x.PositionType == null ? "" : x.PositionType.ToThaiNumber(), + positionLevel = x.PositionLevel == null ? "" : x.PositionLevel.ToThaiNumber(), + orgRoot = x.OrgRoot == null ? "" : x.OrgRoot.ToThaiNumber(), + orgChild1 = x.OrgChild1 == null ? "" : x.OrgChild1.ToThaiNumber(), + orgChild2 = x.OrgChild2 == null ? "" : x.OrgChild2.ToThaiNumber(), + orgChild3 = x.OrgChild3 == null ? "" : x.OrgChild3.ToThaiNumber(), + orgChild4 = x.OrgChild4 == null ? "" : x.OrgChild4.ToThaiNumber(), + }).ToList(), + educations = profileLeave.Educations.Select(x => new + { + educationLevel = x.EducationLevel == null ? "" : x.EducationLevel.ToThaiNumber(), + institute = x.Institute == null ? "" : x.Institute.ToThaiNumber(), + country = x.Country == null ? "" : x.Country.ToThaiNumber(), + finishDate = x.FinishDate == null ? "" : x.FinishDate.Value.ToThaiShortDate().ToThaiNumber() + }).ToList() + + //positionName = profileLeave.PositionName, + + } }; } @@ -630,6 +683,12 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); } + var profileLeave = await _userProfileRepository.GetProfileLeaveByKeycloakIdAsync(data.KeycloakUserId, AccessToken); + if (profileLeave == null) + { + return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); + } + var fullName = $"{profile!.Prefix}{profile!.FirstName} {profile!.LastName}"; //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); @@ -662,6 +721,47 @@ namespace BMA.EHR.Leave.Service.Controllers leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), + + + profileType = profile.ProfileType, + + birthDate = profileLeave.BirthDate.ToThaiShortDate().ToThaiNumber(), + retireDate = profileLeave.RetireDate.ToThaiShortDate().ToThaiNumber(), + govAge = profileLeave.GovAge.ToThaiNumber(), + age = profileLeave.Age.ToThaiNumber(), + dateAppoint = profileLeave.DateAppoint.ToThaiShortDate().ToThaiNumber(), + amount = ((double)profileLeave.Amount).ToNumericText().ToThaiNumber(), + telephoneNumber = profileLeave.TelephoneNumber == null ? "" : profileLeave.TelephoneNumber.ToThaiNumber(), + + posLevel = profileLeave.PosLevel.ToThaiNumber(), + posType = profileLeave.PosType.ToThaiNumber(), + currentAddress = profileLeave.CurrentAddress.ToThaiNumber(), + oc = profileLeave.Oc.ToThaiNumber(), + root = profileLeave.Root.ToThaiNumber(), + child1 = profileLeave.Child1 == null ? "" : profileLeave.Child1!.ToThaiNumber(), + child2 = profileLeave.Child2 == null ? "" : profileLeave.Child2!.ToThaiNumber(), + child3 = profileLeave.Child3 == null ? "" : profileLeave.Child3!.ToThaiNumber(), + child4 = profileLeave.Child4 == null ? "" : profileLeave.Child4!.ToThaiNumber(), + + positions = profileLeave.Positions.Select(x => new + { + positionName = x.PositionName == null ? "" : x.PositionName.ToThaiNumber(), + date = x.Date.ToThaiShortDate().ToThaiNumber(), + positionType = x.PositionType == null ? "" : x.PositionType.ToThaiNumber(), + positionLevel = x.PositionLevel == null ? "" : x.PositionLevel.ToThaiNumber(), + orgRoot = x.OrgRoot == null ? "" : x.OrgRoot.ToThaiNumber(), + orgChild1 = x.OrgChild1 == null ? "" : x.OrgChild1.ToThaiNumber(), + orgChild2 = x.OrgChild2 == null ? "" : x.OrgChild2.ToThaiNumber(), + orgChild3 = x.OrgChild3 == null ? "" : x.OrgChild3.ToThaiNumber(), + orgChild4 = x.OrgChild4 == null ? "" : x.OrgChild4.ToThaiNumber(), + }).ToList(), + educations = profileLeave.Educations.Select(x => new + { + educationLevel = x.EducationLevel == null ? "" : x.EducationLevel.ToThaiNumber(), + institute = x.Institute == null ? "" : x.Institute.ToThaiNumber(), + country = x.Country == null ? "" : x.Country.ToThaiNumber(), + finishDate = x.FinishDate == null ? "" : x.FinishDate.Value.ToThaiShortDate().ToThaiNumber() + }).ToList() } }; } From 23b6070785441d48b7e4830683aa4fdcb09b099c Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 6 May 2025 12:05:33 +0700 Subject: [PATCH 271/879] #1384 --- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index de03013f..bac4d14c 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -1649,9 +1649,9 @@ namespace BMA.EHR.Leave.Service.Controllers fullName = fullName, dutyTimeName = $"{duty.StartTimeMorning} - {duty.EndTimeAfternoon} āļ™.", checkInLocation = p.CheckInPOI, - checkInTime = $"{checkIn?.ToString("HH:mm") ?? ""} āļ™.", + checkInTime = checkIn?.ToString("HH:mm") is string timeIn ? $"{timeIn} āļ™." : "", checkOutLocation = p.CheckOutPOI ?? "", - checkOutTime = $"{checkOut?.ToString("HH:mm") ?? ""} āļ™.", + checkOutTime = checkOut?.ToString("HH:mm") is string timeOut ? $"{timeOut} āļ™." : "", remark = "", checkInDate = checkIn?.ToThaiFullDate2()?.ToThaiNumber() ?? "", checkedOutDate = checkOut?.ToThaiFullDate2()?.ToThaiNumber() ?? "", From 06a6019e97a876900caac8debac3493a840981af Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 6 May 2025 15:12:30 +0700 Subject: [PATCH 272/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=9F=E0=B8=B4=E0=B8=A7=E0=B8=AD=E0=B8=AD=E0=B8=81?= =?UTF-8?q?=E0=B8=84=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=E0=B8=88?= =?UTF-8?q?=E0=B8=B2=E0=B8=81=20placment=20(=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B9=82=E0=B8=AD=E0=B8=99)=20=E0=B8=AA=E0=B9=88=E0=B8=87?= =?UTF-8?q?=E0=B9=84=E0=B8=9B=20org?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/PlacementReceiveController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 15ec2a2c..71a2f51e 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -1040,7 +1040,7 @@ namespace BMA.EHR.Placement.Service.Controllers posLevelId = p.posLevelId == null ? string.Empty : p.posLevelId, posTypeId = p.posTypeId == null ? string.Empty : p.posTypeId, email = (String?)null, - phone = (String?)null, + phone = p.TelephoneNumber == null ? string.Empty : p.TelephoneNumber, keycloak = string.Empty, isProbation = false, isLeave = false, @@ -1057,7 +1057,7 @@ namespace BMA.EHR.Placement.Service.Controllers gender = p.Gender == null ? string.Empty : p.Gender, relationship = p.Relationship == null ? string.Empty : p.Relationship, religion = p.Religion == null ? string.Empty : p.Religion, - bloodGroup = string.Empty, + bloodGroup = p.BloodGroup == null ? string.Empty : p.BloodGroup, registrationAddress = (String?)null, registrationProvinceId = (String?)null, registrationDistrictId = (String?)null, From ed0bde9780b18b96a41da458699099d0354683ac Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 6 May 2025 18:16:14 +0700 Subject: [PATCH 273/879] fix #1462, #1476 --- .../LeaveRequests/LeaveRequestRepository.cs | 40 +++++++++++++ .../Repositories/UserProfileRepository.cs | 23 ++++++++ .../Leaves/GetProfileLeaveByKeycloakDto.cs | 4 +- .../Responses/Profiles/GetUserOCAllDto.cs | 57 +++++++++++++++++++ .../Profiles/GetUserOCAllResultDto.cs | 11 ++++ .../Controllers/LeaveReportController.cs | 12 ++-- .../Controllers/LeaveRequestController.cs | 28 ++++++++- 7 files changed, 169 insertions(+), 6 deletions(-) create mode 100644 BMA.EHR.Application/Responses/Profiles/GetUserOCAllDto.cs create mode 100644 BMA.EHR.Application/Responses/Profiles/GetUserOCAllResultDto.cs diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 393c1779..aeee3a7e 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -308,6 +308,46 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests return await rawData.ToListAsync(); } + public async Task> GetListLeaveRequestForAdminAsync(int year, Guid type, string status, DateTime startDate, DateTime endDate, string role, string? nodeId, int? node) + { + var rawData = _dbContext.Set().AsNoTracking() + .Include(x => x.Type) + .Where(x => x.LeaveStatus != "DRAFT") + .OrderByDescending(x => x.CreatedAt) + .AsQueryable(); + + if (year != 0) + rawData = rawData.Where(x => x.LeaveStartDate.Year == year); + + if (type != Guid.Empty) + rawData = rawData.Where(x => x.Type.Id == type); + + if (status.Trim().ToUpper() != "ALL") + rawData = rawData.Where(x => x.LeaveStatus == status); + + if (startDate != DateTime.MinValue) + rawData = rawData.Where(x => x.LeaveStartDate >= startDate); + + if (endDate != DateTime.MinValue) + rawData = rawData.Where(x => x.LeaveEndDate <= endDate); + + if (role == "OWNER" || role == "CHILD") + { + rawData = rawData + .Where(x => node == 4 ? x.Child4DnaId == Guid.Parse(nodeId!) : (node == 3 ? x.Child3DnaId == Guid.Parse(nodeId!) : (node == 2 ? x.Child2DnaId == Guid.Parse(nodeId!) : (node == 1 ? x.Child1DnaId == Guid.Parse(nodeId!) : (node == 0 ? x.RootDnaId == Guid.Parse(nodeId!) : (node == null ? true : true)))))); + } + else + { + rawData = rawData + //.Where(x => node == 4 ? x.Child4DnaId == Guid.Parse(nodeId) : (node == 3 ? x.Child3DnaId == Guid.Parse(nodeId) : (node == 2 ? x.Child2DnaId == Guid.Parse(nodeId) : (node == 1 ? x.Child1DnaId == Guid.Parse(nodeId) : (node == 0 ? x.RootDnaId == Guid.Parse(nodeId) : (node == null ? true : true)))))) + //.Where(x => node == 0 ? x.Child1DnaId == null : (node == 1 ? x.Child2DnaId == null : (node == 2 ? x.Child3DnaId == null : (node == 3 ? x.Child4DnaId == null : true)))); + .Where(x => x.RootDnaId == Guid.Parse(nodeId!)); + } + + + return await rawData.ToListAsync(); + } + public async Task> GetLeaveRequestForAdminWithAuthAsync(int year, Guid type, string status, DateTime startDate, DateTime endDate, List keycloakIdList) { var rawData = _dbContext.Set().AsNoTracking() diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index 8c024f68..5592a6aa 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -780,6 +780,29 @@ namespace BMA.EHR.Application.Repositories } } + public async Task GetUserOCAll(Guid keycloakId, string? accessToken) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/user-oc-all/{keycloakId}"; + var apiKey = _configuration["API_KEY"]; + + var apiResult = await GetExternalAPIAsync(apiPath, accessToken ?? "", apiKey); + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + return raw?.Result; + } + + return null; + } + catch + { + throw; + } + } + + public async Task GetUserOC(Guid keycloakId, string? accessToken) { try diff --git a/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakDto.cs b/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakDto.cs index f3d26ed1..52a9b948 100644 --- a/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakDto.cs +++ b/BMA.EHR.Application/Responses/Leaves/GetProfileLeaveByKeycloakDto.cs @@ -7,6 +7,7 @@ public string GovAge { get; set; } = string.Empty; public string Age { get; set; } = string.Empty; public DateTime DateAppoint { get; set; } + public DateTime DateCurrent { get; set; } public int Amount { get; set; } public string? TelephoneNumber { get; set; } = string.Empty; public string PositionName { get; set; } = string.Empty; @@ -26,7 +27,8 @@ public class ProfileLeavePosition { public string? PositionName { get; set; } = string.Empty; - public DateTime Date { get; set; } + public DateTime DateStart { get; set; } + public DateTime DateEnd { get; set; } public string? PositionType { get; set; } = string.Empty; public string? PositionLevel { get; set; } = string.Empty; public string? OrgRoot { get; set; } = string.Empty; diff --git a/BMA.EHR.Application/Responses/Profiles/GetUserOCAllDto.cs b/BMA.EHR.Application/Responses/Profiles/GetUserOCAllDto.cs new file mode 100644 index 00000000..a638a429 --- /dev/null +++ b/BMA.EHR.Application/Responses/Profiles/GetUserOCAllDto.cs @@ -0,0 +1,57 @@ +ïŧŋnamespace BMA.EHR.Application.Responses.Profiles +{ + public class GetUserOCAllDto + { + public Guid ProfileId { get; set; } + public string? Prefix { get; set; } + public string? Rank { get; set; } + public string? Avatar { get; set; } + public string? AvatarName { get; set; } + public string? FirstName { get; set; } + public string? LastName { get; set; } + public string? CitizenId { get; set; } + public DateTime? BirthDate { get; set; } + public string? Position { get; set; } + + public int? PosMaster { get; set; } + public int? PosMasterNo { get; set; } + public string? PosLevelName { get; set; } + public string? PosLevelRank { get; set; } + public Guid? PosLevelId { get; set; } + public string? PosTypeName { get; set; } + public string? PosTypeRank { get; set; } + public Guid? PosTypeId { get; set; } + + public string? PosExecutiveName { get; set; } + public int? PosExecutivePriority { get; set; } + public Guid? PosExecutiveId { get; set; } + + public string RootId { get; set; } + public string? RootDnaId { get; set; } + public string? Root { get; set; } + public string? RootShortName { get; set; } + + public string? Child1Id { get; set; } + public string? Child1DnaId { get; set; } + public string? Child1 { get; set; } + public string? Child1ShortName { get; set; } + + public string? Child2Id { get; set; } + public string? Child2DnaId { get; set; } + public string? Child2 { get; set; } + public string? Child2ShortName { get; set; } + + public string? Child3Id { get; set; } + public string? Child3DnaId { get; set; } + public string? Child3 { get; set; } + public string? Child3ShortName { get; set; } + + public string? Child4Id { get; set; } + public string? Child4DnaId { get; set; } + public string? Child4 { get; set; } + public string? Child4ShortName { get; set; } + + public int? Node { get; set; } + public string? NodeId { get; set; } + } +} diff --git a/BMA.EHR.Application/Responses/Profiles/GetUserOCAllResultDto.cs b/BMA.EHR.Application/Responses/Profiles/GetUserOCAllResultDto.cs new file mode 100644 index 00000000..e7370ef5 --- /dev/null +++ b/BMA.EHR.Application/Responses/Profiles/GetUserOCAllResultDto.cs @@ -0,0 +1,11 @@ +ïŧŋnamespace BMA.EHR.Application.Responses.Profiles +{ + public class GetUserOCAllResultDto + { + public string Message { get; set; } = string.Empty; + + public int Status { get; set; } = -1; + + public GetUserOCAllDto? Result { get; set; } + } +} diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index bac4d14c..d678c7c6 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -579,6 +579,7 @@ namespace BMA.EHR.Leave.Service.Controllers govAge = profileLeave.GovAge.ToThaiNumber(), age = profileLeave.Age.ToThaiNumber(), dateAppoint = profileLeave.DateAppoint.ToThaiShortDate().ToThaiNumber(), + dateCurrent = profileLeave.DateCurrent.ToThaiShortDate().ToThaiNumber(), amount = ((double)profileLeave.Amount).ToNumericText().ToThaiNumber(), telephoneNumber = profileLeave.TelephoneNumber == null ? "" : profileLeave.TelephoneNumber.ToThaiNumber(), @@ -595,7 +596,8 @@ namespace BMA.EHR.Leave.Service.Controllers positions = profileLeave.Positions.Select(x => new { positionName = x.PositionName == null ? "" : x.PositionName.ToThaiNumber(), - date = x.Date.ToThaiShortDate().ToThaiNumber(), + dateStart = x.DateStart.ToThaiShortDate().ToThaiNumber(), + dateEnd = x.DateEnd.ToThaiShortDate().ToThaiNumber(), positionType = x.PositionType == null ? "" : x.PositionType.ToThaiNumber(), positionLevel = x.PositionLevel == null ? "" : x.PositionLevel.ToThaiNumber(), orgRoot = x.OrgRoot == null ? "" : x.OrgRoot.ToThaiNumber(), @@ -609,7 +611,7 @@ namespace BMA.EHR.Leave.Service.Controllers educationLevel = x.EducationLevel == null ? "" : x.EducationLevel.ToThaiNumber(), institute = x.Institute == null ? "" : x.Institute.ToThaiNumber(), country = x.Country == null ? "" : x.Country.ToThaiNumber(), - finishDate = x.FinishDate == null ? "" : x.FinishDate.Value.ToThaiShortDate().ToThaiNumber() + finishDate = x.FinishDate == null ? "-" : x.FinishDate.Value.ToThaiShortDate().ToThaiNumber() }).ToList() //positionName = profileLeave.PositionName, @@ -730,6 +732,7 @@ namespace BMA.EHR.Leave.Service.Controllers govAge = profileLeave.GovAge.ToThaiNumber(), age = profileLeave.Age.ToThaiNumber(), dateAppoint = profileLeave.DateAppoint.ToThaiShortDate().ToThaiNumber(), + dateCurrent = profileLeave.DateCurrent.ToThaiShortDate().ToThaiNumber(), amount = ((double)profileLeave.Amount).ToNumericText().ToThaiNumber(), telephoneNumber = profileLeave.TelephoneNumber == null ? "" : profileLeave.TelephoneNumber.ToThaiNumber(), @@ -746,7 +749,8 @@ namespace BMA.EHR.Leave.Service.Controllers positions = profileLeave.Positions.Select(x => new { positionName = x.PositionName == null ? "" : x.PositionName.ToThaiNumber(), - date = x.Date.ToThaiShortDate().ToThaiNumber(), + dateStart = x.DateStart.ToThaiShortDate().ToThaiNumber(), + dateEnd = x.DateEnd.ToThaiShortDate().ToThaiNumber(), positionType = x.PositionType == null ? "" : x.PositionType.ToThaiNumber(), positionLevel = x.PositionLevel == null ? "" : x.PositionLevel.ToThaiNumber(), orgRoot = x.OrgRoot == null ? "" : x.OrgRoot.ToThaiNumber(), @@ -760,7 +764,7 @@ namespace BMA.EHR.Leave.Service.Controllers educationLevel = x.EducationLevel == null ? "" : x.EducationLevel.ToThaiNumber(), institute = x.Institute == null ? "" : x.Institute.ToThaiNumber(), country = x.Country == null ? "" : x.Country.ToThaiNumber(), - finishDate = x.FinishDate == null ? "" : x.FinishDate.Value.ToThaiShortDate().ToThaiNumber() + finishDate = x.FinishDate == null ? "-" : x.FinishDate.Value.ToThaiShortDate().ToThaiNumber() }).ToList() } }; diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index ebf81044..d6c38b39 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1580,7 +1580,33 @@ namespace BMA.EHR.Leave.Service.Controllers //} //var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminWithAuthAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate, keycloakList); - var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate); + //var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate); + + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "OWNER" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else + { + nodeId = profileAdmin?.RootDnaId; + } + + var rawData = await _leaveRequestRepository.GetListLeaveRequestForAdminAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate, role, nodeId, profileAdmin?.Node); + var result = new List(); foreach (var item in rawData) From 21029ca9ced559238dfbcebe3796c236efd6a891 Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 6 May 2025 19:04:17 +0700 Subject: [PATCH 274/879] =?UTF-8?q?fix=20=E0=B8=A3=E0=B8=B2=E0=B8=A2?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2=E0=B8=A2=E0=B8=B1?= =?UTF-8?q?=E0=B8=87=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=81=E0=B8=AA=E0=B8=94?= =?UTF-8?q?=E0=B8=87=E0=B8=95=E0=B8=B2=E0=B8=A1=E0=B8=AA=E0=B8=B4=E0=B8=97?= =?UTF-8?q?=E0=B8=98=E0=B8=B4=E0=B9=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Leaves/LeaveRequests/LeaveRequestRepository.cs | 13 ++++++++++--- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 4 ++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index aeee3a7e..21b08c88 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -331,18 +331,25 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests if (endDate != DateTime.MinValue) rawData = rawData.Where(x => x.LeaveEndDate <= endDate); + if (role == "OWNER") + { + node = null; + } if (role == "OWNER" || role == "CHILD") { rawData = rawData .Where(x => node == 4 ? x.Child4DnaId == Guid.Parse(nodeId!) : (node == 3 ? x.Child3DnaId == Guid.Parse(nodeId!) : (node == 2 ? x.Child2DnaId == Guid.Parse(nodeId!) : (node == 1 ? x.Child1DnaId == Guid.Parse(nodeId!) : (node == 0 ? x.RootDnaId == Guid.Parse(nodeId!) : (node == null ? true : true)))))); } - else + else if (role == "ROOT") { rawData = rawData - //.Where(x => node == 4 ? x.Child4DnaId == Guid.Parse(nodeId) : (node == 3 ? x.Child3DnaId == Guid.Parse(nodeId) : (node == 2 ? x.Child2DnaId == Guid.Parse(nodeId) : (node == 1 ? x.Child1DnaId == Guid.Parse(nodeId) : (node == 0 ? x.RootDnaId == Guid.Parse(nodeId) : (node == null ? true : true)))))) - //.Where(x => node == 0 ? x.Child1DnaId == null : (node == 1 ? x.Child2DnaId == null : (node == 2 ? x.Child3DnaId == null : (node == 3 ? x.Child4DnaId == null : true)))); .Where(x => x.RootDnaId == Guid.Parse(nodeId!)); } + else if (role == "NORMAL") + { + rawData = rawData + .Where(x => node == 0 ? x.Child1DnaId == null : (node == 1 ? x.Child2DnaId == null : (node == 2 ? x.Child3DnaId == null : (node == 3 ? x.Child4DnaId == null : true)))); + } return await rawData.ToListAsync(); diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index d6c38b39..613eaa9a 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1586,7 +1586,7 @@ namespace BMA.EHR.Leave.Service.Controllers var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); - if (role == "OWNER" || role == "CHILD") + if (role == "NORMAL" || role == "CHILD") { nodeId = profileAdmin?.Node == 4 ? profileAdmin?.Child4DnaId @@ -1600,7 +1600,7 @@ namespace BMA.EHR.Leave.Service.Controllers ? profileAdmin?.RootDnaId : ""; } - else + else if (role == "ROOT") { nodeId = profileAdmin?.RootDnaId; } From fffa6bc374c39dabe9eed42d551f643022120e41 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 6 May 2025 19:14:32 +0700 Subject: [PATCH 275/879] fix #1414 --- .../Middlewares/RequestLoggingMiddleware.cs | 44 +++++++++++++++---- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs b/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs index 2831d2f5..731bfdcb 100644 --- a/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs +++ b/BMA.EHR.Domain/Middlewares/RequestLoggingMiddleware.cs @@ -94,7 +94,7 @@ namespace BMA.EHR.Domain.Middlewares string requestBody = await ReadRequestBodyAsync(context); if (requestBody != "") { - if(context.Request.HasFormContentType) + if (context.Request.HasFormContentType) { var form = await context.Request.ReadFormAsync(); // āļ­āđˆāļēāļ™ form-data @@ -128,8 +128,8 @@ namespace BMA.EHR.Domain.Middlewares requestBodyJson = JsonSerializer.Serialize(JsonSerializer.Deserialize(requestBody), new JsonSerializerOptions { Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, WriteIndented = true, Converters = { new DateTimeFixConverter() } }); } } - - + + var originalBodyStream = context.Response.Body; @@ -150,6 +150,17 @@ namespace BMA.EHR.Domain.Middlewares await _next(context); // āļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ•āđˆāļ­āđ„āļ›āļĒāļąāļ‡ Middleware āļ­āļ·āđˆāļ™ āđ† stopwatch.Stop(); + + + var contentType = context.Response.ContentType; + + var isFileResponse = contentType != null && ( + contentType.StartsWith("application/") || + contentType.StartsWith("image/") || + contentType.StartsWith("audio/") || + context.Response.Headers.ContainsKey("Content-Disposition") + ); + var processTime = stopwatch.ElapsedMilliseconds; var endTime = DateTime.UtcNow; @@ -166,12 +177,29 @@ namespace BMA.EHR.Domain.Middlewares memoryStream.Seek(0, SeekOrigin.Begin); var responseBody = new StreamReader(memoryStream).ReadToEnd(); if (responseBody != "") - responseBodyJson = JsonSerializer.Serialize(JsonSerializer.Deserialize(responseBody), new JsonSerializerOptions { Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, WriteIndented = true, Converters = { new DateTimeFixConverter() } }); - - var json = JsonSerializer.Deserialize(responseBody); - if (json.TryGetProperty("message", out var messageElement)) { - message = messageElement.GetString(); + if (isFileResponse) + { + responseBodyJson = ""; + message = "success"; + } + else + { + responseBodyJson = JsonSerializer.Serialize(JsonSerializer.Deserialize(responseBody), new JsonSerializerOptions { Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, WriteIndented = true, Converters = { new DateTimeFixConverter() } }); + + var json = JsonSerializer.Deserialize(responseBody); + if (json.ValueKind == JsonValueKind.Array) + { + message = "success"; + } + else + { + if (json.TryGetProperty("message", out var messageElement)) + { + message = messageElement.GetString(); + } + } + } } var logData = new From 089e70c7c7be7167377caa66c547d18db3a93df1 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 6 May 2025 19:40:22 +0700 Subject: [PATCH 276/879] fix #901 --- .../Repositories/InsigniaPeriodsRepository.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index f11ba201..36efbad8 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -7793,6 +7793,18 @@ namespace BMA.EHR.Application.Repositories // result_candidate.Add(r); //} + if (period.Round != 1) + { + var insigniaIdList = await _dbContext.Set() + .Include(x => x.InsigniaType) + .Where(x => x.InsigniaType!.Name == "āļŠāļąāđ‰āļ™āļŠāļēāļĒāļŠāļ°āļžāļēāļĒ") + .Select(x => x.Id) + .ToListAsync(); + + + result_candidate = result_candidate.Where(x => insigniaIdList.Contains(x.RequestInsignia.Id)).ToList(); + } + return result_candidate.OrderBy(x => x.Seq).ThenBy(x => x.Gender).ThenBy(x => x.ProfileId).ToList(); } catch From e345331381096b2c236f371c01564989671e94a6 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 7 May 2025 06:33:33 +0700 Subject: [PATCH 277/879] add field --- .../Repositories/InsigniaPeriodsRepository.cs | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 36efbad8..40991cff 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -289,6 +289,7 @@ namespace BMA.EHR.Application.Repositories .OrderByDescending(x => x.Order).FirstOrDefault().Amount : p.Amount, PositionSalaryAmount = p.PositionSalaryAmount ?? 0, + ProfileInsignia = p.ProfileInsignia, Amount = p.Amount ?? 0, RootId = p.RootId, RootDnaId = p.RootDnaId, @@ -763,6 +764,7 @@ namespace BMA.EHR.Application.Repositories .OrderByDescending(x => x.Order).FirstOrDefault().Amount : p.Amount, PositionSalaryAmount = p.PositionSalaryAmount ?? 0, + ProfileInsignia = p.ProfileInsignia, Amount = p.Amount ?? 0, RootId = p.RootId, RootDnaId = p.RootDnaId, @@ -7867,6 +7869,23 @@ namespace BMA.EHR.Application.Repositories .OrderByDescending(x => x.Order).FirstOrDefault().Amount : p.Amount, PositionSalaryAmount = p.PositionSalaryAmount, + ProfileInsignia = p.ProfileInsignia, + Amount = p.Amount, + RootId = p.RootId, + RootDnaId = p.RootDnaId, + Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, }); // check āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļēāļāļāļ§āđˆāļē 25 āļ›āļĩ @@ -7898,6 +7917,25 @@ namespace BMA.EHR.Application.Repositories Seq = 1, Gender = p.Gender, MatchingConditions = new List(), + + + Amount = p.Amount, + RootId = p.RootId, + RootDnaId = p.RootDnaId, + Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, + })).ToList(); var result_candidate = new List(); From 01590c48948dbccd91a77ce2bca91d8b92135d12 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 7 May 2025 11:51:19 +0700 Subject: [PATCH 278/879] issue #1291 --- .../Requests/InsigniaBorrowRequest.cs | 14 + .../Models/Insignias/InsigniaManageProfile.cs | 8 +- .../Insignias/InsigniaReclaimProfile.cs | 23 + BMA.EHR.Domain/Shared/GlobalMessages.cs | 5 + ...d InsigniaReclaimProfile Table.Designer.cs | 20157 ++++++++++++++++ ...030357_Add InsigniaReclaimProfile Table.cs | 62 + .../ApplicationDBContextModelSnapshot.cs | 83 + .../Persistence/ApplicationDBContext.cs | 1 + .../Controllers/InsigniaManageController.cs | 220 + BMA.EHR.Insignia/Program.cs | 4 - BMA.EHR.Insignia/appsettings.json | 5 +- 11 files changed, 20571 insertions(+), 11 deletions(-) create mode 100644 BMA.EHR.Domain/Models/Insignias/InsigniaReclaimProfile.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250507030357_Add InsigniaReclaimProfile Table.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250507030357_Add InsigniaReclaimProfile Table.cs diff --git a/BMA.EHR.Application/Requests/InsigniaBorrowRequest.cs b/BMA.EHR.Application/Requests/InsigniaBorrowRequest.cs index 3d8481a6..0dbb49dc 100644 --- a/BMA.EHR.Application/Requests/InsigniaBorrowRequest.cs +++ b/BMA.EHR.Application/Requests/InsigniaBorrowRequest.cs @@ -9,4 +9,18 @@ namespace BMA.EHR.Application.Requests public Guid? BorrowOrganizationId { get; set; } public Guid InsigniaNoteProfileId { get; set; } } + + public class InsigniaReclaimRequest + { + public DateTime ReclaimDate { get; set; } + public Guid InsigniaNoteProfileId { get; set; } + + public string? ReclaimNote { get; set; } + } + + public class UpdateInsigniaReclaimRequest + { + public DateTime ReclaimDate { get; set; } + public string? ReclaimNote { get; set; } + } } diff --git a/BMA.EHR.Domain/Models/Insignias/InsigniaManageProfile.cs b/BMA.EHR.Domain/Models/Insignias/InsigniaManageProfile.cs index 67589c18..8d11fb15 100644 --- a/BMA.EHR.Domain/Models/Insignias/InsigniaManageProfile.cs +++ b/BMA.EHR.Domain/Models/Insignias/InsigniaManageProfile.cs @@ -1,9 +1,5 @@ -ïŧŋusing Microsoft.EntityFrameworkCore; -using System.ComponentModel.DataAnnotations; -using BMA.EHR.Domain.Models.Base; -using System.ComponentModel.DataAnnotations.Schema; -using BMA.EHR.Domain.Models.Documents; -using BMA.EHR.Domain.Models.MetaData; +ïŧŋusing BMA.EHR.Domain.Models.Base; +using Microsoft.EntityFrameworkCore; namespace BMA.EHR.Domain.Models.Insignias { diff --git a/BMA.EHR.Domain/Models/Insignias/InsigniaReclaimProfile.cs b/BMA.EHR.Domain/Models/Insignias/InsigniaReclaimProfile.cs new file mode 100644 index 00000000..7c42096b --- /dev/null +++ b/BMA.EHR.Domain/Models/Insignias/InsigniaReclaimProfile.cs @@ -0,0 +1,23 @@ +ïŧŋusing BMA.EHR.Domain.Models.Base; +using Microsoft.EntityFrameworkCore; + +namespace BMA.EHR.Domain.Models.Insignias +{ + public class InsigniaReclaimProfile : EntityBase + { + [Comment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™")] + public DateTime? ReclaimDate { get; set; } + + [Comment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™")] + public string? ReclaimReason { get; set; } + + [Comment("Fk Table OrganizationOrganization Borrow")] + public Guid? ReclaimOrganizationId { get; set; } + public string? ReclaimOrganization { get; set; } + + [Comment("Fk Table InsigniaNoteProfile")] + public InsigniaNoteProfile InsigniaNoteProfile { get; set; } + + + } +} diff --git a/BMA.EHR.Domain/Shared/GlobalMessages.cs b/BMA.EHR.Domain/Shared/GlobalMessages.cs index f93fd712..19a8b339 100644 --- a/BMA.EHR.Domain/Shared/GlobalMessages.cs +++ b/BMA.EHR.Domain/Shared/GlobalMessages.cs @@ -91,6 +91,11 @@ public static readonly string InsigniaManageOrgLimit = "āļˆāļģāļ™āļ§āļ™āļāļēāļĢāļˆāļąāļ”āļŠāļĢāļĢāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļāļīāļ™āļˆāļģāļ™āļ§āļ™"; public static readonly string InsigniaBorrowOrgLimit = "āļˆāļģāļ™āļ§āļ™āļāļēāļĢāļˆāļąāļ”āļŠāļĢāļĢāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļāļīāļ™āļˆāļģāļ™āļ§āļ™āļ‚āļ­āļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"; public static readonly string InsigniaNoBorrow = "āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļĒāļ·āļĄāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ āļ™āļĩāđ‰āđ„āļ”āđ‰āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļŠāļ–āļēāļ™āļ°āļĢāļ­āļāļēāļĢāļšāļąāļ™āļ—āļķāļāļ‚āđ‰āļ­āļĄāļđāļĨ"; + + public static readonly string InsigniaNoReclaim = "āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āđ€āļĢāļĩāļĒāļāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ āļ™āļĩāđ‰āđ„āļ”āđ‰āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļŠāļ–āļēāļ™āļ°āļĢāļ­āļāļēāļĢāļšāļąāļ™āļ—āļķāļāļ‚āđ‰āļ­āļĄāļđāļĨ"; + public static readonly string InsigniaReclaimNotFound = "āđ„āļĄāđˆāļžāļšāļĢāļēāļĒāļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ āļ—āļĩāđˆāļĢāļ°āļšāļļ"; + + public static readonly string InsigniaBorrowNotFound = "āđ„āļĄāđˆāļžāļšāļĢāļēāļĒāļāļēāļĢāļĒāļ·āļĄāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"; public static readonly string InsigniaNotReturn = "āļĢāļēāļĒāļāļēāļĢāļĒāļ·āļĄāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ āļ™āļĩāđ‰āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļĒāļ·āļĄāđ„āļ§āđ‰āđāļĨāđ‰āļ§"; #endregion diff --git a/BMA.EHR.Infrastructure/Migrations/20250507030357_Add InsigniaReclaimProfile Table.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250507030357_Add InsigniaReclaimProfile Table.Designer.cs new file mode 100644 index 00000000..80f60d7e --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250507030357_Add InsigniaReclaimProfile Table.Designer.cs @@ -0,0 +1,20157 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250507030357_Add InsigniaReclaimProfile Table")] + partial class AddInsigniaReclaimProfileTable + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReclaimDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.Property("ReclaimOrganization") + .HasColumnType("longtext"); + + b.Property("ReclaimOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("ReclaimReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaReclaimProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250507030357_Add InsigniaReclaimProfile Table.cs b/BMA.EHR.Infrastructure/Migrations/20250507030357_Add InsigniaReclaimProfile Table.cs new file mode 100644 index 00000000..55f3f1de --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250507030357_Add InsigniaReclaimProfile Table.cs @@ -0,0 +1,62 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class AddInsigniaReclaimProfileTable : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "InsigniaReclaimProfiles", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + ReclaimDate = table.Column(type: "datetime(6)", nullable: true, comment: "āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"), + ReclaimReason = table.Column(type: "longtext", nullable: true, comment: "āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™") + .Annotation("MySql:CharSet", "utf8mb4"), + ReclaimOrganizationId = table.Column(type: "char(36)", nullable: true, comment: "Fk Table OrganizationOrganization Borrow", collation: "ascii_general_ci"), + ReclaimOrganization = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + InsigniaNoteProfileId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci") + }, + constraints: table => + { + table.PrimaryKey("PK_InsigniaReclaimProfiles", x => x.Id); + table.ForeignKey( + name: "FK_InsigniaReclaimProfiles_InsigniaNoteProfiles_InsigniaNotePro~", + column: x => x.InsigniaNoteProfileId, + principalTable: "InsigniaNoteProfiles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateIndex( + name: "IX_InsigniaReclaimProfiles_InsigniaNoteProfileId", + table: "InsigniaReclaimProfiles", + column: "InsigniaNoteProfileId"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "InsigniaReclaimProfiles"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index bb002941..74ede2a1 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -6411,6 +6411,78 @@ namespace BMA.EHR.Infrastructure.Migrations b.ToTable("InsigniaPeriods"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReclaimDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.Property("ReclaimOrganization") + .HasColumnType("longtext"); + + b.Property("ReclaimOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("ReclaimReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaReclaimProfiles"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => { b.Property("Id") @@ -18877,6 +18949,17 @@ namespace BMA.EHR.Infrastructure.Migrations b.Navigation("ReliefDoc"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaNoteProfile"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => { b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") diff --git a/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs b/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs index b6e1fb75..482601ae 100644 --- a/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs +++ b/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs @@ -321,6 +321,7 @@ namespace BMA.EHR.Infrastructure.Persistence public DbSet InsigniaNoteDocs { get; set; } public DbSet InsigniaManageOrganiations { get; set; } public DbSet InsigniaManageProfiles { get; set; } + public DbSet InsigniaReclaimProfiles { get; set; } #endregion diff --git a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs index 22ea2484..01113dcb 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs @@ -457,6 +457,226 @@ namespace BMA.EHR.Insignia.Service.Controllers return Success(insigniaManage); } + #region " āđ€āļĢāļĩāļĒāļāļ„āļ·āļ™ " + + /// + /// āđ€āļĢāļĩāļĒāļāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ + /// + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("reclaim")] + public async Task> PostReclaimInsignia([FromBody] InsigniaReclaimRequest req) + { + var getPermission = await _permission.GetPermissionAPIAsync("CREATE", "SYS_INSIGNIA_BORROW"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + var insigniaNoteProfile = await _context.InsigniaNoteProfiles.AsQueryable() + .Include(x => x.RequestInsignia) + .Include(x => x.InsigniaNote) + //.Include(x => x.Profile) + .FirstOrDefaultAsync(x => x.Id == req.InsigniaNoteProfileId); + if (insigniaNoteProfile == null) + return Error(GlobalMessages.InsigniaRequestProfileNotFound); + if (insigniaNoteProfile.Status != "DONE") + return Error(GlobalMessages.InsigniaNoReclaim); + + await _context.InsigniaReclaimProfiles.AddAsync( + new InsigniaReclaimProfile + { + ReclaimDate = req.ReclaimDate, + ReclaimOrganizationId = insigniaNoteProfile.RootId, + ReclaimOrganization = insigniaNoteProfile.Root, + ReclaimReason = req.ReclaimNote, + InsigniaNoteProfile = insigniaNoteProfile, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }); + + await _context.SaveChangesAsync(); + + return Success(); + } + + /// + /// āđāļāđ‰āđ„āļ‚āļĢāļēāļĒāļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ + /// + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("reclaim/{insigniaReclaimProfileId:guid}")] + public async Task> PutReclaimInsignia([FromBody] UpdateInsigniaReclaimRequest req, Guid insigniaReclaimProfileId) + { + var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_INSIGNIA_BORROW"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + var uppdated = await _context.InsigniaReclaimProfiles.AsQueryable() + .FirstOrDefaultAsync(x => x.Id == insigniaReclaimProfileId); + if (uppdated == null) + return Error(GlobalMessages.InsigniaReclaimNotFound); + + uppdated.ReclaimDate = req.ReclaimDate; + uppdated.ReclaimReason = req.ReclaimNote; + uppdated.LastUpdateFullName = FullName ?? "System Administrator"; + uppdated.LastUpdateUserId = UserId ?? ""; + uppdated.LastUpdatedAt = DateTime.Now; + + await _context.SaveChangesAsync(); + + return Success(); + } + + /// + /// āļĨāļšāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ + /// + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpDelete("reclaim/{insigniaReclaimProfileId:guid}")] + public async Task> DeleteReclaimInsignia(Guid insigniaReclaimProfileId) + { + var getPermission = await _permission.GetPermissionAPIAsync("DELETE", "SYS_INSIGNIA_BORROW"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + var deleted = await _context.InsigniaReclaimProfiles.AsQueryable() + .FirstOrDefaultAsync(x => x.Id == insigniaReclaimProfileId); + if (deleted == null) + return Error(GlobalMessages.InsigniaReclaimNotFound); + + _context.InsigniaReclaimProfiles.Remove(deleted); + await _context.SaveChangesAsync(); + return Success(); + } + + /// + /// list āļĢāļēāļĒāļāļēāļĢāļĒāļ·āļĄ/āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ + /// + /// āļ›āļĩāļĒāļ·āļĄāļ‚āļ­ + /// Id āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("reclaim/{year}/{insigniaTypeId:length(36)}")] + public async Task> ListReclaimInsignia(int year, Guid insigniaTypeId) + { + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_INSIGNIA_BORROW"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + var insigniaType = await _context.InsigniaTypes + .FirstOrDefaultAsync(x => x.Id == insigniaTypeId); + if (insigniaType == null) + return Error(GlobalMessages.InsigniaTypeNotFound); + + + var rawData = await _context.InsigniaReclaimProfiles.AsQueryable() + .Where(x => x.InsigniaNoteProfile.RequestInsignia.InsigniaType == insigniaType) + .Where(x => year == 0 ? x.Id != null : x.ReclaimDate!.Value.Year == year) + .OrderByDescending(x => x.CreatedAt) + .Select(p => new + { + Id = p.Id, + ReclaimOrganization = p.ReclaimOrganization, + ReclaimOrganizationId = p.ReclaimOrganizationId, + Profile = p.InsigniaNoteProfile!.ProfileId ?? Guid.Empty, + CitizenId = p.InsigniaNoteProfile!.CitizenId ?? string.Empty, + Prefix = p.InsigniaNoteProfile!.Prefix ?? string.Empty, + FirstName = p.InsigniaNoteProfile!.FirstName ?? string.Empty, + LastName = p.InsigniaNoteProfile!.LastName ?? string.Empty, + ProfileType = p.InsigniaNoteProfile!.ProfileType ?? string.Empty, + Position = p.InsigniaNoteProfile!.Position ?? string.Empty, + ReclaimReason = p.ReclaimReason, + ReclaimDate = p.ReclaimDate, + LastUpdatedAt = p.LastUpdatedAt, + CreatedAt = p.CreatedAt, + InsigniaNoteProfileId = p.InsigniaNoteProfile.Id, + RequestInsignia = p.InsigniaNoteProfile.RequestInsignia == null ? null : p.InsigniaNoteProfile.RequestInsignia.Name, + RequestInsigniaId = p.InsigniaNoteProfile.RequestInsignia == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.InsigniaNoteProfile.RequestInsignia.Id, + RequestInsigniaShortName = p.InsigniaNoteProfile.RequestInsignia == null ? null : p.InsigniaNoteProfile.RequestInsignia.ShortName, + p.InsigniaNoteProfile.DateReceive, + p.InsigniaNoteProfile.OrganizationOrganizationSend, + p.InsigniaNoteProfile.OrganizationOrganizationReceive, + InsigniaNoteProfileStatus = p.InsigniaNoteProfile.Status, + p.InsigniaNoteProfile.Issue, + p.InsigniaNoteProfile.Date, + p.InsigniaNoteProfile.VolumeNo, + p.InsigniaNoteProfile.Section, + p.InsigniaNoteProfile.Page, + p.InsigniaNoteProfile.No, + p.InsigniaNoteProfile.DatePayment, + p.InsigniaNoteProfile.TypePayment, + p.InsigniaNoteProfile.Address, + p.InsigniaNoteProfile.Number, + p.InsigniaNoteProfile.Salary, + }) + .ToListAsync(); + + var data = rawData + .Select(p => new + { + p.Id, + ReclaimOrganizationId = p.ReclaimOrganizationId, + ReclaimOrganization = p.ReclaimOrganization, + p.ReclaimDate, + p.ReclaimReason, + p.LastUpdatedAt, + p.CreatedAt, + p.InsigniaNoteProfileId, + CitizenId = p.CitizenId, + Prefix = p.Prefix, + Position = p.Position, + FullName = $"{p.Prefix}{p.FirstName} {p.LastName}", + ProfileType = p.ProfileType, + p.RequestInsignia, + p.RequestInsigniaId, + p.RequestInsigniaShortName, + p.DateReceive, + p.OrganizationOrganizationSend, + p.OrganizationOrganizationReceive, + p.InsigniaNoteProfileStatus, + p.Issue, + p.Date, + p.VolumeNo, + p.Section, + p.Page, + p.No, + p.DatePayment, + p.TypePayment, + p.Address, + p.Number, + p.Salary, + + }) + .ToList(); + + return Success(data); + } + + #endregion + /// /// āļĒāļ·āļĄāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ /// diff --git a/BMA.EHR.Insignia/Program.cs b/BMA.EHR.Insignia/Program.cs index b83b3d21..558ff818 100644 --- a/BMA.EHR.Insignia/Program.cs +++ b/BMA.EHR.Insignia/Program.cs @@ -1,12 +1,9 @@ using BMA.EHR.Application; -using BMA.EHR.Application.Repositories; using BMA.EHR.Application.Repositories.Reports; using BMA.EHR.Domain.Middlewares; using BMA.EHR.Infrastructure; -using BMA.EHR.Infrastructure.MessageQueue; using BMA.EHR.Infrastructure.Persistence; using BMA.EHR.Insignia.Service; -using BMA.EHR.Insignia.Service.Controllers; using BMA.EHR.Insignia.Service.Filters; using Hangfire; using Hangfire.Common; @@ -21,7 +18,6 @@ using Microsoft.IdentityModel.Tokens; using Serilog; using Serilog.Exceptions; using Serilog.Sinks.Elasticsearch; -using System.Reflection; using System.Text; using System.Transactions; diff --git a/BMA.EHR.Insignia/appsettings.json b/BMA.EHR.Insignia/appsettings.json index 212bf833..1144e96a 100644 --- a/BMA.EHR.Insignia/appsettings.json +++ b/BMA.EHR.Insignia/appsettings.json @@ -16,7 +16,10 @@ "AllowedHosts": "*", "ConnectionStrings": { //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "LeaveConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + //"DefaultConnection": "server=hrms.chin.in.th;user=root;password=adminVM123;port=53636;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", //"DefaultConnection": "server=hrms.chin.in.th;user=root;password=ey2qVVyyqGYw8CyA7h8X72559r2Ad84K;port=53636;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", //"ExamConnection": "server=hrms.chin.in.th;user=root;password=ey2qVVyyqGYw8CyA7h8X72559r2Ad84K;port=53636;database=hrms_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", From 8f8bcd9cc82c1052b23bfb0d3c07d9a23d27aced Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 7 May 2025 11:57:15 +0700 Subject: [PATCH 279/879] fix xml comment --- BMA.EHR.Insignia/Controllers/InsigniaManageController.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs index 01113dcb..e0ba12f7 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs @@ -462,6 +462,7 @@ namespace BMA.EHR.Insignia.Service.Controllers /// /// āđ€āļĢāļĩāļĒāļāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ /// + /// Request Body /// /// /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ @@ -511,6 +512,8 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āđāļāđ‰āđ„āļ‚āļĢāļēāļĒāļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ /// /// + /// Request Body + /// Id āđ€āļĢāļĩāļĒāļāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ /// /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš @@ -544,6 +547,7 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āļĨāļšāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ /// /// + /// Id āđ€āļĢāļĩāļĒāļāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ /// /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš @@ -568,9 +572,9 @@ namespace BMA.EHR.Insignia.Service.Controllers } /// - /// list āļĢāļēāļĒāļāļēāļĢāļĒāļ·āļĄ/āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ + /// list āļĢāļēāļĒāļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ /// - /// āļ›āļĩāļĒāļ·āļĄāļ‚āļ­ + /// āļ›āļĩāļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™ /// Id āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ /// /// From e55001e23400380e234c3308c584f4a48aa3d024 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 7 May 2025 12:01:14 +0700 Subject: [PATCH 280/879] fix permission --- BMA.EHR.Insignia/Controllers/InsigniaManageController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs index e0ba12f7..5c01d053 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs @@ -471,7 +471,7 @@ namespace BMA.EHR.Insignia.Service.Controllers [HttpPost("reclaim")] public async Task> PostReclaimInsignia([FromBody] InsigniaReclaimRequest req) { - var getPermission = await _permission.GetPermissionAPIAsync("CREATE", "SYS_INSIGNIA_BORROW"); + var getPermission = await _permission.GetPermissionAPIAsync("CREATE", "SYS_INSIGNIA_RECLAIM"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { @@ -521,7 +521,7 @@ namespace BMA.EHR.Insignia.Service.Controllers [HttpPut("reclaim/{insigniaReclaimProfileId:guid}")] public async Task> PutReclaimInsignia([FromBody] UpdateInsigniaReclaimRequest req, Guid insigniaReclaimProfileId) { - var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_INSIGNIA_BORROW"); + var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_INSIGNIA_RECLAIM"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { @@ -555,7 +555,7 @@ namespace BMA.EHR.Insignia.Service.Controllers [HttpDelete("reclaim/{insigniaReclaimProfileId:guid}")] public async Task> DeleteReclaimInsignia(Guid insigniaReclaimProfileId) { - var getPermission = await _permission.GetPermissionAPIAsync("DELETE", "SYS_INSIGNIA_BORROW"); + var getPermission = await _permission.GetPermissionAPIAsync("DELETE", "SYS_INSIGNIA_RECLAIM"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { @@ -584,7 +584,7 @@ namespace BMA.EHR.Insignia.Service.Controllers [HttpGet("reclaim/{year}/{insigniaTypeId:length(36)}")] public async Task> ListReclaimInsignia(int year, Guid insigniaTypeId) { - var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_INSIGNIA_BORROW"); + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_INSIGNIA_RECLAIM"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { From 3880ce6985f374fcf1584c8c6719617584a88986 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 7 May 2025 12:36:23 +0700 Subject: [PATCH 281/879] fix #1509 --- .../Leaves/LeaveRequests/LeaveRequestRepository.cs | 14 +++++++++++++- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 2 +- .../Controllers/LeaveRequestController.cs | 5 ++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 21b08c88..886248a5 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -253,10 +253,22 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests } - public async Task> GetLeaveRequestByYearAsync(int year) + public async Task> GetLeaveRequestByYearAsync(int year, Guid userId) { + var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); + + if (profile == null) + { + throw new Exception("āđ„āļĄāđˆāļžāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī!!"); + } + var data = await _dbContext.Set().AsQueryable().AsNoTracking() .Include(x => x.Type) + .Where(x => x.RootId == profile.RootId && + x.Child1Id == profile.Child1Id && + x.Child2Id == profile.Child2Id && + x.Child3Id == profile.Child3Id && + x.Child4Id == profile.Child4Id) .Where(x => x.LeaveStartDate.Year == year) .Where(x => x.LeaveStatus != "REJECT" && x.LeaveStatus != "DELETE") .ToListAsync(); diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index d678c7c6..33404792 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -167,7 +167,7 @@ namespace BMA.EHR.Leave.Service.Controllers //GetSumApproveLeaveByRangeForUser var startFiscalYear = new DateTime(data.LeaveStartDate.Year - 1, 10, 1); - var endFiscalYear = data.CreatedAt.Date.AddDays(-1); // āļ™āļąāļšāļˆāļēāļāļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļĨāļē + var endFiscalYear = data.LeaveStartDate.Date.AddDays(-1); // āļ™āļąāļšāļˆāļēāļāļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļĨāļē var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId); //var sumLeave = leaveData == null ? 0 : leaveData.LeaveDaysUsed; diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 613eaa9a..9540e3cf 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1246,8 +1246,11 @@ namespace BMA.EHR.Leave.Service.Controllers public async Task> GetLeaveRequestCalendarAsync( [FromBody] GetLeaveRequestCalendarDto req) { + + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + //var thisYear = DateTime.Now.Year; - var data = await _leaveRequestRepository.GetLeaveRequestByYearAsync(req.Year); + var data = await _leaveRequestRepository.GetLeaveRequestByYearAsync(req.Year, userId); // var profileList = await _userProfileRepository.GetProfileWithKeycloak(AccessToken); From 8ce58201e9cc2ea4f4102e974e59fed721fcf37f Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 7 May 2025 12:55:30 +0700 Subject: [PATCH 282/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=81=E0=B8=AA=E0=B8=94?= =?UTF-8?q?=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=95=E0=B8=B2=E0=B8=A1=E0=B8=AA=E0=B8=B4=E0=B8=97=E0=B8=98?= =?UTF-8?q?=E0=B8=B4=E0=B9=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/InsigniaManageController.cs | 111 +++++++++++++++++- 1 file changed, 109 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs index 5c01d053..f02b9025 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs @@ -1,10 +1,12 @@ ïŧŋusing BMA.EHR.Application.Repositories; using BMA.EHR.Application.Repositories.MessageQueue; using BMA.EHR.Application.Requests; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Models.Insignias; using BMA.EHR.Domain.Shared; using BMA.EHR.Infrastructure.Persistence; +using Elasticsearch.Net; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; @@ -595,6 +597,30 @@ namespace BMA.EHR.Insignia.Service.Controllers if (insigniaType == null) return Error(GlobalMessages.InsigniaTypeNotFound); + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; var rawData = await _context.InsigniaReclaimProfiles.AsQueryable() .Where(x => x.InsigniaNoteProfile.RequestInsignia.InsigniaType == insigniaType) @@ -635,8 +661,36 @@ namespace BMA.EHR.Insignia.Service.Controllers p.InsigniaNoteProfile.Address, p.InsigniaNoteProfile.Number, p.InsigniaNoteProfile.Salary, - }) - .ToListAsync(); + + RootDnaId = p.InsigniaNoteProfile.RootDnaId, + Child1DnaId = p.InsigniaNoteProfile.Child1DnaId, + Child2DnaId = p.InsigniaNoteProfile.Child2DnaId, + Child3DnaId = p.InsigniaNoteProfile.Child3DnaId, + Child4DnaId = p.InsigniaNoteProfile.Child4DnaId, + + + }).ToListAsync(); + + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + rawData = rawData + .Where(x => node == 4 ? x.Child4DnaId == Guid.Parse(nodeId!) : (node == 3 ? x.Child3DnaId == Guid.Parse(nodeId!) : (node == 2 ? x.Child2DnaId == Guid.Parse(nodeId!) : (node == 1 ? x.Child1DnaId == Guid.Parse(nodeId!) : (node == 0 ? x.RootDnaId == Guid.Parse(nodeId!) : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + rawData = rawData + .Where(x => x.RootDnaId == Guid.Parse(nodeId!)).ToList(); + } + else if (role == "NORMAL") + { + rawData = rawData + .Where(x => node == 0 ? x.Child1DnaId == null : (node == 1 ? x.Child2DnaId == null : (node == 2 ? x.Child3DnaId == null : (node == 3 ? x.Child4DnaId == null : true)))).ToList(); + } var data = rawData .Select(p => new @@ -810,6 +864,31 @@ namespace BMA.EHR.Insignia.Service.Controllers if (insigniaType == null) return Error(GlobalMessages.InsigniaTypeNotFound); + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; + var rawData = await _context.InsigniaManageProfiles.AsQueryable() .Where(x => x.InsigniaNoteProfile.RequestInsignia.InsigniaType == insigniaType) @@ -856,9 +935,37 @@ namespace BMA.EHR.Insignia.Service.Controllers p.InsigniaNoteProfile.Address, p.InsigniaNoteProfile.Number, p.InsigniaNoteProfile.Salary, + + + RootDnaId = p.InsigniaNoteProfile.RootDnaId, + Child1DnaId = p.InsigniaNoteProfile.Child1DnaId, + Child2DnaId = p.InsigniaNoteProfile.Child2DnaId, + Child3DnaId = p.InsigniaNoteProfile.Child3DnaId, + Child4DnaId = p.InsigniaNoteProfile.Child4DnaId, + }) .ToListAsync(); + if(role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + rawData = rawData + .Where(x => node == 4 ? x.Child4DnaId == Guid.Parse(nodeId!) : (node == 3 ? x.Child3DnaId == Guid.Parse(nodeId!) : (node == 2 ? x.Child2DnaId == Guid.Parse(nodeId!) : (node == 1 ? x.Child1DnaId == Guid.Parse(nodeId!) : (node == 0 ? x.RootDnaId == Guid.Parse(nodeId!) : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + rawData = rawData + .Where(x => x.RootDnaId == Guid.Parse(nodeId!)).ToList(); + } + else if (role == "NORMAL") + { + rawData = rawData + .Where(x => node == 0 ? x.Child1DnaId == null : (node == 1 ? x.Child2DnaId == null : (node == 2 ? x.Child3DnaId == null : (node == 3 ? x.Child4DnaId == null : true)))).ToList(); + } + var data = rawData .Select(p => new { From 0b407f3c68940b253beb74d6df6ca925adf6de55 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 7 May 2025 14:05:08 +0700 Subject: [PATCH 283/879] =?UTF-8?q?change=20insigniaTypeId=20=E0=B9=80?= =?UTF-8?q?=E0=B8=9B=E0=B9=87=E0=B8=99=20optional?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/InsigniaManageController.cs | 37 +++-- .../Controllers/InsigniaRequestController.cs | 146 ++++++++++-------- .../Requests/GetReclaimListRequest.cs | 9 ++ .../Requests/InsigniaNoteSearchRequest.cs | 2 +- 4 files changed, 116 insertions(+), 78 deletions(-) create mode 100644 BMA.EHR.Insignia/Requests/GetReclaimListRequest.cs diff --git a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs index f02b9025..0e8e94e2 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs @@ -4,8 +4,10 @@ using BMA.EHR.Application.Requests; using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Models.Insignias; +using BMA.EHR.Domain.Models.MetaData; using BMA.EHR.Domain.Shared; using BMA.EHR.Infrastructure.Persistence; +using BMA.EHR.Insignia.Service.Requests; using Elasticsearch.Net; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; @@ -583,8 +585,8 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpGet("reclaim/{year}/{insigniaTypeId:length(36)}")] - public async Task> ListReclaimInsignia(int year, Guid insigniaTypeId) + [HttpPost("reclaim-list")] + public async Task> ListReclaimInsignia([FromBody] GetReclaimListRequest req) { var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_INSIGNIA_RECLAIM"); var jsonData = JsonConvert.DeserializeObject(getPermission); @@ -592,10 +594,16 @@ namespace BMA.EHR.Insignia.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - var insigniaType = await _context.InsigniaTypes - .FirstOrDefaultAsync(x => x.Id == insigniaTypeId); - if (insigniaType == null) - return Error(GlobalMessages.InsigniaTypeNotFound); + + InsigniaType? insigniaType = null; + if (req.InsigniaTypeId != null) + { + insigniaType = await _context.InsigniaTypes + .FirstOrDefaultAsync(x => x.Id == req.InsigniaTypeId); + if (insigniaType == null) + return Error(GlobalMessages.InsigniaTypeNotFound); + } + string role = jsonData["result"]; var nodeId = string.Empty; @@ -623,8 +631,11 @@ namespace BMA.EHR.Insignia.Service.Controllers var node = profileAdmin?.Node; var rawData = await _context.InsigniaReclaimProfiles.AsQueryable() - .Where(x => x.InsigniaNoteProfile.RequestInsignia.InsigniaType == insigniaType) - .Where(x => year == 0 ? x.Id != null : x.ReclaimDate!.Value.Year == year) + .Include(x => x.InsigniaNoteProfile) + .ThenInclude(x => x.RequestInsignia) + .ThenInclude(x => x.InsigniaType) + //.Where(x => x.InsigniaNoteProfile.RequestInsignia.InsigniaType == insigniaType) + .Where(x => req.Year == 0 ? x.Id != null : x.ReclaimDate!.Value.Year == req.Year) .OrderByDescending(x => x.CreatedAt) .Select(p => new { @@ -668,9 +679,15 @@ namespace BMA.EHR.Insignia.Service.Controllers Child3DnaId = p.InsigniaNoteProfile.Child3DnaId, Child4DnaId = p.InsigniaNoteProfile.Child4DnaId, + InsigniaTypeId = p.InsigniaNoteProfile.RequestInsignia.InsigniaType.Id }).ToListAsync(); - + + if (req.InsigniaTypeId != null) + { + rawData = rawData.Where(x => x.InsigniaTypeId == req.InsigniaTypeId).ToList(); + } + if (role == "OWNER") { @@ -946,7 +963,7 @@ namespace BMA.EHR.Insignia.Service.Controllers }) .ToListAsync(); - if(role == "OWNER") + if (role == "OWNER") { node = null; } diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 1e91d64a..68b72eff 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -7,6 +7,7 @@ using BMA.EHR.Application.Responses.Organizations; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Insignias; +using BMA.EHR.Domain.Models.MetaData; using BMA.EHR.Domain.Shared; using BMA.EHR.Infrastructure.Persistence; using BMA.EHR.Insignia.Service.Requests; @@ -1079,8 +1080,8 @@ namespace BMA.EHR.Insignia.Service.Controllers pf = _userProfileRepository.GetEmployeeProfileById(profileOld.ProfileId, AccessToken); var orgSend = ""; - var orgRecv = ""; - + var orgRecv = ""; + if (profileOld.Child4 != null || profileOld.Child4 != "") orgSend += $"{profileOld.Child4}"; if (profileOld.Child3 != null || profileOld.Child3 != "") @@ -1099,7 +1100,7 @@ namespace BMA.EHR.Insignia.Service.Controllers var kk = pf.Keycloak == null ? Guid.Empty : pf.Keycloak.Value; var pfData = await _userProfileRepository.GetProfileByKeycloakIdAsync(kk, AccessToken); if (pfData != null) - { + { if (pfData.Child4 != null || pfData.Child4 != "") orgRecv += $"{pfData.Child4}"; if (pfData.Child3 != null || pfData.Child3 != "") @@ -1113,7 +1114,7 @@ namespace BMA.EHR.Insignia.Service.Controllers orgRecv = orgRecv.Trim(); - } + } } @@ -1126,10 +1127,10 @@ namespace BMA.EHR.Insignia.Service.Controllers ProfileId = profileOld.ProfileId, RequestInsignia = profileOld.RequestInsignia, - + OrganizationOrganizationSend = orgSend, OrganizationOrganizationReceive = orgRecv, - + InsigniaNote = insigniaNote, CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", @@ -1417,17 +1418,23 @@ namespace BMA.EHR.Insignia.Service.Controllers .FirstOrDefaultAsync(x => x.Id == req.InsigniaNoteId); if (insigniaNote == null) return Error(GlobalMessages.InsigniaRequestNotFound); - var insigniaType = await _context.InsigniaTypes - .FirstOrDefaultAsync(x => x.Id == req.InsigniaTypeId); - if (insigniaType == null) - return Error(GlobalMessages.InsigniaTypeNotFound); + + InsigniaType? insigniaType = null; + if (req.InsigniaTypeId != null) + { + insigniaType = await _context.InsigniaTypes + .FirstOrDefaultAsync(x => x.Id == req.InsigniaTypeId); + if (insigniaType == null) + return Error(GlobalMessages.InsigniaTypeNotFound); + } var rawNoteProfiles = await _context.InsigniaNoteProfiles .Where(x => x.InsigniaNote == insigniaNote) - .Where(x => x.RequestInsignia.InsigniaType == insigniaType) + //.Where(x => x.RequestInsignia.InsigniaType == insigniaType) .Where(x => req.InsigniaId == null ? x.RequestInsignia != null : (x.RequestInsignia.Id == req.InsigniaId)) .Select(x => new { + InsigniaTypeId = x.RequestInsignia.InsigniaType.Id, Id = x.Id, x.CitizenId, x.Prefix, @@ -1465,6 +1472,11 @@ namespace BMA.EHR.Insignia.Service.Controllers }) .ToListAsync(); + if (req.InsigniaTypeId != null) + { + rawNoteProfiles = rawNoteProfiles.Where(x => x.InsigniaTypeId == req.InsigniaTypeId).ToList(); + } + var insigniaNoteProfiles = rawNoteProfiles .Select(x => new { @@ -1659,68 +1671,68 @@ namespace BMA.EHR.Insignia.Service.Controllers if (profileInsignia == null) { - var insigniaNoteProfile = new InsigniaNoteProfile - { - Salary = profile.ProfileSalary == null ? 0 : profile.ProfileSalary.Amount, - IsApprove = true, - Status = "PENDING", - ProfileId = profile.Id, - Issue = req.Issue, - Number = req.Number, - DateReceive = req.DateReceive, - Date = req.Date, - VolumeNo = req.VolumeNo, - Section = req.Section, - Page = req.Page, - No = req.No, - DatePayment = req.DatePayment, - TypePayment = req.TypePayment, - Address = req.Address, - RequestInsignia = insignia, - OrganizationOrganizationReceive = req.OrganizationOrganizationReceive, - OrganizationOrganizationSend = req.OrganizationOrganizationSend, - InsigniaNote = insigniaNote, - CreatedFullName = FullName ?? "System Administrator", - CreatedUserId = UserId ?? "", - CreatedAt = DateTime.Now, - LastUpdateFullName = FullName ?? "System Administrator", - LastUpdateUserId = UserId ?? "", - LastUpdatedAt = DateTime.Now, + var insigniaNoteProfile = new InsigniaNoteProfile + { + Salary = profile.ProfileSalary == null ? 0 : profile.ProfileSalary.Amount, + IsApprove = true, + Status = "PENDING", + ProfileId = profile.Id, + Issue = req.Issue, + Number = req.Number, + DateReceive = req.DateReceive, + Date = req.Date, + VolumeNo = req.VolumeNo, + Section = req.Section, + Page = req.Page, + No = req.No, + DatePayment = req.DatePayment, + TypePayment = req.TypePayment, + Address = req.Address, + RequestInsignia = insignia, + OrganizationOrganizationReceive = req.OrganizationOrganizationReceive, + OrganizationOrganizationSend = req.OrganizationOrganizationSend, + InsigniaNote = insigniaNote, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, - Amount = profile.ProfileSalary == null ? 0 : profile.ProfileSalary.Amount, - CitizenId = profile.CitizenId, - DateAppoint = profile.DateAppoint, - Prefix = profile.Prefix, - FirstName = profile.FirstName, - LastName = profile.LastName, - Gender = profile.Gender, - PosLevelName = profile.PosLevel, - PosNo = profile.PosNo, - PosTypeName = profile.PosType, - Position = profile.Position, - ProfileType = profile.ProfileType, - PositionSalaryAmount = profile.ProfileSalary == null ? 0 : profile.ProfileSalary.PositionSalaryAmount, + Amount = profile.ProfileSalary == null ? 0 : profile.ProfileSalary.Amount, + CitizenId = profile.CitizenId, + DateAppoint = profile.DateAppoint, + Prefix = profile.Prefix, + FirstName = profile.FirstName, + LastName = profile.LastName, + Gender = profile.Gender, + PosLevelName = profile.PosLevel, + PosNo = profile.PosNo, + PosTypeName = profile.PosType, + Position = profile.Position, + ProfileType = profile.ProfileType, + PositionSalaryAmount = profile.ProfileSalary == null ? 0 : profile.ProfileSalary.PositionSalaryAmount, - Root = profile.Root, - RootId = profile.RootId, - RootDnaId = profile.RootDnaId, - Child1 = profile.Child1, - Child1Id = profile.Child1Id, - Child1DnaId = profile.Child1DnaId, - Child2 = profile.Child2, - Child2Id = profile.Child2Id, - Child2DnaId = profile.Child2DnaId, - Child3 = profile.Child3, - Child3Id = profile.Child3Id, - Child3DnaId = profile.Child3DnaId, - Child4 = profile.Child4, - Child4Id = profile.Child4Id, - Child4DnaId = profile.Child4DnaId, + Root = profile.Root, + RootId = profile.RootId, + RootDnaId = profile.RootDnaId, + Child1 = profile.Child1, + Child1Id = profile.Child1Id, + Child1DnaId = profile.Child1DnaId, + Child2 = profile.Child2, + Child2Id = profile.Child2Id, + Child2DnaId = profile.Child2DnaId, + Child3 = profile.Child3, + Child3Id = profile.Child3Id, + Child3DnaId = profile.Child3DnaId, + Child4 = profile.Child4, + Child4Id = profile.Child4Id, + Child4DnaId = profile.Child4DnaId, - }; + }; insigniaNote.InsigniaNoteProfiles.Add(insigniaNoteProfile); diff --git a/BMA.EHR.Insignia/Requests/GetReclaimListRequest.cs b/BMA.EHR.Insignia/Requests/GetReclaimListRequest.cs new file mode 100644 index 00000000..0ff8e6e6 --- /dev/null +++ b/BMA.EHR.Insignia/Requests/GetReclaimListRequest.cs @@ -0,0 +1,9 @@ +ïŧŋnamespace BMA.EHR.Insignia.Service.Requests +{ + public class GetReclaimListRequest + { + public int Year { get; set; } = 0; + + public Guid? InsigniaTypeId { get; set; } + } +} diff --git a/BMA.EHR.Insignia/Requests/InsigniaNoteSearchRequest.cs b/BMA.EHR.Insignia/Requests/InsigniaNoteSearchRequest.cs index fca5c598..f457a70d 100644 --- a/BMA.EHR.Insignia/Requests/InsigniaNoteSearchRequest.cs +++ b/BMA.EHR.Insignia/Requests/InsigniaNoteSearchRequest.cs @@ -5,7 +5,7 @@ namespace BMA.EHR.Insignia.Service.Requests { public class InsigniaNoteSearchRequest { - public Guid InsigniaTypeId { get; set; } + public Guid? InsigniaTypeId { get; set; } public Guid InsigniaNoteId { get; set; } public Guid? InsigniaId { get; set; } } From 2b8713cbe0cf765cf94c606b03543cd388e08fc6 Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 7 May 2025 14:17:28 +0700 Subject: [PATCH 284/879] retire add approve --- .../RetirementEmployeeRepository.cs | 556 + .../Repositories/RetirementRepository.cs | 423 + .../Models/Retirement/RetirementResign.cs | 5 + .../Retirement/RetirementResignApprover.cs | 29 + .../Retirement/RetirementResignCancel.cs | 1 + .../RetirementResignCancelApprover.cs | 29 + .../Retirement/RetirementResignEmployee.cs | 4 + .../RetirementResignEmployeeApprover.cs | 29 + .../RetirementResignEmployeeCancel.cs | 1 + .../RetirementResignEmployeeCancelApprover.cs | 29 + ..._table_retirement_add_approver.Designer.cs | 20595 ++++++++++++++++ ...11_update_table_retirement_add_approver.cs | 259 + .../ApplicationDBContextModelSnapshot.cs | 438 + .../Persistence/ApplicationDBContext.cs | 4 + .../Controllers/RetirementResignController.cs | 237 + .../RetirementResignEmployeeController.cs | 229 +- .../Requests/RetirementRequestApproveDto.cs | 8 + .../Requests/RetirementRequestApproverDto.cs | 28 + BMA.EHR.Retirement.Service/appsettings.json | 83 +- 19 files changed, 22944 insertions(+), 43 deletions(-) create mode 100644 BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs create mode 100644 BMA.EHR.Domain/Models/Retirement/RetirementResignApprover.cs create mode 100644 BMA.EHR.Domain/Models/Retirement/RetirementResignCancelApprover.cs create mode 100644 BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeApprover.cs create mode 100644 BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancelApprover.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250507065811_update_table_retirement_add_approver.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250507065811_update_table_retirement_add_approver.cs create mode 100644 BMA.EHR.Retirement.Service/Requests/RetirementRequestApproveDto.cs create mode 100644 BMA.EHR.Retirement.Service/Requests/RetirementRequestApproverDto.cs diff --git a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs new file mode 100644 index 00000000..cab257c6 --- /dev/null +++ b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs @@ -0,0 +1,556 @@ +ïŧŋusing BMA.EHR.Application.Common.Interfaces; +using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Domain.Models.Notifications; +using BMA.EHR.Domain.Models.Retirement; +using BMA.EHR.Domain.Shared; +using Microsoft.AspNetCore.Http; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.Configuration; +using Newtonsoft.Json; +using System.Net.Http.Headers; +using System.Net.Http.Json; +using System.Security.Claims; +using System.Text; + +namespace BMA.EHR.Application.Repositories +{ + public class RetirementEmployeeRepository : GenericRepository + { + private readonly IApplicationDBContext _dbContext; + private readonly IHttpContextAccessor _httpContextAccessor; + private readonly NotificationRepository _repositoryNoti; + private readonly IConfiguration _configuration; + private readonly string URL = string.Empty; + public RetirementEmployeeRepository(IApplicationDBContext dbContext, + NotificationRepository repositoryNoti, + IHttpContextAccessor httpContextAccessor, + UserProfileRepository userProfileRepository, + IConfiguration configuration) : base(dbContext, httpContextAccessor) + { + _dbContext = dbContext; + _httpContextAccessor = httpContextAccessor; + _repositoryNoti = repositoryNoti; + _configuration = configuration; + URL = _configuration["MAIN_PAGE"]; + } + + #region " Properties " + private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; + private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; + private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + + #endregion + + //āļ›āļĨāļ”āļ­āļ­āļ + public async Task NotifyDischarge() + { + var cronjobNotis = await _dbContext.Set() + .Include(x => x.Profile) + .ThenInclude(x => x.Prefix) + .Where(x => x.Date != null && x.Date.Value.Date == DateTime.Now.Date) + .AsQueryable() + .ToListAsync(); + foreach (var cronjobNoti in cronjobNotis) + { + cronjobNoti.Profile.IsLeave = true; + cronjobNoti.Profile.LeaveReason = "DISCHARGE"; + cronjobNoti.Profile.LeaveDate = DateTime.Now; + } + await _dbContext.SaveChangesAsync(); + } + + //āđ„āļĨāđˆāļ­āļ­āļ + public async Task NotifyExpulsion() + { + var cronjobNotis = await _dbContext.Set() + .Include(x => x.Profile) + .ThenInclude(x => x.Prefix) + .Where(x => x.Date != null && x.Date.Value.Date == DateTime.Now.Date) + .AsQueryable() + .ToListAsync(); + foreach (var cronjobNoti in cronjobNotis) + { + cronjobNoti.Profile.IsLeave = true; + cronjobNoti.Profile.LeaveReason = "DISMISS"; + cronjobNoti.Profile.LeaveDate = DateTime.Now; + } + await _dbContext.SaveChangesAsync(); + } + + //āđƒāļŦāđ‰āļ­āļ­āļ + public async Task NotifyOut() + { + var cronjobNotis = await _dbContext.Set() + //.Include(x => x.Profile) + //.ThenInclude(x => x.Prefix) + .Where(x => x.Date != null && x.Date.Value.Date == DateTime.Now.Date) + .AsQueryable() + .ToListAsync(); + await _dbContext.SaveChangesAsync(); + } + + //āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ + //public async Task ExecuteRetirement() + //{ + // var retirePeriodOfficer = await _dbContext.Set() + // .Include(x => x.RetirementRawProfiles.Where(y => y.Remove != "REMOVE")) + // .Where(x => x.Year == DateTime.Now.Year) + // .Where(x => x.Type.Trim().ToUpper().Contains("OFFICER")) + // .FirstOrDefaultAsync(); + + // if (retirePeriodOfficer == null) + // return; + + // var body = new + // { + // data = retirePeriodOfficer.RetirementRawProfiles + // .Select(x => new + // { + // profileId = x.profileId + // }) + // .ToList() + // }; + + // //āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ + // //var apiUrl = $"{_configuration["API"]}/org/unauthorize/retirement"; + // using (var client = new HttpClient()) + // { + // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + + // var jsonBody = JsonConvert.SerializeObject(body); + // var content = new StringContent(jsonBody, Encoding.UTF8, "application/json"); + + // var _req = new HttpRequestMessage(HttpMethod.Patch, apiUrl) + // { + // Content = content + // }; + // var response = await client.SendAsync(_req); + // var responseContent = await response.Content.ReadAsStringAsync(); + // if (!response.IsSuccessStatusCode) + // { + + // } + // } + //} + + public void TestMethod() + { + return; + } + public async Task GetByIdAsync(Guid id) + { + try + { + var data = await _dbContext.Set().AsQueryable() + .AsNoTracking() + .Include(x => x.Approvers) + .FirstOrDefaultAsync(x => x.Id == id); + + return data; + } + catch + { + throw; + } + + } + public async Task GetByIdWithTrackingAsync(Guid id) + { + var data = await _dbContext.Set().AsQueryable() + //.AsNoTracking() + .Include(x => x.Approvers) + .FirstOrDefaultAsync(x => x.Id == id); + + return data; + } + public async Task OfficerApproveRetirementResignEmployee(Guid id) + { + var rawData = await GetByIdAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + rawData.Status = "PENDING"; + rawData.ApproveStep = "st2"; + + await _dbContext.SaveChangesAsync(); + + // TODO: Send notification to 1st Commander + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "COMMANDER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-employee-detail/{id}", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + + public async Task CommanderApproveRetirementResignEmployee(Guid id, string reason) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + + var rawData = await GetByIdWithTrackingAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + if (rawData.ApproveStep != "st2") + { + throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + } + + // check commander approve + //var approvers = await _dbContext.Set() + // //.AsNoTracking() + // .Include(x => x.RetirementResignEmployee) + // .Where(x => x.RetirementResignEmployee.Id == id && x.ApproveType == "COMMANDER") + // .OrderBy(x => x.Seq) + // .ToListAsync(); + + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + var maxSeq = approvers.Max(x => x.Seq); + + //var data = await _dbContext.Set() + // .AsNoTracking() + // .Include(x => x.RetirementResignEmployee) + // .Where(x => x.RetirementResignEmployee.Id == id && x.KeycloakId == userId && x.ApproveType == "COMMANDER") + // .FirstOrDefaultAsync(); + + //if(data != null) + //{ + // data.ApproveStatus = "APPROVE"; + // data.Comment = reason; + + // data.LastUpdatedAt = DateTime.Now; + // data.LastUpdateUserId = userId.ToString("D"); + // data.LastUpdateFullName = FullName ?? ""; + + // await _dbContext.SaveChangesAsync(); + //} + + approver.ApproveStatus = "APPROVE"; + approver.Comment = reason; + + //await _dbContext.SaveChangesAsync(); + + if (approver.Seq != maxSeq) + { + rawData.Status = "PENDING"; + await _dbContext.SaveChangesAsync(); + + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-employee-detail/{id}", + }; + _dbContext.Set().Add(noti); + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "PENDING"; + // rawData.LeaveComment = reason; + rawData.ApproveStep = "st3"; + + await _dbContext.SaveChangesAsync(); + + // TODO: Send notification to 1st Approver + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-employee-detail/{id}", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + } + + public async Task CommanderRejectRetirementResignEmployee(Guid id, string reason) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + + var rawData = await GetByIdWithTrackingAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + if (rawData.ApproveStep != "st2") + { + throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + } + + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + + approver.ApproveStatus = "REJECT"; + approver.Comment = reason; + + if (approver.Seq != maxSeq) + { + + + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-employee-detail/{id}", + }; + _dbContext.Set().Add(noti); + await _dbContext.SaveChangesAsync(); + + rawData.Status = "PENDING"; + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "PENDING"; + // rawData.LeaveComment = reason; + rawData.ApproveStep = "st3"; + + await _dbContext.SaveChangesAsync(); + + // TODO: Send notification to 1st Approver + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-employee-detail/{id}", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + + } + + public async Task ApproveRetirementResignEmployee(Guid id, string reason) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + var rawData = await GetByIdWithTrackingAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + if (rawData.ApproveStep != "st3") + { + throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + } + + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + + approver.ApproveStatus = "APPROVE"; + approver.Comment = reason; + + if (approver.Seq != maxSeq) + { + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "APPROVE"; + // rawData.LeaveDirectorComment = reason; + rawData.ApproveStep = "st4"; + + await _dbContext.SaveChangesAsync(); + + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", + ReceiverUserId = Guid.Parse(rawData.profileId), + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti); + await _dbContext.SaveChangesAsync(); + } + + } + + public async Task RejectRetirementResignEmployee(Guid id, string reason) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + var rawData = await GetByIdWithTrackingAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + if (rawData.ApproveStep != "st3") + { + throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + } + + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + + approver.ApproveStatus = "REJECT"; + approver.Comment = reason; + + if (approver.Seq != maxSeq) + { + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "REJECT"; + // rawData.LeaveDirectorComment = reason; + rawData.ApproveStep = "st5"; + + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī \r\nāđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļ{reason}", + ReceiverUserId = Guid.Parse(rawData.profileId), + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti); + await _dbContext.SaveChangesAsync(); + } + } + + } +} diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 88e49145..52d44476 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -1,11 +1,14 @@ ïŧŋusing BMA.EHR.Application.Common.Interfaces; using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Domain.Models.Notifications; using BMA.EHR.Domain.Models.Retirement; +using BMA.EHR.Domain.Shared; using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Newtonsoft.Json; using System.Net.Http.Headers; +using System.Net.Http.Json; using System.Security.Claims; using System.Text; @@ -17,15 +20,18 @@ namespace BMA.EHR.Application.Repositories private readonly IHttpContextAccessor _httpContextAccessor; private readonly NotificationRepository _repositoryNoti; private readonly IConfiguration _configuration; + private readonly string URL = string.Empty; public RetirementRepository(IApplicationDBContext dbContext, NotificationRepository repositoryNoti, IHttpContextAccessor httpContextAccessor, + UserProfileRepository userProfileRepository, IConfiguration configuration) : base(dbContext, httpContextAccessor) { _dbContext = dbContext; _httpContextAccessor = httpContextAccessor; _repositoryNoti = repositoryNoti; _configuration = configuration; + URL = _configuration["MAIN_PAGE"]; } #region " Properties " @@ -132,5 +138,422 @@ namespace BMA.EHR.Application.Repositories { return; } + public async Task GetByIdAsync(Guid id) + { + try + { + var data = await _dbContext.Set().AsQueryable() + .AsNoTracking() + .Include(x => x.Approvers) + .FirstOrDefaultAsync(x => x.Id == id); + + return data; + } + catch + { + throw; + } + + } + public async Task GetByIdWithTrackingAsync(Guid id) + { + var data = await _dbContext.Set().AsQueryable() + //.AsNoTracking() + .Include(x => x.Approvers) + .FirstOrDefaultAsync(x => x.Id == id); + + return data; + } + public async Task OfficerApproveRetirementResign(Guid id) + { + var rawData = await GetByIdAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + rawData.Status = "PENDING"; + rawData.ApproveStep = "st2"; + + await _dbContext.SaveChangesAsync(); + + // TODO: Send notification to 1st Commander + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "COMMANDER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + + public async Task CommanderApproveRetirementResign(Guid id, string reason) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + + var rawData = await GetByIdWithTrackingAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + if (rawData.ApproveStep != "st2") + { + throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + } + + // check commander approve + //var approvers = await _dbContext.Set() + // //.AsNoTracking() + // .Include(x => x.RetirementResign) + // .Where(x => x.RetirementResign.Id == id && x.ApproveType == "COMMANDER") + // .OrderBy(x => x.Seq) + // .ToListAsync(); + + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + var maxSeq = approvers.Max(x => x.Seq); + + //var data = await _dbContext.Set() + // .AsNoTracking() + // .Include(x => x.RetirementResign) + // .Where(x => x.RetirementResign.Id == id && x.KeycloakId == userId && x.ApproveType == "COMMANDER") + // .FirstOrDefaultAsync(); + + //if(data != null) + //{ + // data.ApproveStatus = "APPROVE"; + // data.Comment = reason; + + // data.LastUpdatedAt = DateTime.Now; + // data.LastUpdateUserId = userId.ToString("D"); + // data.LastUpdateFullName = FullName ?? ""; + + // await _dbContext.SaveChangesAsync(); + //} + + approver.ApproveStatus = "APPROVE"; + approver.Comment = reason; + + //await _dbContext.SaveChangesAsync(); + + if (approver.Seq != maxSeq) + { + rawData.Status = "PENDING"; + await _dbContext.SaveChangesAsync(); + + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(noti); + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "PENDING"; + // rawData.LeaveComment = reason; + rawData.ApproveStep = "st3"; + + await _dbContext.SaveChangesAsync(); + + // TODO: Send notification to 1st Approver + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + } + + public async Task CommanderRejectRetirementResign(Guid id, string reason) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + + var rawData = await GetByIdWithTrackingAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + if (rawData.ApproveStep != "st2") + { + throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + } + + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + + approver.ApproveStatus = "REJECT"; + approver.Comment = reason; + + if (approver.Seq != maxSeq) + { + + + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(noti); + await _dbContext.SaveChangesAsync(); + + rawData.Status = "PENDING"; + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "PENDING"; + // rawData.LeaveComment = reason; + rawData.ApproveStep = "st3"; + + await _dbContext.SaveChangesAsync(); + + // TODO: Send notification to 1st Approver + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + + } + + public async Task ApproveRetirementResign(Guid id, string reason) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + var rawData = await GetByIdWithTrackingAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + if (rawData.ApproveStep != "st3") + { + throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + } + + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + + approver.ApproveStatus = "APPROVE"; + approver.Comment = reason; + + if (approver.Seq != maxSeq) + { + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "APPROVE"; + // rawData.LeaveDirectorComment = reason; + rawData.ApproveStep = "st4"; + + await _dbContext.SaveChangesAsync(); + + if (rawData.profileId != null) + { + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", + ReceiverUserId = Guid.Parse(rawData.profileId), + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti); + } + await _dbContext.SaveChangesAsync(); + } + + } + + public async Task RejectRetirementResign(Guid id, string reason) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + var rawData = await GetByIdWithTrackingAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + if (rawData.ApproveStep != "st3") + { + throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + } + + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + + approver.ApproveStatus = "REJECT"; + approver.Comment = reason; + + if (approver.Seq != maxSeq) + { + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "REJECT"; + // rawData.LeaveDirectorComment = reason; + rawData.ApproveStep = "st5"; + + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī \r\nāđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļ{reason}", + ReceiverUserId = Guid.Parse(rawData.profileId), + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti); + await _dbContext.SaveChangesAsync(); + } + } + } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs index 312c297c..aecc1982 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs @@ -151,7 +151,12 @@ namespace BMA.EHR.Domain.Models.Retirement [Comment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old")] public string? posLevelNameOld { get; set; } + [Comment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī ")] + public string? ApproveStep { get; set; } = string.Empty; + + + public List Approvers { get; set; } = new(); public virtual List RetirementResignDocs { get; set; } = new List(); public virtual List RetirementResignDebtDocs { get; set; } = new List(); public virtual List RetirementResignCancels { get; set; } = new List(); diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignApprover.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignApprover.cs new file mode 100644 index 00000000..724f31e8 --- /dev/null +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignApprover.cs @@ -0,0 +1,29 @@ +ïŧŋusing BMA.EHR.Domain.Models.Base; +namespace BMA.EHR.Domain.Models.Retirement + +{ + public class RetirementResignApprover : EntityBase + { + public RetirementResign RetirementResign { get; set; } + + public int Seq { get; set; } = 0; + + public string Prefix { get; set; } = string.Empty; + + public string FirstName { get; set; } = string.Empty; + + public string LastName { get; set; } = string.Empty; + + public string PositionName { get; set; } = string.Empty; + + public Guid ProfileId { get; set; } = Guid.Empty; + + public Guid KeycloakId { get; set; } = Guid.Empty; + + public string ApproveStatus { get; set; } = string.Empty; + + public string Comment { get; set; } = string.Empty; + + public string? ApproveType { get; set; } = string.Empty; // āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē = commander, āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļī = Approver + } +} diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs index f7f519de..d9192a0e 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs @@ -132,5 +132,6 @@ namespace BMA.EHR.Domain.Models.Retirement public string? posLevelNameOld { get; set; } [Required, Comment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļąāļšāļĒāđ‰āļēāļĒ")] public virtual RetirementResign RetirementResign { get; set; } + public List Approvers { get; set; } = new(); } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignCancelApprover.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancelApprover.cs new file mode 100644 index 00000000..3dfe4158 --- /dev/null +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancelApprover.cs @@ -0,0 +1,29 @@ +ïŧŋusing BMA.EHR.Domain.Models.Base; +namespace BMA.EHR.Domain.Models.Retirement + +{ + public class RetirementResignCancelApprover : EntityBase + { + public RetirementResignCancel RetirementResignCancel { get; set; } + + public int Seq { get; set; } = 0; + + public string Prefix { get; set; } = string.Empty; + + public string FirstName { get; set; } = string.Empty; + + public string LastName { get; set; } = string.Empty; + + public string PositionName { get; set; } = string.Empty; + + public Guid ProfileId { get; set; } = Guid.Empty; + + public Guid KeycloakId { get; set; } = Guid.Empty; + + public string ApproveStatus { get; set; } = string.Empty; + + public string Comment { get; set; } = string.Empty; + + public string? ApproveType { get; set; } = string.Empty; // āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē = commander, āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļī = Approver + } +} diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs index 09d4faca..5616fe75 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs @@ -149,7 +149,11 @@ namespace BMA.EHR.Domain.Models.Retirement [Comment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old")] public string? posLevelNameOld { get; set; } + [Comment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī ")] + public string? ApproveStep { get; set; } = string.Empty; + + public List Approvers { get; set; } = new(); public virtual List RetirementResignEmployeeDocs { get; set; } = new List(); public virtual List RetirementResignEmployeeDebtDocs { get; set; } = new List(); public virtual List RetirementResignEmployeeCancels { get; set; } = new List(); diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeApprover.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeApprover.cs new file mode 100644 index 00000000..498e4f5e --- /dev/null +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeApprover.cs @@ -0,0 +1,29 @@ +ïŧŋusing BMA.EHR.Domain.Models.Base; +namespace BMA.EHR.Domain.Models.Retirement + +{ + public class RetirementResignEmployeeApprover : EntityBase + { + public RetirementResignEmployee RetirementResignEmployee { get; set; } + + public int Seq { get; set; } = 0; + + public string Prefix { get; set; } = string.Empty; + + public string FirstName { get; set; } = string.Empty; + + public string LastName { get; set; } = string.Empty; + + public string PositionName { get; set; } = string.Empty; + + public Guid ProfileId { get; set; } = Guid.Empty; + + public Guid KeycloakId { get; set; } = Guid.Empty; + + public string ApproveStatus { get; set; } = string.Empty; + + public string Comment { get; set; } = string.Empty; + + public string? ApproveType { get; set; } = string.Empty; // āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē = commander, āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļī = Approver + } +} diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancel.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancel.cs index 54be28ce..9307492b 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancel.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancel.cs @@ -130,5 +130,6 @@ namespace BMA.EHR.Domain.Models.Retirement public string? posLevelNameOld { get; set; } [Required, Comment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļąāļšāļĒāđ‰āļēāļĒ")] public virtual RetirementResignEmployee RetirementResignEmployee { get; set; } + public List Approvers { get; set; } = new(); } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancelApprover.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancelApprover.cs new file mode 100644 index 00000000..cc6d77f6 --- /dev/null +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancelApprover.cs @@ -0,0 +1,29 @@ +ïŧŋusing BMA.EHR.Domain.Models.Base; +namespace BMA.EHR.Domain.Models.Retirement + +{ + public class RetirementResignEmployeeCancelApprover : EntityBase + { + public RetirementResignEmployeeCancel RetirementResignEmployeeCancel { get; set; } + + public int Seq { get; set; } = 0; + + public string Prefix { get; set; } = string.Empty; + + public string FirstName { get; set; } = string.Empty; + + public string LastName { get; set; } = string.Empty; + + public string PositionName { get; set; } = string.Empty; + + public Guid ProfileId { get; set; } = Guid.Empty; + + public Guid KeycloakId { get; set; } = Guid.Empty; + + public string ApproveStatus { get; set; } = string.Empty; + + public string Comment { get; set; } = string.Empty; + + public string? ApproveType { get; set; } = string.Empty; // āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē = commander, āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļī = Approver + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250507065811_update_table_retirement_add_approver.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250507065811_update_table_retirement_add_approver.Designer.cs new file mode 100644 index 00000000..0129f5b5 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250507065811_update_table_retirement_add_approver.Designer.cs @@ -0,0 +1,20595 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250507065811_update_table_retirement_add_approver")] + partial class update_table_retirement_add_approver + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReclaimDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.Property("ReclaimOrganization") + .HasColumnType("longtext"); + + b.Property("ReclaimOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("ReclaimReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaReclaimProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignCancelId"); + + b.ToTable("RetirementResignCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignEmployeeCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeCancelId"); + + b.ToTable("RetirementResignEmployeeCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("Approvers") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", "RetirementResignCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", "RetirementResignEmployeeCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployeeCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Navigation("Approvers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Navigation("Approvers"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250507065811_update_table_retirement_add_approver.cs b/BMA.EHR.Infrastructure/Migrations/20250507065811_update_table_retirement_add_approver.cs new file mode 100644 index 00000000..816d2ddb --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250507065811_update_table_retirement_add_approver.cs @@ -0,0 +1,259 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class update_table_retirement_add_approver : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "ApproveStep", + table: "RetirementResigns", + type: "longtext", + nullable: true, + comment: "step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "ApproveStep", + table: "RetirementResignEmployees", + type: "longtext", + nullable: true, + comment: "step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "RetirementResignApprovers", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + RetirementResignId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + Seq = table.Column(type: "int", nullable: false), + Prefix = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + FirstName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + LastName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + PositionName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ProfileId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + KeycloakId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + ApproveStatus = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Comment = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ApproveType = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_RetirementResignApprovers", x => x.Id); + table.ForeignKey( + name: "FK_RetirementResignApprovers_RetirementResigns_RetirementResign~", + column: x => x.RetirementResignId, + principalTable: "RetirementResigns", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "RetirementResignCancelApprovers", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + RetirementResignCancelId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + Seq = table.Column(type: "int", nullable: false), + Prefix = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + FirstName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + LastName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + PositionName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ProfileId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + KeycloakId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + ApproveStatus = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Comment = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ApproveType = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_RetirementResignCancelApprovers", x => x.Id); + table.ForeignKey( + name: "FK_RetirementResignCancelApprovers_RetirementResignCancels_Reti~", + column: x => x.RetirementResignCancelId, + principalTable: "RetirementResignCancels", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "RetirementResignEmployeeApprovers", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + RetirementResignEmployeeId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + Seq = table.Column(type: "int", nullable: false), + Prefix = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + FirstName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + LastName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + PositionName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ProfileId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + KeycloakId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + ApproveStatus = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Comment = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ApproveType = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_RetirementResignEmployeeApprovers", x => x.Id); + table.ForeignKey( + name: "FK_RetirementResignEmployeeApprovers_RetirementResignEmployees_~", + column: x => x.RetirementResignEmployeeId, + principalTable: "RetirementResignEmployees", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "RetirementResignEmployeeCancelApprovers", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + RetirementResignEmployeeCancelId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + Seq = table.Column(type: "int", nullable: false), + Prefix = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + FirstName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + LastName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + PositionName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ProfileId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + KeycloakId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + ApproveStatus = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Comment = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ApproveType = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_RetirementResignEmployeeCancelApprovers", x => x.Id); + table.ForeignKey( + name: "FK_RetirementResignEmployeeCancelApprovers_RetirementResignEmpl~", + column: x => x.RetirementResignEmployeeCancelId, + principalTable: "RetirementResignEmployeeCancels", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateIndex( + name: "IX_RetirementResignApprovers_RetirementResignId", + table: "RetirementResignApprovers", + column: "RetirementResignId"); + + migrationBuilder.CreateIndex( + name: "IX_RetirementResignCancelApprovers_RetirementResignCancelId", + table: "RetirementResignCancelApprovers", + column: "RetirementResignCancelId"); + + migrationBuilder.CreateIndex( + name: "IX_RetirementResignEmployeeApprovers_RetirementResignEmployeeId", + table: "RetirementResignEmployeeApprovers", + column: "RetirementResignEmployeeId"); + + migrationBuilder.CreateIndex( + name: "IX_RetirementResignEmployeeCancelApprovers_RetirementResignEmpl~", + table: "RetirementResignEmployeeCancelApprovers", + column: "RetirementResignEmployeeCancelId"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "RetirementResignApprovers"); + + migrationBuilder.DropTable( + name: "RetirementResignCancelApprovers"); + + migrationBuilder.DropTable( + name: "RetirementResignEmployeeApprovers"); + + migrationBuilder.DropTable( + name: "RetirementResignEmployeeCancelApprovers"); + + migrationBuilder.DropColumn( + name: "ApproveStep", + table: "RetirementResigns"); + + migrationBuilder.DropColumn( + name: "ApproveStep", + table: "RetirementResignEmployees"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 74ede2a1..56f69ea7 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -16764,6 +16764,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + b.Property("CancelReason") .HasColumnType("longtext") .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); @@ -17059,6 +17063,99 @@ namespace BMA.EHR.Infrastructure.Migrations b.ToTable("RetirementResigns"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignApprovers"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => { b.Property("Id") @@ -17352,6 +17449,99 @@ namespace BMA.EHR.Infrastructure.Migrations b.ToTable("RetirementResignCancels"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignCancelId"); + + b.ToTable("RetirementResignCancelApprovers"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => { b.Property("Id") @@ -17497,6 +17687,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + b.Property("CancelReason") .HasColumnType("longtext") .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); @@ -17788,6 +17982,99 @@ namespace BMA.EHR.Infrastructure.Migrations b.ToTable("RetirementResignEmployees"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeApprovers"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => { b.Property("Id") @@ -18077,6 +18364,99 @@ namespace BMA.EHR.Infrastructure.Migrations b.ToTable("RetirementResignEmployeeCancels"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignEmployeeCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeCancelId"); + + b.ToTable("RetirementResignEmployeeCancelApprovers"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => { b.Property("Id") @@ -19762,6 +20142,17 @@ namespace BMA.EHR.Infrastructure.Migrations b.Navigation("RetirementPeriod"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("Approvers") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => { b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") @@ -19773,6 +20164,17 @@ namespace BMA.EHR.Infrastructure.Migrations b.Navigation("RetirementResign"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", "RetirementResignCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignCancel"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => { b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") @@ -19811,6 +20213,17 @@ namespace BMA.EHR.Infrastructure.Migrations b.Navigation("RetirementResign"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => { b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") @@ -19822,6 +20235,17 @@ namespace BMA.EHR.Infrastructure.Migrations b.Navigation("RetirementResignEmployee"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", "RetirementResignEmployeeCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployeeCancel"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => { b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") @@ -20133,6 +20557,8 @@ namespace BMA.EHR.Infrastructure.Migrations modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => { + b.Navigation("Approvers"); + b.Navigation("RetirementResignCancels"); b.Navigation("RetirementResignDebtDocs"); @@ -20140,14 +20566,26 @@ namespace BMA.EHR.Infrastructure.Migrations b.Navigation("RetirementResignDocs"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Navigation("Approvers"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => { + b.Navigation("Approvers"); + b.Navigation("RetirementResignEmployeeCancels"); b.Navigation("RetirementResignEmployeeDebtDocs"); b.Navigation("RetirementResignEmployeeDocs"); }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Navigation("Approvers"); + }); #pragma warning restore 612, 618 } } diff --git a/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs b/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs index 482601ae..34ff0c78 100644 --- a/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs +++ b/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs @@ -334,6 +334,10 @@ namespace BMA.EHR.Infrastructure.Persistence public DbSet RetirementDeceaseds { get; set; } public DbSet RetirementDeceasedNotis { get; set; } public DbSet RetirementResigns { get; set; } + public DbSet RetirementResignApprovers { get; set; } + public DbSet RetirementResignCancelApprovers { get; set; } + public DbSet RetirementResignEmployeeApprovers { get; set; } + public DbSet RetirementResignEmployeeCancelApprovers { get; set; } public DbSet RetirementResignCancels { get; set; } public DbSet RetirementResignDocs { get; set; } public DbSet RetirementResignDebtDocs { get; set; } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index c1351f3a..3154c50d 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -264,6 +264,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.CancelReason, p.IsActive, p.CreatedAt, + p.ApproveStep, }) .ToListAsync(); @@ -422,6 +423,10 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsNoBurden, p.IsDiscipline, p.CancelReason, + p.ApproveStep, + Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + KeycloakUserId = p.CreatedUserId, RetirementResignCancels = p.RetirementResignCancels.FirstOrDefault(), RetirementResignDocs = p.RetirementResignDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), }) @@ -501,6 +506,10 @@ namespace BMA.EHR.Retirement.Service.Controllers data.IsNoBurden, data.IsDiscipline, data.CancelReason, + data.KeycloakUserId, + data.Approvers, + data.Commanders, + data.ApproveStep, idCancel = data.RetirementResignCancels?.Id ?? null, statusCancel = data.RetirementResignCancels?.Status ?? null, statusMain = data.Status == "CANCEL" ? "DONECANCEL" : data.Status, @@ -587,6 +596,9 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsNoBurden, p.IsDiscipline, p.CancelReason, + Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + KeycloakUserId = p.CreatedUserId, idMain = p.RetirementResign.Id, statusMain = p.RetirementResign.Status, RetirementResignDocs = p.RetirementResign.RetirementResignDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), @@ -669,6 +681,9 @@ namespace BMA.EHR.Retirement.Service.Controllers data.CancelReason, data.idMain, data.statusMain, + data.KeycloakUserId, + data.Approvers, + data.Commanders, statusCancel = data.Status, Docs = retirementResignDocs, }; @@ -2537,6 +2552,228 @@ namespace BMA.EHR.Retirement.Service.Controllers throw; } } + + /// + /// āđ€āļžāļīāđˆāļĄāļĢāļēāļĒāļŠāļīāļ·āđˆāļ­āļœāļđāđ‰āļ­āļ™āļļāļĄāļąāļ•āļī āļŦāļĢāļ·āļ­ āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("officer/add-resign/{type}/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> AddApprover(string type, Guid id, [FromBody] List req) + { + try + { + var retirement = await _context.RetirementResigns + .Where(x => x.Id == id) + .FirstOrDefaultAsync(); + if (retirement == null) + { + return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); + } + + var data = await _context.RetirementResignApprovers + .Where(x => x.RetirementResign.Id == id && x.ApproveType.ToUpper() == type.ToUpper()) + .ToListAsync(); + _context.RemoveRange(data); + + await _context.SaveChangesAsync(); + + var addList = new List(); + + foreach (var r in req) + { + addList.Add(new RetirementResignApprover + { + Seq = r.Seq, + RetirementResign = retirement, + Prefix = r.Prefix, + FirstName = r.FirstName, + LastName = r.LastName, + PositionName = r.PositionName, + ProfileId = r.ProfileId, + KeycloakId = r.KeycloakId, + ApproveStatus = "PENDING", + ApproveType = type.Trim().ToUpper() + }); + } + await _context.AddRangeAsync(addList); + await _context.SaveChangesAsync(); + + return Success(); + + } + catch (Exception ex) + { + return Error(ex); + } + } + + /// + /// LV2_013 - āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("admin/approve/officer/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> OfficerApproveRetirementResignAsync(Guid id) + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.OfficerApproveRetirementResign(id); + + return Success(); + } + + /// + /// LV2_015 - āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē(ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin/approve/comander/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> CommanderApproveRetirementResignAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.CommanderApproveRetirementResign(id, req.Reason ?? ""); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + + /// + /// āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē(ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin/reject/comander/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> CommanderRejectRetirementResignAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.CommanderRejectRetirementResign(id, req.Reason ?? ""); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + + /// + /// LV2_016 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin/approve/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> ApproveRetirementResignAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.ApproveRetirementResign(id, req.Reason ?? ""); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + + /// + /// LV2_017 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin/reject/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> RejectRetirementResignAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.RejectRetirementResign(id, req.Reason ?? ""); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } #endregion } } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index c7940960..5f5e53ca 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -25,7 +25,7 @@ namespace BMA.EHR.Retirement.Service.Controllers [SwaggerTag("āļĢāļ°āļšāļšāļĨāļēāļ­āļ­āļāļĨāļđāļāļˆāđ‰āļēāļ‡")] public class RetirementResignEmployeeEmployeeController : BaseController { - private readonly RetirementRepository _repository; + private readonly RetirementEmployeeRepository _repository; private readonly NotificationRepository _repositoryNoti; private readonly ApplicationDBContext _context; private readonly MinIOService _documentService; @@ -33,7 +33,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private readonly IConfiguration _configuration; private readonly PermissionRepository _permission; - public RetirementResignEmployeeEmployeeController(RetirementRepository repository, + public RetirementResignEmployeeEmployeeController(RetirementEmployeeRepository repository, NotificationRepository repositoryNoti, ApplicationDBContext context, MinIOService documentService, @@ -203,6 +203,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.CancelReason, p.IsActive, p.CreatedAt, + p.ApproveStep, }) .ToListAsync(); @@ -361,6 +362,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsNoBurden, p.IsDiscipline, p.CancelReason, + p.ApproveStep, RetirementResignEmployeeCancels = p.RetirementResignEmployeeCancels.FirstOrDefault(), RetirementResignEmployeeDocs = p.RetirementResignEmployeeDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), }) @@ -440,6 +442,7 @@ namespace BMA.EHR.Retirement.Service.Controllers data.IsNoBurden, data.IsDiscipline, data.CancelReason, + data.ApproveStep, idCancel = data.RetirementResignEmployeeCancels?.Id ?? Guid.Empty, statusCancel = data.RetirementResignEmployeeCancels?.Status ?? null, statusMain = data.Status, @@ -1933,5 +1936,227 @@ namespace BMA.EHR.Retirement.Service.Controllers } return Success(); } + + /// + /// āđ€āļžāļīāđˆāļĄāļĢāļēāļĒāļŠāļīāļ·āđˆāļ­āļœāļđāđ‰āļ­āļ™āļļāļĄāļąāļ•āļī āļŦāļĢāļ·āļ­ āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("officer/add-resign/{type}/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> AddApprover(string type, Guid id, [FromBody] List req) + { + try + { + var retirement = await _context.RetirementResignEmployees + .Where(x => x.Id == id) + .FirstOrDefaultAsync(); + if (retirement == null) + { + return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); + } + + var data = await _context.RetirementResignEmployeeApprovers + .Where(x => x.RetirementResignEmployee.Id == id && x.ApproveType.ToUpper() == type.ToUpper()) + .ToListAsync(); + _context.RemoveRange(data); + + await _context.SaveChangesAsync(); + + var addList = new List(); + + foreach (var r in req) + { + addList.Add(new RetirementResignEmployeeApprover + { + Seq = r.Seq, + RetirementResignEmployee = retirement, + Prefix = r.Prefix, + FirstName = r.FirstName, + LastName = r.LastName, + PositionName = r.PositionName, + ProfileId = r.ProfileId, + KeycloakId = r.KeycloakId, + ApproveStatus = "PENDING", + ApproveType = type.Trim().ToUpper() + }); + } + await _context.AddRangeAsync(addList); + await _context.SaveChangesAsync(); + + return Success(); + + } + catch (Exception ex) + { + return Error(ex); + } + } + + /// + /// LV2_013 - āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("admin/approve/officer/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> OfficerApproveRetirementResignEmployeeAsync(Guid id) + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.OfficerApproveRetirementResignEmployee(id); + + return Success(); + } + + /// + /// LV2_015 - āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē(ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin/approve/comander/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> CommanderApproveRetirementResignEmployeeAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.CommanderApproveRetirementResignEmployee(id, req.Reason ?? ""); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + + /// + /// āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē(ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin/reject/comander/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> CommanderRejectRetirementResignEmployeeAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.CommanderRejectRetirementResignEmployee(id, req.Reason ?? ""); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + + /// + /// LV2_016 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin/approve/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> ApproveRetirementResignEmployeeAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.ApproveRetirementResignEmployee(id, req.Reason ?? ""); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + + /// + /// LV2_017 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin/reject/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> RejectRetirementResignEmployeeAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.RejectRetirementResignEmployee(id, req.Reason ?? ""); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } } } diff --git a/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproveDto.cs b/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproveDto.cs new file mode 100644 index 00000000..7e15bbf1 --- /dev/null +++ b/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproveDto.cs @@ -0,0 +1,8 @@ +ïŧŋ +namespace BMA.EHR.Retirement.Service.Requests +{ + public class RetirementRequestApproveDto + { + public string? Reason { get; set; } + } +} diff --git a/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproverDto.cs b/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproverDto.cs new file mode 100644 index 00000000..9c8141dc --- /dev/null +++ b/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproverDto.cs @@ -0,0 +1,28 @@ +ïŧŋusing Newtonsoft.Json; + +namespace BMA.EHR.Retirement.Service.Requests +{ + public class RetirementRequestApproverDto + { + [JsonProperty("seq")] + public int Seq { get; set; } = 0; + + [JsonProperty("prefix")] + public string Prefix { get; set; } = string.Empty; + + [JsonProperty("firstName")] + public string FirstName { get; set; } = string.Empty; + + [JsonProperty("lastName")] + public string LastName { get; set; } = string.Empty; + + [JsonProperty("positionName")] + public string PositionName { get; set; } = string.Empty; + + [JsonProperty("profileId")] + public Guid ProfileId { get; set; } = Guid.Empty; + + [JsonProperty("keycloakId")] + public Guid KeycloakId { get; set; } = Guid.Empty; + } +} diff --git a/BMA.EHR.Retirement.Service/appsettings.json b/BMA.EHR.Retirement.Service/appsettings.json index 18183333..52bf8792 100644 --- a/BMA.EHR.Retirement.Service/appsettings.json +++ b/BMA.EHR.Retirement.Service/appsettings.json @@ -1,42 +1,43 @@ { - "Serilog": { - "MinimumLevel": { - "Default": "Information", - "Override": { - "Microsoft": "Information", - "System": "Warning" - } - } - }, - "ElasticConfiguration": { - "Uri": "http://192.168.1.40:9200", - "IndexFormat": "bma-ehr-log-index", - "SystemName": "retirement" - }, - "AllowedHosts": "*", - "ConnectionStrings": { - //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - // "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" - "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", - "DisciplineConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_discipline;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" - }, - "Jwt": { - "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://id.frappet.synology.me/realms/hrms" - }, - "EPPlus": { - "ExcelPackage": { - "LicenseContext": "NonCommercial" - } - }, - "MinIO": { - "Endpoint": "https://s3.frappet.com/", - "AccessKey": "frappet", - "SecretKey": "P@ssw0rd", - "BucketName": "bma-recruit" - }, - "Protocol": "HTTPS", - "API": "https://bma-ehr.frappet.synology.me/api/v1", - "APIV2": "https://bma-ehr.frappet.synology.me/api/v2", - "API_KEY": "fKRL16yyEgbyTEJdsMw2h64tGSCmkW685PRtM3CygzX1JOSdptT9UJtpgWwKM8FybRTJups3GTFwj27ZRvlPdIkv3XgCoVJaD5LmR06ozuEPvCCRSdp2WFthg08V5xHc56fTPfZLpr1VmXrhd6dvYhHIqKkQUJR02Rlkss11cLRWEQOssEFVA4xdu2J5DIRO1EM5m7wRRvEwcDB4mYRXD9HH52SMq6iYqUWEWsMwLdbk7QW9yYESUEuzMW5gWrb6vIeWZxJV5bTz1PcWUyR7eO9Fyw1F5DiQYc9JgzTC1mW7cv31fEtTtrfbJYKIb5EbWilqIEUKC6A0UKBDDek35ML0006cqRVm0pvdOH6jeq7VQyYrhdXe59dBEyhYGUIfozoVBvW7Up4QBuOMjyPjSqJPlMBKwaseptfrblxQV1AOOivSBpf1ZcQyOZ8JktRtKUDSuXsmG0lsXwFlI3JCeSHdpVdgZWFYcJPegqfrB6KotR02t9AVkpLs1ZWrixwz" -} \ No newline at end of file + "Serilog": { + "MinimumLevel": { + "Default": "Information", + "Override": { + "Microsoft": "Information", + "System": "Warning" + } + } + }, + "ElasticConfiguration": { + "Uri": "http://192.168.1.40:9200", + "IndexFormat": "bma-ehr-log-index", + "SystemName": "retirement" + }, + "AllowedHosts": "*", + "ConnectionStrings": { + //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", + // "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + "DisciplineConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=hrms_discipline;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + }, + "Jwt": { + "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", + "Issuer": "https://id.frappet.synology.me/realms/hrms" + }, + "EPPlus": { + "ExcelPackage": { + "LicenseContext": "NonCommercial" + } + }, + "MinIO": { + "Endpoint": "https://s3.frappet.com/", + "AccessKey": "frappet", + "SecretKey": "P@ssw0rd", + "BucketName": "bma-recruit" + }, + "Protocol": "HTTPS", + "MAIN_PAGE": "https://bma-ehr.frappet.synology.me", + "API": "https://bma-ehr.frappet.synology.me/api/v1", + "APIV2": "https://bma-ehr.frappet.synology.me/api/v2", + "API_KEY": "fKRL16yyEgbyTEJdsMw2h64tGSCmkW685PRtM3CygzX1JOSdptT9UJtpgWwKM8FybRTJups3GTFwj27ZRvlPdIkv3XgCoVJaD5LmR06ozuEPvCCRSdp2WFthg08V5xHc56fTPfZLpr1VmXrhd6dvYhHIqKkQUJR02Rlkss11cLRWEQOssEFVA4xdu2J5DIRO1EM5m7wRRvEwcDB4mYRXD9HH52SMq6iYqUWEWsMwLdbk7QW9yYESUEuzMW5gWrb6vIeWZxJV5bTz1PcWUyR7eO9Fyw1F5DiQYc9JgzTC1mW7cv31fEtTtrfbJYKIb5EbWilqIEUKC6A0UKBDDek35ML0006cqRVm0pvdOH6jeq7VQyYrhdXe59dBEyhYGUIfozoVBvW7Up4QBuOMjyPjSqJPlMBKwaseptfrblxQV1AOOivSBpf1ZcQyOZ8JktRtKUDSuXsmG0lsXwFlI3JCeSHdpVdgZWFYcJPegqfrB6KotR02t9AVkpLs1ZWrixwz" +} From 48baf99adf99a5fbc57f025d5c382e01ed0968f4 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 7 May 2025 14:23:39 +0700 Subject: [PATCH 285/879] =?UTF-8?q?fix=20#1511=20=E0=B9=81=E0=B8=A5?= =?UTF-8?q?=E0=B8=B0=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5=E0=B9=88=E0=B8=A2?= =?UTF-8?q?=E0=B8=99=20Env=20=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=20VITE=5FURL=5FMGT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Leaves/LeaveRequests/LeaveRequestRepository.cs | 6 ++++-- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 4 ++-- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 4 ++-- BMA.EHR.Leave/appsettings.json | 1 + 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 886248a5..8ecec94a 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -57,7 +57,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests _emailSenderService = emailSenderService; _appDbContext = appDbContext; - URL = (_configuration["API"]).Replace("/api/v1", ""); + URL = (_configuration["VITE_URL_MGT"]).Replace("/api/v1", ""); + Console.WriteLine($"URL : {URL}"); _minIOService = minIOService; _leaveBeginningRepository = leaveBeginningRepository; } @@ -478,10 +479,11 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests return data; } - public async Task GetLastLeaveRequestByTypeForUserAsync(Guid keycloakUserId, Guid leaveTypeId) + public async Task GetLastLeaveRequestByTypeForUserAsync(Guid keycloakUserId, Guid leaveTypeId,DateTime beforeDate) { var data = await _dbContext.Set().AsQueryable().AsNoTracking() .Include(x => x.Type) + .Where(x => x.LeaveStartDate.Date < beforeDate.Date) .Where(x => x.KeycloakUserId == keycloakUserId) .Where(x => x.Type.Id == leaveTypeId) .Where(x => x.LeaveStatus == "APPROVE") diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 33404792..adc3ba3c 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -152,7 +152,7 @@ namespace BMA.EHR.Leave.Service.Controllers var lastLeaveRequest = await _leaveRequestRepository.GetLastLeaveRequestByTypeForUserAsync(data.KeycloakUserId, - data.Type.Id); + data.Type.Id, data.LeaveStartDate.Date); //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); //var approver = string.Empty; @@ -593,7 +593,7 @@ namespace BMA.EHR.Leave.Service.Controllers child3 = profileLeave.Child3 == null ? "" : profileLeave.Child3!.ToThaiNumber(), child4 = profileLeave.Child4 == null ? "" : profileLeave.Child4!.ToThaiNumber(), - positions = profileLeave.Positions.Select(x => new + positions = profileLeave.Positions.Select(x => new { positionName = x.PositionName == null ? "" : x.PositionName.ToThaiNumber(), dateStart = x.DateStart.ToThaiShortDate().ToThaiNumber(), diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 9540e3cf..3c97765e 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1405,7 +1405,7 @@ namespace BMA.EHR.Leave.Service.Controllers var lastLeaveRequest = await _leaveRequestRepository.GetLastLeaveRequestByTypeForUserAsync(rawData.KeycloakUserId, - rawData.Type.Id); + rawData.Type.Id, rawData.LeaveStartDate.Date); var sumLeave = rawData.LeaveStartDate.DiffDay(rawData.LeaveEndDate); var sumHoliday = await _holidayRepository.GetHolidayCountAsync(rawData.LeaveStartDate, rawData.LeaveEndDate, category); @@ -2172,7 +2172,7 @@ namespace BMA.EHR.Leave.Service.Controllers var lastLeaveRequest = await _leaveRequestRepository.GetLastLeaveRequestByTypeForUserAsync(rawData.KeycloakUserId, - rawData.Type.Id); + rawData.Type.Id, rawData.LeaveStartDate.Date); //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); //var approver = string.Empty; diff --git a/BMA.EHR.Leave/appsettings.json b/BMA.EHR.Leave/appsettings.json index 2e0134d0..ddecc56e 100644 --- a/BMA.EHR.Leave/appsettings.json +++ b/BMA.EHR.Leave/appsettings.json @@ -59,6 +59,7 @@ "MailFrom": "saraban.csc.rd@bangkok.go.th", "Port": "25" }, + "VITE_URL_MGT": "https://bma-ehr.frappet.synology.me", "API": "https://bma-ehr.frappet.synology.me/api/v1", //"API": "https://bma-hrms.bangkok.go.th/api/v1", "API_KEY": "fKRL16yyEgbyTEJdsMw2h64tGSCmkW685PRtM3CygzX1JOSdptT9UJtpgWwKM8FybRTJups3GTFwj27ZRvlPdIkv3XgCoVJaD5LmR06ozuEPvCCRSdp2WFthg08V5xHc56fTPfZLpr1VmXrhd6dvYhHIqKkQUJR02Rlkss11cLRWEQOssEFVA4xdu2J5DIRO1EM5m7wRRvEwcDB4mYRXD9HH52SMq6iYqUWEWsMwLdbk7QW9yYESUEuzMW5gWrb6vIeWZxJV5bTz1PcWUyR7eO9Fyw1F5DiQYc9JgzTC1mW7cv31fEtTtrfbJYKIb5EbWilqIEUKC6A0UKBDDek35ML0006cqRVm0pvdOH6jeq7VQyYrhdXe59dBEyhYGUIfozoVBvW7Up4QBuOMjyPjSqJPlMBKwaseptfrblxQV1AOOivSBpf1ZcQyOZ8JktRtKUDSuXsmG0lsXwFlI3JCeSHdpVdgZWFYcJPegqfrB6KotR02t9AVkpLs1ZWrixwz" From 95513f0e10c0ea20acc52fa10f2d8ca9975c018e Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 7 May 2025 15:16:04 +0700 Subject: [PATCH 286/879] set env page redirect --- .../Repositories/RetirementEmployeeRepository.cs | 10 +--------- .../Repositories/RetirementRepository.cs | 14 +------------- BMA.EHR.Retirement.Service/appsettings.json | 2 +- 3 files changed, 3 insertions(+), 23 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs index cab257c6..410e8dfd 100644 --- a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs @@ -31,7 +31,7 @@ namespace BMA.EHR.Application.Repositories _httpContextAccessor = httpContextAccessor; _repositoryNoti = repositoryNoti; _configuration = configuration; - URL = _configuration["MAIN_PAGE"]; + URL = _configuration["VITE_URL_MGT"]; } #region " Properties " @@ -266,7 +266,6 @@ namespace BMA.EHR.Application.Repositories if (approver.Seq != maxSeq) { rawData.Status = "PENDING"; - await _dbContext.SaveChangesAsync(); var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); @@ -287,7 +286,6 @@ namespace BMA.EHR.Application.Repositories // rawData.LeaveComment = reason; rawData.ApproveStep = "st3"; - await _dbContext.SaveChangesAsync(); // TODO: Send notification to 1st Approver var firstCommander = rawData.Approvers @@ -365,7 +363,6 @@ namespace BMA.EHR.Application.Repositories Payload = $"{URL}/retirement/resign-employee-detail/{id}", }; _dbContext.Set().Add(noti); - await _dbContext.SaveChangesAsync(); rawData.Status = "PENDING"; await _dbContext.SaveChangesAsync(); @@ -376,7 +373,6 @@ namespace BMA.EHR.Application.Repositories // rawData.LeaveComment = reason; rawData.ApproveStep = "st3"; - await _dbContext.SaveChangesAsync(); // TODO: Send notification to 1st Approver var firstCommander = rawData.Approvers @@ -452,8 +448,6 @@ namespace BMA.EHR.Application.Repositories }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); - - await _dbContext.SaveChangesAsync(); } else { @@ -461,8 +455,6 @@ namespace BMA.EHR.Application.Repositories // rawData.LeaveDirectorComment = reason; rawData.ApproveStep = "st4"; - await _dbContext.SaveChangesAsync(); - // Send Noti var noti = new Notification { diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 52d44476..60e24157 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -31,7 +31,7 @@ namespace BMA.EHR.Application.Repositories _httpContextAccessor = httpContextAccessor; _repositoryNoti = repositoryNoti; _configuration = configuration; - URL = _configuration["MAIN_PAGE"]; + URL = _configuration["VITE_URL_MGT"]; } #region " Properties " @@ -175,8 +175,6 @@ namespace BMA.EHR.Application.Repositories rawData.Status = "PENDING"; rawData.ApproveStep = "st2"; - await _dbContext.SaveChangesAsync(); - // TODO: Send notification to 1st Commander var firstCommander = rawData.Approvers .Where(x => x.ApproveType!.ToUpper() == "COMMANDER") @@ -266,7 +264,6 @@ namespace BMA.EHR.Application.Repositories if (approver.Seq != maxSeq) { rawData.Status = "PENDING"; - await _dbContext.SaveChangesAsync(); var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); @@ -287,8 +284,6 @@ namespace BMA.EHR.Application.Repositories // rawData.LeaveComment = reason; rawData.ApproveStep = "st3"; - await _dbContext.SaveChangesAsync(); - // TODO: Send notification to 1st Approver var firstCommander = rawData.Approvers .Where(x => x.ApproveType!.ToUpper() == "APPROVER") @@ -365,7 +360,6 @@ namespace BMA.EHR.Application.Repositories Payload = $"{URL}/retirement/resign-detail/{id}", }; _dbContext.Set().Add(noti); - await _dbContext.SaveChangesAsync(); rawData.Status = "PENDING"; await _dbContext.SaveChangesAsync(); @@ -376,8 +370,6 @@ namespace BMA.EHR.Application.Repositories // rawData.LeaveComment = reason; rawData.ApproveStep = "st3"; - await _dbContext.SaveChangesAsync(); - // TODO: Send notification to 1st Approver var firstCommander = rawData.Approvers .Where(x => x.ApproveType!.ToUpper() == "APPROVER") @@ -452,8 +444,6 @@ namespace BMA.EHR.Application.Repositories }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); - - await _dbContext.SaveChangesAsync(); } else { @@ -461,8 +451,6 @@ namespace BMA.EHR.Application.Repositories // rawData.LeaveDirectorComment = reason; rawData.ApproveStep = "st4"; - await _dbContext.SaveChangesAsync(); - if (rawData.profileId != null) { // Send Noti diff --git a/BMA.EHR.Retirement.Service/appsettings.json b/BMA.EHR.Retirement.Service/appsettings.json index 52bf8792..1ecc2d71 100644 --- a/BMA.EHR.Retirement.Service/appsettings.json +++ b/BMA.EHR.Retirement.Service/appsettings.json @@ -36,7 +36,7 @@ "BucketName": "bma-recruit" }, "Protocol": "HTTPS", - "MAIN_PAGE": "https://bma-ehr.frappet.synology.me", + "VITE_URL_MGT": "https://bma-ehr.frappet.synology.me", "API": "https://bma-ehr.frappet.synology.me/api/v1", "APIV2": "https://bma-ehr.frappet.synology.me/api/v2", "API_KEY": "fKRL16yyEgbyTEJdsMw2h64tGSCmkW685PRtM3CygzX1JOSdptT9UJtpgWwKM8FybRTJups3GTFwj27ZRvlPdIkv3XgCoVJaD5LmR06ozuEPvCCRSdp2WFthg08V5xHc56fTPfZLpr1VmXrhd6dvYhHIqKkQUJR02Rlkss11cLRWEQOssEFVA4xdu2J5DIRO1EM5m7wRRvEwcDB4mYRXD9HH52SMq6iYqUWEWsMwLdbk7QW9yYESUEuzMW5gWrb6vIeWZxJV5bTz1PcWUyR7eO9Fyw1F5DiQYc9JgzTC1mW7cv31fEtTtrfbJYKIb5EbWilqIEUKC6A0UKBDDek35ML0006cqRVm0pvdOH6jeq7VQyYrhdXe59dBEyhYGUIfozoVBvW7Up4QBuOMjyPjSqJPlMBKwaseptfrblxQV1AOOivSBpf1ZcQyOZ8JktRtKUDSuXsmG0lsXwFlI3JCeSHdpVdgZWFYcJPegqfrB6KotR02t9AVkpLs1ZWrixwz" From 9f3388eb2083aabd220e905183f280a5d64d4209 Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 7 May 2025 15:19:41 +0700 Subject: [PATCH 287/879] save retire --- .../RetirementEmployeeRepository.cs | 18 ++++-------------- .../Repositories/RetirementRepository.cs | 18 ++++-------------- 2 files changed, 8 insertions(+), 28 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs index 410e8dfd..0144117b 100644 --- a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs @@ -143,7 +143,6 @@ namespace BMA.EHR.Application.Repositories try { var data = await _dbContext.Set().AsQueryable() - .AsNoTracking() .Include(x => x.Approvers) .FirstOrDefaultAsync(x => x.Id == id); @@ -155,15 +154,6 @@ namespace BMA.EHR.Application.Repositories } } - public async Task GetByIdWithTrackingAsync(Guid id) - { - var data = await _dbContext.Set().AsQueryable() - //.AsNoTracking() - .Include(x => x.Approvers) - .FirstOrDefaultAsync(x => x.Id == id); - - return data; - } public async Task OfficerApproveRetirementResignEmployee(Guid id) { var rawData = await GetByIdAsync(id); @@ -200,7 +190,7 @@ namespace BMA.EHR.Application.Repositories var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var rawData = await GetByIdWithTrackingAsync(id); + var rawData = await GetByIdAsync(id); if (rawData == null) { throw new Exception(GlobalMessages.DataNotFound); @@ -312,7 +302,7 @@ namespace BMA.EHR.Application.Repositories var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var rawData = await GetByIdWithTrackingAsync(id); + var rawData = await GetByIdAsync(id); if (rawData == null) { throw new Exception(GlobalMessages.DataNotFound); @@ -398,7 +388,7 @@ namespace BMA.EHR.Application.Repositories // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var rawData = await GetByIdWithTrackingAsync(id); + var rawData = await GetByIdAsync(id); if (rawData == null) { throw new Exception(GlobalMessages.DataNotFound); @@ -474,7 +464,7 @@ namespace BMA.EHR.Application.Repositories // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var rawData = await GetByIdWithTrackingAsync(id); + var rawData = await GetByIdAsync(id); if (rawData == null) { throw new Exception(GlobalMessages.DataNotFound); diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 60e24157..dedac02a 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -143,7 +143,6 @@ namespace BMA.EHR.Application.Repositories try { var data = await _dbContext.Set().AsQueryable() - .AsNoTracking() .Include(x => x.Approvers) .FirstOrDefaultAsync(x => x.Id == id); @@ -155,15 +154,6 @@ namespace BMA.EHR.Application.Repositories } } - public async Task GetByIdWithTrackingAsync(Guid id) - { - var data = await _dbContext.Set().AsQueryable() - //.AsNoTracking() - .Include(x => x.Approvers) - .FirstOrDefaultAsync(x => x.Id == id); - - return data; - } public async Task OfficerApproveRetirementResign(Guid id) { var rawData = await GetByIdAsync(id); @@ -198,7 +188,7 @@ namespace BMA.EHR.Application.Repositories var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var rawData = await GetByIdWithTrackingAsync(id); + var rawData = await GetByIdAsync(id); if (rawData == null) { throw new Exception(GlobalMessages.DataNotFound); @@ -309,7 +299,7 @@ namespace BMA.EHR.Application.Repositories var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var rawData = await GetByIdWithTrackingAsync(id); + var rawData = await GetByIdAsync(id); if (rawData == null) { throw new Exception(GlobalMessages.DataNotFound); @@ -394,7 +384,7 @@ namespace BMA.EHR.Application.Repositories // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var rawData = await GetByIdWithTrackingAsync(id); + var rawData = await GetByIdAsync(id); if (rawData == null) { throw new Exception(GlobalMessages.DataNotFound); @@ -473,7 +463,7 @@ namespace BMA.EHR.Application.Repositories // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); - var rawData = await GetByIdWithTrackingAsync(id); + var rawData = await GetByIdAsync(id); if (rawData == null) { throw new Exception(GlobalMessages.DataNotFound); From f2a0b754b3094be756065846d6f589d3247603e2 Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 7 May 2025 15:24:24 +0700 Subject: [PATCH 288/879] retire add approver --- .../RetirementResignEmployeeController.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 5f5e53ca..000f8ed7 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -363,6 +363,9 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsDiscipline, p.CancelReason, p.ApproveStep, + Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + KeycloakUserId = p.CreatedUserId, RetirementResignEmployeeCancels = p.RetirementResignEmployeeCancels.FirstOrDefault(), RetirementResignEmployeeDocs = p.RetirementResignEmployeeDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), }) @@ -442,6 +445,9 @@ namespace BMA.EHR.Retirement.Service.Controllers data.IsNoBurden, data.IsDiscipline, data.CancelReason, + data.KeycloakUserId, + data.Approvers, + data.Commanders, data.ApproveStep, idCancel = data.RetirementResignEmployeeCancels?.Id ?? Guid.Empty, statusCancel = data.RetirementResignEmployeeCancels?.Status ?? null, @@ -528,6 +534,9 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsNoDebt, p.IsNoBurden, p.IsDiscipline, + Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + KeycloakUserId = p.CreatedUserId, p.CancelReason, idMain = p.RetirementResignEmployee.Id, statusMain = p.RetirementResignEmployee.Status, @@ -610,6 +619,9 @@ namespace BMA.EHR.Retirement.Service.Controllers data.CancelReason, data.idMain, data.statusMain, + data.KeycloakUserId, + data.Approvers, + data.Commanders, statusCancel = data.Status, Docs = retirementResignEmployeeDocs, }; From f3d74681f3b2adbdfaaf9f83b6b06a9de2fc1e6c Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 7 May 2025 15:35:34 +0700 Subject: [PATCH 289/879] fix #1512 --- .../Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 8ecec94a..0968b3b6 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -1299,7 +1299,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Include(x => x.Type) //.Where(x => x.LeaveStartDate.Year == year) .Where(x => x.LeaveStartDate.Date >= startFiscalDate && x.LeaveStartDate.Date <= endFiscalDate) // fix issue : #729 - .Where(x => x.LeaveStatus == "DELETE") + .Where(x => x.LeaveStatus == "DELETE" && x.LeaveCancelStatus == "APPROVE") .ToListAsync(); var res = (from d in data From 47e5df9ba920c195bd3cd3a35570813faa0503e8 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 7 May 2025 15:55:31 +0700 Subject: [PATCH 290/879] =?UTF-8?q?[Fix=20SIT]=20=E0=B8=9A=E0=B8=A3?= =?UTF-8?q?=E0=B8=A3=E0=B8=88=E0=B8=B8=E0=B9=81=E0=B8=95=E0=B9=88=E0=B8=87?= =?UTF-8?q?=E0=B8=95=E0=B8=B1=E0=B9=89=E0=B8=87=20=E0=B9=84=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B9=80=E0=B8=82=E0=B9=89=E0=B8=B2=E0=B8=97=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4=20=E0=B9=81?= =?UTF-8?q?=E0=B8=A5=E0=B8=B0=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=A5=E0=B8=87?= =?UTF-8?q?=E0=B9=82=E0=B8=84=E0=B8=A3=E0=B8=87=E0=B8=AA=E0=B8=A3=E0=B9=89?= =?UTF-8?q?=E0=B8=B2=E0=B8=87=20#119?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/PlacementController.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index e895bc75..4bcaeb4a 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1745,7 +1745,7 @@ namespace BMA.EHR.Placement.Service.Controllers dateStart = r.commandDateAffect, govAgeAbsent = 0, govAgePlus = 0, - birthDate = p.DateOfBirth == null ? (DateTime?)null : p.DateOfBirth, + birthDate = (p.DateOfBirth == null || p.DateOfBirth == DateTime.MinValue) ? (DateTime?)null : p.DateOfBirth, reasonSameDate = (DateTime?)null, ethnicity = p.Race == null ? string.Empty : p.Race, telephoneNumber = p.Telephone == null ? string.Empty : Regex.Replace(p.Telephone, @"\D", ""), @@ -1775,13 +1775,13 @@ namespace BMA.EHR.Placement.Service.Controllers duration = e.Duration ?? string.Empty, durationYear = e.DurationYear ?? null, field = e.Field ?? string.Empty, - finishDate = e.FinishDate ?? null, + finishDate = (e.FinishDate == null || e.FinishDate == DateTime.MinValue) ? (DateTime?)null : e.FinishDate, fundName = e.FundName ?? string.Empty, gpa = e.Gpa ?? string.Empty, institute = e.Institute ?? string.Empty, other = e.Other ?? string.Empty, - startDate = e.StartDate ?? null, - endDate = e.EndDate ?? null, + startDate = (e.StartDate == null || e.StartDate == DateTime.MinValue) ? (DateTime?)null : e.StartDate, + endDate = (e.EndDate == null || e.EndDate == DateTime.MinValue) ? (DateTime?)null : e.EndDate, educationLevel = e.EducationLevelName, educationLevelId = e.EducationLevelId, positionPath = e.PositionPath?.Name ?? string.Empty, @@ -1793,8 +1793,8 @@ namespace BMA.EHR.Placement.Service.Controllers bodyCertificates = p.PlacementCertificates.Select(e => new { profileId = string.Empty, - expireDate = e.ExpireDate ?? null, - issueDate = e.IssueDate ?? null, + expireDate = (e.ExpireDate == null || e.ExpireDate == DateTime.MinValue) ? (DateTime?)null : e.ExpireDate, + issueDate = (e.IssueDate == null || e.IssueDate == DateTime.MinValue) ? (DateTime?)null : e.IssueDate, certificateNo = e.CertificateNo ?? string.Empty, certificateType = e.CertificateType ?? string.Empty, issuer = e.Issuer ?? string.Empty From e351adb5fa7389c5ff3a0fdc1104e8a6981cebb0 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 7 May 2025 16:42:05 +0700 Subject: [PATCH 291/879] add try catch --- .../Controllers/InsigniaRequestController.cs | 257 +++++++++--------- 1 file changed, 132 insertions(+), 125 deletions(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 68b72eff..014d9be4 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -2097,136 +2097,143 @@ namespace BMA.EHR.Insignia.Service.Controllers [HttpPut("preview/receice/{insigniaNoteId:length(36)}"), DisableRequestSizeLimit] public async Task> PreviewReceiceProfile([FromForm] ImportFileRequest req, Guid insigniaNoteId) { - var getPermission = await _permission.GetPermissionAPIAsync("CREATE", "SYS_INSIGNIA_RECORD"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - var insigniaNote = await _context.InsigniaNotes - .Include(x => x.InsigniaNoteProfiles) - .Include(x => x.InsigniaNoteProfiles) - .ThenInclude(x => x.RequestInsignia) - .ThenInclude(x => x.InsigniaType) - .Include(x => x.InsigniaNoteProfiles) - .Include(x => x.InsigniaNoteProfiles) - .FirstOrDefaultAsync(x => x.Id == insigniaNoteId); - if (insigniaNote == null) - return Error(GlobalMessages.InsigniaRequestNotFound); - - if (Request.Form.Files == null || Request.Form.Files.Count == 0) - return Error(GlobalMessages.NoFileToUpload); - var file = Request.Form.Files[0]; - if (!Path.GetExtension(file.FileName).Equals(".xlsx", StringComparison.OrdinalIgnoreCase)) - return Error("āļ™āļēāļĄāļŠāļāļļāļĨāđ„āļŸāļĨāđŒāļ•āđ‰āļ­āļ‡āđ€āļ›āđ‡āļ™ .xlsx!"); - var items = await ReadExcelImportReceive(file); - var _insigniaNoteProfiles = new List(); - foreach (var item in items) + try { - if (item.CitizanId == null) continue; - var _profile = await _userProfileRepository.GetOfficerProfileByCitizenId(item.CitizanId, AccessToken); - var profile = insigniaNote.InsigniaNoteProfiles.FirstOrDefault(x => x.ProfileId == _profile.Id); - if (profile == null) + var getPermission = await _permission.GetPermissionAPIAsync("CREATE", "SYS_INSIGNIA_RECORD"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + var insigniaNote = await _context.InsigniaNotes + .Include(x => x.InsigniaNoteProfiles) + .Include(x => x.InsigniaNoteProfiles) + .ThenInclude(x => x.RequestInsignia) + .ThenInclude(x => x.InsigniaType) + .Include(x => x.InsigniaNoteProfiles) + .Include(x => x.InsigniaNoteProfiles) + .FirstOrDefaultAsync(x => x.Id == insigniaNoteId); + if (insigniaNote == null) + return Error(GlobalMessages.InsigniaRequestNotFound); + + if (Request.Form.Files == null || Request.Form.Files.Count == 0) + return Error(GlobalMessages.NoFileToUpload); + var file = Request.Form.Files[0]; + if (!Path.GetExtension(file.FileName).Equals(".xlsx", StringComparison.OrdinalIgnoreCase)) + return Error("āļ™āļēāļĄāļŠāļāļļāļĨāđ„āļŸāļĨāđŒāļ•āđ‰āļ­āļ‡āđ€āļ›āđ‡āļ™ .xlsx!"); + var items = await ReadExcelImportReceive(file); + var _insigniaNoteProfiles = new List(); + foreach (var item in items) { - if (_profile == null) - continue; - var _insignia = await _context.Insignias.FirstOrDefaultAsync(x => x.Name == item.RequestInsignia); - if (_insignia == null) - continue; - profile = new InsigniaNoteProfile + if (item.CitizanId == null) continue; + var _profile = await _userProfileRepository.GetOfficerProfileByCitizenId(item.CitizanId, AccessToken); + var profile = insigniaNote.InsigniaNoteProfiles.FirstOrDefault(x => x.ProfileId == _profile.Id); + if (profile == null) { - RequestDate = DateTime.Now, - Salary = _profile.Amount, - IsApprove = true, - Status = "DONE", - Number = item.Number, - RequestInsignia = _insignia, - DateReceive = item.DateReceive, - Date = item.Date, - VolumeNo = item.VolumeNo, - Section = item.Section, - Page = item.Page, - No = item.No, - ProfileId = _profile.Id, - InsigniaNote = insigniaNote, - LastUpdateFullName = FullName ?? "System Administrator", - LastUpdateUserId = UserId ?? "", - LastUpdatedAt = DateTime.Now, - Prefix = _profile.Prefix, - Position = _profile.Position, - CitizenId = _profile.CitizenId, - ProfileType = _profile.ProfileType, - FirstName = _profile.FirstName, - LastName = _profile.LastName, - BirthDate = _profile.BirthDate, - DateAppoint = _profile.DateAppoint, - Gender = _profile.Gender, - PosTypeName = _profile.PosType, - PosLevelName = _profile.PosLevel, - PosNo = _profile.PosNo, - Amount = _profile.Amount, - PositionSalaryAmount = _profile.PositionSalaryAmount, - Root = _profile.Root, - RootId = _profile.RootId, - RootDnaId = _profile.RootDnaId, - Child1 = _profile.Child1, - Child1Id = _profile.Child1Id, - Child1DnaId = _profile.Child1DnaId, - Child2 = _profile.Child2, - Child2Id = _profile.Child2Id, - Child2DnaId = _profile.Child2DnaId, - Child3 = _profile.Child3, - Child3Id = _profile.Child3Id, - Child3DnaId = _profile.Child3DnaId, - Child4 = _profile.Child4, - Child4Id = _profile.Child4Id, - Child4DnaId = _profile.Child4DnaId, - }; - } - else - { - profile.Status = "DONE"; - profile.Number = item.Number; - profile.RequestInsignia = await _context.Insignias.FirstOrDefaultAsync(x => x.Name == item.RequestInsignia) == null ? profile.RequestInsignia : await _context.Insignias.FirstOrDefaultAsync(x => x.Name == item.RequestInsignia); - profile.DateReceive = item.DateReceive; - profile.Date = item.Date; - profile.VolumeNo = item.VolumeNo; - profile.Section = item.Section; - profile.Page = item.Page; - profile.No = item.No; - profile.LastUpdateFullName = FullName ?? "System Administrator"; - profile.LastUpdateUserId = UserId ?? ""; - profile.LastUpdatedAt = DateTime.Now; - } - _insigniaNoteProfiles.Add( - new - { - profile.Id, - Prefix = _profile.Prefix, - Position = _profile.Position, - CitizenId = _profile.CitizenId, - ProfileType = _profile.ProfileType, - FullName = $"{_profile.Prefix}{_profile.FirstName} {_profile.LastName}", - RequestInsignia = profile.RequestInsignia == null ? null : profile.RequestInsignia.Name, - RequestInsigniaId = profile.RequestInsignia == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : profile.RequestInsignia.Id, - RequestInsigniaShortName = profile.RequestInsignia == null ? null : profile.RequestInsignia.ShortName, - profile.DateReceive, - profile.OrganizationOrganizationSend, - profile.OrganizationOrganizationReceive, - profile.Status, - profile.Issue, - profile.Date, - profile.VolumeNo, - profile.Section, - profile.Page, - profile.No, - profile.DatePayment, - profile.TypePayment, - profile.Address, - profile.Number, - profile.Salary, + if (_profile == null) + continue; + var _insignia = await _context.Insignias.FirstOrDefaultAsync(x => x.Name == item.RequestInsignia); + if (_insignia == null) + continue; + profile = new InsigniaNoteProfile + { + RequestDate = DateTime.Now, + Salary = _profile.Amount, + IsApprove = true, + Status = "DONE", + Number = item.Number, + RequestInsignia = _insignia, + DateReceive = item.DateReceive, + Date = item.Date, + VolumeNo = item.VolumeNo, + Section = item.Section, + Page = item.Page, + No = item.No, + ProfileId = _profile.Id, + InsigniaNote = insigniaNote, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + Prefix = _profile.Prefix, + Position = _profile.Position, + CitizenId = _profile.CitizenId, + ProfileType = _profile.ProfileType, + FirstName = _profile.FirstName, + LastName = _profile.LastName, + BirthDate = _profile.BirthDate, + DateAppoint = _profile.DateAppoint, + Gender = _profile.Gender, + PosTypeName = _profile.PosType, + PosLevelName = _profile.PosLevel, + PosNo = _profile.PosNo, + Amount = _profile.Amount, + PositionSalaryAmount = _profile.PositionSalaryAmount, + Root = _profile.Root, + RootId = _profile.RootId, + RootDnaId = _profile.RootDnaId, + Child1 = _profile.Child1, + Child1Id = _profile.Child1Id, + Child1DnaId = _profile.Child1DnaId, + Child2 = _profile.Child2, + Child2Id = _profile.Child2Id, + Child2DnaId = _profile.Child2DnaId, + Child3 = _profile.Child3, + Child3Id = _profile.Child3Id, + Child3DnaId = _profile.Child3DnaId, + Child4 = _profile.Child4, + Child4Id = _profile.Child4Id, + Child4DnaId = _profile.Child4DnaId, + }; } - ); + else + { + profile.Status = "DONE"; + profile.Number = item.Number; + profile.RequestInsignia = await _context.Insignias.FirstOrDefaultAsync(x => x.Name == item.RequestInsignia) == null ? profile.RequestInsignia : await _context.Insignias.FirstOrDefaultAsync(x => x.Name == item.RequestInsignia); + profile.DateReceive = item.DateReceive; + profile.Date = item.Date; + profile.VolumeNo = item.VolumeNo; + profile.Section = item.Section; + profile.Page = item.Page; + profile.No = item.No; + profile.LastUpdateFullName = FullName ?? "System Administrator"; + profile.LastUpdateUserId = UserId ?? ""; + profile.LastUpdatedAt = DateTime.Now; + } + _insigniaNoteProfiles.Add( + new + { + profile.Id, + Prefix = _profile.Prefix, + Position = _profile.Position, + CitizenId = _profile.CitizenId, + ProfileType = _profile.ProfileType, + FullName = $"{_profile.Prefix}{_profile.FirstName} {_profile.LastName}", + RequestInsignia = profile.RequestInsignia == null ? null : profile.RequestInsignia.Name, + RequestInsigniaId = profile.RequestInsignia == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : profile.RequestInsignia.Id, + RequestInsigniaShortName = profile.RequestInsignia == null ? null : profile.RequestInsignia.ShortName, + profile.DateReceive, + profile.OrganizationOrganizationSend, + profile.OrganizationOrganizationReceive, + profile.Status, + profile.Issue, + profile.Date, + profile.VolumeNo, + profile.Section, + profile.Page, + profile.No, + profile.DatePayment, + profile.TypePayment, + profile.Address, + profile.Number, + profile.Salary, + } + ); + } + return Success(_insigniaNoteProfiles); + } + catch(Exception ex) + { + return Error(ex); } - return Success(_insigniaNoteProfiles); } /// From 64eb77674a0364b0970956cab6de15ae26d02705 Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 7 May 2025 17:13:57 +0700 Subject: [PATCH 292/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=A7=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88?= =?UTF-8?q?=E0=B8=A2=E0=B8=B1=E0=B8=9A=E0=B8=A2=E0=B8=B1=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RetirementEmployeeRepository.cs | 12 +- .../Repositories/RetirementRepository.cs | 86 +- .../Retirement/RetirementResignApprover.cs | 2 + .../RetirementResignEmployeeApprover.cs | 2 + ...e_retirement_add_approver_date.Designer.cs | 20601 +++++++++++++++ ...date_table_retirement_add_approver_date.cs | 39 + ..._retirement_add_approver_date1.Designer.cs | 20609 ++++++++++++++++ ...ate_table_retirement_add_approver_date1.cs | 40 + .../ApplicationDBContextModelSnapshot.cs | 14 + .../Controllers/RetirementResignController.cs | 9 +- .../RetirementResignEmployeeController.cs | 9 +- .../Requests/RetirementRequestApproveDto.cs | 1 + .../Requests/RetirementRequestApproverDto.cs | 3 + 13 files changed, 41337 insertions(+), 90 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250507095828_update_table_retirement_add_approver_date.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250507095828_update_table_retirement_add_approver_date.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250507101317_update_table_retirement_add_approver_date1.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250507101317_update_table_retirement_add_approver_date1.cs diff --git a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs index 0144117b..d8dc259a 100644 --- a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs @@ -184,7 +184,7 @@ namespace BMA.EHR.Application.Repositories await _dbContext.SaveChangesAsync(); } - public async Task CommanderApproveRetirementResignEmployee(Guid id, string reason) + public async Task CommanderApproveRetirementResignEmployee(Guid id, string reason, DateTime date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -250,6 +250,7 @@ namespace BMA.EHR.Application.Repositories approver.ApproveStatus = "APPROVE"; approver.Comment = reason; + approver.RejectDate = date; //await _dbContext.SaveChangesAsync(); @@ -296,7 +297,7 @@ namespace BMA.EHR.Application.Repositories } } - public async Task CommanderRejectRetirementResignEmployee(Guid id, string reason) + public async Task CommanderRejectRetirementResignEmployee(Guid id, string reason, DateTime date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -338,6 +339,7 @@ namespace BMA.EHR.Application.Repositories approver.ApproveStatus = "REJECT"; approver.Comment = reason; + approver.RejectDate = date; if (approver.Seq != maxSeq) { @@ -383,7 +385,7 @@ namespace BMA.EHR.Application.Repositories } - public async Task ApproveRetirementResignEmployee(Guid id, string reason) + public async Task ApproveRetirementResignEmployee(Guid id, string reason, DateTime date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -424,6 +426,7 @@ namespace BMA.EHR.Application.Repositories approver.ApproveStatus = "APPROVE"; approver.Comment = reason; + approver.RejectDate = date; if (approver.Seq != maxSeq) { @@ -459,7 +462,7 @@ namespace BMA.EHR.Application.Repositories } - public async Task RejectRetirementResignEmployee(Guid id, string reason) + public async Task RejectRetirementResignEmployee(Guid id, string reason, DateTime date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -500,6 +503,7 @@ namespace BMA.EHR.Application.Repositories approver.ApproveStatus = "REJECT"; approver.Comment = reason; + approver.RejectDate = date; if (approver.Seq != maxSeq) { diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index dedac02a..eb25ebd2 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -89,51 +89,6 @@ namespace BMA.EHR.Application.Repositories await _dbContext.SaveChangesAsync(); } - //āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ - //public async Task ExecuteRetirement() - //{ - // var retirePeriodOfficer = await _dbContext.Set() - // .Include(x => x.RetirementRawProfiles.Where(y => y.Remove != "REMOVE")) - // .Where(x => x.Year == DateTime.Now.Year) - // .Where(x => x.Type.Trim().ToUpper().Contains("OFFICER")) - // .FirstOrDefaultAsync(); - - // if (retirePeriodOfficer == null) - // return; - - // var body = new - // { - // data = retirePeriodOfficer.RetirementRawProfiles - // .Select(x => new - // { - // profileId = x.profileId - // }) - // .ToList() - // }; - - // //āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ - // //var apiUrl = $"{_configuration["API"]}/org/unauthorize/retirement"; - // using (var client = new HttpClient()) - // { - // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - - // var jsonBody = JsonConvert.SerializeObject(body); - // var content = new StringContent(jsonBody, Encoding.UTF8, "application/json"); - - // var _req = new HttpRequestMessage(HttpMethod.Patch, apiUrl) - // { - // Content = content - // }; - // var response = await client.SendAsync(_req); - // var responseContent = await response.Content.ReadAsStringAsync(); - // if (!response.IsSuccessStatusCode) - // { - - // } - // } - //} - public void TestMethod() { return; @@ -182,7 +137,7 @@ namespace BMA.EHR.Application.Repositories await _dbContext.SaveChangesAsync(); } - public async Task CommanderApproveRetirementResign(Guid id, string reason) + public async Task CommanderApproveRetirementResign(Guid id, string reason, DateTime date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -199,14 +154,6 @@ namespace BMA.EHR.Application.Repositories throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); } - // check commander approve - //var approvers = await _dbContext.Set() - // //.AsNoTracking() - // .Include(x => x.RetirementResign) - // .Where(x => x.RetirementResign.Id == id && x.ApproveType == "COMMANDER") - // .OrderBy(x => x.Seq) - // .ToListAsync(); - var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); @@ -228,28 +175,9 @@ namespace BMA.EHR.Application.Repositories var maxSeq = approvers.Max(x => x.Seq); - //var data = await _dbContext.Set() - // .AsNoTracking() - // .Include(x => x.RetirementResign) - // .Where(x => x.RetirementResign.Id == id && x.KeycloakId == userId && x.ApproveType == "COMMANDER") - // .FirstOrDefaultAsync(); - - //if(data != null) - //{ - // data.ApproveStatus = "APPROVE"; - // data.Comment = reason; - - // data.LastUpdatedAt = DateTime.Now; - // data.LastUpdateUserId = userId.ToString("D"); - // data.LastUpdateFullName = FullName ?? ""; - - // await _dbContext.SaveChangesAsync(); - //} - approver.ApproveStatus = "APPROVE"; approver.Comment = reason; - - //await _dbContext.SaveChangesAsync(); + approver.RejectDate = date; if (approver.Seq != maxSeq) { @@ -271,7 +199,6 @@ namespace BMA.EHR.Application.Repositories else { rawData.Status = "PENDING"; - // rawData.LeaveComment = reason; rawData.ApproveStep = "st3"; // TODO: Send notification to 1st Approver @@ -293,7 +220,7 @@ namespace BMA.EHR.Application.Repositories } } - public async Task CommanderRejectRetirementResign(Guid id, string reason) + public async Task CommanderRejectRetirementResign(Guid id, string reason, DateTime date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -335,6 +262,7 @@ namespace BMA.EHR.Application.Repositories approver.ApproveStatus = "REJECT"; approver.Comment = reason; + approver.RejectDate = date; if (approver.Seq != maxSeq) { @@ -379,7 +307,7 @@ namespace BMA.EHR.Application.Repositories } - public async Task ApproveRetirementResign(Guid id, string reason) + public async Task ApproveRetirementResign(Guid id, string reason, DateTime date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -420,6 +348,7 @@ namespace BMA.EHR.Application.Repositories approver.ApproveStatus = "APPROVE"; approver.Comment = reason; + approver.RejectDate = date; if (approver.Seq != maxSeq) { @@ -458,7 +387,7 @@ namespace BMA.EHR.Application.Repositories } - public async Task RejectRetirementResign(Guid id, string reason) + public async Task RejectRetirementResign(Guid id, string reason, DateTime date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -499,6 +428,7 @@ namespace BMA.EHR.Application.Repositories approver.ApproveStatus = "REJECT"; approver.Comment = reason; + approver.RejectDate = date; if (approver.Seq != maxSeq) { diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignApprover.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignApprover.cs index 724f31e8..d0679ba3 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignApprover.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignApprover.cs @@ -23,6 +23,8 @@ namespace BMA.EHR.Domain.Models.Retirement public string ApproveStatus { get; set; } = string.Empty; public string Comment { get; set; } = string.Empty; + public string Org { get; set; } = string.Empty; + public DateTime? RejectDate { get; set; } public string? ApproveType { get; set; } = string.Empty; // āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē = commander, āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļī = Approver } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeApprover.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeApprover.cs index 498e4f5e..c888cd30 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeApprover.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeApprover.cs @@ -23,6 +23,8 @@ namespace BMA.EHR.Domain.Models.Retirement public string ApproveStatus { get; set; } = string.Empty; public string Comment { get; set; } = string.Empty; + public string Org { get; set; } = string.Empty; + public DateTime? RejectDate { get; set; } public string? ApproveType { get; set; } = string.Empty; // āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē = commander, āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļī = Approver } diff --git a/BMA.EHR.Infrastructure/Migrations/20250507095828_update_table_retirement_add_approver_date.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250507095828_update_table_retirement_add_approver_date.Designer.cs new file mode 100644 index 00000000..3a64f0e9 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250507095828_update_table_retirement_add_approver_date.Designer.cs @@ -0,0 +1,20601 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250507095828_update_table_retirement_add_approver_date")] + partial class update_table_retirement_add_approver_date + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReclaimDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.Property("ReclaimOrganization") + .HasColumnType("longtext"); + + b.Property("ReclaimOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("ReclaimReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaReclaimProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignCancelId"); + + b.ToTable("RetirementResignCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignEmployeeCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeCancelId"); + + b.ToTable("RetirementResignEmployeeCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("Approvers") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", "RetirementResignCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", "RetirementResignEmployeeCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployeeCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Navigation("Approvers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Navigation("Approvers"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250507095828_update_table_retirement_add_approver_date.cs b/BMA.EHR.Infrastructure/Migrations/20250507095828_update_table_retirement_add_approver_date.cs new file mode 100644 index 00000000..596fbd5a --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250507095828_update_table_retirement_add_approver_date.cs @@ -0,0 +1,39 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class update_table_retirement_add_approver_date : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "RejectDate", + table: "RetirementResignEmployeeApprovers", + type: "datetime(6)", + nullable: true); + + migrationBuilder.AddColumn( + name: "RejectDate", + table: "RetirementResignApprovers", + type: "datetime(6)", + nullable: true); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "RejectDate", + table: "RetirementResignEmployeeApprovers"); + + migrationBuilder.DropColumn( + name: "RejectDate", + table: "RetirementResignApprovers"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250507101317_update_table_retirement_add_approver_date1.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250507101317_update_table_retirement_add_approver_date1.Designer.cs new file mode 100644 index 00000000..453638cc --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250507101317_update_table_retirement_add_approver_date1.Designer.cs @@ -0,0 +1,20609 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250507101317_update_table_retirement_add_approver_date1")] + partial class update_table_retirement_add_approver_date1 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReclaimDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.Property("ReclaimOrganization") + .HasColumnType("longtext"); + + b.Property("ReclaimOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("ReclaimReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaReclaimProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignCancelId"); + + b.ToTable("RetirementResignCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignEmployeeCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeCancelId"); + + b.ToTable("RetirementResignEmployeeCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("Approvers") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", "RetirementResignCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", "RetirementResignEmployeeCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployeeCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Navigation("Approvers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Navigation("Approvers"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250507101317_update_table_retirement_add_approver_date1.cs b/BMA.EHR.Infrastructure/Migrations/20250507101317_update_table_retirement_add_approver_date1.cs new file mode 100644 index 00000000..7569869a --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250507101317_update_table_retirement_add_approver_date1.cs @@ -0,0 +1,40 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class update_table_retirement_add_approver_date1 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "Org", + table: "RetirementResignEmployeeApprovers", + type: "longtext", + nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "Org", + table: "RetirementResignApprovers", + type: "longtext", + nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Org", + table: "RetirementResignEmployeeApprovers"); + + migrationBuilder.DropColumn( + name: "Org", + table: "RetirementResignApprovers"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 56f69ea7..bad163b9 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -17132,6 +17132,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnOrder(102) .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + b.Property("PositionName") .IsRequired() .HasColumnType("longtext"); @@ -17143,6 +17147,9 @@ namespace BMA.EHR.Infrastructure.Migrations b.Property("ProfileId") .HasColumnType("char(36)"); + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + b.Property("RetirementResignId") .HasColumnType("char(36)"); @@ -18051,6 +18058,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnOrder(102) .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + b.Property("PositionName") .IsRequired() .HasColumnType("longtext"); @@ -18062,6 +18073,9 @@ namespace BMA.EHR.Infrastructure.Migrations b.Property("ProfileId") .HasColumnType("char(36)"); + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + b.Property("RetirementResignEmployeeId") .HasColumnType("char(36)"); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 3154c50d..4ca0cd89 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -2598,6 +2598,7 @@ namespace BMA.EHR.Retirement.Service.Controllers PositionName = r.PositionName, ProfileId = r.ProfileId, KeycloakId = r.KeycloakId, + Org = r.Org, ApproveStatus = "PENDING", ApproveType = type.Trim().ToUpper() }); @@ -2662,7 +2663,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.CommanderApproveRetirementResign(id, req.Reason ?? ""); + await _repository.CommanderApproveRetirementResign(id, req.Reason ?? "", req.Date ?? DateTime.Now); return Success(); } @@ -2696,7 +2697,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.CommanderRejectRetirementResign(id, req.Reason ?? ""); + await _repository.CommanderRejectRetirementResign(id, req.Reason ?? "", req.Date ?? DateTime.Now); return Success(); } @@ -2730,7 +2731,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.ApproveRetirementResign(id, req.Reason ?? ""); + await _repository.ApproveRetirementResign(id, req.Reason ?? "", req.Date ?? DateTime.Now); return Success(); } @@ -2764,7 +2765,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.RejectRetirementResign(id, req.Reason ?? ""); + await _repository.RejectRetirementResign(id, req.Reason ?? "", req.Date ?? DateTime.Now); return Success(); } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 000f8ed7..f38cc35c 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -1994,6 +1994,7 @@ namespace BMA.EHR.Retirement.Service.Controllers PositionName = r.PositionName, ProfileId = r.ProfileId, KeycloakId = r.KeycloakId, + Org = r.Org, ApproveStatus = "PENDING", ApproveType = type.Trim().ToUpper() }); @@ -2058,7 +2059,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.CommanderApproveRetirementResignEmployee(id, req.Reason ?? ""); + await _repository.CommanderApproveRetirementResignEmployee(id, req.Reason ?? "", req.Date ?? DateTime.Now); return Success(); } @@ -2092,7 +2093,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.CommanderRejectRetirementResignEmployee(id, req.Reason ?? ""); + await _repository.CommanderRejectRetirementResignEmployee(id, req.Reason ?? "", req.Date ?? DateTime.Now); return Success(); } @@ -2126,7 +2127,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.ApproveRetirementResignEmployee(id, req.Reason ?? ""); + await _repository.ApproveRetirementResignEmployee(id, req.Reason ?? "", req.Date ?? DateTime.Now); return Success(); } @@ -2160,7 +2161,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.RejectRetirementResignEmployee(id, req.Reason ?? ""); + await _repository.RejectRetirementResignEmployee(id, req.Reason ?? "", req.Date ?? DateTime.Now); return Success(); } diff --git a/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproveDto.cs b/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproveDto.cs index 7e15bbf1..4eb7ed32 100644 --- a/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproveDto.cs +++ b/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproveDto.cs @@ -4,5 +4,6 @@ namespace BMA.EHR.Retirement.Service.Requests public class RetirementRequestApproveDto { public string? Reason { get; set; } + public DateTime? Date { get; set; } } } diff --git a/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproverDto.cs b/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproverDto.cs index 9c8141dc..1445491b 100644 --- a/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproverDto.cs +++ b/BMA.EHR.Retirement.Service/Requests/RetirementRequestApproverDto.cs @@ -24,5 +24,8 @@ namespace BMA.EHR.Retirement.Service.Requests [JsonProperty("keycloakId")] public Guid KeycloakId { get; set; } = Guid.Empty; + + [JsonProperty("org")] + public string Org { get; set; } = string.Empty; } } From d3b22ecf48f1aefe76bacb3b31e41b814330a829 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 7 May 2025 17:59:38 +0700 Subject: [PATCH 293/879] =?UTF-8?q?fix=20=E0=B8=AA=E0=B8=B1=E0=B8=87?= =?UTF-8?q?=E0=B8=81=E0=B8=B1=E0=B8=94=E0=B9=80=E0=B8=9A=E0=B8=B4=E0=B9=89?= =?UTF-8?q?=E0=B8=A5=20issue=20#1394=20#1401?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/RetirementOtherController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 55ab30a7..dad02dc7 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -724,13 +724,12 @@ namespace BMA.EHR.Retirement.Service.Controllers No = r.Sequence.ToString().ToThaiNumber(), FullName = $"{r.Prefix}{r.FirstName} {r.LastName}", Education = p.EducationOld == null ? "-" : p.EducationOld, - OldOc = (p.OrganizationPositionOld == null ? "" : p.OrganizationPositionOld) + "\n" + (p.rootOld == null ? "" : p.rootOld), + OldOc = p.OrganizationPositionOld == null ? "" : p.OrganizationPositionOld, OldPositionType = p.PositionTypeOld == null ? "-" : p.PositionTypeOld, OldPositionLevel = p.PositionLevelOld == null ? "-" : p.PositionLevelOld, OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = p.LeaveDate == null ? "-" : p.LeaveDate.Value.ToThaiShortDate2().ToThaiNumber(), - //NewOc = (p.OrganizationPositionOld == null ? "" : p.OrganizationPositionOld) + "\n" + (p.rootOld == null ? "" : p.rootOld), NewOc = (p.position == null ? "" : $"{p.position}\n") + (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + (p.child4 == null ? "" : $"{p.child4}\n") + From d43d151e758dfc8d5f1dae091b3e183059e546b8 Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 7 May 2025 23:30:12 +0700 Subject: [PATCH 294/879] sort retire --- .../Repositories/Reports/RetireReportRepository.cs | 3 ++- .../Controllers/RetirementController.cs | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs index 712449a2..5fca5107 100644 --- a/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/RetireReportRepository.cs @@ -274,7 +274,8 @@ namespace BMA.EHR.Application.Repositories.Reports { if (retire.TypeReport == null) { - profile_retire = profile_retire.OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + profile_retire = profile_retire + .OrderBy(x => string.IsNullOrEmpty(x.root) ? int.MaxValue : rootOrder.ToObject>().IndexOf(x.root)) .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index d0290010..6aca09a7 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -331,7 +331,8 @@ namespace BMA.EHR.Retirement.Service.Controllers } } var order = 1; - foreach (var profile in profiles.OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + foreach (var profile in profiles + .OrderBy(x => string.IsNullOrEmpty(x.root) ? int.MaxValue : rootOrder.ToObject>().IndexOf(x.root)) .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) @@ -1346,7 +1347,7 @@ namespace BMA.EHR.Retirement.Service.Controllers var order = 1; foreach (var profile in retire.RetirementProfiles - .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .OrderBy(x => string.IsNullOrEmpty(x.root) ? int.MaxValue : rootOrder.ToObject>().IndexOf(x.root)) .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) @@ -1361,7 +1362,7 @@ namespace BMA.EHR.Retirement.Service.Controllers order = 1; foreach (var profile in retire.RetirementRawProfiles - .OrderBy(x => rootOrder.ToObject>().IndexOf(x.root)) + .OrderBy(x => string.IsNullOrEmpty(x.root) ? int.MaxValue : rootOrder.ToObject>().IndexOf(x.root)) .ThenBy(x => child1Order.ToObject>().IndexOf(x.child1 ?? "")) .ThenBy(x => child2Order.ToObject>().IndexOf(x.child2 ?? "")) .ThenBy(x => child3Order.ToObject>().IndexOf(x.child3 ?? "")) From 4815b43864d41937e0666b4df80b3fd4bc26b13d Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 8 May 2025 09:05:39 +0700 Subject: [PATCH 295/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=81?= =?UTF-8?q?=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=AA=E0=B8=B1=E0=B8=87=E0=B8=81?= =?UTF-8?q?=E0=B8=B1=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/LeaveRequestController.cs | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 3c97765e..10a09688 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -836,14 +836,14 @@ namespace BMA.EHR.Leave.Service.Controllers var orgName = ""; - if (profile.Child1 != null && profile.Child1 != "") - orgName += $" {profile.Child1}"; - if (profile.Child2 != null && profile.Child2 != "") - orgName += $" {profile.Child2}"; - if (profile.Child3 != null && profile.Child3 != "") - orgName += $" {profile.Child3}"; if (profile.Child4 != null && profile.Child4 != "") orgName += $" {profile.Child4}"; + if (profile.Child3 != null && profile.Child3 != "") + orgName += $" {profile.Child3}"; + if (profile.Child2 != null && profile.Child2 != "") + orgName += $" {profile.Child2}"; + if (profile.Child1 != null && profile.Child1 != "") + orgName += $" {profile.Child1}"; if (profile.Root != null && profile.Root != "") orgName += $" {profile.Root}"; @@ -1413,14 +1413,14 @@ namespace BMA.EHR.Leave.Service.Controllers var orgName = ""; - if (rawData.Child1 != null && rawData.Child1 != "") - orgName += $" {rawData.Child1}"; - if (rawData.Child2 != null && rawData.Child2 != "") - orgName += $" {rawData.Child2}"; - if (rawData.Child3 != null && rawData.Child3 != "") - orgName += $" {rawData.Child3}"; if (rawData.Child4 != null && rawData.Child4 != "") orgName += $" {rawData.Child4}"; + if (rawData.Child3 != null && rawData.Child3 != "") + orgName += $" {rawData.Child3}"; + if (rawData.Child2 != null && rawData.Child2 != "") + orgName += $" {rawData.Child2}"; + if (rawData.Child1 != null && rawData.Child1 != "") + orgName += $" {rawData.Child1}"; if (rawData.Root != null && rawData.Root != "") orgName += $" {rawData.Root}"; @@ -2193,14 +2193,14 @@ namespace BMA.EHR.Leave.Service.Controllers var orgName = ""; - if (rawData.Child1 != null && rawData.Child1 != "") - orgName += $" {rawData.Child1}"; - if (rawData.Child2 != null && rawData.Child2 != "") - orgName += $" {rawData.Child2}"; - if (rawData.Child3 != null && rawData.Child3 != "") - orgName += $" {rawData.Child3}"; if (rawData.Child4 != null && rawData.Child4 != "") orgName += $" {rawData.Child4}"; + if (rawData.Child3 != null && rawData.Child3 != "") + orgName += $" {rawData.Child3}"; + if (rawData.Child2 != null && rawData.Child2 != "") + orgName += $" {rawData.Child2}"; + if (rawData.Child1 != null && rawData.Child1 != "") + orgName += $" {rawData.Child1}"; if (rawData.Root != null && rawData.Root != "") orgName += $" {rawData.Root}"; From e277279f78b9c8cc0244609b302687fa2996d186 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 8 May 2025 13:19:56 +0700 Subject: [PATCH 296/879] Add ProfileType --- .../Repositories/InsigniaPeriodsRepository.cs | 172 +++++++++++++----- .../Profiles/GetProfileByRootIdDto.cs | 2 + .../Controllers/InsigniaRequestController.cs | 55 +++++- 3 files changed, 181 insertions(+), 48 deletions(-) diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 40991cff..9eed3f11 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -306,6 +306,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }); // check āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļ°āļ•āđ‰āļ­āļ‡āļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 29/5/āļ›āļĩ-8 āļ‚āļ­ āļšāļĄ. @@ -369,7 +370,8 @@ namespace BMA.EHR.Application.Repositories $"2.āđ„āļ”āđ‰āļĢāļąāļšāļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ­āļąāļ•āļĢāļēāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļ‚āļąāđ‰āļ™āļ•āđˆāļģāļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļ‚āļāļēāļĢāļžāļĨāđ€āļĢāļ·āļ­āļ™āļĢāļ°āļ”āļąāļšāļ›āļāļīāļšāļąāļ•āļīāļāļēāļĢ (8,340) āđāļ•āđˆāđ„āļĄāđˆāļ–āļķāļ‡āļ‚āļąāđ‰āļ™āļ•āđˆāļģāļ‚āļ­āļ‡āļ­āļąāļ•āļĢāļēāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļžāļĨāđ€āļĢāļ·āļ­āļ™āļĢāļ°āļ”āļąāļšāļŠāļģāļ™āļēāļāļāļēāļĢ (15,050)", Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p?.SalaryCondition?.ToString("#,##0")??""}" }, - } + }, + ProfileType = p.ProfileType })).ToList(); var bcpRoyal = await _dbContext.Set() @@ -448,6 +450,7 @@ namespace BMA.EHR.Application.Repositories .FirstOrDefault() == null ? 0 : p.ProfileInsignia.Where(x => x.InsigniaId.Value == bcmRoyal.Id).OrderBy(x => x.Year) .FirstOrDefault().Year, + ProfileType = p.ProfileType }) .ToList() .Where(x => (x.SalaryCondition >= 8340 && x.SalaryCondition < 10150) && !x.IsHigherLevel) @@ -506,7 +509,8 @@ namespace BMA.EHR.Application.Repositories $"2.āđ„āļ”āđ‰ āļš.āļĄ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 5 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰āļĢāļąāļš āļš.āļĄ. āļāđˆāļ­āļ™āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 5, 7, 28)).ToThaiFullDate3()})", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļš.āļĄ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear}" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -581,6 +585,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(x => (x.SalaryCondition >= 8340 && x.SalaryCondition < 10150) && !x.IsHigherLevel) @@ -640,6 +645,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList(); @@ -781,6 +787,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }); var s1 = ((from p in inst_profile @@ -842,7 +849,8 @@ namespace BMA.EHR.Application.Repositories $"2.āđ„āļ”āđ‰āļĢāļąāļšāļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ­āļąāļ•āļĢāļēāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļ‚āļąāđ‰āļ™āļ•āđˆāļģāļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļ‚āļāļēāļĢāļžāļĨāđ€āļĢāļ·āļ­āļ™āļĢāļ°āļ”āļąāļšāļŠāļģāļ™āļēāļāļāļēāļĢāļ‚āļķāđ‰āļ™āđ„āļ› (15,050)", Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p?.SalaryCondition?.ToString("#,##0")??""}" }, - } + }, + ProfileType = p.ProfileType })).ToList(); var bcpRoyal = await _dbContext.Set() @@ -923,6 +931,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(x => (x.SalaryCondition >= 10150) && !x.IsHigherLevel) @@ -981,7 +990,8 @@ namespace BMA.EHR.Application.Repositories $"2.āđ„āļ”āđ‰ āļš.āļŠ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 5 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰āļĢāļąāļš āļš.āļŠ. āļāđˆāļ­āļ™āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 5, 7, 28)).ToThaiFullDate3()})", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļš.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear}" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -1053,6 +1063,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(x => (x.SalaryCondition >= 10150) && !x.IsHigherLevel) @@ -1111,7 +1122,8 @@ namespace BMA.EHR.Application.Repositories $"2.āđ„āļ”āđ‰ āļˆ.āļĄ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 5 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰āļĢāļąāļš āļˆ.āļĄ. āļāđˆāļ­āļ™āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 5, 7, 28)).ToThaiFullDate3()})", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļˆ.āļĄ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear}" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -1259,6 +1271,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }); // check āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļ°āļ•āđ‰āļ­āļ‡āļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 29/5/āļ›āļĩ-5 @@ -1316,7 +1329,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"1.āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļāđˆāļ­āļ™ {new DateTime(period.Year - 5, 5, 29).ToThaiFullDate3()}", Result = $"āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ {p.ProfileDateAppoint.ToThaiFullDate3()}" } - } + }, + ProfileType = p.ProfileType })).ToList(); var s2 = (from p in allProfilesByRoot @@ -1392,6 +1406,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(x => x.SalaryCondition < 10190 && !x.IsHigherLevel) @@ -1450,7 +1465,8 @@ namespace BMA.EHR.Application.Repositories $"2.āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 10 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļāđˆāļ­āļ™ {new DateTime(period.Year - 10, 5, 29).ToThaiFullDate3()})", Result = $"āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ {p.ProfileDateAppoint.ToThaiFullDate3()}" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -1533,6 +1549,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(x => x.SalaryCondition >= 10190 && !x.IsHigherLevel) @@ -1584,7 +1601,8 @@ namespace BMA.EHR.Application.Repositories $"1.āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āđ„āļĄāđˆāļ•āđˆāļģāļāļ§āđˆāļēāļ‚āļąāđ‰āļ™āļ•āđˆāļģāļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļŠāļģāļ™āļēāļāļ‡āļēāļ™ (āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year, 4, 29)).ToThaiFullDate3()} 10,190 āļšāļēāļ—āļ‚āļķāđ‰āļ™āđ„āļ›)", Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ {p.SalaryCondition} āļšāļēāļ—" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -1667,6 +1685,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(x => x.SalaryCondition >= 10190 && !x.IsHigherLevel) @@ -1725,7 +1744,8 @@ namespace BMA.EHR.Application.Repositories $"2.āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 10 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļāđˆāļ­āļ™ {new DateTime(period.Year - 10, 5, 29).ToThaiFullDate3()})", Result = $"āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ {p.ProfileDateAppoint.ToThaiFullDate3()}" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -1910,6 +1930,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Select(p => new InsigniaResultSet @@ -1959,7 +1980,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"1.āđ€āļ›āđ‡āļ™āļĢāļ°āļ”āļąāļšāļŠāļģāļ™āļēāļāļ‡āļēāļ™", Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -2049,6 +2071,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(x => x.FirstPositonLevelDate < new DateTime(period.Year - 5, 5, 29)) @@ -2101,7 +2124,8 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel} āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ {(p.FirstPositonLevelDate == null ? "-" : p.FirstPositonLevelDate.Value.ToThaiFullDate3())}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -2255,6 +2279,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Select(p => new InsigniaResultSet @@ -2304,7 +2329,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"1.āđ€āļ›āđ‡āļ™āļĢāļ°āļ”āļąāļšāļ­āļēāļ§āļļāđ‚āļŠ", Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -2394,6 +2420,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(x => x.FirstPositonLevelDate < new DateTime(period.Year - 5, 5, 29)) @@ -2446,7 +2473,8 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel} āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ {(p.FirstPositonLevelDate == null ? "-" : p.FirstPositonLevelDate.Value.ToThaiFullDate3())}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -2601,6 +2629,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Select(p => new InsigniaResultSet @@ -2650,7 +2679,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"1.āđ€āļ›āđ‡āļ™āļĢāļ°āļ”āļąāļšāļ—āļąāļāļĐāļ°āļžāļīāđ€āļĻāļĐ", Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -2748,6 +2778,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(x => x.FirstRecvInsigniaYear != 0 && x.FirstRecvInsigniaYear <= period.Year - 3) @@ -2799,7 +2830,8 @@ namespace BMA.EHR.Application.Repositories $"1.āđ„āļ”āđ‰ āļ—.āļŠ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 3 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰āļĢāļąāļš āļ—.āļŠ. āļāđˆāļ­āļ™āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 3, 7, 28)).ToThaiFullDate3()})", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ—.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -2897,6 +2929,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(x => x.FirstRecvInsigniaYear != 0 && x.FirstRecvInsigniaYear <= period.Year - 5) @@ -2948,7 +2981,8 @@ namespace BMA.EHR.Application.Repositories $"1.āđ„āļ”āđ‰ āļ›.āļĄ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 5 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰āļĢāļąāļš āļ›.āļĄ. āļāđˆāļ­āļ™āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 5, 7, 28)).ToThaiFullDate3()})", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ›.āļĄ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -3131,6 +3165,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Select(p => new InsigniaResultSet @@ -3180,7 +3215,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"1.āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļāđˆāļ­āļ™ {new DateTime(period.Year - 5, 5, 29).ToThaiFullDate3()}", Result = $"āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ {p.ProfileDateAppoint.ToThaiFullDate3()}" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -3324,6 +3360,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Select(p => new InsigniaResultSet @@ -3373,7 +3410,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"1.āđ€āļ›āđ‡āļ™āļĢāļ°āļ”āļąāļšāļŠāļģāļ™āļēāļāļāļēāļĢ", Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -3470,6 +3508,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.SalaryCondition >= 22140) @@ -3522,7 +3561,8 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year, 4, 29)).ToThaiFullDate3()} āđ€āļ›āđ‡āļ™āđ€āļ‡āļīāļ™ {p.SalaryCondition} āļšāļēāļ—" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -3619,6 +3659,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.SalaryCondition >= 22140) @@ -3671,7 +3712,8 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļāđˆāļ­āļ™āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 5, 4, 29)).ToThaiFullDate3()} āđ€āļ›āđ‡āļ™āđ€āļ‡āļīāļ™ {p.SalaryCondition} āļšāļēāļ—" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -3852,6 +3894,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Select(p => new InsigniaResultSet @@ -3884,7 +3927,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"1.āđ€āļ›āđ‡āļ™āļĢāļ°āļ”āļąāļšāļŠāļģāļ™āļēāļāļāļēāļĢāļžāļīāđ€āļĻāļĐ", Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -3982,6 +4026,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.SalaryCondition >= 58390) @@ -4041,7 +4086,8 @@ namespace BMA.EHR.Application.Repositories $"2.āđ„āļ”āđ‰ āļ—.āļŠ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 5 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰ āļ—.āļŠ. āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 5, 7, 28)).ToThaiFullDate3()} āļŦāļĢāļ·āļ­āļāđˆāļ­āļ™āļŦāļ™āđ‰āļēāļ™āļąāđ‰āļ™)", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ—.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -4203,6 +4249,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Select(p => new InsigniaResultSet @@ -4252,7 +4299,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"1.āđ€āļ›āđ‡āļ™āļĢāļ°āļ”āļąāļšāđ€āļŠāļĩāđˆāļĒāļ§āļŠāļēāļ", Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -4351,6 +4399,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -4402,7 +4451,8 @@ namespace BMA.EHR.Application.Repositories $"1.āđ„āļ”āđ‰ āļ—.āļŠ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 3 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰ āļ—.āļŠ. āļāđˆāļ­āļ™āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 3, 7, 28)).ToThaiFullDate3()})", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ—.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -4499,6 +4549,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -4550,7 +4601,8 @@ namespace BMA.EHR.Application.Repositories $"1.āđ„āļ”āđ‰ āļ›.āļĄ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 5 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰ āļ—.āļŠ. āļāđˆāļ­āļ™āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 5, 7, 28)).ToThaiFullDate3()})", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ›.āļĄ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -4731,6 +4783,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(x => x.FirstRecvInsigniaYear != 0 && x.FirstRecvInsigniaYear <= period.Year - 3) @@ -4788,7 +4841,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ 13,000 āļšāļēāļ—", Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -4886,6 +4940,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -4943,7 +4998,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ 13,000 āļšāļēāļ—", Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -5041,6 +5097,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -5098,7 +5155,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ 13,000 āļšāļēāļ—", Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -5277,6 +5335,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(x => x.FirstRecvInsigniaYear != 0 && x.FirstRecvInsigniaYear <= period.Year - 3) @@ -5334,7 +5393,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ 15,600 āļšāļēāļ—", Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -5432,6 +5492,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -5489,7 +5550,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ 15,600 āļšāļēāļ—", Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -5585,6 +5647,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -5642,7 +5705,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ 15,600 āļšāļēāļ—", Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -5818,6 +5882,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Select(p => new InsigniaResultSet @@ -5867,7 +5932,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"1.āđ€āļ›āđ‡āļ™āļĢāļ°āļ”āļąāļšāļ­āļģāļ™āļ§āļĒāļāļēāļĢ/āļ•āđ‰āļ™", Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -5965,6 +6031,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.SalaryCondition >= 58390) @@ -6024,7 +6091,8 @@ namespace BMA.EHR.Application.Repositories $"2.āđ„āļ”āđ‰ āļ—.āļŠ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 5 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰ āļ—.āļŠ. āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 5, 7, 28)).ToThaiFullDate3()} āļŦāļĢāļ·āļ­āļāđˆāļ­āļ™āļŦāļ™āđ‰āļēāļ™āļąāđ‰āļ™)", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ—.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -6181,6 +6249,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -6232,7 +6301,8 @@ namespace BMA.EHR.Application.Repositories $"1.āđ„āļ”āđ‰ āļ—.āļŠ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 3 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰ āļ—.āļŠ. āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 3, 7, 28)).ToThaiFullDate3()} āļŦāļĢāļ·āļ­āļāđˆāļ­āļ™āļŦāļ™āđ‰āļēāļ™āļąāđ‰āļ™)", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ—.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -6330,6 +6400,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -6381,7 +6452,8 @@ namespace BMA.EHR.Application.Repositories $"1.āđ„āļ”āđ‰ āļ›.āļĄ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 3 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰ āļ›.āļĄ. āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 3, 7, 28)).ToThaiFullDate3()} āļŦāļĢāļ·āļ­āļāđˆāļ­āļ™āļŦāļ™āđ‰āļēāļ™āļąāđ‰āļ™)", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ›.āļĄ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -6480,6 +6552,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -6531,7 +6604,8 @@ namespace BMA.EHR.Application.Repositories $"1.āđ„āļ”āđ‰ āļ›.āļŠ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 5 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰ āļ›.āļŠ. āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 3, 7, 28)).ToThaiFullDate3()} āļŦāļĢāļ·āļ­āļāđˆāļ­āļ™āļŦāļ™āđ‰āļēāļ™āļąāđ‰āļ™)", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ›.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -6709,6 +6783,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -6760,7 +6835,8 @@ namespace BMA.EHR.Application.Repositories $"1.āđ„āļ”āđ‰ āļ—.āļŠ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 3 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰ āļ—.āļŠ. āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 3, 7, 28)).ToThaiFullDate3()} āļŦāļĢāļ·āļ­āļāđˆāļ­āļ™āļŦāļ™āđ‰āļēāļ™āļąāđ‰āļ™)", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ—.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -6858,6 +6934,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -6909,7 +6986,8 @@ namespace BMA.EHR.Application.Repositories $"1.āđ„āļ”āđ‰ āļ›.āļĄ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 3 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰ āļ›.āļĄ. āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 3, 7, 28)).ToThaiFullDate3()} āļŦāļĢāļ·āļ­āļāđˆāļ­āļ™āļŦāļ™āđ‰āļēāļ™āļąāđ‰āļ™)", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ›.āļĄ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -7007,6 +7085,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -7058,7 +7137,8 @@ namespace BMA.EHR.Application.Repositories $"1.āđ„āļ”āđ‰ āļ›.āļŠ. āļĄāļēāđāļĨāđ‰āļ§āđ„āļĄāđˆāļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 5 āļ›āļĩ āļšāļĢāļīāļšāļđāļĢāļ“āđŒ (āđ„āļ”āđ‰ āļ›.āļŠ. āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 3, 7, 28)).ToThaiFullDate3()} āļŦāļĢāļ·āļ­āļāđˆāļ­āļ™āļŦāļ™āđ‰āļēāļ™āļąāđ‰āļ™)", Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ›.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -7207,6 +7287,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -7264,7 +7345,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ 14,500 āļšāļēāļ—", Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -7362,6 +7444,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -7419,7 +7502,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ 14,500 āļšāļēāļ—", Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -7515,6 +7599,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -7572,7 +7657,8 @@ namespace BMA.EHR.Application.Repositories Condition = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ 14,500 āļšāļēāļ—", Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } - } + }, + ProfileType = p.ProfileType }) .ToList(); @@ -7886,6 +7972,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType }); // check āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļēāļāļāļ§āđˆāļē 25 āļ›āļĩ @@ -7935,6 +8022,7 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, + ProfileType = p.ProfileType })).ToList(); diff --git a/BMA.EHR.Application/Responses/Profiles/GetProfileByRootIdDto.cs b/BMA.EHR.Application/Responses/Profiles/GetProfileByRootIdDto.cs index fa649550..4f9b753c 100644 --- a/BMA.EHR.Application/Responses/Profiles/GetProfileByRootIdDto.cs +++ b/BMA.EHR.Application/Responses/Profiles/GetProfileByRootIdDto.cs @@ -63,5 +63,7 @@ namespace BMA.EHR.Application.Responses.Profiles public Guid? Child4Id { get; set; } public Guid? Child4DnaId { get; set; } public string? Child4 { get; set; } + + public string? ProfileType { get; set; } } } diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 014d9be4..56b05c71 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -4,6 +4,7 @@ using BMA.EHR.Application.Repositories.Reports; using BMA.EHR.Application.Requests; using BMA.EHR.Application.Responses.Insignias; using BMA.EHR.Application.Responses.Organizations; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Insignias; @@ -20,6 +21,7 @@ using OfficeOpenXml; using RabbitMQ.Client; using Swashbuckle.AspNetCore.Annotations; using System.Security.Claims; +using System.Security.Cryptography; using System.Text; namespace BMA.EHR.Insignia.Service.Controllers @@ -391,13 +393,54 @@ namespace BMA.EHR.Insignia.Service.Controllers } - [HttpGet("cal-test/{period:guid}/{oc:guid}")] - public async Task> GetTestInsigniaRequest(Guid period, Guid oc) + [HttpGet("cal-test/{periodId:guid}")] + public async Task> GetTestInsigniaRequest(Guid periodId) { - var candidate = await _repository.GetInsigniaCandidateBKK(period, oc); - await _repository.InsertCandidate(period, oc, "āļŠāļģāļ™āļąāļāļ‡āļēāļ™āđ€āļ‚āļ•āļžāļĢāļ°āļ™āļ„āļĢ", candidate); + //var candidate = await _repository.GetInsigniaCandidateBKK(period, oc); + //await _repository.InsertCandidate(period, oc, "āļŠāļģāļ™āļąāļāļ‡āļēāļ™āđ€āļ‚āļ•āļžāļĢāļ°āļ™āļ„āļĢ", candidate); - return Success(candidate); + var selectPeriod = _context.InsigniaPeriods.AsNoTracking().Include(x => x.InsigniaEmployees) + .Where(x => x.Id == periodId).FirstOrDefault(); + if (selectPeriod == null) + throw new Exception(GlobalMessages.InsigniaPeriodNotFound); + + var organizations = await _userProfileRepository.GetActiveRootAsync(AccessToken, selectPeriod.RevisionId); + var allEmployeeProfileByRoot = new List(); + + foreach (var organization in organizations) + { + if (organization == null) + continue; + + if (selectPeriod != null && selectPeriod.InsigniaEmployees != null) + { + var emp = + await _userProfileRepository.GetEmployeeProfileByPositionAsync(organization.Id, selectPeriod.InsigniaEmployees.Select(x => x.RefId), AccessToken); + if (emp != null) + allEmployeeProfileByRoot.AddRange(emp); + } + } + + var resultData = allEmployeeProfileByRoot.Select(x => new + { + citizenId = x.CitizenId, + fullName = $"{x.Prefix}{x.FirstName} {x.LastName}", + root = x.Root, + dateAppoint = x.DateAppoint == null ? "" : x.DateAppoint.Value.ToThaiShortDate(), + salary = x.Amount, + salaryCondition = x.ProfileSalary == null || x.ProfileSalary.Count == 0 ? 0 : + x.ProfileSalary.Where(x => x.Date != null).Where(x => x.Date.Value <= new DateTime(selectPeriod.Year, 4, 29)) + .OrderByDescending(x => x.Order).FirstOrDefault() != null ? x.ProfileSalary + .Where(x => x.Date != null).Where(x => x.Date.Value <= new DateTime(selectPeriod.Year, 4, 29)) + .OrderByDescending(x => x.Order).FirstOrDefault().Amount : + x.Amount, + insignias = x.ProfileInsignia.ToList(), + salaries = x.ProfileSalary.ToList(), + profileType = x.ProfileType + }).ToList(); + + + return Success(resultData); } /// @@ -2230,7 +2273,7 @@ namespace BMA.EHR.Insignia.Service.Controllers } return Success(_insigniaNoteProfiles); } - catch(Exception ex) + catch (Exception ex) { return Error(ex); } From c1597c4a5c1ac07f5cd9c4492f82e01c7016fe1e Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 8 May 2025 14:14:13 +0700 Subject: [PATCH 297/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20format=20?= =?UTF-8?q?=E0=B8=A7=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=A0?= =?UTF-8?q?=E0=B8=A3=E0=B8=A3=E0=B8=A2=E0=B8=B2=E0=B8=84=E0=B8=A5=E0=B8=AD?= =?UTF-8?q?=E0=B8=94=E0=B8=9A=E0=B8=B8=E0=B8=95=E0=B8=A3=20(=E0=B9=81?= =?UTF-8?q?=E0=B8=9B=E0=B8=A5=E0=B8=87=E0=B9=80=E0=B8=9B=E0=B9=87=E0=B8=99?= =?UTF-8?q?=E0=B8=A7=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=88?= =?UTF-8?q?=E0=B8=B2=E0=B8=81=20string)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index adc3ba3c..729c6969 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -243,7 +243,7 @@ namespace BMA.EHR.Leave.Service.Controllers positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), organizationName = profile!.Oc!.ToThaiNumber() ?? "", wifeDayName = data.WifeDayName ?? "", - wifeDayDateBorn = data.WifeDayDateBorn.ToThaiNumber() ?? "", + wifeDayDateBorn =data.WifeDayDateBorn == null || data.WifeDayDateBorn == "" ? "" : DateTime.Parse(data.WifeDayDateBorn).ToThaiShortDate().ToThaiNumber(), leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), LeaveTotal = data.LeaveTotal.ToString().ToThaiNumber(), //data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), From 0451b9e3e18e755954b9a9060c2ac7c2a6f7681b Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 8 May 2025 14:57:38 +0700 Subject: [PATCH 298/879] =?UTF-8?q?fixc=20=E0=B8=A5=E0=B8=B2=E0=B8=9E?= =?UTF-8?q?=E0=B8=B1=E0=B8=81=E0=B8=9C=E0=B9=88=E0=B8=B2=E0=B8=99=20adminB?= =?UTF-8?q?yId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/LeaveRequestController.cs | 88 +++++++++++++------ 1 file changed, 63 insertions(+), 25 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 10a09688..d5382069 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -17,6 +17,7 @@ using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Org.BouncyCastle.Asn1.Pkcs; +using Sentry; using Swashbuckle.AspNetCore.Annotations; using System.Net.Http.Headers; using System.Security.Claims; @@ -2204,40 +2205,77 @@ namespace BMA.EHR.Leave.Service.Controllers if (rawData.Root != null && rawData.Root != "") orgName += $" {rawData.Root}"; - // #1136 - var extendLeave = 0.0; - var leaveLimit = rawData.Type.Limit; + var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(thisYear, rawData.Type.Id, rawData.KeycloakUserId); - var approvePrevYear = await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear - 1); + var extendLeave = 0.0; + var leaveLimit = (double)rawData.Type.Limit; if (rawData.Type.Code == "LV-005") { - var beginningLeave = await _leaveBeginningRepository.GetByYearAndTypeIdAsync(thisYear, rawData.Type.Id); + //var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(thisYear, leaveType.Id, userId); + leaveLimit = leaveData == null ? 0.0 : leaveData.LeaveDays; + extendLeave = leaveLimit - 10; - var apprvPrevData = approvePrevYear.FirstOrDefault(x => x.KeycloakUserId == rawData.KeycloakUserId && x.LeaveTypeId == rawData.Type.Id); - var apprvPrev = apprvPrevData == null ? 0 : apprvPrevData.SumLeaveDay; + //var beginningLeave = await _leaveBeginningRepository.GetByYearAndTypeIdAsync(thisYear, leaveType.Id); - var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(rawData.KeycloakUserId, AccessToken); - var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); + //var apprvPrevData = approvePrevYear.FirstOrDefault(x => x.KeycloakUserId == userId && x.LeaveTypeId == leaveType.Id); + //var apprvPrev = apprvPrevData == null ? 0 : apprvPrevData.SumLeaveDay; - if (govAge >= 180) - { - if (govAge >= 3650) - { - // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ - extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ - if (extendLeave >= 20) extendLeave = 20; - } - else - { - extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ - if (extendLeave >= 10) extendLeave = 10; - } - } - else - leaveLimit = 0; + //var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken); + //var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); + + //if (govAge >= 180) + //{ + // if (govAge >= 3650) + // { + // // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ + // extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + // if (extendLeave >= 20) extendLeave = 20; + // } + // else + // { + // extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + // if (extendLeave >= 10) extendLeave = 10; + // } + //} + //else + // leaveLimit = 0; } + // #1136 + //var extendLeave = 0.0; + //var leaveLimit = rawData.Type.Limit; + + //var approvePrevYear = await _leaveRequestRepository.GetSumApproveLeaveAsync(thisYear - 1); + + //if (rawData.Type.Code == "LV-005") + //{ + // var beginningLeave = await _leaveBeginningRepository.GetByYearAndTypeIdAsync(thisYear, rawData.Type.Id); + + // var apprvPrevData = approvePrevYear.FirstOrDefault(x => x.KeycloakUserId == rawData.KeycloakUserId && x.LeaveTypeId == rawData.Type.Id); + // var apprvPrev = apprvPrevData == null ? 0 : apprvPrevData.SumLeaveDay; + + // var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(rawData.KeycloakUserId, AccessToken); + // var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date); + + // if (govAge >= 180) + // { + // if (govAge >= 3650) + // { + // // āļ–āđ‰āļēāļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļīāļ™ 10 āļ›āļĩ āđ„āļ”āđ‰āļšāļ§āļāđ€āļžāļīāđˆāļĄāļ­āļĩāļ 10 āļ§āļąāļ™ + // extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 30 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + // if (extendLeave >= 20) extendLeave = 20; + // } + // else + // { + // extendLeave = beginningLeave != null ? beginningLeave.LeaveDays : 20 - apprvPrev; // āļŦāļēāļĒāļ­āļ”āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđ€āļŦāļĨāļ·āļ­āļ‚āļ­āļ‡āļ›āļĩāļāđˆāļ­āļ™ + // if (extendLeave >= 10) extendLeave = 10; + // } + // } + // else + // leaveLimit = 0; + //} + var result = new GetLeaveRequestForAdminByIdDto { Id = rawData.Id, From f71cb56a40a2f521141b705d6f0e0d0bbae0d1f8 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 8 May 2025 15:30:34 +0700 Subject: [PATCH 299/879] fix #1519 --- .../LeaveRequests/LeaveRequestRepository.cs | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 0968b3b6..94cc9e4e 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -530,8 +530,27 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning if (data.ApproveStep == "st4") // āļ–āđ‰āļēāļĄāļĩāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđāļĨāđ‰āļ§ + { await _leaveBeginningRepository.UpdateLeaveUsageAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal); + var _baseAPI = _configuration["API"]; + var apiUrlSalary = $"{_baseAPI}/org/profile/leave/cancel/{data.Id}"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + + var request = new HttpRequestMessage(HttpMethod.Patch, apiUrlSalary); + + // āļŠāđˆāļ‡ request + var _res = await client.SendAsync(request); + if (!_res.IsSuccessStatusCode) + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļąāļžāđ€āļ”āļ•āļāļēāļĢāļĒāļāđ€āļĨāļīāļāļĢāļēāļĒāļāļēāļĢāļĨāļēāđ„āļ›āļĒāļąāļ‡āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + //var _result = await _res.Content.ReadAsStringAsync(); + } + } + + // Send Noti var noti = new Notification { @@ -543,24 +562,6 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests _appDbContext.Set().Add(noti); await _appDbContext.SaveChangesAsync(); - - var _baseAPI = _configuration["API"]; - var apiUrlSalary = $"{_baseAPI}/org/profile/leave/cancel/{data.Id}"; - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - - var request = new HttpRequestMessage(HttpMethod.Patch, apiUrlSalary); - - // āļŠāđˆāļ‡ request - var _res = await client.SendAsync(request); - if (!_res.IsSuccessStatusCode) - throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļąāļžāđ€āļ”āļ•āļāļēāļĢāļĒāļāđ€āļĨāļīāļāļĢāļēāļĒāļāļēāļĢāļĨāļēāđ„āļ›āļĒāļąāļ‡āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); - //var _result = await _res.Content.ReadAsStringAsync(); - } - - return data; } catch From 0367e33768485c3bafc8a91ed271281fedd3cc25 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 8 May 2025 16:11:46 +0700 Subject: [PATCH 300/879] =?UTF-8?q?fix=20leavereport=20=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=99=E0=B8=A5=E0=B8=B2=E0=B8=9E=E0=B8=B1=E0=B8=81=E0=B8=9C?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 729c6969..b58c5821 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -287,7 +287,7 @@ namespace BMA.EHR.Leave.Service.Controllers //var sumWeekend = _holidayRepository.GetWeekEndCount(data.LeaveStartDate.Date, data.LeaveEndDate.Date, category); var startFiscalYear = new DateTime(data.LeaveStartDate.Year - 1, 10, 1); - var endFiscalYear = data.CreatedAt.Date.AddDays(-1); // āļ™āļąāļšāļˆāļēāļāļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļĨāļē + var endFiscalYear = data.LeaveStartDate.Date.AddDays(-1); // āļ™āļąāļšāļˆāļēāļāļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļĨāļē var leaveData = await _leaveBeginningRepository.GetByYearAndTypeIdForUserAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId); //var sumLeave = leaveData == null ? 0 : leaveData.LeaveDaysUsed; From 41bcc2a1ef1cbf28a6e4ee08086c4b48a6b12e1d Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 8 May 2025 16:36:36 +0700 Subject: [PATCH 301/879] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=82=E0=B8=AD=E0=B8=A2=E0=B8=81?= =?UTF-8?q?=E0=B9=80=E0=B8=A5=E0=B8=B4=E0=B8=81=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=A5=E0=B8=B2=20=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B8=AA?= =?UTF-8?q?=E0=B8=96=E0=B8=B2=E0=B8=99=E0=B8=B0=E0=B9=80=E0=B8=9B=E0=B9=87?= =?UTF-8?q?=E0=B8=99=20DELETING=20=E0=B8=88=E0=B8=99=E0=B8=A1=E0=B8=B5?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=AD=E0=B8=99=E0=B8=B8=E0=B8=A1?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4=20=E0=B9=81=E0=B8=A5=E0=B9=89?= =?UTF-8?q?=E0=B8=A7=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5=E0=B9=88=E0=B8=A2?= =?UTF-8?q?=E0=B8=99=E0=B9=80=E0=B8=9B=E0=B9=87=E0=B8=99=20DELETE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveRequestRepository.cs | 40 +++++++++++-------- .../Controllers/LeaveRequestController.cs | 5 ++- 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 94cc9e4e..aff64913 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -524,6 +524,9 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests } + // āļ›āļĢāļąāļšāļŠāļ–āļēāļ™āļ° āļˆāļēāļ DELETING āļĄāļēāđ€āļ›āđ‡āļ™ DELETE + data.LeaveStatus = "DELETE"; + data.LeaveCancelStatus = "APPROVE"; data.LeaveDirectorComment = Reason; data.LeaveCancelComment = LeaveReason; @@ -586,6 +589,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests throw new Exception(GlobalMessages.DataNotFound); } + rawData.LeaveStatus = "DELETE"; + rawData.LeaveCancelStatus = "APPROVE"; rawData.LeaveDirectorComment = Reason; @@ -593,8 +598,26 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests // TODO : Update āđ„āļ›āļ•āļēāļĢāļēāļ‡ beginning if (rawData.ApproveStep == "st4") // āļ–āđ‰āļēāļĄāļĩāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđāļĨāđ‰āļ§ + { await _leaveBeginningRepository.UpdateLeaveUsageAsync(rawData.LeaveStartDate.Year, rawData.Type.Id, rawData.KeycloakUserId, -1 * rawData.LeaveTotal); + var _baseAPI = _configuration["API"]; + var apiUrlSalary = $"{_baseAPI}/org/profile/leave/cancel/{rawData.Id}"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + + var request = new HttpRequestMessage(HttpMethod.Patch, apiUrlSalary); + + // āļŠāđˆāļ‡ request + var _res = await client.SendAsync(request); + if (!_res.IsSuccessStatusCode) + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļąāļžāđ€āļ”āļ•āļāļēāļĢāļĒāļāđ€āļĨāļīāļāļĢāļēāļĒāļāļēāļĢāļĨāļēāđ„āļ›āļĒāļąāļ‡āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + //var _result = await _res.Content.ReadAsStringAsync(); + } + } + // TODO: remove āļ§āļąāļ™āļĨāļē // Send Noti @@ -608,22 +631,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests _appDbContext.Set().Add(noti); await _appDbContext.SaveChangesAsync(); - var _baseAPI = _configuration["API"]; - var apiUrlSalary = $"{_baseAPI}/org/profile/leave/cancel/{rawData.Id}"; - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - - var request = new HttpRequestMessage(HttpMethod.Patch, apiUrlSalary); - - // āļŠāđˆāļ‡ request - var _res = await client.SendAsync(request); - if (!_res.IsSuccessStatusCode) - throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļąāļžāđ€āļ”āļ•āļāļēāļĢāļĒāļāđ€āļĨāļīāļāļĢāļēāļĒāļāļēāļĢāļĨāļēāđ„āļ›āļĒāļąāļ‡āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); - //var _result = await _res.Content.ReadAsStringAsync(); - } - + } public async Task RejectCancelLeaveRequestAsync(Guid id, string Reason) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index d5382069..9fe8e9c1 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1693,7 +1693,10 @@ namespace BMA.EHR.Leave.Service.Controllers } // change status to delete - data.LeaveStatus = "DELETE"; + // āđāļāđ‰āļˆāļēāļ DELETE āđ€āļ›āđ‡āļ™ DELETING āđ„āļ§āđ‰āļāđˆāļ­āļ™ āļĢāļ­ approve āļ„āđˆāļ­āļĒāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ€āļ›āđ‡āļ™ DELETE + // data.LeaveStatus = "DELETE"; + + data.LeaveStatus = "DELETING"; data.CancelLeaveWrote = req.LeaveWrote ?? ""; From 496917c34c2a48aaae53219f46d62ab32be647b3 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 8 May 2025 21:06:26 +0700 Subject: [PATCH 302/879] fix #1352 --- .../LeaveRequests/LeaveRequestRepository.cs | 23 ++++++++++++- .../Controllers/LeaveRequestController.cs | 32 ++++++++++++++++++- 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index aff64913..0b93bd72 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -494,7 +494,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests return data; } - public async Task> GetCancelLeaveRequestForAdminAsync(int year, Guid type, string status) + public async Task> GetCancelLeaveRequestForAdminAsync(int year, Guid type, string status, string role, string? nodeId, int? node) { var rawData = _dbContext.Set().AsNoTracking() .Include(x => x.Type) @@ -510,6 +510,27 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests if (status.Trim().ToUpper() != "ALL") rawData = rawData.Where(x => x.LeaveCancelStatus == status); + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + rawData = rawData + .Where(x => node == 4 ? x.Child4DnaId == Guid.Parse(nodeId!) : (node == 3 ? x.Child3DnaId == Guid.Parse(nodeId!) : (node == 2 ? x.Child2DnaId == Guid.Parse(nodeId!) : (node == 1 ? x.Child1DnaId == Guid.Parse(nodeId!) : (node == 0 ? x.RootDnaId == Guid.Parse(nodeId!) : (node == null ? true : true)))))); + } + else if (role == "ROOT") + { + rawData = rawData + .Where(x => x.RootDnaId == Guid.Parse(nodeId!)); + } + else if (role == "NORMAL") + { + rawData = rawData + .Where(x => node == 0 ? x.Child1DnaId == null : (node == 1 ? x.Child2DnaId == null : (node == 2 ? x.Child3DnaId == null : (node == 3 ? x.Child4DnaId == null : true)))); + } + return await rawData.ToListAsync(); } diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 9fe8e9c1..3591e8f5 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1744,8 +1744,38 @@ namespace BMA.EHR.Leave.Service.Controllers public async Task> GetCancelLeaveRequestForAdminAsync( [FromBody] GetLeaveRequestForAdminDto req) { + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_LEAVE_LIST"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + var rawData = - await _leaveRequestRepository.GetCancelLeaveRequestForAdminAsync(req.Year, req.Type, req.Status); + await _leaveRequestRepository.GetCancelLeaveRequestForAdminAsync(req.Year, req.Type, req.Status, role, nodeId, profileAdmin?.Node); var result = new List(); From 4cc57322c0a43e15e3d50007167dd742ab4615f9 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 8 May 2025 22:19:12 +0700 Subject: [PATCH 303/879] fix ccode --- .../Repositories/GenericRepository.cs | 43 ++++++++++++++++--- .../Repositories/InsigniaPeriodsRepository.cs | 2 +- .../Repositories/UserProfileRepository.cs | 8 +++- .../Controllers/InsigniaRequestController.cs | 2 +- 4 files changed, 47 insertions(+), 8 deletions(-) diff --git a/BMA.EHR.Application/Repositories/GenericRepository.cs b/BMA.EHR.Application/Repositories/GenericRepository.cs index 1d562581..1f10ca37 100644 --- a/BMA.EHR.Application/Repositories/GenericRepository.cs +++ b/BMA.EHR.Application/Repositories/GenericRepository.cs @@ -1,15 +1,16 @@ -ïŧŋusing Amazon.S3.Model.Internal.MarshallTransformations; +ïŧŋusing Amazon.Runtime.Internal.Endpoints.StandardLibrary; +using Amazon.S3.Model.Internal.MarshallTransformations; using BMA.EHR.Application.Common.Interfaces; using BMA.EHR.Domain.Models.Base; using BMA.EHR.Domain.Models.HR; using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; -using Newtonsoft.Json.Linq; +using Microsoft.Extensions.Configuration; using Newtonsoft.Json; +using Newtonsoft.Json.Linq; using System.Net.Http.Headers; using System.Security.Claims; using System.Text; -using Microsoft.Extensions.Configuration; namespace BMA.EHR.Application.Repositories { @@ -76,13 +77,45 @@ namespace BMA.EHR.Application.Repositories } } + protected async Task SendExternalAPIAsync(HttpMethod method, string apiPath, string accessToken, object? body, string apiKey) + { + try + { + // āļŠāļĢāđ‰āļēāļ‡ request message + var request = new HttpRequestMessage(method, apiPath); + + + var json = JsonConvert.SerializeObject(body); + request.Content = new StringContent(json, Encoding.UTF8, "application/json"); + + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", apiKey); + var _res = await client.SendAsync(request); + if (_res.IsSuccessStatusCode) + { + var _result = await _res.Content.ReadAsStringAsync(); + + return _result; + } + return string.Empty; + } + } + catch + { + throw; + } + } + + protected async Task PostExternalAPIAsync(string apiPath, string accessToken, object? body, string apiKey) { try { var json = JsonConvert.SerializeObject(body); - var stringContent = new StringContent(json, UnicodeEncoding.UTF8, "application/json"); - stringContent.Headers.ContentType = new MediaTypeHeaderValue("application/json"); + var stringContent = new StringContent(json, Encoding.UTF8, "application/json"); + //stringContent.Headers.ContentType = new MediaTypeHeaderValue("application/json"); using (var client = new HttpClient()) { diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 9eed3f11..68a3b076 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -7728,7 +7728,7 @@ namespace BMA.EHR.Application.Repositories if (period != null && period.InsigniaEmployees != null) { allEmployeeProfileByRoot = - (await _userProfileRepository.GetEmployeeProfileByPositionAsync(ocId, period.InsigniaEmployees.Select(x => x.RefId), AccessToken)); + (await _userProfileRepository.GetEmployeeProfileByPositionAsync(ocId, period.InsigniaEmployees.Select(x => x.RefId!.ValueOrBlank()).ToArray(), AccessToken)); } var type_coin = allOfficerProfilesByRoot.Count() > 0 ? await GetCoinCandidate(periodId, ocId, allOfficerProfilesByRoot) : new List(); diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index 5592a6aa..4fbd0128 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -12,6 +12,7 @@ using Microsoft.Extensions.Configuration; using Newtonsoft.Json; using System.Reflection.Emit; using System.Security.Cryptography; +using System.Text; namespace BMA.EHR.Application.Repositories { @@ -130,7 +131,7 @@ namespace BMA.EHR.Application.Repositories } } - public async Task> GetEmployeeProfileByPositionAsync(Guid rootId, dynamic empPosId, string? accessToken) + public async Task> GetEmployeeProfileByPositionAsync(Guid rootId, string[] empPosId, string? accessToken) { try { @@ -143,6 +144,11 @@ namespace BMA.EHR.Application.Repositories empPosId }; + //var bodyJson = JsonConvert.SerializeObject(bodyRaw); + + // āļŠāļĢāđ‰āļēāļ‡ HTTP content + //var body = new StringContent(bodyJson, Encoding.UTF8, "application/json"); + var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey); if (apiResult != null) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 56b05c71..483228b4 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -415,7 +415,7 @@ namespace BMA.EHR.Insignia.Service.Controllers if (selectPeriod != null && selectPeriod.InsigniaEmployees != null) { var emp = - await _userProfileRepository.GetEmployeeProfileByPositionAsync(organization.Id, selectPeriod.InsigniaEmployees.Select(x => x.RefId), AccessToken); + await _userProfileRepository.GetEmployeeProfileByPositionAsync(organization.Id, selectPeriod.InsigniaEmployees.Select(x => x.RefId!.ValueOrBlank()).ToArray(), AccessToken); if (emp != null) allEmployeeProfileByRoot.AddRange(emp); } From f09cea096f7b26750a80a3d27fcbfee4587c9420 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 13 May 2025 09:28:45 +0700 Subject: [PATCH 304/879] fix code --- BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 483228b4..f419847a 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -426,6 +426,10 @@ namespace BMA.EHR.Insignia.Service.Controllers citizenId = x.CitizenId, fullName = $"{x.Prefix}{x.FirstName} {x.LastName}", root = x.Root, + child1 = x.Child1 ?? "", + child2 = x.Child2 ?? "", + child3 = x.Child3 ?? "", + child4 = x.Child4 ?? "", dateAppoint = x.DateAppoint == null ? "" : x.DateAppoint.Value.ToThaiShortDate(), salary = x.Amount, salaryCondition = x.ProfileSalary == null || x.ProfileSalary.Count == 0 ? 0 : From af9ae3e76356be3b33fc8db2f3b708f743ff5b56 Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 13 May 2025 09:54:24 +0700 Subject: [PATCH 305/879] =?UTF-8?q?fix=20noti=20=E0=B8=96=E0=B8=B6?= =?UTF-8?q?=E0=B8=87=E0=B9=81=E0=B8=81=E0=B9=88=E0=B8=81=E0=B8=A3=E0=B8=A3?= =?UTF-8?q?=E0=B8=A1=20#1523?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/RetirementDeceasedController.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 36d3f01d..24d01982 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -451,7 +451,8 @@ namespace BMA.EHR.Retirement.Service.Controllers var payload_str = JsonConvert.SerializeObject(payload); await _repositoryNoti.PushNotificationAsync( Guid.Parse(higher.profileId), - $"āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {higher.prefix}{higher.firstName} {higher.lastName}", + //$"āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {higher.prefix}{higher.firstName} {higher.lastName}", + $"āđāļˆāđ‰āļ‡āļ‚āđˆāļēāļ§āļāļēāļĢāļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {retirementDeceased.prefix}{retirementDeceased.firstName} {retirementDeceased.lastName}", $"āđāļˆāđ‰āļ‡āļ‚āđˆāļēāļ§āļāļēāļĢāļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {retirementDeceased.prefix}{retirementDeceased.firstName} {retirementDeceased.lastName}", payload_str, "", @@ -795,7 +796,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { await _repositoryNoti.PushNotificationAsync( Guid.Parse(item.profileId), - $"āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}", + $"āđāļˆāđ‰āļ‡āļ‚āđˆāļēāļ§āļāļēāļĢāļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}", $"āđāļˆāđ‰āļ‡āļ‚āđˆāļēāļ§āļāļēāļĢāļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}", payload_str, "", @@ -813,7 +814,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { await _repositoryNoti.PushNotificationAsync( Guid.Parse(item.profileId), - $"āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļ§āļĩāļĒāļ™āļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}", + $"āđāļˆāđ‰āļ‡āļ‚āđˆāļēāļ§āļāļēāļĢāļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}", $"āđāļˆāđ‰āļ‡āļ‚āđˆāļēāļ§āļāļēāļĢāļ–āļķāļ‡āđāļāđˆāļāļĢāļĢāļĄāļ‚āļ­āļ‡ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}", payload_str, "", From 847b89da23283de9a56ce879b4a4a5d25f362fee Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 13 May 2025 10:16:05 +0700 Subject: [PATCH 306/879] fix issue : #1524 --- .../Leaves/LeaveRequests/LeaveRequestRepository.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 0b93bd72..68933211 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -1209,7 +1209,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Include(x => x.Type) //.Where(x => x.LeaveStartDate.Year == year) .Where(x => x.LeaveStartDate.Date >= startFiscalDate && x.LeaveStartDate.Date <= endFiscalDate) - .Where(x => x.LeaveStatus == "NEW") // fix issue : #729 + //.Where(x => x.LeaveStatus == "NEW") // fix issue : #729 + .Where(x => x.LeaveStatus != "DRAFT") // fix issue : #1524 .ToListAsync(); var res = (from d in data From 9e953cd5d64387aa590ceb4f09c7802f2e0e28d2 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 13 May 2025 12:27:19 +0700 Subject: [PATCH 307/879] =?UTF-8?q?fix=20=E0=B8=84=E0=B8=B3=E0=B8=99?= =?UTF-8?q?=E0=B8=A7=E0=B8=99=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=A2=E0=B9=8C?= =?UTF-8?q?=20=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/InsigniaPeriodsRepository.cs | 25 +++++---- .../Controllers/InsigniaRequestController.cs | 56 ++++++++++--------- 2 files changed, 45 insertions(+), 36 deletions(-) diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 68a3b076..e336de4f 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -7859,6 +7859,19 @@ namespace BMA.EHR.Application.Repositories result_candidate.Add(r); } + // āļĒāđ‰āļēāļĒāļ—āļĩāđˆāļ•āļēāļĄāļ—āļĩāđˆ āļĄāļ­āļŠāđāļˆāđ‰āļ‡ + if (period.Round != 1) + { + var insigniaIdList = await _dbContext.Set() + .Include(x => x.InsigniaType) + .Where(x => x.InsigniaType!.Name == "āļŠāļąāđ‰āļ™āļŠāļēāļĒāļŠāļ°āļžāļēāļĒ") + .Select(x => x.Id) + .ToListAsync(); + + + result_candidate = result_candidate.Where(x => insigniaIdList.Contains(x.RequestInsignia.Id)).ToList(); + } + foreach (var r in employee_type2) { var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); @@ -7881,17 +7894,7 @@ namespace BMA.EHR.Application.Repositories // result_candidate.Add(r); //} - if (period.Round != 1) - { - var insigniaIdList = await _dbContext.Set() - .Include(x => x.InsigniaType) - .Where(x => x.InsigniaType!.Name == "āļŠāļąāđ‰āļ™āļŠāļēāļĒāļŠāļ°āļžāļēāļĒ") - .Select(x => x.Id) - .ToListAsync(); - - - result_candidate = result_candidate.Where(x => insigniaIdList.Contains(x.RequestInsignia.Id)).ToList(); - } + return result_candidate.OrderBy(x => x.Seq).ThenBy(x => x.Gender).ThenBy(x => x.ProfileId).ToList(); } diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index f419847a..75442ae2 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -9,6 +9,7 @@ using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Insignias; using BMA.EHR.Domain.Models.MetaData; +using BMA.EHR.Domain.ModelsExam.Candidate; using BMA.EHR.Domain.Shared; using BMA.EHR.Infrastructure.Persistence; using BMA.EHR.Insignia.Service.Requests; @@ -407,6 +408,8 @@ namespace BMA.EHR.Insignia.Service.Controllers var organizations = await _userProfileRepository.GetActiveRootAsync(AccessToken, selectPeriod.RevisionId); var allEmployeeProfileByRoot = new List(); + var candidates = new List(); + foreach (var organization in organizations) { if (organization == null) @@ -414,34 +417,37 @@ namespace BMA.EHR.Insignia.Service.Controllers if (selectPeriod != null && selectPeriod.InsigniaEmployees != null) { - var emp = - await _userProfileRepository.GetEmployeeProfileByPositionAsync(organization.Id, selectPeriod.InsigniaEmployees.Select(x => x.RefId!.ValueOrBlank()).ToArray(), AccessToken); - if (emp != null) - allEmployeeProfileByRoot.AddRange(emp); + var can = await _repository.GetInsigniaCandidateBKK(periodId, organization.Id); + //var emp = + // await _userProfileRepository.GetEmployeeProfileByPositionAsync(organization.Id, selectPeriod.InsigniaEmployees.Select(x => x.RefId!.ValueOrBlank()).ToArray(), AccessToken); + if (can != null) + candidates.AddRange(can); } } - var resultData = allEmployeeProfileByRoot.Select(x => new - { - citizenId = x.CitizenId, - fullName = $"{x.Prefix}{x.FirstName} {x.LastName}", - root = x.Root, - child1 = x.Child1 ?? "", - child2 = x.Child2 ?? "", - child3 = x.Child3 ?? "", - child4 = x.Child4 ?? "", - dateAppoint = x.DateAppoint == null ? "" : x.DateAppoint.Value.ToThaiShortDate(), - salary = x.Amount, - salaryCondition = x.ProfileSalary == null || x.ProfileSalary.Count == 0 ? 0 : - x.ProfileSalary.Where(x => x.Date != null).Where(x => x.Date.Value <= new DateTime(selectPeriod.Year, 4, 29)) - .OrderByDescending(x => x.Order).FirstOrDefault() != null ? x.ProfileSalary - .Where(x => x.Date != null).Where(x => x.Date.Value <= new DateTime(selectPeriod.Year, 4, 29)) - .OrderByDescending(x => x.Order).FirstOrDefault().Amount : - x.Amount, - insignias = x.ProfileInsignia.ToList(), - salaries = x.ProfileSalary.ToList(), - profileType = x.ProfileType - }).ToList(); + var resultData = candidates.Where(x => x.ProfileType == "EMPLOYEE").ToList(); + + //var resultData = allEmployeeProfileByRoot.Select(x => new + //{ + // citizenId = x.CitizenId, + // fullName = $"{x.Prefix}{x.FirstName} {x.LastName}", + // root = x.Root, + // child1 = x.Child1 ?? "", + // child2 = x.Child2 ?? "", + // child3 = x.Child3 ?? "", + // child4 = x.Child4 ?? "", + // dateAppoint = x.DateAppoint == null ? "" : x.DateAppoint.Value.ToThaiShortDate(), + // salary = x.Amount, + // salaryCondition = x.ProfileSalary == null || x.ProfileSalary.Count == 0 ? 0 : + // x.ProfileSalary.Where(x => x.Date != null).Where(x => x.Date.Value <= new DateTime(selectPeriod.Year, 4, 29)) + // .OrderByDescending(x => x.Order).FirstOrDefault() != null ? x.ProfileSalary + // .Where(x => x.Date != null).Where(x => x.Date.Value <= new DateTime(selectPeriod.Year, 4, 29)) + // .OrderByDescending(x => x.Order).FirstOrDefault().Amount : + // x.Amount, + // insignias = x.ProfileInsignia.ToList(), + // salaries = x.ProfileSalary.ToList(), + // profileType = x.ProfileType + //}).ToList(); return Success(resultData); From 2f1cd53493bf29021cf83f0e43368c8e32236366 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 13 May 2025 12:46:25 +0700 Subject: [PATCH 308/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B9=84?= =?UTF-8?q?=E0=B8=9B=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=8A=E0=B8=B8=E0=B8=A1?= =?UTF-8?q?/=E0=B8=AD=E0=B8=9A=E0=B8=A3=E0=B8=A1/=E0=B8=AA=E0=B8=B1?= =?UTF-8?q?=E0=B8=A1=E0=B8=A1=E0=B8=99=E0=B8=B2/=E0=B8=9B=E0=B8=8F?= =?UTF-8?q?=E0=B8=B4=E0=B8=9A=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=87=E0=B8=B2?= =?UTF-8?q?=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=9A=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=99=E0=B8=99=E0=B8=AD=E0=B8=81=E0=B8=AA=E0=B8=96=E0=B8=B2?= =?UTF-8?q?=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88=20=E0=B9=83=E0=B8=AB?= =?UTF-8?q?=E0=B9=89=20startTime=20=E0=B9=80=E0=B8=9B=E0=B9=87=E0=B8=99=20?= =?UTF-8?q?09:30?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveController.cs | 24 +++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index 6947557e..c6f1db85 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -852,14 +852,22 @@ namespace BMA.EHR.Leave.Service.Controllers ProfileType = profile.ProfileType, }; - var checkInStatus = DateTime.Parse(currentDate.ToString("yyyy-MM-dd HH:mm")) > - DateTime.Parse($"{currentDate.ToString("yyyy-MM-dd")} {duty.StartTimeMorning}") ? + var startTime = ""; + if (!data.IsLocation && data.LocationName == "āđ„āļ›āļ›āļĢāļ°āļŠāļļāļĄ/āļ­āļšāļĢāļĄ/āļŠāļąāļĄāļĄāļ™āļē/āļ›āļāļīāļšāļąāļ•āļīāļ‡āļēāļ™āļ—āļĩāđˆāļšāđ‰āļēāļ™āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆ") + { + startTime = "09:30"; + } + else + startTime = duty.StartTimeMorning; - DateTime.Parse(currentDate.ToString("yyyy-MM-dd HH:mm")) > - DateTime.Parse($"{currentDate.ToString("yyyy-MM-dd")} {duty.EndTimeMorning}") ? - "ABSENT" : - "LATE" : - "NORMAL"; + var checkInStatus = DateTime.Parse(currentDate.ToString("yyyy-MM-dd HH:mm")) > + DateTime.Parse($"{currentDate.ToString("yyyy-MM-dd")} {startTime}") ? + + DateTime.Parse(currentDate.ToString("yyyy-MM-dd HH:mm")) > + DateTime.Parse($"{currentDate.ToString("yyyy-MM-dd")} {duty.EndTimeMorning}") ? + "ABSENT" : + "LATE" : + "NORMAL"; // process - āļĢāļ­āļ—āļģāđƒāļ™ queue var checkin_process = new ProcessUserTimeStamp @@ -1798,7 +1806,7 @@ namespace BMA.EHR.Leave.Service.Controllers var endTime = DateTime.Parse($"{DateTime.Now.Date.ToString("yyyy-MM-dd")}T{duty.EndTimeAfternoon}:00.0000000+07:00"); - var status = lastCheckIn == null ? "ABSENT" : lastCheckIn.CheckIn.Date < DateTime.Now.Date ? "NORMAL" : time < endTime ? "ABSENT" : "NORMAL"; + var status = lastCheckIn == null ? "ABSENT" : lastCheckIn.CheckIn.Date < DateTime.Now.Date ? "NORMAL" : time < endTime ? "ABSENT" : "NORMAL"; return Success(new { From 3f31f68c607da33abf12fd73bd145aebde89431f Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 13 May 2025 14:29:49 +0700 Subject: [PATCH 309/879] =?UTF-8?q?fix=20=E0=B8=9A=E0=B8=B1=E0=B8=99?= =?UTF-8?q?=E0=B8=97=E0=B8=B6=E0=B8=81=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=9E?= =?UTF-8?q?=E0=B8=B4=E0=B8=88=E0=B8=B2=E0=B8=A3=E0=B8=93=E0=B8=B2=E0=B8=82?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=82?= =?UTF-8?q?=E0=B8=AD=E0=B8=A5=E0=B8=B2=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=81?= =?UTF-8?q?=E0=B8=A3=E0=B8=93=E0=B8=B5=E0=B9=80=E0=B8=AA=E0=B9=89=E0=B8=99?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=E0=B8=B8=E0=B8=A1=E0=B8=B1=E0=B8=95=E0=B8=B4?= =?UTF-8?q?=20=E0=B8=A7=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88?= =?UTF-8?q?=E0=B8=AA=E0=B8=B4=E0=B9=89=E0=B8=99=E0=B8=AA=E0=B8=B8=E0=B8=94?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A2=E0=B8=B1=E0=B8=9A=E0=B8=A2?= =?UTF-8?q?=E0=B8=B1=E0=B9=89=E0=B8=87=E0=B8=95=E0=B9=89=E0=B8=AD=E0=B8=87?= =?UTF-8?q?=E0=B8=A7=E0=B9=88=E0=B8=B2=E0=B8=87=20#1518?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Application/Repositories/RetirementRepository.cs | 8 ++++---- .../Controllers/RetirementResignController.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index eb25ebd2..4de888e2 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -137,7 +137,7 @@ namespace BMA.EHR.Application.Repositories await _dbContext.SaveChangesAsync(); } - public async Task CommanderApproveRetirementResign(Guid id, string reason, DateTime date) + public async Task CommanderApproveRetirementResign(Guid id, string reason, DateTime? date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -220,7 +220,7 @@ namespace BMA.EHR.Application.Repositories } } - public async Task CommanderRejectRetirementResign(Guid id, string reason, DateTime date) + public async Task CommanderRejectRetirementResign(Guid id, string reason, DateTime? date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -307,7 +307,7 @@ namespace BMA.EHR.Application.Repositories } - public async Task ApproveRetirementResign(Guid id, string reason, DateTime date) + public async Task ApproveRetirementResign(Guid id, string reason, DateTime? date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -387,7 +387,7 @@ namespace BMA.EHR.Application.Repositories } - public async Task RejectRetirementResign(Guid id, string reason, DateTime date) + public async Task RejectRetirementResign(Guid id, string reason, DateTime? date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 4ca0cd89..759a68a3 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -2663,7 +2663,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.CommanderApproveRetirementResign(id, req.Reason ?? "", req.Date ?? DateTime.Now); + await _repository.CommanderApproveRetirementResign(id, req.Reason ?? "", null); return Success(); } @@ -2697,7 +2697,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.CommanderRejectRetirementResign(id, req.Reason ?? "", req.Date ?? DateTime.Now); + await _repository.CommanderRejectRetirementResign(id, req.Reason ?? "", req.Date); return Success(); } @@ -2731,7 +2731,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.ApproveRetirementResign(id, req.Reason ?? "", req.Date ?? DateTime.Now); + await _repository.ApproveRetirementResign(id, req.Reason ?? "", null); return Success(); } @@ -2765,7 +2765,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.RejectRetirementResign(id, req.Reason ?? "", req.Date ?? DateTime.Now); + await _repository.RejectRetirementResign(id, req.Reason ?? "", req.Date); return Success(); } From 741eccd933ace4efd18457dc32fbd9277ac351c7 Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 14 May 2025 11:36:38 +0700 Subject: [PATCH 310/879] =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97?= =?UTF-8?q?=E0=B8=B6=E0=B8=81=E0=B9=80=E0=B8=A3=E0=B8=B5=E0=B8=A2=E0=B8=99?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 8 ++++---- BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 3591e8f5..d743fce5 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -411,7 +411,7 @@ namespace BMA.EHR.Leave.Service.Controllers // add dear and oc_data //var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken); - var approver = profile.Commander ?? ""; + // var approver = profile.Commander ?? ""; var userOc = profile.Root ?? ""; //if (rootOc != null) //{ @@ -422,8 +422,8 @@ namespace BMA.EHR.Leave.Service.Controllers leaveRequest.LeaveTypeCode = leaveType.Code; - leaveRequest.Dear = approver; - leaveRequest.CommanderPosition = profile.CommanderPositionName ?? ""; + leaveRequest.Dear = req.Commander ?? ""; + leaveRequest.CommanderPosition = req.CommanderPositionName ?? ""; // āđ€āļžāļīāđˆāļĄāļ•āļģāđāļŦāļ™āđˆāļ‡ //leaveRequest.CommanderPosition = req.CommanderPosition ?? ""; @@ -1772,7 +1772,7 @@ namespace BMA.EHR.Leave.Service.Controllers else if (role == "ROOT") { nodeId = profileAdmin?.RootDnaId; - } + } var rawData = await _leaveRequestRepository.GetCancelLeaveRequestForAdminAsync(req.Year, req.Type, req.Status, role, nodeId, profileAdmin?.Node); diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs index b8cc2c03..21ceea77 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs @@ -102,7 +102,11 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public DateTime? CoupleDayEndDateHistory { get; set; } public string? CoupleDaySumTotalHistory { get; set; } + + public string? Commander { get; set; } + + public string? CommanderPositionName { get; set; } } - + } From c7dd897909b697a0dd3e089044dcc88c4fa40f7e Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 14 May 2025 12:04:42 +0700 Subject: [PATCH 311/879] =?UTF-8?q?fix=20=E0=B8=A3=E0=B8=B0=E0=B8=9A?= =?UTF-8?q?=E0=B8=9A=E0=B8=A5=E0=B8=B2=20>>=20=E0=B9=81=E0=B8=9A=E0=B8=9A?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=20(?= =?UTF-8?q?=E0=B8=A5=E0=B8=B2=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=81=E0=B8=AD?= =?UTF-8?q?=E0=B8=9A=E0=B8=9E=E0=B8=B4=E0=B8=98=E0=B8=B5=E0=B8=AE=E0=B8=B1?= =?UTF-8?q?=E0=B8=88=E0=B8=8D=E0=B9=8C)=20#1493?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index b58c5821..b33c2a1e 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -355,8 +355,12 @@ namespace BMA.EHR.Leave.Service.Controllers // if (list.Count > 0) // approver = list.First().Name; //} + if (data != null && data.LeaveSubTypeName == "āļĨāļēāļ›āļĢāļ°āļāļ­āļšāļžāļīāļ˜āļĩāļŪāļąāļˆāļāđŒ" && isHajj == false) + { + isHajj = true; + } - if (data.HajjDayStatus == true) + if (isHajj == true) { return new { From a81b8d50fb83925daffff6ccabc8279120f4da15 Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 14 May 2025 12:35:26 +0700 Subject: [PATCH 312/879] =?UTF-8?q?=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=A2=E0=B8=B9=E0=B9=88=E0=B8=A3=E0=B8=B0=E0=B8=AB=E0=B8=A7?= =?UTF-8?q?=E0=B9=88=E0=B8=B2=E0=B8=87=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index d743fce5..09e04816 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -934,12 +934,12 @@ namespace BMA.EHR.Leave.Service.Controllers SalaryText = lastSalary == null ? "" : lastSalary.Amount == null ? "" : ((int)lastSalary.Amount.Value).ToThaiBahtText(false), LeaveLast = leaveLast == null ? null : leaveLast, - TelephoneNumber = profile.TelephoneNumber ?? "-", - CurrentAddress = profile.CurrentAddress ?? "-", - CurrentSubDistrict = profile.CurrentSubDistrict ?? "-", - CurrentDistrict = profile.CurrentDistrict ?? "-", - CurrentProvince = profile.CurrentProvince ?? "-", - CurrentZipCode = profile.CurrentZipCode ?? "-", + TelephoneNumber = profile.TelephoneNumber ?? "", + CurrentAddress = profile.CurrentAddress ?? "", + CurrentSubDistrict = profile.CurrentSubDistrict ?? "", + CurrentDistrict = profile.CurrentDistrict ?? "", + CurrentProvince = profile.CurrentProvince ?? "", + CurrentZipCode = profile.CurrentZipCode ?? "", }; return Success(result); From 5a33e4690de440f2326e6ccc327f8e227b626250 Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 14 May 2025 15:26:08 +0700 Subject: [PATCH 313/879] add isDeputy --- BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 75442ae2..b5192b46 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -289,8 +289,8 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpGet("{insigniaPeriodId:length(36)}/{ocId:length(36)}/{role}/{status}")] - public async Task> GetInsignaiRequestBkk(Guid insigniaPeriodId, Guid ocId, string role, string status) + [HttpGet("{insigniaPeriodId:length(36)}/{ocId:length(36)}/{role}/{status}/{isDeputy}")] + public async Task> GetInsignaiRequestBkk(Guid insigniaPeriodId, Guid ocId, string role, string status, bool isDeputy) { var result = await _repository.GetInsigniaRequest(insigniaPeriodId, ocId); if (result != null) @@ -315,7 +315,7 @@ namespace BMA.EHR.Insignia.Service.Controllers Items = new List() }; GetIsOfficerDto RoleInsignia = await _userProfileRepository.GetIsOfficerRootAsync(AccessToken, "SYS_INSIGNIA_MANAGE"); - if (RoleInsignia.isOfficer == true && result.RequestStatus != "st6") + if (RoleInsignia.isOfficer == true && isDeputy == false && result.RequestStatus != "st6") return Success(resend); if (RoleInsignia.isDirector == true && (result.RequestStatus == "st1" || result.RequestStatus == "st2")) return Success(resend); From a32c12460aae5833cc54794a91bed428094d7600 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 15 May 2025 10:04:54 +0700 Subject: [PATCH 314/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=8A?= =?UTF-8?q?=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=95=E0=B8=9E=E0=B9=81=E0=B8=AB?= =?UTF-8?q?=E0=B8=99=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 4 ++-- BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 09e04816..4c0e2dff 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -422,8 +422,8 @@ namespace BMA.EHR.Leave.Service.Controllers leaveRequest.LeaveTypeCode = leaveType.Code; - leaveRequest.Dear = req.Commander ?? ""; - leaveRequest.CommanderPosition = req.CommanderPositionName ?? ""; + leaveRequest.Dear = req.Dear ?? ""; + leaveRequest.CommanderPosition = req.CommanderPosition ?? ""; // āđ€āļžāļīāđˆāļĄāļ•āļģāđāļŦāļ™āđˆāļ‡ //leaveRequest.CommanderPosition = req.CommanderPosition ?? ""; diff --git a/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs b/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs index 21ceea77..a79f2fc4 100644 --- a/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs @@ -103,9 +103,9 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest public string? CoupleDaySumTotalHistory { get; set; } - public string? Commander { get; set; } + public string? Dear { get; set; } - public string? CommanderPositionName { get; set; } + public string? CommanderPosition { get; set; } } From afb7b60a197b04bb3c0feaab799c2d9fcd291df3 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 15 May 2025 10:06:08 +0700 Subject: [PATCH 315/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=80?= =?UTF-8?q?=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=8A=E0=B8=A2=E0=B9=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/InsigniaPeriodsRepository.cs | 212 +- .../Requests/InsigniaResultSet.cs | 8 + .../Profiles/GetProfileByRootIdDto.cs | 8 + .../Insignias/InsigniaRequestProfile.cs | 2 + ...5023219_Add MarkInsignia Field.Designer.cs | 20612 ++++++++++++++++ .../20250515023219_Add MarkInsignia Field.cs | 28 + .../ApplicationDBContextModelSnapshot.cs | 3 + 7 files changed, 20842 insertions(+), 31 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250515023219_Add MarkInsignia Field.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250515023219_Add MarkInsignia Field.cs diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index e336de4f..50673e84 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -306,7 +306,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }); // check āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļ°āļ•āđ‰āļ­āļ‡āļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 29/5/āļ›āļĩ-8 āļ‚āļ­ āļšāļĄ. @@ -371,7 +376,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p?.SalaryCondition?.ToString("#,##0")??""}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate })).ToList(); var bcpRoyal = await _dbContext.Set() @@ -450,7 +460,12 @@ namespace BMA.EHR.Application.Repositories .FirstOrDefault() == null ? 0 : p.ProfileInsignia.Where(x => x.InsigniaId.Value == bcmRoyal.Id).OrderBy(x => x.Year) .FirstOrDefault().Year, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(x => (x.SalaryCondition >= 8340 && x.SalaryCondition < 10150) && !x.IsHigherLevel) @@ -510,7 +525,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļš.āļĄ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear}" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -585,7 +605,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(x => (x.SalaryCondition >= 8340 && x.SalaryCondition < 10150) && !x.IsHigherLevel) @@ -645,7 +670,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -787,7 +817,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }); var s1 = ((from p in inst_profile @@ -850,7 +885,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ­āļąāļ•āļĢāļēāļ„āđˆāļēāļˆāđ‰āļēāļ‡ {p?.SalaryCondition?.ToString("#,##0")??""}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate })).ToList(); var bcpRoyal = await _dbContext.Set() @@ -931,7 +971,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(x => (x.SalaryCondition >= 10150) && !x.IsHigherLevel) @@ -991,7 +1036,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļš.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear}" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -1063,7 +1113,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(x => (x.SalaryCondition >= 10150) && !x.IsHigherLevel) @@ -1123,7 +1178,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļˆ.āļĄ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear}" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -1271,7 +1331,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }); // check āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļ°āļ•āđ‰āļ­āļ‡āļ™āđ‰āļ­āļĒāļāļ§āđˆāļē 29/5/āļ›āļĩ-5 @@ -1330,7 +1395,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ {p.ProfileDateAppoint.ToThaiFullDate3()}" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate })).ToList(); var s2 = (from p in allProfilesByRoot @@ -1406,7 +1476,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(x => x.SalaryCondition < 10190 && !x.IsHigherLevel) @@ -1466,7 +1541,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ {p.ProfileDateAppoint.ToThaiFullDate3()}" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -1549,7 +1629,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(x => x.SalaryCondition >= 10190 && !x.IsHigherLevel) @@ -1602,7 +1687,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ {p.SalaryCondition} āļšāļēāļ—" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -1685,7 +1775,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(x => x.SalaryCondition >= 10190 && !x.IsHigherLevel) @@ -1745,7 +1840,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ {p.ProfileDateAppoint.ToThaiFullDate3()}" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -1930,7 +2030,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Select(p => new InsigniaResultSet @@ -1981,7 +2086,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -2071,7 +2181,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(x => x.FirstPositonLevelDate < new DateTime(period.Year - 5, 5, 29)) @@ -2125,7 +2240,12 @@ namespace BMA.EHR.Application.Repositories $"āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel} āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ {(p.FirstPositonLevelDate == null ? "-" : p.FirstPositonLevelDate.Value.ToThaiFullDate3())}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -2279,7 +2399,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Select(p => new InsigniaResultSet @@ -2330,7 +2455,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -2420,7 +2550,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(x => x.FirstPositonLevelDate < new DateTime(period.Year - 5, 5, 29)) @@ -2474,7 +2609,12 @@ namespace BMA.EHR.Application.Repositories $"āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel} āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ {(p.FirstPositonLevelDate == null ? "-" : p.FirstPositonLevelDate.Value.ToThaiFullDate3())}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -7975,7 +8115,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }); // check āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļēāļāļāļ§āđˆāļē 25 āļ›āļĩ @@ -8025,8 +8170,13 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType - + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate + })).ToList(); var result_candidate = new List(); diff --git a/BMA.EHR.Application/Requests/InsigniaResultSet.cs b/BMA.EHR.Application/Requests/InsigniaResultSet.cs index 35dbb596..f396fcf9 100644 --- a/BMA.EHR.Application/Requests/InsigniaResultSet.cs +++ b/BMA.EHR.Application/Requests/InsigniaResultSet.cs @@ -68,6 +68,14 @@ namespace BMA.EHR.Application.Requests public string? Child4 { get; set; } public List MatchingConditions { get; set; } = new List(); + + public bool? MarkDiscipline { get; set; } = false; + + public bool? MarkLeave { get; set; } = false; + + public bool? MarkRate { get; set; } = false; + + public bool? MarkInsignia { get; set; } = false; } public class MatchingCondition diff --git a/BMA.EHR.Application/Responses/Profiles/GetProfileByRootIdDto.cs b/BMA.EHR.Application/Responses/Profiles/GetProfileByRootIdDto.cs index 4f9b753c..d095f65f 100644 --- a/BMA.EHR.Application/Responses/Profiles/GetProfileByRootIdDto.cs +++ b/BMA.EHR.Application/Responses/Profiles/GetProfileByRootIdDto.cs @@ -65,5 +65,13 @@ namespace BMA.EHR.Application.Responses.Profiles public string? Child4 { get; set; } public string? ProfileType { get; set; } + + public bool? MarkDiscipline { get; set; } = false; + + public bool? MarkLeave { get; set; } = false; + + public bool? MarkRate { get; set; } = false; + + public bool? MarkInsignia { get; set; } = false; } } diff --git a/BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs b/BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs index 32cfdb79..bdcd05f1 100644 --- a/BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs +++ b/BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs @@ -87,5 +87,7 @@ namespace BMA.EHR.Domain.Models.Insignias public Guid? Child4Id { get; set; } public Guid? Child4DnaId { get; set; } public string? Child4 { get; set; } + + public bool? MarkInsignia { get; set; } = false; } } diff --git a/BMA.EHR.Infrastructure/Migrations/20250515023219_Add MarkInsignia Field.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250515023219_Add MarkInsignia Field.Designer.cs new file mode 100644 index 00000000..0669eb2e --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250515023219_Add MarkInsignia Field.Designer.cs @@ -0,0 +1,20612 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250515023219_Add MarkInsignia Field")] + partial class AddMarkInsigniaField + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReclaimDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.Property("ReclaimOrganization") + .HasColumnType("longtext"); + + b.Property("ReclaimOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("ReclaimReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaReclaimProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkInsignia") + .HasColumnType("tinyint(1)"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignCancelId"); + + b.ToTable("RetirementResignCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignEmployeeCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeCancelId"); + + b.ToTable("RetirementResignEmployeeCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("Approvers") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", "RetirementResignCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", "RetirementResignEmployeeCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployeeCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Navigation("Approvers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Navigation("Approvers"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250515023219_Add MarkInsignia Field.cs b/BMA.EHR.Infrastructure/Migrations/20250515023219_Add MarkInsignia Field.cs new file mode 100644 index 00000000..46463555 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250515023219_Add MarkInsignia Field.cs @@ -0,0 +1,28 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class AddMarkInsigniaField : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "MarkInsignia", + table: "InsigniaRequestProfiles", + type: "tinyint(1)", + nullable: true); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "MarkInsignia", + table: "InsigniaRequestProfiles"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index bad163b9..0eb0ff8a 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -6674,6 +6674,9 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("tinyint(1)") .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + b.Property("MarkInsignia") + .HasColumnType("tinyint(1)"); + b.Property("MarkLeave") .HasColumnType("tinyint(1)") .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); From 3a09367e885dd65420c8de2ba7b730c646473c79 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 15 May 2025 12:04:07 +0700 Subject: [PATCH 316/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B9=80=E0=B8=95=E0=B8=B4=E0=B8=A1=20field=20mark=20?= =?UTF-8?q?=E0=B8=95=E0=B9=88=E0=B8=B2=E0=B8=87=E0=B9=86=E0=B8=82=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=A2=E0=B9=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/InsigniaPeriodsRepository.cs | 412 +++++++++++++++--- .../Controllers/InsigniaRequestController.cs | 6 +- 2 files changed, 359 insertions(+), 59 deletions(-) diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 50673e84..cb320c69 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -2769,7 +2769,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Select(p => new InsigniaResultSet @@ -2820,7 +2825,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -2918,7 +2928,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(x => x.FirstRecvInsigniaYear != 0 && x.FirstRecvInsigniaYear <= period.Year - 3) @@ -2971,7 +2986,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ—.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -3069,7 +3089,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(x => x.FirstRecvInsigniaYear != 0 && x.FirstRecvInsigniaYear <= period.Year - 5) @@ -3122,7 +3147,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ›.āļĄ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -3305,7 +3335,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Select(p => new InsigniaResultSet @@ -3356,7 +3391,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ {p.ProfileDateAppoint.ToThaiFullDate3()}" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -3500,7 +3540,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Select(p => new InsigniaResultSet @@ -3551,7 +3596,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -3648,7 +3698,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.SalaryCondition >= 22140) @@ -3702,7 +3757,12 @@ namespace BMA.EHR.Application.Repositories $"āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year, 4, 29)).ToThaiFullDate3()} āđ€āļ›āđ‡āļ™āđ€āļ‡āļīāļ™ {p.SalaryCondition} āļšāļēāļ—" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -3799,7 +3859,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.SalaryCondition >= 22140) @@ -3853,7 +3918,12 @@ namespace BMA.EHR.Application.Repositories $"āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™āļāđˆāļ­āļ™āļ§āļąāļ™āļ—āļĩāđˆ {(new DateTime(period.Year - 5, 4, 29)).ToThaiFullDate3()} āđ€āļ›āđ‡āļ™āđ€āļ‡āļīāļ™ {p.SalaryCondition} āļšāļēāļ—" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -4034,7 +4104,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Select(p => new InsigniaResultSet @@ -4068,7 +4143,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -4166,7 +4246,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.SalaryCondition >= 58390) @@ -4227,7 +4312,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ—.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -4389,7 +4479,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Select(p => new InsigniaResultSet @@ -4440,7 +4535,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -4539,7 +4639,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -4592,7 +4697,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ—.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -4689,7 +4799,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -4742,7 +4857,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ›.āļĄ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -4923,7 +5043,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(x => x.FirstRecvInsigniaYear != 0 && x.FirstRecvInsigniaYear <= period.Year - 3) @@ -4982,7 +5107,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -5080,7 +5210,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -5139,7 +5274,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -5237,7 +5377,13 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate + }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -5296,7 +5442,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -5475,7 +5626,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(x => x.FirstRecvInsigniaYear != 0 && x.FirstRecvInsigniaYear <= period.Year - 3) @@ -5534,7 +5690,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -5632,7 +5793,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -5691,7 +5857,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -5787,7 +5958,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -5846,7 +6022,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -6022,7 +6203,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Select(p => new InsigniaResultSet @@ -6073,7 +6259,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āļ•āļģāđāļŦāļ™āđˆāļ‡ {p.Position} āļ›āļĢāļ°āđ€āļ āļ— {p.PositionType} āļĢāļ°āļ”āļąāļš {p.PositionLevel}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -6171,7 +6362,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.SalaryCondition >= 58390) @@ -6232,7 +6428,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ—.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -6389,7 +6590,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -6442,7 +6648,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ—.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -6540,7 +6751,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -6593,7 +6809,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ›.āļĄ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -6692,7 +6913,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -6745,7 +6971,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ›.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -6923,7 +7154,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -6976,7 +7212,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ—.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -7074,7 +7315,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -7127,7 +7373,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ›.āļĄ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -7225,7 +7476,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -7278,7 +7534,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļš āļ›.āļŠ. āđƒāļ™āļ›āļĩ {p.FirstRecvInsigniaYear.Value.ToThaiYear()}" }, }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -7427,7 +7688,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -7486,7 +7752,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -7584,7 +7855,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 3) @@ -7643,7 +7919,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -7739,7 +8020,12 @@ namespace BMA.EHR.Application.Repositories Child4Id = p.Child4Id, Child4DnaId = p.Child4DnaId, Child4 = p.Child4, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList() .Where(p => p.FirstRecvInsigniaYear != 0 && p.FirstRecvInsigniaYear <= period.Year - 5) @@ -7798,7 +8084,12 @@ namespace BMA.EHR.Application.Repositories Result = $"āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡ {p.SalaryPosition} āļšāļēāļ—" } }, - ProfileType = p.ProfileType + ProfileType = p.ProfileType, + + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate }) .ToList(); @@ -8560,6 +8851,11 @@ namespace BMA.EHR.Application.Repositories Child4 = item.Child4, Child4Id = item.Child4Id, Child4DnaId = item.Child4DnaId, + + MarkDiscipline = item.MarkDiscipline, + MarkInsignia = item.MarkInsignia, + MarkLeave = item.MarkLeave, + MarkRate = item.MarkRate }); } diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index b5192b46..257b9597 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -265,7 +265,11 @@ namespace BMA.EHR.Insignia.Service.Controllers requestDoc = "", //irp.DocumentStatus, requestNote = "", // irp.Note, requestSalary = irp.Salary, - matchingConditions = JsonConvert.DeserializeObject>(irp.MatchingConditions) + matchingConditions = JsonConvert.DeserializeObject>(irp.MatchingConditions), + irp.MarkRate, + irp.MarkLeave, + irp.MarkInsignia, + irp.MarkDiscipline }) .OrderBy(x => x.citizenId) .ToList(); From 3e58fd1339d75a21a70bb2eaa18f851e9ff2361e Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 15 May 2025 12:06:31 +0700 Subject: [PATCH 317/879] fixing updated dear & commanderPosition --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 4c0e2dff..e2c80240 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -712,8 +712,8 @@ namespace BMA.EHR.Leave.Service.Controllers //} oldData.LeaveTypeCode = leaveType.Code; - oldData.Dear = profile.Commander ?? ""; - oldData.CommanderPosition = profile.CommanderPositionName ?? ""; + oldData.Dear = req.Dear ?? ""; + oldData.CommanderPosition = req.CommanderPosition ?? ""; oldData.PositionName = profile.Position == null ? "" : profile.Position; From 6e1965ba79aa89ae2ef9e551359528d09a54e99b Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 15 May 2025 18:05:48 +0700 Subject: [PATCH 318/879] wait migrate --- .../Insignias/InsigniaRequestProfile.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs b/BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs index bdcd05f1..705b808d 100644 --- a/BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs +++ b/BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs @@ -89,5 +89,26 @@ namespace BMA.EHR.Domain.Models.Insignias public string? Child4 { get; set; } public bool? MarkInsignia { get; set; } = false; + + public string? APR1 { get; set; } + + public string? APR2 { get; set; } + + public string? APR3 { get; set; } + + public string? APR4 { get; set; } + + public string? APR5 { get; set; } + + public string? OCT1 { get; set; } + + public string? OCT2 { get; set; } + + public string? OCT3 { get; set; } + + public string? OCT4 { get; set; } + + public string? OCT5 { get; set; } + } } From 3beba561fc2a88c0316466aa1ed202a0f1939f66 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 16 May 2025 10:33:38 +0700 Subject: [PATCH 319/879] =?UTF-8?q?fix=20#1547=20****=20=E0=B8=A3=E0=B8=AD?= =?UTF-8?q?=E0=B8=A3=E0=B8=B1=E0=B8=99=20migration=20=E0=B8=AD=E0=B8=B5?= =?UTF-8?q?=E0=B8=81=E0=B8=84=E0=B8=A3=E0=B8=B1=E0=B9=89=E0=B8=87=20*****?= =?UTF-8?q?=20fix=20#1520?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveRequestRepository.cs | 2 +- .../TimeAttendants/AdditionalCheckRequest.cs | 9 ++++++++ BMA.EHR.Leave/Controllers/LeaveController.cs | 22 +++++++++++++++++-- .../CreateAdditionalCheckRequestDto.cs | 6 +++++ .../GetAdditionalCheckRequestDto.cs | 6 +++++ 5 files changed, 42 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 68933211..336bdeac 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -498,7 +498,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests { var rawData = _dbContext.Set().AsNoTracking() .Include(x => x.Type) - .Where(x => x.LeaveStatus == "DELETE") + .Where(x => x.LeaveStatus == "DELETE" || x.LeaveStatus == "DELETING") .AsQueryable(); if (year != 0) diff --git a/BMA.EHR.Domain/Models/Leave/TimeAttendants/AdditionalCheckRequest.cs b/BMA.EHR.Domain/Models/Leave/TimeAttendants/AdditionalCheckRequest.cs index df5452e3..d5ff5b52 100644 --- a/BMA.EHR.Domain/Models/Leave/TimeAttendants/AdditionalCheckRequest.cs +++ b/BMA.EHR.Domain/Models/Leave/TimeAttendants/AdditionalCheckRequest.cs @@ -32,5 +32,14 @@ namespace BMA.EHR.Domain.Models.Leave.TimeAttendants public string? FirstName { get; set; } public string? LastName { get; set; } + + + public string? POI { get; set; } = string.Empty; + + public double? Latitude { get; set; } = 0.0; + + public double? Longitude { get; set; } = 0.0; + + } } diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index c6f1db85..73c632b4 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -1859,6 +1859,11 @@ namespace BMA.EHR.Leave.Service.Controllers Prefix = profile.Prefix, FirstName = profile.FirstName, LastName = profile.LastName, + + // fix issue #1547 + POI = req.POI, + Latitude = req.Latitude, + Longitude = req.Longitude, }; await _additionalCheckRequestRepository.AddAsync(request); @@ -1963,6 +1968,11 @@ namespace BMA.EHR.Leave.Service.Controllers StatusSort = data.Status.Trim().ToLower() == "pending" ? 1 : data.Status.Trim().ToLower() == "approve" ? 2 : 3, + + POI = data.POI, + Latitude = data.Latitude, + Longitude = data.Longitude, + }; result.Add(resObj); @@ -2036,8 +2046,8 @@ namespace BMA.EHR.Leave.Service.Controllers CheckInLon = 0, CheckOutLat = 0, CheckOutLon = 0, - CheckInPOI = "āļĨāļ‡āđ€āļ§āļĨāļēāļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ", - CheckOutPOI = "āļĨāļ‡āđ€āļ§āļĨāļēāļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ", + CheckInPOI = "", + CheckOutPOI = "", CheckInStatus = req.CheckInStatus, CheckOutStatus = req.CheckOutStatus, @@ -2079,6 +2089,10 @@ namespace BMA.EHR.Leave.Service.Controllers processTimeStamp.CheckInLon = 0; processTimeStamp.CheckInPOI = "āļĨāļ‡āđ€āļ§āļĨāļēāļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"; processTimeStamp.CheckInStatus = req.CheckInStatus; + + processTimeStamp.CheckInPOI = requestData.POI ?? ""; + processTimeStamp.CheckInLat = requestData.Latitude ?? 0; + processTimeStamp.CheckInLon = requestData.Longitude ?? 0; } if (requestData.CheckOutEdit) @@ -2089,6 +2103,10 @@ namespace BMA.EHR.Leave.Service.Controllers processTimeStamp.CheckOutLon = 0; processTimeStamp.CheckOutPOI = "āļĨāļ‡āđ€āļ§āļĨāļēāļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"; processTimeStamp.CheckOutStatus = req.CheckOutStatus; + + processTimeStamp.CheckOutPOI = requestData.POI ?? ""; + processTimeStamp.CheckOutLat = requestData.Latitude ?? 0; + processTimeStamp.CheckOutLon = requestData.Longitude ?? 0; } diff --git a/BMA.EHR.Leave/DTOs/AdditionalCheck/CreateAdditionalCheckRequestDto.cs b/BMA.EHR.Leave/DTOs/AdditionalCheck/CreateAdditionalCheckRequestDto.cs index a242cf81..7b2a2084 100644 --- a/BMA.EHR.Leave/DTOs/AdditionalCheck/CreateAdditionalCheckRequestDto.cs +++ b/BMA.EHR.Leave/DTOs/AdditionalCheck/CreateAdditionalCheckRequestDto.cs @@ -9,5 +9,11 @@ public bool CheckOutEdit { get; set;} public string Description { get; set; } + + public string? POI { get; set; } = string.Empty; + + public double? Latitude { get; set; } = 0.0; + + public double? Longitude { get; set; } = 0.0; } } diff --git a/BMA.EHR.Leave/DTOs/AdditionalCheck/GetAdditionalCheckRequestDto.cs b/BMA.EHR.Leave/DTOs/AdditionalCheck/GetAdditionalCheckRequestDto.cs index 75cd6cb7..8c04223d 100644 --- a/BMA.EHR.Leave/DTOs/AdditionalCheck/GetAdditionalCheckRequestDto.cs +++ b/BMA.EHR.Leave/DTOs/AdditionalCheck/GetAdditionalCheckRequestDto.cs @@ -37,5 +37,11 @@ public string Description { get; set; } public int StatusSort { get; set; } = 0; + + public string? POI { get; set; } = string.Empty; + + public double? Latitude { get; set; } = 0.0; + + public double? Longitude { get; set; } = 0.0; } } From 851c024171348c9418e62164c6b67e9a19f9ae85 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 16 May 2025 17:35:44 +0700 Subject: [PATCH 320/879] =?UTF-8?q?api=20=E0=B8=AD=E0=B8=B1=E0=B8=9E?= =?UTF-8?q?=E0=B9=80=E0=B8=94=E0=B8=97=E0=B8=AA=E0=B8=96=E0=B8=B2=E0=B8=99?= =?UTF-8?q?=E0=B8=B0=20Mark=20=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A?= =?UTF-8?q?=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=87?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/InsigniaPeriodsRepository.cs | 51 ++++++++++++++++++ .../Repositories/UserProfileRepository.cs | 28 ++++++++++ .../Responses/Profiles/GetMarkStatusDto.cs | 23 ++++++++ .../Profiles/GetMarkStatusResultDto.cs | 12 +++++ .../Controllers/InsigniaRequestController.cs | 54 +++++++++++++++++++ .../Controllers/PlacementReceiveController.cs | 2 +- 6 files changed, 169 insertions(+), 1 deletion(-) create mode 100644 BMA.EHR.Application/Responses/Profiles/GetMarkStatusDto.cs create mode 100644 BMA.EHR.Application/Responses/Profiles/GetMarkStatusResultDto.cs diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index cb320c69..cfade76e 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -8868,6 +8868,57 @@ namespace BMA.EHR.Application.Repositories } } + public async Task UpdateInsigniaRequestProfile(string[] items, string type, Guid? periodId) + { + try + { + if (type.Trim().ToUpper() == "OFFICER") + { + var allProfiles = await _userProfileRepository.GetInsigniaRequestsProfileAsync(items, type, AccessToken); + + if (allProfiles != null && allProfiles.Count > 0) + { + var insigniaRequestProfiles = await _dbContext.Set() + .Where(x => allProfiles.Select(x => x.Id).ToList().Contains(x.ProfileId)) + .ToListAsync(); + + foreach (var insigniaRequestProfile in insigniaRequestProfiles) + { + var profile = allProfiles.FirstOrDefault(p => p.Id == insigniaRequestProfile.ProfileId); + + if (profile != null) + { + insigniaRequestProfile.MarkDiscipline = profile?.MarkDiscipline; + insigniaRequestProfile.MarkLeave = profile?.MarkLeave; + insigniaRequestProfile.MarkRate = profile?.MarkRate; + insigniaRequestProfile.MarkInsignia = profile?.MarkInsignia; + } + } + } + } + //else if (type.Trim().ToUpper() == "EMPLOYEE" && periodId != null) + //{ + // var insigniaRequests = await _dbContext.Set() + // .Where(x => x.Period.Id == periodId) + // .ToListAsync(); + + // var allEmpProfileIds = new List(); + // foreach (var insigniaRequest in insigniaRequests) + // { + // var orgRootId = insigniaRequest.Id.ToString(); + // var allEmpProfiles = await _userProfileRepository.GetInsigniaRequestsProfileEmpAsync(items, orgRootId, AccessToken); + // } + + //} + + await _dbContext.SaveChangesAsync(); + + } + catch + { + throw; + } + } #endregion } } \ No newline at end of file diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index 4fbd0128..ab7436e7 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -1073,6 +1073,34 @@ namespace BMA.EHR.Application.Repositories } + public async Task> GetInsigniaRequestsProfileAsync(string[] profileIds, string type, string? accessToken) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/find/insignia-requests-profile/{type}"; + var apiKey = _configuration["API_KEY"]; + + var body = new + { + profileIds + }; + + var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey); + + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } + } #endregion } } diff --git a/BMA.EHR.Application/Responses/Profiles/GetMarkStatusDto.cs b/BMA.EHR.Application/Responses/Profiles/GetMarkStatusDto.cs new file mode 100644 index 00000000..d419089d --- /dev/null +++ b/BMA.EHR.Application/Responses/Profiles/GetMarkStatusDto.cs @@ -0,0 +1,23 @@ +ïŧŋnamespace BMA.EHR.Application.Responses.Profiles +{ + public class GetMarkStatusDto + { + public Guid Id { get; set; } + public bool? MarkDiscipline { get; set; } = false; + public bool? MarkLeave { get; set; } = false; + public bool? MarkRate { get; set; } = false; + public bool? MarkInsignia { get; set; } = false; + + public string? Apr1 { get; set; } + public string? Apr2 { get; set; } + public string? Apr3 { get; set; } + public string? Apr4 { get; set; } + public string? Apr5 { get; set; } + + public string? Oct1 { get; set; } + public string? Oct2 { get; set; } + public string? Oct3 { get; set; } + public string? Oct4 { get; set; } + public string? Oct5 { get; set; } + } +} diff --git a/BMA.EHR.Application/Responses/Profiles/GetMarkStatusResultDto.cs b/BMA.EHR.Application/Responses/Profiles/GetMarkStatusResultDto.cs new file mode 100644 index 00000000..6114f325 --- /dev/null +++ b/BMA.EHR.Application/Responses/Profiles/GetMarkStatusResultDto.cs @@ -0,0 +1,12 @@ +ïŧŋnamespace BMA.EHR.Application.Responses.Profiles +{ + public class GetMarkStatusResultDto + { + public string Message { get; set; } = string.Empty; + + public int Status { get; set; } = -1; + + public List Result { get; set; } = new(); + + } +} diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 257b9597..1979fa45 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -2704,5 +2704,59 @@ namespace BMA.EHR.Insignia.Service.Controllers return Success(); } + + /// + /// āļ­āļąāļžāđ€āļ”āļ—āļŠāļ–āļēāļ™āļ° Mark (āđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ, āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ (āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™), āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ, āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ) + /// + /// Id āļĢāļ­āļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("update/{insigniaPeriodId:length(36)}")] + public async Task> InsigniaRequestUpdateMark(Guid insigniaPeriodId) + { + try + { + var insigniaPeriod = await _context.InsigniaPeriods + .Include(x => x.InsigniaRequests) + .Include(x => x.InsigniaEmployees) + .FirstOrDefaultAsync(x => x.Id == insigniaPeriodId); + if (insigniaPeriod == null) + return Error(GlobalMessages.InsigniaRequestNotFound); + + if (insigniaPeriod.InsigniaRequests.Count > 0) + { + var allProfileIds = new List(); + foreach (var InsigniaRequest in insigniaPeriod.InsigniaRequests) + { + var profiles = await _context.Set() + .Where(p => p.Request.Id == InsigniaRequest.Id && p.ProfileType.Trim().ToUpper() == "OFFICER").Select(x => x.ProfileId.ToString()).ToListAsync(); + + if (profiles != null && profiles.Count > 0) + { + allProfileIds.AddRange(profiles); + } + } + + if (allProfileIds.Count > 0) + { + await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(allProfileIds.ToArray(), "OFFICER", null); + } + } + + //if (insigniaPeriod.InsigniaEmployees.Count > 0) + //{ + // await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(insigniaPeriod.InsigniaEmployees.Select(x => x.RefId!.ValueOrBlank()).ToArray(), "EMPLOYEE", insigniaPeriod.Id); + //} + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + } } } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 71a2f51e..459673a7 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -1049,7 +1049,7 @@ namespace BMA.EHR.Placement.Service.Controllers dateStart = r.commandDateAffect, govAgeAbsent = 0, govAgePlus = 0, - birthDate = p.DateOfBirth == null ? (DateTime?)null : p.DateOfBirth, + birthDate = (p.DateOfBirth == null || p.DateOfBirth == DateTime.MinValue) ? (DateTime?)null : p.DateOfBirth, reasonSameDate = (DateTime?)null, ethnicity = p.Race == null ? string.Empty : p.Race, telephoneNumber = (String?)null, From 164ed5667144bb521a58566ac18377ff62ec39dd Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 19 May 2025 10:45:46 +0700 Subject: [PATCH 321/879] apply migrarion --- ...gration For Insignia and Leave.Designer.cs | 20642 ++++++++++++++++ ...01_Add Migration For Insignia and Leave.cs | 128 + .../ApplicationDBContextModelSnapshot.cs | 30 + 3 files changed, 20800 insertions(+) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250519034501_Add Migration For Insignia and Leave.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250519034501_Add Migration For Insignia and Leave.cs diff --git a/BMA.EHR.Infrastructure/Migrations/20250519034501_Add Migration For Insignia and Leave.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250519034501_Add Migration For Insignia and Leave.Designer.cs new file mode 100644 index 00000000..4be43479 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250519034501_Add Migration For Insignia and Leave.Designer.cs @@ -0,0 +1,20642 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250519034501_Add Migration For Insignia and Leave")] + partial class AddMigrationForInsigniaandLeave + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReclaimDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.Property("ReclaimOrganization") + .HasColumnType("longtext"); + + b.Property("ReclaimOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("ReclaimReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaReclaimProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("APR1") + .HasColumnType("longtext"); + + b.Property("APR2") + .HasColumnType("longtext"); + + b.Property("APR3") + .HasColumnType("longtext"); + + b.Property("APR4") + .HasColumnType("longtext"); + + b.Property("APR5") + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkInsignia") + .HasColumnType("tinyint(1)"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("OCT1") + .HasColumnType("longtext"); + + b.Property("OCT2") + .HasColumnType("longtext"); + + b.Property("OCT3") + .HasColumnType("longtext"); + + b.Property("OCT4") + .HasColumnType("longtext"); + + b.Property("OCT5") + .HasColumnType("longtext"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignCancelId"); + + b.ToTable("RetirementResignCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignEmployeeCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeCancelId"); + + b.ToTable("RetirementResignEmployeeCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("Approvers") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", "RetirementResignCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", "RetirementResignEmployeeCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployeeCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Navigation("Approvers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Navigation("Approvers"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250519034501_Add Migration For Insignia and Leave.cs b/BMA.EHR.Infrastructure/Migrations/20250519034501_Add Migration For Insignia and Leave.cs new file mode 100644 index 00000000..b7c496a7 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250519034501_Add Migration For Insignia and Leave.cs @@ -0,0 +1,128 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class AddMigrationForInsigniaandLeave : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "APR1", + table: "InsigniaRequestProfiles", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "APR2", + table: "InsigniaRequestProfiles", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "APR3", + table: "InsigniaRequestProfiles", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "APR4", + table: "InsigniaRequestProfiles", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "APR5", + table: "InsigniaRequestProfiles", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "OCT1", + table: "InsigniaRequestProfiles", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "OCT2", + table: "InsigniaRequestProfiles", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "OCT3", + table: "InsigniaRequestProfiles", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "OCT4", + table: "InsigniaRequestProfiles", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "OCT5", + table: "InsigniaRequestProfiles", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "APR1", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "APR2", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "APR3", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "APR4", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "APR5", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "OCT1", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "OCT2", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "OCT3", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "OCT4", + table: "InsigniaRequestProfiles"); + + migrationBuilder.DropColumn( + name: "OCT5", + table: "InsigniaRequestProfiles"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 0eb0ff8a..8ae723a2 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -6569,6 +6569,21 @@ namespace BMA.EHR.Infrastructure.Migrations .HasComment("PrimaryKey") .HasAnnotation("Relational:JsonPropertyName", "id"); + b.Property("APR1") + .HasColumnType("longtext"); + + b.Property("APR2") + .HasColumnType("longtext"); + + b.Property("APR3") + .HasColumnType("longtext"); + + b.Property("APR4") + .HasColumnType("longtext"); + + b.Property("APR5") + .HasColumnType("longtext"); + b.Property("Amount") .HasColumnType("double"); @@ -6689,6 +6704,21 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("text") .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + b.Property("OCT1") + .HasColumnType("longtext"); + + b.Property("OCT2") + .HasColumnType("longtext"); + + b.Property("OCT3") + .HasColumnType("longtext"); + + b.Property("OCT4") + .HasColumnType("longtext"); + + b.Property("OCT5") + .HasColumnType("longtext"); + b.Property("PosLevelName") .HasColumnType("longtext"); From 5c789232f168fbb5823060a48cede0c87e3df003 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 21 May 2025 17:39:46 +0700 Subject: [PATCH 322/879] =?UTF-8?q?fix=20=E0=B8=9F=E0=B8=B4=E0=B8=A5?= =?UTF-8?q?=E0=B8=94=E0=B9=8C=E0=B8=A7=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99?= =?UTF-8?q?=E0=B8=82=E0=B8=AD=E0=B9=82=E0=B8=AD=E0=B8=99=20issue=20#1533,?= =?UTF-8?q?=20#1534,=20#1535,=20#1536,=20#1537?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Reports/TransferReportRepository.cs | 13 +++++++------ .../Controllers/PlacementController.cs | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/TransferReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/TransferReportRepository.cs index e2efc5bb..d58e63a0 100644 --- a/BMA.EHR.Application/Repositories/Reports/TransferReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/TransferReportRepository.cs @@ -37,7 +37,8 @@ namespace BMA.EHR.Application.Repositories.Reports return new { - CurrentDate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 15), + //CurrentDate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 15), + CurrentDate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).ToThaiFullDate2().ToString().ToThaiNumber(), Name = $"{data.prefix}{data.firstName} {data.lastName}", }; } @@ -52,7 +53,7 @@ namespace BMA.EHR.Application.Repositories.Reports return new { - CurrentDate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 15), + CurrentDate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).ToThaiFullDate2().ToString().ToThaiNumber(), Subject = $"āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŠāļēāļĄāļąāļāļ‚āļ­āđ‚āļ­āļ™", Name = $"{data.prefix}{data.firstName} {data.lastName}", }; @@ -67,7 +68,7 @@ namespace BMA.EHR.Application.Repositories.Reports .FirstOrDefaultAsync(); return new { - CurrentDate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 15), + CurrentDate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).ToThaiFullDate2().ToString().ToThaiNumber(), Subject = $"āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļ‚āļ­āđ‚āļ­āļ™", Name = $"{data.prefix}{data.firstName} {data.lastName}", Location = $"āļŠāļģāļ™āļąāļāļ‡āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ āđ‘āđ—āđ“ āļ–āļ™āļ™āļ”āļīāļ™āļŠāļ­ āļāļ—āļĄ. āđ‘āđāđ’āđāđ", @@ -84,7 +85,7 @@ namespace BMA.EHR.Application.Repositories.Reports return new { - CurrentDate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 15), + CurrentDate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).ToThaiFullDate2().ToString().ToThaiNumber(), Subject = $"āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŠāļēāļĄāļąāļāļ‚āļ­āđ‚āļ­āļ™", Subject2 = $"āļ•āļĢāļ§āļˆāļŠāļ­āļšāļŦāļ™āļĩāđ‰āļŠāļīāļ™ āđāļĨāļ°āļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ", Subject3 = $"āļ•āļĢāļ§āļˆāļŠāļ­āļšāļŦāļ™āļĩāđ‰āļŠāļīāļ™āđāļĨāļ°āļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ", @@ -105,7 +106,7 @@ namespace BMA.EHR.Application.Repositories.Reports return new { - CurrentDate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 15), + CurrentDate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).ToThaiFullDate2().ToString().ToThaiNumber(), Subject = $"āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŠāļēāļĄāļąāļāļ‚āļ­āđ‚āļ­āļ™", Subject2 = $"āļ•āļĢāļ§āļˆāļŠāļ­āļšāļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ āđāļĨāļ°āļ āļēāļĢāļ°āļŦāļ™āļĩāđ‰āļŠāļīāļ™ (āđ€āļ‡āļīāļ™āļāļđāđ‰āļŠāļ§āļąāļŠāļ”āļīāļāļēāļĢāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ) āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ", Subject3 = $"āļ•āļĢāļ§āļˆāļŠāļ­āļšāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļĨāļēāļĻāļķāļāļĐāļē āļ­āļšāļĢāļĄ āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ", @@ -126,7 +127,7 @@ namespace BMA.EHR.Application.Repositories.Reports return new { - CurrentDate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 15), + CurrentDate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).ToThaiFullDate2().ToString().ToThaiNumber(), Subject = $"āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŠāļēāļĄāļąāļāļ‚āļ­āđ‚āļ­āļ™", Subject2 = $"āļ•āļĢāļ§āļˆāļŠāļ­āļšāļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ āđāļĨāļ°āļ āļēāļĢāļ°āļŦāļ™āļĩāđ‰āļŠāļīāļ™ (āđ€āļ‡āļīāļ™āļāļđāđ‰āļŠāļ§āļąāļŠāļ”āļīāļāļēāļĢāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ) āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ", Subject3 = $"āļ•āļĢāļ§āļˆāļŠāļ­āļšāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļĨāļēāļĻāļķāļāļĐāļē āļ­āļšāļĢāļĄ āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ", diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 4bcaeb4a..bef98cec 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -2093,7 +2093,7 @@ namespace BMA.EHR.Placement.Service.Controllers dateStart = r.commandDateAffect, govAgeAbsent = 0, govAgePlus = 0, - birthDate = p.DateOfBirth == null ? (DateTime?)null : p.DateOfBirth, + birthDate = (p.DateOfBirth == null || p.DateOfBirth == DateTime.MinValue) ? (DateTime?)null : p.DateOfBirth, reasonSameDate = (DateTime?)null, ethnicity = p.Race == null ? string.Empty : p.Race, telephoneNumber = p.Telephone == null ? string.Empty : p.Telephone, From dc3c5a82a122b75372f907df6f1ee820e21039c5 Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 23 May 2025 10:49:40 +0700 Subject: [PATCH 323/879] =?UTF-8?q?step=20=E0=B8=A3=E0=B8=B0=E0=B8=9A?= =?UTF-8?q?=E0=B8=9A=E0=B8=A5=E0=B8=B2=E0=B8=AD=E0=B8=AD=E0=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RetirementEmployeeRepository.cs | 69 +- .../Repositories/RetirementRepository.cs | 70 +- .../Models/Retirement/RetirementResign.cs | 2 + .../Retirement/RetirementResignEmployee.cs | 2 + ...ble_retirementresign_add_group.Designer.cs | 20650 ++++++++++++++++ ...update_table_retirementresign_add_group.cs | 42 + .../ApplicationDBContextModelSnapshot.cs | 8 + .../Controllers/RetirementResignController.cs | 24 +- .../RetirementResignEmployeeController.cs | 23 +- 9 files changed, 20845 insertions(+), 45 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250523034727_update_table_retirementresign_add_group.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250523034727_update_table_retirementresign_add_group.cs diff --git a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs index d8dc259a..06f1d00d 100644 --- a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs @@ -163,7 +163,14 @@ namespace BMA.EHR.Application.Repositories } rawData.Status = "PENDING"; - rawData.ApproveStep = "st2"; + if (rawData.ApproveStep == "st1") + { + rawData.ApproveStep = "st2"; + } + else if (rawData.ApproveStep == "st3") + { + rawData.ApproveStep = "st4"; + } await _dbContext.SaveChangesAsync(); @@ -196,10 +203,10 @@ namespace BMA.EHR.Application.Repositories throw new Exception(GlobalMessages.DataNotFound); } - if (rawData.ApproveStep != "st2") - { - throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); - } + // if (rawData.ApproveStep != "st2") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } // check commander approve //var approvers = await _dbContext.Set() @@ -275,7 +282,10 @@ namespace BMA.EHR.Application.Repositories { rawData.Status = "PENDING"; // rawData.LeaveComment = reason; - rawData.ApproveStep = "st3"; + if (rawData.Group != "1.1") + { + rawData.ApproveStep = "st3"; + } // TODO: Send notification to 1st Approver @@ -309,10 +319,10 @@ namespace BMA.EHR.Application.Repositories throw new Exception(GlobalMessages.DataNotFound); } - if (rawData.ApproveStep != "st2") - { - throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); - } + // if (rawData.ApproveStep != "st2") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } // check commander approve var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); @@ -363,7 +373,10 @@ namespace BMA.EHR.Application.Repositories { rawData.Status = "PENDING"; // rawData.LeaveComment = reason; - rawData.ApproveStep = "st3"; + if (rawData.Group != "1.1") + { + rawData.ApproveStep = "st3"; + } // TODO: Send notification to 1st Approver @@ -396,10 +409,10 @@ namespace BMA.EHR.Application.Repositories throw new Exception(GlobalMessages.DataNotFound); } - if (rawData.ApproveStep != "st3") - { - throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); - } + // if (rawData.ApproveStep != "st3") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } // check commander approve var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); @@ -446,7 +459,14 @@ namespace BMA.EHR.Application.Repositories { rawData.Status = "APPROVE"; // rawData.LeaveDirectorComment = reason; - rawData.ApproveStep = "st4"; + if (rawData.Group != "1.1") + { + rawData.ApproveStep = "st5"; + } + else + { + rawData.ApproveStep = "st3"; + } // Send Noti var noti = new Notification @@ -473,10 +493,10 @@ namespace BMA.EHR.Application.Repositories throw new Exception(GlobalMessages.DataNotFound); } - if (rawData.ApproveStep != "st3") - { - throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); - } + // if (rawData.ApproveStep != "st3") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } // check commander approve var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); @@ -523,7 +543,14 @@ namespace BMA.EHR.Application.Repositories { rawData.Status = "REJECT"; // rawData.LeaveDirectorComment = reason; - rawData.ApproveStep = "st5"; + if (rawData.Group != "1.1") + { + rawData.ApproveStep = "st5"; + } + else + { + rawData.ApproveStep = "st3"; + } // Send Noti var noti = new Notification diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 4de888e2..46cb75d5 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -118,7 +118,14 @@ namespace BMA.EHR.Application.Repositories } rawData.Status = "PENDING"; - rawData.ApproveStep = "st2"; + if (rawData.ApproveStep == "st1") + { + rawData.ApproveStep = "st2"; + } + else if (rawData.ApproveStep == "st3") + { + rawData.ApproveStep = "st4"; + } // TODO: Send notification to 1st Commander var firstCommander = rawData.Approvers @@ -149,10 +156,10 @@ namespace BMA.EHR.Application.Repositories throw new Exception(GlobalMessages.DataNotFound); } - if (rawData.ApproveStep != "st2") - { - throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); - } + // if (rawData.ApproveStep != "st2") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); @@ -199,7 +206,10 @@ namespace BMA.EHR.Application.Repositories else { rawData.Status = "PENDING"; - rawData.ApproveStep = "st3"; + if (rawData.Group != "1.1") + { + rawData.ApproveStep = "st3"; + } // TODO: Send notification to 1st Approver var firstCommander = rawData.Approvers @@ -232,10 +242,10 @@ namespace BMA.EHR.Application.Repositories throw new Exception(GlobalMessages.DataNotFound); } - if (rawData.ApproveStep != "st2") - { - throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); - } + // if (rawData.ApproveStep != "st2") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } // check commander approve var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); @@ -286,7 +296,10 @@ namespace BMA.EHR.Application.Repositories { rawData.Status = "PENDING"; // rawData.LeaveComment = reason; - rawData.ApproveStep = "st3"; + if (rawData.Group != "1.1") + { + rawData.ApproveStep = "st3"; + } // TODO: Send notification to 1st Approver var firstCommander = rawData.Approvers @@ -318,10 +331,10 @@ namespace BMA.EHR.Application.Repositories throw new Exception(GlobalMessages.DataNotFound); } - if (rawData.ApproveStep != "st3") - { - throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); - } + // if (rawData.ApproveStep != "st3") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } // check commander approve var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); @@ -368,7 +381,14 @@ namespace BMA.EHR.Application.Repositories { rawData.Status = "APPROVE"; // rawData.LeaveDirectorComment = reason; - rawData.ApproveStep = "st4"; + if (rawData.Group != "1.1") + { + rawData.ApproveStep = "st5"; + } + else + { + rawData.ApproveStep = "st3"; + } if (rawData.profileId != null) { @@ -398,10 +418,10 @@ namespace BMA.EHR.Application.Repositories throw new Exception(GlobalMessages.DataNotFound); } - if (rawData.ApproveStep != "st3") - { - throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); - } + // if (rawData.ApproveStep != "st3") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } // check commander approve var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); @@ -447,8 +467,14 @@ namespace BMA.EHR.Application.Repositories else { rawData.Status = "REJECT"; - // rawData.LeaveDirectorComment = reason; - rawData.ApproveStep = "st5"; + if (rawData.Group != "1.1") + { + rawData.ApproveStep = "st5"; + } + else + { + rawData.ApproveStep = "st3"; + } // Send Noti var noti = new Notification diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs index aecc1982..6539c945 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs @@ -153,6 +153,8 @@ namespace BMA.EHR.Domain.Models.Retirement [Comment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī ")] public string? ApproveStep { get; set; } = string.Empty; + [Comment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ")] + public string? Group { get; set; } = string.Empty; diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs index 5616fe75..d9ecc721 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployee.cs @@ -151,6 +151,8 @@ namespace BMA.EHR.Domain.Models.Retirement [Comment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī ")] public string? ApproveStep { get; set; } = string.Empty; + [Comment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ")] + public string? Group { get; set; } = string.Empty; public List Approvers { get; set; } = new(); diff --git a/BMA.EHR.Infrastructure/Migrations/20250523034727_update_table_retirementresign_add_group.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250523034727_update_table_retirementresign_add_group.Designer.cs new file mode 100644 index 00000000..e1028213 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250523034727_update_table_retirementresign_add_group.Designer.cs @@ -0,0 +1,20650 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250523034727_update_table_retirementresign_add_group")] + partial class update_table_retirementresign_add_group + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReclaimDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.Property("ReclaimOrganization") + .HasColumnType("longtext"); + + b.Property("ReclaimOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("ReclaimReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaReclaimProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("APR1") + .HasColumnType("longtext"); + + b.Property("APR2") + .HasColumnType("longtext"); + + b.Property("APR3") + .HasColumnType("longtext"); + + b.Property("APR4") + .HasColumnType("longtext"); + + b.Property("APR5") + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkInsignia") + .HasColumnType("tinyint(1)"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("OCT1") + .HasColumnType("longtext"); + + b.Property("OCT2") + .HasColumnType("longtext"); + + b.Property("OCT3") + .HasColumnType("longtext"); + + b.Property("OCT4") + .HasColumnType("longtext"); + + b.Property("OCT5") + .HasColumnType("longtext"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignCancelId"); + + b.ToTable("RetirementResignCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RetirementResignEmployeeCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeCancelId"); + + b.ToTable("RetirementResignEmployeeCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("Approvers") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", "RetirementResignCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", "RetirementResignEmployeeCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployeeCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Navigation("Approvers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Navigation("Approvers"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250523034727_update_table_retirementresign_add_group.cs b/BMA.EHR.Infrastructure/Migrations/20250523034727_update_table_retirementresign_add_group.cs new file mode 100644 index 00000000..562fe5ee --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250523034727_update_table_retirementresign_add_group.cs @@ -0,0 +1,42 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class update_table_retirementresign_add_group : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "Group", + table: "RetirementResigns", + type: "longtext", + nullable: true, + comment: "āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "Group", + table: "RetirementResignEmployees", + type: "longtext", + nullable: true, + comment: "āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Group", + table: "RetirementResigns"); + + migrationBuilder.DropColumn( + name: "Group", + table: "RetirementResignEmployees"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 8ae723a2..95b56495 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -16840,6 +16840,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnOrder(101) .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + b.Property("IsActive") .HasColumnType("tinyint(1)") .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); @@ -17770,6 +17774,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnOrder(101) .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + b.Property("IsActive") .HasColumnType("tinyint(1)") .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 759a68a3..023ae702 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -265,6 +265,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsActive, p.CreatedAt, p.ApproveStep, + p.Group, }) .ToListAsync(); @@ -424,6 +425,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsDiscipline, p.CancelReason, p.ApproveStep, + p.Group, Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), KeycloakUserId = p.CreatedUserId, @@ -510,6 +512,7 @@ namespace BMA.EHR.Retirement.Service.Controllers data.Approvers, data.Commanders, data.ApproveStep, + data.Group, idCancel = data.RetirementResignCancels?.Id ?? null, statusCancel = data.RetirementResignCancels?.Status ?? null, statusMain = data.Status == "CANCEL" ? "DONECANCEL" : data.Status, @@ -891,6 +894,7 @@ namespace BMA.EHR.Retirement.Service.Controllers var retirementResign = new RetirementResign { + ApproveStep = "st1", Location = req.Location, SendDate = DateTime.Now, ActiveDate = req.ActiveDate, @@ -963,6 +967,19 @@ namespace BMA.EHR.Retirement.Service.Controllers (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementResign.OrganizationPositionOld = org.result.position + "\n" + (retirementResign.PositionExecutiveOld == null ? "" : retirementResign.PositionExecutiveOld + "\n") + retirementResign.OrganizationOld; + + if ((retirementResign.posTypeNameOld == "āļ—āļąāđˆāļ§āđ„āļ›" && retirementResign.posLevelNameOld == "āļŠāļģāļ™āļēāļāļ‡āļēāļ™") || (retirementResign.posTypeNameOld == "āļ—āļąāđˆāļ§āđ„āļ›" && retirementResign.posLevelNameOld == "āļ›āļāļīāļšāļąāļ•āļīāļ‡āļēāļ™") || (retirementResign.posTypeNameOld == "āļ§āļīāļŠāļēāļāļēāļĢ" && retirementResign.posLevelNameOld == "āļ›āļāļīāļšāļąāļ•āļīāļāļēāļĢ") || (retirementResign.posTypeNameOld == "āļ§āļīāļŠāļēāļāļēāļĢ" && retirementResign.posLevelNameOld == "āļŠāļģāļ™āļēāļāļāļēāļĢ")) + { + retirementResign.Group = "1.1"; + } + else if ((retirementResign.posTypeNameOld == "āļ—āļąāđˆāļ§āđ„āļ›" && retirementResign.posLevelNameOld == "āļ­āļēāļ§āļļāđ‚āļŠ") || (retirementResign.posTypeNameOld == "āļ§āļīāļŠāļēāļāļēāļĢ" && retirementResign.posLevelNameOld == "āļŠāļģāļ™āļēāļāļāļēāļĢāļžāļīāđ€āļĻāļĐ") || (retirementResign.posTypeNameOld == "āļ­āļģāļ™āļ§āļĒāļāļēāļĢ" && retirementResign.posLevelNameOld == "āļ•āđ‰āļ™")) + { + retirementResign.Group = "1.2"; + } + else if ((retirementResign.posTypeNameOld == "āļ—āļąāđˆāļ§āđ„āļ›" && retirementResign.posLevelNameOld == "āļ—āļąāļāļĐāļ°āļžāļīāđ€āļĻāļĐ") || (retirementResign.posTypeNameOld == "āļ§āļīāļŠāļēāļāļēāļĢ" && retirementResign.posLevelNameOld == "āđ€āļŠāļĩāđˆāļĒāļ§āļŠāļēāļ") || (retirementResign.posTypeNameOld == "āļ§āļīāļŠāļēāļāļēāļĢ" && retirementResign.posLevelNameOld == "āļ—āļĢāļ‡āļ„āļļāļ“āļ§āļļāļ’āļī") || (retirementResign.posTypeNameOld == "āļ­āļģāļ™āļ§āļĒāļāļēāļĢ" && retirementResign.posLevelNameOld == "āļŠāļđāļ‡") || (retirementResign.posTypeNameOld == "āļšāļĢāļīāļŦāļēāļĢ" && retirementResign.posLevelNameOld == "āļ•āđ‰āļ™") || (retirementResign.posTypeNameOld == "āļšāļĢāļīāļŦāļēāļĢ" && retirementResign.posLevelNameOld == "āļŠāļđāļ‡")) + { + retirementResign.Group = "2"; + } } await _context.RetirementResigns.AddAsync(retirementResign); await _context.SaveChangesAsync(); @@ -1260,6 +1277,7 @@ namespace BMA.EHR.Retirement.Service.Controllers }); } updated.IsCancel = true; + updated.Status = "CANCELING"; } else if (updated.Status == "REPORT") { @@ -1271,8 +1289,12 @@ namespace BMA.EHR.Retirement.Service.Controllers Console.WriteLine(_res); Console.WriteLine($"{_configuration["API"]}/org/command/tab2Cancel17/{updated.Id}"); } + updated.Status = "CANCELING"; + } + else + { + updated.Status = "CANCEL"; } - updated.Status = "CANCEL"; updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index f38cc35c..c721af67 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -204,6 +204,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsActive, p.CreatedAt, p.ApproveStep, + p.Group, }) .ToListAsync(); @@ -363,6 +364,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsDiscipline, p.CancelReason, p.ApproveStep, + p.Group, Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), KeycloakUserId = p.CreatedUserId, @@ -449,6 +451,7 @@ namespace BMA.EHR.Retirement.Service.Controllers data.Approvers, data.Commanders, data.ApproveStep, + data.Group, idCancel = data.RetirementResignEmployeeCancels?.Id ?? Guid.Empty, statusCancel = data.RetirementResignEmployeeCancels?.Status ?? null, statusMain = data.Status, @@ -828,6 +831,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } var retirementResignEmployee = new RetirementResignEmployee { + ApproveStep = "st1", Location = req.Location, SendDate = DateTime.Now, ActiveDate = req.ActiveDate, @@ -899,6 +903,18 @@ namespace BMA.EHR.Retirement.Service.Controllers (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); retirementResignEmployee.OrganizationPositionOld = org.result.position + "\n" + retirementResignEmployee.OrganizationOld; + if ((retirementResignEmployee.posTypeNameOld == "āļ—āļąāđˆāļ§āđ„āļ›" && retirementResignEmployee.posLevelNameOld == "āļŠāļģāļ™āļēāļāļ‡āļēāļ™") || (retirementResignEmployee.posTypeNameOld == "āļ—āļąāđˆāļ§āđ„āļ›" && retirementResignEmployee.posLevelNameOld == "āļ›āļāļīāļšāļąāļ•āļīāļ‡āļēāļ™") || (retirementResignEmployee.posTypeNameOld == "āļ§āļīāļŠāļēāļāļēāļĢ" && retirementResignEmployee.posLevelNameOld == "āļ›āļāļīāļšāļąāļ•āļīāļāļēāļĢ") || (retirementResignEmployee.posTypeNameOld == "āļ§āļīāļŠāļēāļāļēāļĢ" && retirementResignEmployee.posLevelNameOld == "āļŠāļģāļ™āļēāļāļāļēāļĢ")) + { + retirementResignEmployee.Group = "1.1"; + } + else if ((retirementResignEmployee.posTypeNameOld == "āļ—āļąāđˆāļ§āđ„āļ›" && retirementResignEmployee.posLevelNameOld == "āļ­āļēāļ§āļļāđ‚āļŠ") || (retirementResignEmployee.posTypeNameOld == "āļ§āļīāļŠāļēāļāļēāļĢ" && retirementResignEmployee.posLevelNameOld == "āļŠāļģāļ™āļēāļāļāļēāļĢāļžāļīāđ€āļĻāļĐ") || (retirementResignEmployee.posTypeNameOld == "āļ­āļģāļ™āļ§āļĒāļāļēāļĢ" && retirementResignEmployee.posLevelNameOld == "āļ•āđ‰āļ™")) + { + retirementResignEmployee.Group = "1.2"; + } + else if ((retirementResignEmployee.posTypeNameOld == "āļ—āļąāđˆāļ§āđ„āļ›" && retirementResignEmployee.posLevelNameOld == "āļ—āļąāļāļĐāļ°āļžāļīāđ€āļĻāļĐ") || (retirementResignEmployee.posTypeNameOld == "āļ§āļīāļŠāļēāļāļēāļĢ" && retirementResignEmployee.posLevelNameOld == "āđ€āļŠāļĩāđˆāļĒāļ§āļŠāļēāļ") || (retirementResignEmployee.posTypeNameOld == "āļ§āļīāļŠāļēāļāļēāļĢ" && retirementResignEmployee.posLevelNameOld == "āļ—āļĢāļ‡āļ„āļļāļ“āļ§āļļāļ’āļī") || (retirementResignEmployee.posTypeNameOld == "āļ­āļģāļ™āļ§āļĒāļāļēāļĢ" && retirementResignEmployee.posLevelNameOld == "āļŠāļđāļ‡") || (retirementResignEmployee.posTypeNameOld == "āļšāļĢāļīāļŦāļēāļĢ" && retirementResignEmployee.posLevelNameOld == "āļ•āđ‰āļ™") || (retirementResignEmployee.posTypeNameOld == "āļšāļĢāļīāļŦāļēāļĢ" && retirementResignEmployee.posLevelNameOld == "āļŠāļđāļ‡")) + { + retirementResignEmployee.Group = "2"; + } } await _context.RetirementResignEmployees.AddAsync(retirementResignEmployee); await _context.SaveChangesAsync(); @@ -1166,6 +1182,7 @@ namespace BMA.EHR.Retirement.Service.Controllers }); } updated.IsCancel = true; + updated.Status = "CANCELING"; } else if (updated.Status == "REPORT") { @@ -1175,8 +1192,12 @@ namespace BMA.EHR.Retirement.Service.Controllers client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); var _res = await client.DeleteAsync($"{_configuration["API"]}/org/command/tab2Cancel23/{updated.Id}"); } + updated.Status = "CANCELING"; + } + else + { + updated.Status = "CANCEL"; } - updated.Status = "CANCEL"; updated.LastUpdateFullName = FullName ?? "System Administrator"; updated.LastUpdateUserId = UserId ?? ""; updated.LastUpdatedAt = DateTime.Now; From 7bfa69e19e92d76da5e2a295e96de5b461fc55e3 Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 23 May 2025 15:12:36 +0700 Subject: [PATCH 324/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=AA?= =?UTF-8?q?=E0=B8=96=E0=B8=B2=E0=B8=99=E0=B8=B0=20=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?=E0=B8=AD=E0=B8=AD=E0=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RetirementEmployeeRepository.cs | 20 +++++++++---------- .../Repositories/RetirementRepository.cs | 20 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs index 06f1d00d..9a57f68c 100644 --- a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs @@ -282,10 +282,10 @@ namespace BMA.EHR.Application.Repositories { rawData.Status = "PENDING"; // rawData.LeaveComment = reason; - if (rawData.Group != "1.1") - { - rawData.ApproveStep = "st3"; - } + // if (rawData.Group != "1.1") + // { + rawData.ApproveStep = "st3"; + // } // TODO: Send notification to 1st Approver @@ -373,10 +373,10 @@ namespace BMA.EHR.Application.Repositories { rawData.Status = "PENDING"; // rawData.LeaveComment = reason; - if (rawData.Group != "1.1") - { - rawData.ApproveStep = "st3"; - } + // if (rawData.Group != "1.1") + // { + rawData.ApproveStep = "st3"; + // } // TODO: Send notification to 1st Approver @@ -465,7 +465,7 @@ namespace BMA.EHR.Application.Repositories } else { - rawData.ApproveStep = "st3"; + rawData.ApproveStep = "st4"; } // Send Noti @@ -549,7 +549,7 @@ namespace BMA.EHR.Application.Repositories } else { - rawData.ApproveStep = "st3"; + rawData.ApproveStep = "st4"; } // Send Noti diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 46cb75d5..7267b0c7 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -206,10 +206,10 @@ namespace BMA.EHR.Application.Repositories else { rawData.Status = "PENDING"; - if (rawData.Group != "1.1") - { - rawData.ApproveStep = "st3"; - } + // if (rawData.Group != "1.1") + // { + rawData.ApproveStep = "st3"; + // } // TODO: Send notification to 1st Approver var firstCommander = rawData.Approvers @@ -296,10 +296,10 @@ namespace BMA.EHR.Application.Repositories { rawData.Status = "PENDING"; // rawData.LeaveComment = reason; - if (rawData.Group != "1.1") - { - rawData.ApproveStep = "st3"; - } + // if (rawData.Group != "1.1") + // { + rawData.ApproveStep = "st3"; + // } // TODO: Send notification to 1st Approver var firstCommander = rawData.Approvers @@ -387,7 +387,7 @@ namespace BMA.EHR.Application.Repositories } else { - rawData.ApproveStep = "st3"; + rawData.ApproveStep = "st4"; } if (rawData.profileId != null) @@ -473,7 +473,7 @@ namespace BMA.EHR.Application.Repositories } else { - rawData.ApproveStep = "st3"; + rawData.ApproveStep = "st4"; } // Send Noti From a2efb8d9af6dbd50272719138b087ac9988f42b2 Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 23 May 2025 17:01:05 +0700 Subject: [PATCH 325/879] update status approve --- .../Repositories/RetirementRepository.cs | 77 +++++++++++-------- 1 file changed, 47 insertions(+), 30 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 7267b0c7..7f939e4c 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -125,6 +125,20 @@ namespace BMA.EHR.Application.Repositories else if (rawData.ApproveStep == "st3") { rawData.ApproveStep = "st4"; + // TODO: Send notification to 1st Approver + var _firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var _noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = _firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(_noti1); } // TODO: Send notification to 1st Commander @@ -206,26 +220,26 @@ namespace BMA.EHR.Application.Repositories else { rawData.Status = "PENDING"; - // if (rawData.Group != "1.1") - // { rawData.ApproveStep = "st3"; - // } - // TODO: Send notification to 1st Approver - var firstCommander = rawData.Approvers - .Where(x => x.ApproveType!.ToUpper() == "APPROVER") - .OrderBy(x => x.Seq) - .FirstOrDefault(); - - // Send Notification - var noti1 = new Notification + if (rawData.Group == "1.1") { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", - ReceiverUserId = firstCommander!.ProfileId, - Type = "", - Payload = $"{URL}/retirement/resign-detail/{id}", - }; - _dbContext.Set().Add(noti1); + // TODO: Send notification to 1st Approver + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(noti1); + } await _dbContext.SaveChangesAsync(); } } @@ -301,20 +315,23 @@ namespace BMA.EHR.Application.Repositories rawData.ApproveStep = "st3"; // } - // TODO: Send notification to 1st Approver - var firstCommander = rawData.Approvers - .Where(x => x.ApproveType!.ToUpper() == "APPROVER") - .OrderBy(x => x.Seq) - .FirstOrDefault(); - // Send Notification - var noti1 = new Notification + if (rawData.Group == "1.1") { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", - ReceiverUserId = firstCommander!.ProfileId, - Type = "", - Payload = $"{URL}/retirement/resign-detail/{id}", - }; - _dbContext.Set().Add(noti1); + // TODO: Send notification to 1st Approver + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(noti1); + } await _dbContext.SaveChangesAsync(); } From c832465e71753c2f13849b17a75ed425da397e38 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 23 May 2025 17:54:36 +0700 Subject: [PATCH 326/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=87=20api=20=E0=B8=AD=E0=B8=B1=E0=B8=9E=E0=B9=80=E0=B8=94?= =?UTF-8?q?=E0=B8=97=E0=B8=AA=E0=B8=96=E0=B8=B2=E0=B8=99=E0=B8=B0=20mark?= =?UTF-8?q?=20=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B9=80=E0=B8=84?= =?UTF-8?q?=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2?= =?UTF-8?q?=E0=B8=8A=20(issue=20##1344)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/InsigniaPeriodsRepository.cs | 58 +++++++++---------- .../Responses/Profiles/GetMarkStatusDto.cs | 20 +++---- .../Controllers/InsigniaRequestController.cs | 35 +++++++---- 3 files changed, 60 insertions(+), 53 deletions(-) diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index cfade76e..42d7ede9 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -8868,48 +8868,44 @@ namespace BMA.EHR.Application.Repositories } } - public async Task UpdateInsigniaRequestProfile(string[] items, string type, Guid? periodId) + public async Task UpdateInsigniaRequestProfile(string[] items, string type) { try { - if (type.Trim().ToUpper() == "OFFICER") + var allProfiles = await _userProfileRepository.GetInsigniaRequestsProfileAsync(items, type, AccessToken); + + if (allProfiles != null && allProfiles.Count > 0) { - var allProfiles = await _userProfileRepository.GetInsigniaRequestsProfileAsync(items, type, AccessToken); + var insigniaRequestProfiles = await _dbContext.Set() + .Where(x => allProfiles.Select(x => x.Id).ToList().Contains(x.ProfileId)) + .ToListAsync(); - if (allProfiles != null && allProfiles.Count > 0) + foreach (var insigniaRequestProfile in insigniaRequestProfiles) { - var insigniaRequestProfiles = await _dbContext.Set() - .Where(x => allProfiles.Select(x => x.Id).ToList().Contains(x.ProfileId)) - .ToListAsync(); + var profile = allProfiles.FirstOrDefault(p => p.Id == insigniaRequestProfile.ProfileId); - foreach (var insigniaRequestProfile in insigniaRequestProfiles) + if (profile != null) { - var profile = allProfiles.FirstOrDefault(p => p.Id == insigniaRequestProfile.ProfileId); - - if (profile != null) - { - insigniaRequestProfile.MarkDiscipline = profile?.MarkDiscipline; - insigniaRequestProfile.MarkLeave = profile?.MarkLeave; - insigniaRequestProfile.MarkRate = profile?.MarkRate; - insigniaRequestProfile.MarkInsignia = profile?.MarkInsignia; - } + insigniaRequestProfile.MarkDiscipline = profile?.MarkDiscipline; + insigniaRequestProfile.MarkLeave = profile?.MarkLeave; + insigniaRequestProfile.MarkRate = profile?.MarkRate; + insigniaRequestProfile.MarkInsignia = profile?.MarkInsignia; + insigniaRequestProfile.APR1 = profile?.APR1; + insigniaRequestProfile.APR2 = profile?.APR2; + insigniaRequestProfile.APR3 = profile?.APR3; + insigniaRequestProfile.APR4 = profile?.APR4; + insigniaRequestProfile.APR5 = profile?.APR5; + insigniaRequestProfile.OCT1 = profile?.OCT1; + insigniaRequestProfile.OCT2 = profile?.OCT2; + insigniaRequestProfile.OCT3 = profile?.OCT3; + insigniaRequestProfile.OCT4 = profile?.OCT4; + insigniaRequestProfile.OCT5 = profile?.OCT5; + insigniaRequestProfile.LastUpdateFullName = FullName ?? "System Administrator"; + insigniaRequestProfile.LastUpdateUserId = UserId ?? ""; + insigniaRequestProfile.LastUpdatedAt = DateTime.Now; } } } - //else if (type.Trim().ToUpper() == "EMPLOYEE" && periodId != null) - //{ - // var insigniaRequests = await _dbContext.Set() - // .Where(x => x.Period.Id == periodId) - // .ToListAsync(); - - // var allEmpProfileIds = new List(); - // foreach (var insigniaRequest in insigniaRequests) - // { - // var orgRootId = insigniaRequest.Id.ToString(); - // var allEmpProfiles = await _userProfileRepository.GetInsigniaRequestsProfileEmpAsync(items, orgRootId, AccessToken); - // } - - //} await _dbContext.SaveChangesAsync(); diff --git a/BMA.EHR.Application/Responses/Profiles/GetMarkStatusDto.cs b/BMA.EHR.Application/Responses/Profiles/GetMarkStatusDto.cs index d419089d..1828762b 100644 --- a/BMA.EHR.Application/Responses/Profiles/GetMarkStatusDto.cs +++ b/BMA.EHR.Application/Responses/Profiles/GetMarkStatusDto.cs @@ -8,16 +8,16 @@ public bool? MarkRate { get; set; } = false; public bool? MarkInsignia { get; set; } = false; - public string? Apr1 { get; set; } - public string? Apr2 { get; set; } - public string? Apr3 { get; set; } - public string? Apr4 { get; set; } - public string? Apr5 { get; set; } + public string? APR1 { get; set; } + public string? APR2 { get; set; } + public string? APR3 { get; set; } + public string? APR4 { get; set; } + public string? APR5 { get; set; } - public string? Oct1 { get; set; } - public string? Oct2 { get; set; } - public string? Oct3 { get; set; } - public string? Oct4 { get; set; } - public string? Oct5 { get; set; } + public string? OCT1 { get; set; } + public string? OCT2 { get; set; } + public string? OCT3 { get; set; } + public string? OCT4 { get; set; } + public string? OCT5 { get; set; } } } diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 1979fa45..951d90b9 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -2728,28 +2728,39 @@ namespace BMA.EHR.Insignia.Service.Controllers if (insigniaPeriod.InsigniaRequests.Count > 0) { - var allProfileIds = new List(); + //var allProfileIds = new List(); + //var allProfileEmpIds = new List(); foreach (var InsigniaRequest in insigniaPeriod.InsigniaRequests) { var profiles = await _context.Set() .Where(p => p.Request.Id == InsigniaRequest.Id && p.ProfileType.Trim().ToUpper() == "OFFICER").Select(x => x.ProfileId.ToString()).ToListAsync(); - if (profiles != null && profiles.Count > 0) + var profileEmps = await _context.Set() + .Where(p => p.Request.Id == InsigniaRequest.Id && p.ProfileType.Trim().ToUpper() == "EMPLOYEE").Select(x => x.ProfileId.ToString()).ToListAsync(); + + if (profiles.Count > 0) { - allProfileIds.AddRange(profiles); + //allProfileIds.AddRange(profiles); + await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(profiles.ToArray(), "OFFICER"); + } + + if (profileEmps.Count > 0) + { + //allProfileEmpIds.AddRange(profileEmps); + await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(profileEmps.ToArray(), "EMPLOYEE"); } } - if (allProfileIds.Count > 0) - { - await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(allProfileIds.ToArray(), "OFFICER", null); - } - } + //if (allProfileIds.Count > 0) + //{ + // await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(allProfileIds.ToArray(), "OFFICER"); + //} - //if (insigniaPeriod.InsigniaEmployees.Count > 0) - //{ - // await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(insigniaPeriod.InsigniaEmployees.Select(x => x.RefId!.ValueOrBlank()).ToArray(), "EMPLOYEE", insigniaPeriod.Id); - //} + //if (allProfileEmpIds.Count > 0) + //{ + // await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(allProfileEmpIds.ToArray(), "EMPLOYEE"); + //} + } return Success(); } From b1380d4a2f365058dee31a7d8e50045890b160cf Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 27 May 2025 10:46:44 +0700 Subject: [PATCH 327/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=87=E0=B8=A5=E0=B8=87=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/UserProfileRepository.cs | 19 +++ .../Insignias/PostProfileInsigniaDto.cs | 3 +- .../Controllers/InsigniaRequestController.cs | 117 +++++++++++++----- 3 files changed, 104 insertions(+), 35 deletions(-) diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index ab7436e7..d59794e6 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -1051,6 +1051,25 @@ namespace BMA.EHR.Application.Repositories } + public async Task PostProfileEmpInsigniaAsync(PostProfileInsigniaDto body, string? accessToken) + { + try + { + var apiPath = $"{_configuration["API"]}/org/profile-employee/insignia"; + var apiKey = _configuration["API_KEY"]; + + var profiles = new List(); + + var apiResult = await PostExternalAPIBooleanAsync(apiPath, accessToken ?? "", body, apiKey); + + } + catch + { + throw; + } + + } + public async Task GetIsOfficerRootAsync(string? accessToken, string sys) { try diff --git a/BMA.EHR.Application/Responses/Insignias/PostProfileInsigniaDto.cs b/BMA.EHR.Application/Responses/Insignias/PostProfileInsigniaDto.cs index 5677f667..5ac913fa 100644 --- a/BMA.EHR.Application/Responses/Insignias/PostProfileInsigniaDto.cs +++ b/BMA.EHR.Application/Responses/Insignias/PostProfileInsigniaDto.cs @@ -2,7 +2,8 @@ { public class PostProfileInsigniaDto { - public Guid profileId { get; set; } + public Guid? profileId { get; set; } + public Guid? profileEmployeeId { get; set; } public int year { get; set; } = 0; diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 951d90b9..82197af6 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -1798,25 +1798,50 @@ namespace BMA.EHR.Insignia.Service.Controllers { insigniaNoteProfile.Status = "DONE"; - var profileInsigniaBody = new PostProfileInsigniaDto + if (profile.ProfileType == "OFFICER") { - profileId = profile.Id, - year = insigniaNote.Year, - no = req.No, - volumeNo = req.VolumeNo, - section = req.Section, - page = req.Page, - receiveDate = req.DateReceive.Value, - dateAnnounce = req.Date.Value, - insigniaId = insignia.Id, - issue = req.Issue, - note = "", - refCommandDate = null, - refCommandNo = "", - volume = "", + var profileInsigniaBody = new PostProfileInsigniaDto + { + profileId = profile.Id, + year = insigniaNote.Year, + no = req.No, + volumeNo = req.VolumeNo, + section = req.Section, + page = req.Page, + receiveDate = req.DateReceive.Value, + dateAnnounce = req.Date.Value, + insigniaId = insignia.Id, + issue = req.Issue, + note = "", + refCommandDate = null, + refCommandNo = "", + volume = "", - }; - await _userProfileRepository.PostProfileInsigniaAsync(profileInsigniaBody, AccessToken); + }; + await _userProfileRepository.PostProfileInsigniaAsync(profileInsigniaBody, AccessToken); + } + else + { + var profileInsigniaBody = new PostProfileInsigniaDto + { + profileEmployeeId = profile.Id, + year = insigniaNote.Year, + no = req.No, + volumeNo = req.VolumeNo, + section = req.Section, + page = req.Page, + receiveDate = req.DateReceive.Value, + dateAnnounce = req.Date.Value, + insigniaId = insignia.Id, + issue = req.Issue, + note = "", + refCommandDate = null, + refCommandNo = "", + volume = "", + + }; + await _userProfileRepository.PostProfileEmpInsigniaAsync(profileInsigniaBody, AccessToken); + } } } else @@ -1841,24 +1866,48 @@ namespace BMA.EHR.Insignia.Service.Controllers if (req.DateReceive != null && req.Date != null) { profileInsignia.Status = "DONE"; - var profileInsigniaBody = new PostProfileInsigniaDto + if (profile.ProfileType == "OFFICER") { - profileId = profileInsignia.ProfileId.Value, - year = insigniaNote.Year, - no = profileInsignia.No, - volumeNo = profileInsignia.VolumeNo, - section = profileInsignia.Section, - page = profileInsignia.Page, - receiveDate = profileInsignia.DateReceive.Value, - dateAnnounce = profileInsignia.Date.Value, - insigniaId = profileInsignia.RequestInsignia.Id, - issue = profileInsignia.Issue, - note = "", - refCommandDate = null, - refCommandNo = "", - volume = "", - }; - await _userProfileRepository.PostProfileInsigniaAsync(profileInsigniaBody, AccessToken); + var profileInsigniaBody = new PostProfileInsigniaDto + { + profileId = profileInsignia.ProfileId.Value, + year = insigniaNote.Year, + no = profileInsignia.No, + volumeNo = profileInsignia.VolumeNo, + section = profileInsignia.Section, + page = profileInsignia.Page, + receiveDate = profileInsignia.DateReceive.Value, + dateAnnounce = profileInsignia.Date.Value, + insigniaId = profileInsignia.RequestInsignia.Id, + issue = profileInsignia.Issue, + note = "", + refCommandDate = null, + refCommandNo = "", + volume = "", + }; + await _userProfileRepository.PostProfileInsigniaAsync(profileInsigniaBody, AccessToken); + } + else + { + var profileInsigniaBody = new PostProfileInsigniaDto + { + profileEmployeeId = profileInsignia.ProfileId.Value, + year = insigniaNote.Year, + no = profileInsignia.No, + volumeNo = profileInsignia.VolumeNo, + section = profileInsignia.Section, + page = profileInsignia.Page, + receiveDate = profileInsignia.DateReceive.Value, + dateAnnounce = profileInsignia.Date.Value, + insigniaId = profileInsignia.RequestInsignia.Id, + issue = profileInsignia.Issue, + note = "", + refCommandDate = null, + refCommandNo = "", + volume = "", + }; + await _userProfileRepository.PostProfileEmpInsigniaAsync(profileInsigniaBody, AccessToken); + } } } } From 2f37334444d5500c9c9c7a0ab9d27643a88a2d88 Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 27 May 2025 11:18:06 +0700 Subject: [PATCH 328/879] edit insignia emp --- .../Repositories/UserProfileRepository.cs | 2 +- .../Insignias/PostProfileEmpInsigniaDto.cs | 33 +++++++++++++++++++ .../Insignias/PostProfileInsigniaDto.cs | 3 +- .../Controllers/InsigniaRequestController.cs | 4 +-- 4 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 BMA.EHR.Application/Responses/Insignias/PostProfileEmpInsigniaDto.cs diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index d59794e6..11fea71b 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -1051,7 +1051,7 @@ namespace BMA.EHR.Application.Repositories } - public async Task PostProfileEmpInsigniaAsync(PostProfileInsigniaDto body, string? accessToken) + public async Task PostProfileEmpInsigniaAsync(PostProfileEmpInsigniaDto body, string? accessToken) { try { diff --git a/BMA.EHR.Application/Responses/Insignias/PostProfileEmpInsigniaDto.cs b/BMA.EHR.Application/Responses/Insignias/PostProfileEmpInsigniaDto.cs new file mode 100644 index 00000000..d01fbd8c --- /dev/null +++ b/BMA.EHR.Application/Responses/Insignias/PostProfileEmpInsigniaDto.cs @@ -0,0 +1,33 @@ +ïŧŋnamespace BMA.EHR.Application.Responses.Insignias +{ + public class PostProfileEmpInsigniaDto + { + public Guid profileEmployeeId { get; set; } + + public int year { get; set; } = 0; + + public string no { get; set; } = string.Empty; + + public string volume { get; set; } = string.Empty; + + public string section { get; set; } = string.Empty; + + public string page { get; set; } = string.Empty; + + public DateTime receiveDate { get; set; } = DateTime.MinValue; + + public Guid insigniaId { get; set; } + + public DateTime dateAnnounce { get; set; } = DateTime.MinValue; + + public string issue { get; set; } = string.Empty; + + public string volumeNo { get; set; } = string.Empty; + + public DateTime? refCommandDate { get; set; } + + public string refCommandNo { get; set; } = string.Empty; + + public string note { get; set; } = string.Empty; + } +} diff --git a/BMA.EHR.Application/Responses/Insignias/PostProfileInsigniaDto.cs b/BMA.EHR.Application/Responses/Insignias/PostProfileInsigniaDto.cs index 5ac913fa..5677f667 100644 --- a/BMA.EHR.Application/Responses/Insignias/PostProfileInsigniaDto.cs +++ b/BMA.EHR.Application/Responses/Insignias/PostProfileInsigniaDto.cs @@ -2,8 +2,7 @@ { public class PostProfileInsigniaDto { - public Guid? profileId { get; set; } - public Guid? profileEmployeeId { get; set; } + public Guid profileId { get; set; } public int year { get; set; } = 0; diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 82197af6..d2095a1c 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -1822,7 +1822,7 @@ namespace BMA.EHR.Insignia.Service.Controllers } else { - var profileInsigniaBody = new PostProfileInsigniaDto + var profileInsigniaBody = new PostProfileEmpInsigniaDto { profileEmployeeId = profile.Id, year = insigniaNote.Year, @@ -1889,7 +1889,7 @@ namespace BMA.EHR.Insignia.Service.Controllers } else { - var profileInsigniaBody = new PostProfileInsigniaDto + var profileInsigniaBody = new PostProfileEmpInsigniaDto { profileEmployeeId = profileInsignia.ProfileId.Value, year = insigniaNote.Year, From 28f8971e7f45413fd8d7dfec7f930efd1a8fb0eb Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 27 May 2025 17:34:10 +0700 Subject: [PATCH 329/879] filter retireresign --- .../Controllers/RetirementResignController.cs | 2 +- .../Controllers/RetirementResignEmployeeController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 023ae702..0d37b086 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -235,7 +235,7 @@ namespace BMA.EHR.Retirement.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var retirementResigns = await _context.RetirementResigns.AsQueryable() - .Where(x => x.Status == type.Trim().ToUpper()) + .Where(x => type.Trim().ToUpper() == "APPROVE" ? (x.Status == "APPROVE" || x.Status == "REJECT") : x.Status == type.Trim().ToUpper()) .OrderByDescending(x => x.CreatedAt) .Select(p => new { diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index c721af67..1a7962e6 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -174,7 +174,7 @@ namespace BMA.EHR.Retirement.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var retirementResignEmployees = await _context.RetirementResignEmployees.AsQueryable() - .Where(x => x.Status == type.Trim().ToUpper()) + .Where(x => type.Trim().ToUpper() == "APPROVE" ? (x.Status == "APPROVE" || x.Status == "REJECT") : x.Status == type.Trim().ToUpper()) .OrderByDescending(x => x.CreatedAt) .Select(p => new { From 4b43104400895261120d5fdd02899933383afea7 Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 27 May 2025 19:48:38 +0700 Subject: [PATCH 330/879] =?UTF-8?q?=E0=B8=A2=E0=B8=81=E0=B9=80=E0=B8=A5?= =?UTF-8?q?=E0=B8=B4=E0=B8=81=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88=E0=B9=89?= =?UTF-8?q?=E0=B8=B2=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RetirementEmployeeRepository.cs | 437 +- .../Repositories/RetirementRepository.cs | 414 + .../Retirement/RetirementResignCancel.cs | 5 + .../RetirementResignCancelApprover.cs | 2 + .../RetirementResignEmployeeCancel.cs | 5 + .../RetirementResignEmployeeCancelApprover.cs | 2 + ..._retirementresignemp_add_group.Designer.cs | 20680 ++++++++++++++++ ...ate_table_retirementresignemp_add_group.cs | 109 + .../ApplicationDBContextModelSnapshot.cs | 30 + .../Controllers/RetirementResignController.cs | 181 + .../RetirementResignEmployeeController.cs | 189 +- 11 files changed, 22046 insertions(+), 8 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250527123821_update_table_retirementresignemp_add_group.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250527123821_update_table_retirementresignemp_add_group.cs diff --git a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs index 9a57f68c..f33ac559 100644 --- a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs @@ -191,7 +191,7 @@ namespace BMA.EHR.Application.Repositories await _dbContext.SaveChangesAsync(); } - public async Task CommanderApproveRetirementResignEmployee(Guid id, string reason, DateTime date) + public async Task CommanderApproveRetirementResignEmployee(Guid id, string reason, DateTime? date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -307,7 +307,7 @@ namespace BMA.EHR.Application.Repositories } } - public async Task CommanderRejectRetirementResignEmployee(Guid id, string reason, DateTime date) + public async Task CommanderRejectRetirementResignEmployee(Guid id, string reason, DateTime? date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -398,7 +398,7 @@ namespace BMA.EHR.Application.Repositories } - public async Task ApproveRetirementResignEmployee(Guid id, string reason, DateTime date) + public async Task ApproveRetirementResignEmployee(Guid id, string reason, DateTime? date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -482,7 +482,7 @@ namespace BMA.EHR.Application.Repositories } - public async Task RejectRetirementResignEmployee(Guid id, string reason, DateTime date) + public async Task RejectRetirementResignEmployee(Guid id, string reason, DateTime? date) { // Get UserId from token var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); @@ -565,5 +565,434 @@ namespace BMA.EHR.Application.Repositories } } + + + public async Task GetByIdCancelAsync(Guid id) + { + try + { + var data = await _dbContext.Set().AsQueryable() + .Include(x => x.Approvers) + .FirstOrDefaultAsync(x => x.Id == id); + + return data; + } + catch + { + throw; + } + + } + public async Task OfficerApproveRetirementResignEmployeeCancel(Guid id) + { + var rawData = await GetByIdCancelAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + rawData.Status = "PENDING"; + if (rawData.ApproveStep == "st1") + { + rawData.ApproveStep = "st2"; + } + else if (rawData.ApproveStep == "st3") + { + rawData.ApproveStep = "st4"; + } + + await _dbContext.SaveChangesAsync(); + + // TODO: Send notification to 1st Commander + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "COMMANDER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-employee-detail/{id}", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + + public async Task CommanderApproveRetirementResignEmployeeCancel(Guid id, string reason, DateTime? date) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + + var rawData = await GetByIdCancelAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + // if (rawData.ApproveStep != "st2") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } + + // check commander approve + //var approvers = await _dbContext.Set() + // //.AsNoTracking() + // .Include(x => x.RetirementResignEmployeeCancel) + // .Where(x => x.RetirementResignEmployeeCancel.Id == id && x.ApproveType == "COMMANDER") + // .OrderBy(x => x.Seq) + // .ToListAsync(); + + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + var maxSeq = approvers.Max(x => x.Seq); + + //var data = await _dbContext.Set() + // .AsNoTracking() + // .Include(x => x.RetirementResignEmployeeCancel) + // .Where(x => x.RetirementResignEmployeeCancel.Id == id && x.KeycloakId == userId && x.ApproveType == "COMMANDER") + // .FirstOrDefaultAsync(); + + //if(data != null) + //{ + // data.ApproveStatus = "APPROVE"; + // data.Comment = reason; + + // data.LastUpdatedAt = DateTime.Now; + // data.LastUpdateUserId = userId.ToString("D"); + // data.LastUpdateFullName = FullName ?? ""; + + // await _dbContext.SaveChangesAsync(); + //} + + approver.ApproveStatus = "APPROVE"; + approver.Comment = reason; + approver.RejectDate = date; + + //await _dbContext.SaveChangesAsync(); + + if (approver.Seq != maxSeq) + { + rawData.Status = "PENDING"; + + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-employee-detail/{id}", + }; + _dbContext.Set().Add(noti); + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "PENDING"; + // rawData.LeaveComment = reason; + // if (rawData.Group != "1.1") + // { + rawData.ApproveStep = "st3"; + // } + + + // TODO: Send notification to 1st Approver + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-employee-detail/{id}", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + } + + public async Task CommanderRejectRetirementResignEmployeeCancel(Guid id, string reason, DateTime? date) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + + var rawData = await GetByIdCancelAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + // if (rawData.ApproveStep != "st2") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } + + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + + approver.ApproveStatus = "REJECT"; + approver.Comment = reason; + approver.RejectDate = date; + + if (approver.Seq != maxSeq) + { + + + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-employee-detail/{id}", + }; + _dbContext.Set().Add(noti); + + rawData.Status = "PENDING"; + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "PENDING"; + // rawData.LeaveComment = reason; + // if (rawData.Group != "1.1") + // { + rawData.ApproveStep = "st3"; + // } + + + // TODO: Send notification to 1st Approver + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-employee-detail/{id}", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + + } + + public async Task ApproveRetirementResignEmployeeCancel(Guid id, string reason, DateTime? date) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + var rawData = await GetByIdCancelAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + // if (rawData.ApproveStep != "st3") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } + + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + + approver.ApproveStatus = "APPROVE"; + approver.Comment = reason; + approver.RejectDate = date; + + if (approver.Seq != maxSeq) + { + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "APPROVE"; + // rawData.LeaveDirectorComment = reason; + if (rawData.Group != "1.1") + { + rawData.ApproveStep = "st5"; + } + else + { + rawData.ApproveStep = "st4"; + } + + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", + ReceiverUserId = Guid.Parse(rawData.profileId), + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti); + await _dbContext.SaveChangesAsync(); + } + + } + + public async Task RejectRetirementResignEmployeeCancel(Guid id, string reason, DateTime? date) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + var rawData = await GetByIdCancelAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + // if (rawData.ApproveStep != "st3") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } + + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + + approver.ApproveStatus = "REJECT"; + approver.Comment = reason; + approver.RejectDate = date; + + if (approver.Seq != maxSeq) + { + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "REJECT"; + // rawData.LeaveDirectorComment = reason; + if (rawData.Group != "1.1") + { + rawData.ApproveStep = "st5"; + } + else + { + rawData.ApproveStep = "st4"; + } + + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī \r\nāđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļ{reason}", + ReceiverUserId = Guid.Parse(rawData.profileId), + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti); + await _dbContext.SaveChangesAsync(); + } + } + } } diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 7f939e4c..dac2345f 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -506,5 +506,419 @@ namespace BMA.EHR.Application.Repositories } } + + public async Task GetByIdCancelAsync(Guid id) + { + try + { + var data = await _dbContext.Set().AsQueryable() + .Include(x => x.Approvers) + .FirstOrDefaultAsync(x => x.Id == id); + + return data; + } + catch + { + throw; + } + + } + public async Task OfficerApproveRetirementResignCancel(Guid id) + { + var rawData = await GetByIdCancelAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + rawData.Status = "PENDING"; + if (rawData.ApproveStep == "st1") + { + rawData.ApproveStep = "st2"; + } + else if (rawData.ApproveStep == "st3") + { + rawData.ApproveStep = "st4"; + // TODO: Send notification to 1st Approver + var _firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var _noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = _firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(_noti1); + } + + // TODO: Send notification to 1st Commander + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "COMMANDER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + + public async Task CommanderApproveRetirementResignCancel(Guid id, string reason, DateTime? date) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + + var rawData = await GetByIdCancelAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + // if (rawData.ApproveStep != "st2") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } + + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + var maxSeq = approvers.Max(x => x.Seq); + + approver.ApproveStatus = "APPROVE"; + approver.Comment = reason; + approver.RejectDate = date; + + if (approver.Seq != maxSeq) + { + rawData.Status = "PENDING"; + + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(noti); + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "PENDING"; + rawData.ApproveStep = "st3"; + + if (rawData.Group == "1.1") + { + // TODO: Send notification to 1st Approver + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(noti1); + } + await _dbContext.SaveChangesAsync(); + } + } + + public async Task CommanderRejectRetirementResignCancel(Guid id, string reason, DateTime? date) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + + var rawData = await GetByIdCancelAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + // if (rawData.ApproveStep != "st2") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } + + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "COMMANDER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + + approver.ApproveStatus = "REJECT"; + approver.Comment = reason; + approver.RejectDate = date; + + if (approver.Seq != maxSeq) + { + + + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(noti); + + rawData.Status = "PENDING"; + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "PENDING"; + // rawData.LeaveComment = reason; + // if (rawData.Group != "1.1") + // { + rawData.ApproveStep = "st3"; + // } + + if (rawData.Group == "1.1") + { + // TODO: Send notification to 1st Approver + var firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-detail/{id}", + }; + _dbContext.Set().Add(noti1); + } + await _dbContext.SaveChangesAsync(); + } + + } + + public async Task ApproveRetirementResignCancel(Guid id, string reason, DateTime? date) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + var rawData = await GetByIdCancelAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + // if (rawData.ApproveStep != "st3") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } + + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + + approver.ApproveStatus = "APPROVE"; + approver.Comment = reason; + approver.RejectDate = date; + + if (approver.Seq != maxSeq) + { + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "APPROVE"; + // rawData.LeaveDirectorComment = reason; + if (rawData.Group != "1.1") + { + rawData.ApproveStep = "st5"; + } + else + { + rawData.ApproveStep = "st4"; + } + + if (rawData.profileId != null) + { + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", + ReceiverUserId = Guid.Parse(rawData.profileId), + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti); + } + await _dbContext.SaveChangesAsync(); + } + + } + + public async Task RejectRetirementResignCancel(Guid id, string reason, DateTime? date) + { + // Get UserId from token + var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId); + + var rawData = await GetByIdCancelAsync(id); + if (rawData == null) + { + throw new Exception(GlobalMessages.DataNotFound); + } + + // if (rawData.ApproveStep != "st3") + // { + // throw new Exception("āļ„āļģāļ‚āļ­āļ™āļĩāđ‰āļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ­āļĒāļđāđˆāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ—āļĩāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļĢāļēāļĒāļāļēāļĢāđ„āļ”āđ‰"); + // } + + // check commander approve + var approvers = rawData.Approvers.Where(x => x.ApproveType!.ToUpper() == "APPROVER").OrderBy(x => x.Seq).ToList(); + + var approver = approvers.FirstOrDefault(x => x.KeycloakId == userId); + if (approver == null) + { + throw new Exception("āļ„āļļāļ“āđ„āļĄāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđŒāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļ™āļĩāđ‰"); + } + + // check prev approver āļĄāļĩ action āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āđ„āļĄāđˆ? + var prevApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq - 1); + + if (prevApprover != null) + { + if (prevApprover.ApproveStatus == "PENDING") + { + throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ—āļģāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđ„āļ”āđ‰ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĒāļąāļ‡āļ­āļĒāļđāđˆāļĢāļ°āļŦāļ§āđˆāļēāļ‡āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļēāđ‚āļ”āļĒāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļĢāļēāļĒāļāđˆāļ­āļ™āļŦāļ™āđ‰āļē"); + } + } + + + var maxSeq = approvers.Max(x => x.Seq); + + approver.ApproveStatus = "REJECT"; + approver.Comment = reason; + approver.RejectDate = date; + + if (approver.Seq != maxSeq) + { + var nextApprover = approvers.FirstOrDefault(x => x.Seq == approver.Seq + 1); + // Send Noti + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = nextApprover!.ProfileId, + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti1); + await _dbContext.SaveChangesAsync(); + } + else + { + rawData.Status = "REJECT"; + if (rawData.Group != "1.1") + { + rawData.ApproveStep = "st5"; + } + else + { + rawData.ApproveStep = "st4"; + } + + // Send Noti + var noti = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī \r\nāđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļ{reason}", + ReceiverUserId = Guid.Parse(rawData.profileId), + Type = "", + Payload = "", + }; + _dbContext.Set().Add(noti); + await _dbContext.SaveChangesAsync(); + } + } + } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs index d9192a0e..5f4ac59c 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs @@ -130,6 +130,11 @@ namespace BMA.EHR.Domain.Models.Retirement public string? posLevelOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old")] public string? posLevelNameOld { get; set; } + + [Comment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī ")] + public string? ApproveStep { get; set; } = string.Empty; + [Comment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ")] + public string? Group { get; set; } = string.Empty; [Required, Comment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļąāļšāļĒāđ‰āļēāļĒ")] public virtual RetirementResign RetirementResign { get; set; } public List Approvers { get; set; } = new(); diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignCancelApprover.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancelApprover.cs index 3dfe4158..7a8b25e6 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignCancelApprover.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancelApprover.cs @@ -23,6 +23,8 @@ namespace BMA.EHR.Domain.Models.Retirement public string ApproveStatus { get; set; } = string.Empty; public string Comment { get; set; } = string.Empty; + public string Org { get; set; } = string.Empty; + public DateTime? RejectDate { get; set; } public string? ApproveType { get; set; } = string.Empty; // āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē = commander, āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļī = Approver } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancel.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancel.cs index 9307492b..f6092b24 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancel.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancel.cs @@ -128,6 +128,11 @@ namespace BMA.EHR.Domain.Models.Retirement public string? posLevelOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old")] public string? posLevelNameOld { get; set; } + + [Comment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī ")] + public string? ApproveStep { get; set; } = string.Empty; + [Comment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ")] + public string? Group { get; set; } = string.Empty; [Required, Comment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļąāļšāļĒāđ‰āļēāļĒ")] public virtual RetirementResignEmployee RetirementResignEmployee { get; set; } public List Approvers { get; set; } = new(); diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancelApprover.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancelApprover.cs index cc6d77f6..6d952cb0 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancelApprover.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancelApprover.cs @@ -23,6 +23,8 @@ namespace BMA.EHR.Domain.Models.Retirement public string ApproveStatus { get; set; } = string.Empty; public string Comment { get; set; } = string.Empty; + public string Org { get; set; } = string.Empty; + public DateTime? RejectDate { get; set; } public string? ApproveType { get; set; } = string.Empty; // āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē = commander, āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļī = Approver } diff --git a/BMA.EHR.Infrastructure/Migrations/20250527123821_update_table_retirementresignemp_add_group.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250527123821_update_table_retirementresignemp_add_group.Designer.cs new file mode 100644 index 00000000..3fda80d5 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250527123821_update_table_retirementresignemp_add_group.Designer.cs @@ -0,0 +1,20680 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250527123821_update_table_retirementresignemp_add_group")] + partial class update_table_retirementresignemp_add_group + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReclaimDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.Property("ReclaimOrganization") + .HasColumnType("longtext"); + + b.Property("ReclaimOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("ReclaimReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaReclaimProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("APR1") + .HasColumnType("longtext"); + + b.Property("APR2") + .HasColumnType("longtext"); + + b.Property("APR3") + .HasColumnType("longtext"); + + b.Property("APR4") + .HasColumnType("longtext"); + + b.Property("APR5") + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkInsignia") + .HasColumnType("tinyint(1)"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("OCT1") + .HasColumnType("longtext"); + + b.Property("OCT2") + .HasColumnType("longtext"); + + b.Property("OCT3") + .HasColumnType("longtext"); + + b.Property("OCT4") + .HasColumnType("longtext"); + + b.Property("OCT5") + .HasColumnType("longtext"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignCancelId"); + + b.ToTable("RetirementResignCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignEmployeeCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeCancelId"); + + b.ToTable("RetirementResignEmployeeCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("Approvers") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", "RetirementResignCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", "RetirementResignEmployeeCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployeeCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Navigation("Approvers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Navigation("Approvers"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250527123821_update_table_retirementresignemp_add_group.cs b/BMA.EHR.Infrastructure/Migrations/20250527123821_update_table_retirementresignemp_add_group.cs new file mode 100644 index 00000000..d89e9f5b --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250527123821_update_table_retirementresignemp_add_group.cs @@ -0,0 +1,109 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class update_table_retirementresignemp_add_group : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "ApproveStep", + table: "RetirementResignEmployeeCancels", + type: "longtext", + nullable: true, + comment: "step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "Group", + table: "RetirementResignEmployeeCancels", + type: "longtext", + nullable: true, + comment: "āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "Org", + table: "RetirementResignEmployeeCancelApprovers", + type: "longtext", + nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "RejectDate", + table: "RetirementResignEmployeeCancelApprovers", + type: "datetime(6)", + nullable: true); + + migrationBuilder.AddColumn( + name: "ApproveStep", + table: "RetirementResignCancels", + type: "longtext", + nullable: true, + comment: "step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "Group", + table: "RetirementResignCancels", + type: "longtext", + nullable: true, + comment: "āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "Org", + table: "RetirementResignCancelApprovers", + type: "longtext", + nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "RejectDate", + table: "RetirementResignCancelApprovers", + type: "datetime(6)", + nullable: true); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "ApproveStep", + table: "RetirementResignEmployeeCancels"); + + migrationBuilder.DropColumn( + name: "Group", + table: "RetirementResignEmployeeCancels"); + + migrationBuilder.DropColumn( + name: "Org", + table: "RetirementResignEmployeeCancelApprovers"); + + migrationBuilder.DropColumn( + name: "RejectDate", + table: "RetirementResignEmployeeCancelApprovers"); + + migrationBuilder.DropColumn( + name: "ApproveStep", + table: "RetirementResignCancels"); + + migrationBuilder.DropColumn( + name: "Group", + table: "RetirementResignCancels"); + + migrationBuilder.DropColumn( + name: "Org", + table: "RetirementResignCancelApprovers"); + + migrationBuilder.DropColumn( + name: "RejectDate", + table: "RetirementResignCancelApprovers"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 95b56495..5ca0f499 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -17221,6 +17221,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + b.Property("CancelReason") .HasColumnType("longtext") .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); @@ -17260,6 +17264,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnOrder(101) .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + b.Property("IsActive") .HasColumnType("tinyint(1)") .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); @@ -17562,6 +17570,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnOrder(102) .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + b.Property("PositionName") .IsRequired() .HasColumnType("longtext"); @@ -17573,6 +17585,9 @@ namespace BMA.EHR.Infrastructure.Migrations b.Property("ProfileId") .HasColumnType("char(36)"); + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + b.Property("RetirementResignCancelId") .HasColumnType("char(36)"); @@ -18151,6 +18166,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + b.Property("CancelReason") .HasColumnType("longtext") .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); @@ -18190,6 +18209,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnOrder(101) .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + b.Property("IsActive") .HasColumnType("tinyint(1)") .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); @@ -18488,6 +18511,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnOrder(102) .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + b.Property("PositionName") .IsRequired() .HasColumnType("longtext"); @@ -18499,6 +18526,9 @@ namespace BMA.EHR.Infrastructure.Migrations b.Property("ProfileId") .HasColumnType("char(36)"); + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + b.Property("RetirementResignEmployeeCancelId") .HasColumnType("char(36)"); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 0d37b086..4e717b13 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -318,6 +318,8 @@ namespace BMA.EHR.Retirement.Service.Controllers p.CancelReason, p.IsActive, p.CreatedAt, + p.ApproveStep, + p.Group, }) .ToListAsync(); @@ -599,6 +601,8 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsNoBurden, p.IsDiscipline, p.CancelReason, + p.ApproveStep, + p.Group, Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), KeycloakUserId = p.CreatedUserId, @@ -685,6 +689,8 @@ namespace BMA.EHR.Retirement.Service.Controllers data.idMain, data.statusMain, data.KeycloakUserId, + data.ApproveStep, + data.Group, data.Approvers, data.Commanders, statusCancel = data.Status, @@ -781,6 +787,11 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsNoBurden, p.IsDiscipline, p.CancelReason, + p.ApproveStep, + p.Group, + Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + KeycloakUserId = p.CreatedUserId, idMain = p.RetirementResign.Id, statusMain = p.RetirementResign.Status, RetirementResignDocs = p.RetirementResign.RetirementResignDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), @@ -863,6 +874,11 @@ namespace BMA.EHR.Retirement.Service.Controllers data.CancelReason, data.idMain, data.statusMain, + data.KeycloakUserId, + data.ApproveStep, + data.Group, + data.Approvers, + data.Commanders, Docs = retirementResignDocs, }; return Success(_data); @@ -1195,6 +1211,8 @@ namespace BMA.EHR.Retirement.Service.Controllers { var retirementResignCancel = new RetirementResignCancel { + ApproveStep = "st1", + Group = updated.Group, Location = updated.Location, SendDate = updated.SendDate, ActiveDate = updated.ActiveDate, @@ -2797,6 +2815,169 @@ namespace BMA.EHR.Retirement.Service.Controllers } } + + + + /// + /// LV2_013 - āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("admin-cancel/approve/officer/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> OfficerApproveRetirementResignCancelAsync(Guid id) + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.OfficerApproveRetirementResignCancel(id); + + return Success(); + } + + /// + /// LV2_015 - āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē(ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin-cancel/approve/comander/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> CommanderApproveRetirementResignCancelAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.CommanderApproveRetirementResignCancel(id, req.Reason ?? "", null); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + + /// + /// āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē(ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin-cancel/reject/comander/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> CommanderRejectRetirementResignCancelAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.CommanderRejectRetirementResignCancel(id, req.Reason ?? "", req.Date); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + + /// + /// LV2_016 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin-cancel/approve/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> ApproveRetirementResignCancelAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.ApproveRetirementResignCancel(id, req.Reason ?? "", null); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + + /// + /// LV2_017 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin-cancel/reject/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> RejectRetirementResignCancelAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.RejectRetirementResignCancel(id, req.Reason ?? "", req.Date); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } #endregion } } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 1a7962e6..505c531c 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -256,6 +256,8 @@ namespace BMA.EHR.Retirement.Service.Controllers p.CancelReason, p.IsActive, p.CreatedAt, + p.ApproveStep, + p.Group, }) .ToListAsync(); @@ -537,6 +539,8 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsNoDebt, p.IsNoBurden, p.IsDiscipline, + p.ApproveStep, + p.Group, Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), KeycloakUserId = p.CreatedUserId, @@ -622,6 +626,8 @@ namespace BMA.EHR.Retirement.Service.Controllers data.CancelReason, data.idMain, data.statusMain, + data.ApproveStep, + data.Group, data.KeycloakUserId, data.Approvers, data.Commanders, @@ -719,6 +725,11 @@ namespace BMA.EHR.Retirement.Service.Controllers p.IsNoBurden, p.IsDiscipline, p.CancelReason, + p.ApproveStep, + p.Group, + Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + KeycloakUserId = p.CreatedUserId, idMain = p.RetirementResignEmployee.Id, statusMain = p.RetirementResignEmployee.Status, RetirementResignEmployeeDocs = p.RetirementResignEmployee.RetirementResignEmployeeDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), @@ -801,6 +812,11 @@ namespace BMA.EHR.Retirement.Service.Controllers data.CancelReason, data.idMain, data.statusMain, + data.KeycloakUserId, + data.ApproveStep, + data.Group, + data.Approvers, + data.Commanders, Docs = retirementResignEmployeeDocs, }; return Success(_data); @@ -1101,6 +1117,8 @@ namespace BMA.EHR.Retirement.Service.Controllers { var retirementResignEmployeeCancel = new RetirementResignEmployeeCancel { + ApproveStep = "st1", + Group = updated.Group, Location = updated.Location, SendDate = updated.SendDate, ActiveDate = updated.ActiveDate, @@ -2080,7 +2098,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.CommanderApproveRetirementResignEmployee(id, req.Reason ?? "", req.Date ?? DateTime.Now); + await _repository.CommanderApproveRetirementResignEmployee(id, req.Reason ?? "", null); return Success(); } @@ -2114,7 +2132,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.CommanderRejectRetirementResignEmployee(id, req.Reason ?? "", req.Date ?? DateTime.Now); + await _repository.CommanderRejectRetirementResignEmployee(id, req.Reason ?? "", req.Date); return Success(); } @@ -2148,7 +2166,7 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.ApproveRetirementResignEmployee(id, req.Reason ?? "", req.Date ?? DateTime.Now); + await _repository.ApproveRetirementResignEmployee(id, req.Reason ?? "", null); return Success(); } @@ -2182,7 +2200,170 @@ namespace BMA.EHR.Retirement.Service.Controllers // { // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); // } - await _repository.RejectRetirementResignEmployee(id, req.Reason ?? "", req.Date ?? DateTime.Now); + await _repository.RejectRetirementResignEmployee(id, req.Reason ?? "", req.Date); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + + + + /// + /// LV2_013 - āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("admin-cancel/approve/officer/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> OfficerApproveRetirementResignEmployeeCancelAsync(Guid id) + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.OfficerApproveRetirementResignEmployeeCancel(id); + + return Success(); + } + + /// + /// LV2_015 - āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin-cancel/approve/comander/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> CommanderApproveRetirementResignEmployeeCancelAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.CommanderApproveRetirementResignEmployeeCancel(id, req.Reason ?? "", null); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + + /// + /// āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin-cancel/reject/comander/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> CommanderRejectRetirementResignEmployeeCancelAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.CommanderRejectRetirementResignEmployeeCancel(id, req.Reason ?? "", req.Date); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + + /// + /// LV2_016 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin-cancel/approve/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> ApproveRetirementResignEmployeeCancelAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.ApproveRetirementResignEmployeeCancel(id, req.Reason ?? "", null); + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + + /// + /// LV2_017 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPut("admin-cancel/reject/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> RejectRetirementResignEmployeeCancelAsync(Guid id, + [FromBody] RetirementRequestApproveDto req) + { + try + { + // var getPermission = await _permission.GetPermissionAPIAsync("UPDATE", "SYS_LEAVE_LIST"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + await _repository.RejectRetirementResignEmployeeCancel(id, req.Reason ?? "", req.Date); return Success(); } From afef4fde9f8506115935450a9ab3ff154e3348b2 Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 27 May 2025 20:10:19 +0700 Subject: [PATCH 331/879] gen commander at retirement resign --- .../Controllers/RetirementResignController.cs | 24 +++++++++++++++++-- .../RetirementResignEmployeeController.cs | 22 +++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 4e717b13..dc64a129 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -1203,6 +1203,7 @@ namespace BMA.EHR.Retirement.Service.Controllers public async Task> Cancel([FromBody] RetirementReasonRequest req, Guid id) { var updated = await _context.RetirementResigns.AsQueryable() + .Include(x => x.Approvers) .FirstOrDefaultAsync(x => x.Id == id); if (updated == null) return Error(GlobalMessages.RetirementResignNotFound, 404); @@ -1282,6 +1283,27 @@ namespace BMA.EHR.Retirement.Service.Controllers }; await _context.RetirementResignCancels.AddAsync(retirementResignCancel); await _context.SaveChangesAsync(); + var addList = new List(); + + foreach (var r in updated.Approvers) + { + addList.Add(new RetirementResignCancelApprover + { + Seq = r.Seq, + RetirementResignCancel = retirementResignCancel, + Prefix = r.Prefix, + FirstName = r.FirstName, + LastName = r.LastName, + PositionName = r.PositionName, + ProfileId = r.ProfileId, + KeycloakId = r.KeycloakId, + Org = r.Org, + ApproveStatus = "PENDING", + ApproveType = r.ApproveType + }); + } + await _context.AddRangeAsync(addList); + await _context.SaveChangesAsync(); using (var client = new HttpClient()) { client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); @@ -1304,8 +1326,6 @@ namespace BMA.EHR.Retirement.Service.Controllers client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); var _res = await client.DeleteAsync($"{_configuration["API"]}/org/command/tab2Cancel17/{updated.Id}"); - Console.WriteLine(_res); - Console.WriteLine($"{_configuration["API"]}/org/command/tab2Cancel17/{updated.Id}"); } updated.Status = "CANCELING"; } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 505c531c..5a71b856 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -1109,6 +1109,7 @@ namespace BMA.EHR.Retirement.Service.Controllers public async Task> Cancel([FromBody] RetirementReasonRequest req, Guid id) { var updated = await _context.RetirementResignEmployees.AsQueryable() + .Include(x => x.Approvers) .FirstOrDefaultAsync(x => x.Id == id); if (updated == null) return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404); @@ -1187,6 +1188,27 @@ namespace BMA.EHR.Retirement.Service.Controllers }; await _context.RetirementResignEmployeeCancels.AddAsync(retirementResignEmployeeCancel); await _context.SaveChangesAsync(); + var addList = new List(); + + foreach (var r in updated.Approvers) + { + addList.Add(new RetirementResignEmployeeCancelApprover + { + Seq = r.Seq, + RetirementResignEmployeeCancel = retirementResignEmployeeCancel, + Prefix = r.Prefix, + FirstName = r.FirstName, + LastName = r.LastName, + PositionName = r.PositionName, + ProfileId = r.ProfileId, + KeycloakId = r.KeycloakId, + Org = r.Org, + ApproveStatus = "PENDING", + ApproveType = r.ApproveType + }); + } + await _context.AddRangeAsync(addList); + await _context.SaveChangesAsync(); using (var client = new HttpClient()) { client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); From 513eb223be078e2c55a422c6cf8f8cf4dacbff37 Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 27 May 2025 20:16:53 +0700 Subject: [PATCH 332/879] retirement resign cancel add api add commander --- .../Controllers/RetirementResignController.cs | 63 +++++++++++++++++++ .../RetirementResignEmployeeController.cs | 63 +++++++++++++++++++ 2 files changed, 126 insertions(+) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index dc64a129..72e942d5 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -2838,6 +2838,69 @@ namespace BMA.EHR.Retirement.Service.Controllers + + /// + /// āđ€āļžāļīāđˆāļĄāļĢāļēāļĒāļŠāļīāļ·āđˆāļ­āļœāļđāđ‰āļ­āļ™āļļāļĄāļąāļ•āļī āļŦāļĢāļ·āļ­ āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("officer/add-resign/{type}/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> AddApproverCancel(string type, Guid id, [FromBody] List req) + { + try + { + var retirement = await _context.RetirementResignCancels + .Where(x => x.Id == id) + .FirstOrDefaultAsync(); + if (retirement == null) + { + return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); + } + + var data = await _context.RetirementResignCancelApprovers + .Where(x => x.RetirementResignCancel.Id == id && x.ApproveType.ToUpper() == type.ToUpper()) + .ToListAsync(); + _context.RemoveRange(data); + + await _context.SaveChangesAsync(); + + var addList = new List(); + + foreach (var r in req) + { + addList.Add(new RetirementResignCancelApprover + { + Seq = r.Seq, + RetirementResignCancel = retirement, + Prefix = r.Prefix, + FirstName = r.FirstName, + LastName = r.LastName, + PositionName = r.PositionName, + ProfileId = r.ProfileId, + KeycloakId = r.KeycloakId, + Org = r.Org, + ApproveStatus = "PENDING", + ApproveType = type.Trim().ToUpper() + }); + } + await _context.AddRangeAsync(addList); + await _context.SaveChangesAsync(); + + return Success(); + + } + catch (Exception ex) + { + return Error(ex); + } + } + /// /// LV2_013 - āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) /// diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 5a71b856..9094463c 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -2235,6 +2235,69 @@ namespace BMA.EHR.Retirement.Service.Controllers + + /// + /// āđ€āļžāļīāđˆāļĄāļĢāļēāļĒāļŠāļīāļ·āđˆāļ­āļœāļđāđ‰āļ­āļ™āļļāļĄāļąāļ•āļī āļŦāļĢāļ·āļ­ āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē + /// + /// + /// + /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("officer/add-resign/{type}/{id:guid}")] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public async Task> AddApproverCancel(string type, Guid id, [FromBody] List req) + { + try + { + var retirement = await _context.RetirementResignEmployeeCancels + .Where(x => x.Id == id) + .FirstOrDefaultAsync(); + if (retirement == null) + { + return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); + } + + var data = await _context.RetirementResignEmployeeCancelApprovers + .Where(x => x.RetirementResignEmployeeCancel.Id == id && x.ApproveType.ToUpper() == type.ToUpper()) + .ToListAsync(); + _context.RemoveRange(data); + + await _context.SaveChangesAsync(); + + var addList = new List(); + + foreach (var r in req) + { + addList.Add(new RetirementResignEmployeeCancelApprover + { + Seq = r.Seq, + RetirementResignEmployeeCancel = retirement, + Prefix = r.Prefix, + FirstName = r.FirstName, + LastName = r.LastName, + PositionName = r.PositionName, + ProfileId = r.ProfileId, + KeycloakId = r.KeycloakId, + Org = r.Org, + ApproveStatus = "PENDING", + ApproveType = type.Trim().ToUpper() + }); + } + await _context.AddRangeAsync(addList); + await _context.SaveChangesAsync(); + + return Success(); + + } + catch (Exception ex) + { + return Error(ex); + } + } + /// /// LV2_013 - āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) /// From 355f5b9591a02230b657206769f587158fb54279 Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 27 May 2025 20:19:40 +0700 Subject: [PATCH 333/879] add comment retirement resign --- .../Controllers/RetirementResignController.cs | 14 +++++----- .../RetirementResignEmployeeController.cs | 26 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 72e942d5..9e8d91e5 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -2840,14 +2840,14 @@ namespace BMA.EHR.Retirement.Service.Controllers /// - /// āđ€āļžāļīāđˆāļĄāļĢāļēāļĒāļŠāļīāļ·āđˆāļ­āļœāļđāđ‰āļ­āļ™āļļāļĄāļąāļ•āļī āļŦāļĢāļ·āļ­ āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē + /// āđ€āļžāļīāđˆāļĄāļĢāļēāļĒāļŠāļīāļ·āđˆāļ­āļœāļđāđ‰āļ­āļ™āļļāļĄāļąāļ•āļī āļŦāļĢāļ·āļ­ āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļĒāļāđ€āļĨāļīāļ /// /// /// /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpPost("officer/add-resign/{type}/{id:guid}")] + [HttpPost("officer-cancel/add-resign/{type}/{id:guid}")] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status401Unauthorized)] [ProducesResponseType(StatusCodes.Status500InternalServerError)] @@ -2902,7 +2902,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// LV2_013 - āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// LV2_013 - āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĒāļāđ€āļĨāļīāļ(ADMIN) /// /// /// @@ -2927,7 +2927,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// LV2_015 - āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē(ADMIN) + /// LV2_015 - āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļĒāļāđ€āļĨāļīāļ(ADMIN) /// /// /// @@ -2961,7 +2961,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē(ADMIN) + /// āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļĒāļāđ€āļĨāļīāļ(ADMIN) /// /// /// @@ -2995,7 +2995,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// LV2_016 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// LV2_016 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĒāļāđ€āļĨāļīāļ(ADMIN) /// /// /// @@ -3029,7 +3029,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// LV2_017 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// LV2_017 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĒāļāđ€āļĨāļīāļ(ADMIN) /// /// /// diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 9094463c..bfde334c 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -2011,7 +2011,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// āđ€āļžāļīāđˆāļĄāļĢāļēāļĒāļŠāļīāļ·āđˆāļ­āļœāļđāđ‰āļ­āļ™āļļāļĄāļąāļ•āļī āļŦāļĢāļ·āļ­ āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē + /// āđ€āļžāļīāđˆāļĄāļĢāļēāļĒāļŠāļīāļ·āđˆāļ­āļœāļđāđ‰āļ­āļ™āļļāļĄāļąāļ•āļī āļŦāļĢāļ·āļ­ āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļĨāļđāļāļˆāđ‰āļēāļ‡ /// /// /// @@ -2073,7 +2073,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// LV2_013 - āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// LV2_013 - āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) /// /// /// @@ -2098,7 +2098,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// LV2_015 - āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē(ADMIN) + /// LV2_015 - āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) /// /// /// @@ -2132,7 +2132,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē(ADMIN) + /// āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) /// /// /// @@ -2166,7 +2166,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// LV2_016 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// LV2_016 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) /// /// /// @@ -2200,7 +2200,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// LV2_017 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē (ADMIN) + /// LV2_017 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) /// /// /// @@ -2237,14 +2237,14 @@ namespace BMA.EHR.Retirement.Service.Controllers /// - /// āđ€āļžāļīāđˆāļĄāļĢāļēāļĒāļŠāļīāļ·āđˆāļ­āļœāļđāđ‰āļ­āļ™āļļāļĄāļąāļ•āļī āļŦāļĢāļ·āļ­ āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē + /// āđ€āļžāļīāđˆāļĄāļĢāļēāļĒāļŠāļīāļ·āđˆāļ­āļœāļđāđ‰āļ­āļ™āļļāļĄāļąāļ•āļī āļŦāļĢāļ·āļ­ āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļĒāļāđ€āļĨāļīāļ /// /// /// /// āđ€āļĄāļ·āđˆāļ­āļ—āļģāļĢāļēāļĒāļāļēāļĢāļŠāļģāđ€āļĢāđ‡āļˆ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpPost("officer/add-resign/{type}/{id:guid}")] + [HttpPost("officer-cancel/add-resign/{type}/{id:guid}")] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status401Unauthorized)] [ProducesResponseType(StatusCodes.Status500InternalServerError)] @@ -2299,7 +2299,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// LV2_013 - āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) + /// LV2_013 - āđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĨāļđāļāļˆāđ‰āļēāļ‡āļĒāļāđ€āļĨāļīāļ(ADMIN) /// /// /// @@ -2324,7 +2324,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// LV2_015 - āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) + /// LV2_015 - āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļĨāļđāļāļˆāđ‰āļēāļ‡āļĒāļāđ€āļĨāļīāļ(ADMIN) /// /// /// @@ -2358,7 +2358,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) + /// āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļēāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļēāļĨāļđāļāļˆāđ‰āļēāļ‡āļĒāļāđ€āļĨāļīāļ(ADMIN) /// /// /// @@ -2392,7 +2392,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// LV2_016 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) + /// LV2_016 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĨāļđāļāļˆāđ‰āļēāļ‡āļĒāļāđ€āļĨāļīāļ(ADMIN) /// /// /// @@ -2426,7 +2426,7 @@ namespace BMA.EHR.Retirement.Service.Controllers } /// - /// LV2_017 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĨāļđāļāļˆāđ‰āļēāļ‡(ADMIN) + /// LV2_017 - āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāļĨāļē āļĨāļđāļāļˆāđ‰āļēāļ‡āļĒāļāđ€āļĨāļīāļ(ADMIN) /// /// /// From 22a39140726af8835d4136c9eca089d0cf7605bf Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 28 May 2025 10:48:40 +0700 Subject: [PATCH 334/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=84=E0=B8=B3=E0=B8=99=E0=B8=A7=E0=B8=99=E0=B9=80?= =?UTF-8?q?=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=8A=E0=B8=A2=E0=B9=8C=E0=B9=81=E0=B8=A2=E0=B8=81?= =?UTF-8?q?=E0=B8=95=E0=B8=B2=E0=B8=A1=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/InsigniaPeriodsRepository.cs | 232 +++++++++++++++++- BMA.EHR.Domain/Shared/GlobalMessages.cs | 4 + .../Controllers/InsigniaRequestController.cs | 51 ++++ 3 files changed, 278 insertions(+), 9 deletions(-) diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 42d7ede9..db4f4c92 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -1,16 +1,19 @@ +using Amazon.S3.Model.Internal.MarshallTransformations; using BMA.EHR.Application.Common.Interfaces; using BMA.EHR.Application.Requests; +using BMA.EHR.Application.Responses.Profiles; +using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Insignias; using BMA.EHR.Domain.Models.MetaData; using BMA.EHR.Domain.Models.OrganizationEmployee; -using BMA.EHR.Domain.Shared; -using BMA.EHR.Domain.Extensions; -using Microsoft.AspNetCore.Http; -using Microsoft.EntityFrameworkCore; -using Newtonsoft.Json; using BMA.EHR.Domain.Models.Organizations; -using Amazon.S3.Model.Internal.MarshallTransformations; -using BMA.EHR.Application.Responses.Profiles; +using BMA.EHR.Domain.Shared; +using GreatFriends.ThaiBahtText; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; +using Nest; +using Newtonsoft.Json; using ProfileInsignia = BMA.EHR.Domain.Models.HR.ProfileInsignia; namespace BMA.EHR.Application.Repositories @@ -460,7 +463,7 @@ namespace BMA.EHR.Application.Repositories .FirstOrDefault() == null ? 0 : p.ProfileInsignia.Where(x => x.InsigniaId.Value == bcmRoyal.Id).OrderBy(x => x.Year) .FirstOrDefault().Year, - ProfileType = p.ProfileType, + ProfileType = p.ProfileType, MarkDiscipline = p.MarkDiscipline, MarkInsignia = p.MarkInsignia, @@ -8140,6 +8143,214 @@ namespace BMA.EHR.Application.Repositories #region " Public " + /// + /// āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāļĢāļēāļĒāļŠāļ·āđˆāļ­āļœāļđāđ‰āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļĒāđŒāļ‚āļ­āļ‡āđāļ•āđˆāļĨāļ°āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ + /// + /// āļĢāļŦāļąāļŠāļĢāļ­āļšāļāļēāļĢāļ‚āļ­ + /// āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ + /// officer or employee + /// āļœāļĨāļāļēāļĢāļ„āļģāļ™āļ§āļ™āļāļēāļĢāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļĒāđŒ + public async Task> GetInsigniaCandidateBKKByTypeAsync(Guid periodId, Guid ocId, string type = "officer") + { + try + { + var result_candidate = new List(); + + var period = await _dbContext.Set().Include(x => x.InsigniaEmployees).FirstOrDefaultAsync(p => p.Id == periodId); + if (period == null) + { + throw new Exception(GlobalMessages.InsigniaPeriodNotFound); + } + + if (type.ToLower().Trim() == "officer") + { + var allOfficerProfilesByRoot = (await _userProfileRepository.GetOfficerProfileByRootIdAsync(ocId, AccessToken)); + + // calculate āļ•āļēāļĄāđāļ•āđˆāļĨāļ°āļŠāļąāđ‰āļ™ + var type_coin = allOfficerProfilesByRoot.Count() > 0 ? await GetCoinCandidate(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type1_level1 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type1_Level1(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type1_level2 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type1_Level2(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type1_level3 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type1_Level3(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type1_level4 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type1_Level4(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type2_level5 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type2_Level5(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type2_level6 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type2_Level6(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type2_level7 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type2_Level7(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type2_level8 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type2_Level8(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type2_level9_1 = + allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type2_Level9_1(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type2_level9_2 = + allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type2_Level9_2(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type3_level10 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type3_Level10(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type3_level11 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type3_Level11(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type4_level10 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type4_Level10(periodId, ocId, allOfficerProfilesByRoot) : new List(); + var type4_level11 = allOfficerProfilesByRoot.Count() > 0 ? await GetInsigniaCandidate_Type4_Level11(periodId, ocId, allOfficerProfilesByRoot) : new List(); + + + // union result + foreach (var r in type_coin) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type4_level11) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type4_level10) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type3_level11) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type3_level10) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type2_level9_2) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type2_level9_1) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type2_level8) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type2_level7) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type2_level6) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type2_level5) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type1_level4) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type1_level3) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type1_level2) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in type1_level1) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + // āļĒāđ‰āļēāļĒāļ—āļĩāđˆāļ•āļēāļĄāļ—āļĩāđˆ āļĄāļ­āļŠāđāļˆāđ‰āļ‡ + if (period.Round != 1) + { + var insigniaIdList = await _dbContext.Set() + .Include(x => x.InsigniaType) + .Where(x => x.InsigniaType!.Name == "āļŠāļąāđ‰āļ™āļŠāļēāļĒāļŠāļ°āļžāļēāļĒ") + .Select(x => x.Id) + .ToListAsync(); + + + result_candidate = result_candidate.Where(x => insigniaIdList.Contains(x.RequestInsignia.Id)).ToList(); + } + } + else if (type.ToLower().Trim() == "employee") + { + var allEmployeeProfileByRoot = new List(); + if (period != null && period.InsigniaEmployees != null) + { + allEmployeeProfileByRoot = (await _userProfileRepository.GetEmployeeProfileByPositionAsync(ocId, period.InsigniaEmployees.Select(x => x.RefId!.ValueOrBlank()).ToArray(), AccessToken)); + } + + var type_coin = allEmployeeProfileByRoot.Count() > 0 ? await GetCoinCandidate(periodId, ocId, allEmployeeProfileByRoot) : new List(); + + var employee_type1 = allEmployeeProfileByRoot.Count() > 0 ? await GetEmployeeInsignia_Type1(periodId, ocId, allEmployeeProfileByRoot) : new List(); + var employee_type2 = allEmployeeProfileByRoot.Count() > 0 ? await GetEmployeeInsignia_Type2(periodId, ocId, allEmployeeProfileByRoot) : new List(); + + // union result + foreach (var r in type_coin) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in employee_type2) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + + foreach (var r in employee_type1) + { + var old = result_candidate.FirstOrDefault(x => x.ProfileId == r.ProfileId); + if (old == null) + result_candidate.Add(r); + } + } + else + throw new Exception(GlobalMessages.CalculateTypeNotValid); + + return result_candidate.OrderBy(x => x.Seq).ThenBy(x => x.Gender).ThenBy(x => x.ProfileId).ToList(); + } + catch + { + throw; + } + } + /// /// āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāļĢāļēāļĒāļŠāļ·āđˆāļ­āļœāļđāđ‰āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļĒāđŒāļ‚āļ­āļ‡āđāļ•āđˆāļĨāļ°āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ /// @@ -8325,7 +8536,7 @@ namespace BMA.EHR.Application.Repositories // result_candidate.Add(r); //} - + return result_candidate.OrderBy(x => x.Seq).ThenBy(x => x.Gender).ThenBy(x => x.ProfileId).ToList(); } @@ -8498,6 +8709,9 @@ namespace BMA.EHR.Application.Repositories } } + + + #endregion #region " From Ming " diff --git a/BMA.EHR.Domain/Shared/GlobalMessages.cs b/BMA.EHR.Domain/Shared/GlobalMessages.cs index 19a8b339..8746de95 100644 --- a/BMA.EHR.Domain/Shared/GlobalMessages.cs +++ b/BMA.EHR.Domain/Shared/GlobalMessages.cs @@ -98,6 +98,10 @@ public static readonly string InsigniaBorrowNotFound = "āđ„āļĄāđˆāļžāļšāļĢāļēāļĒāļāļēāļĢāļĒāļ·āļĄāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"; public static readonly string InsigniaNotReturn = "āļĢāļēāļĒāļāļēāļĢāļĒāļ·āļĄāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ āļ™āļĩāđ‰āđ„āļ”āđ‰āļ—āļģāļāļēāļĢāļĒāļ·āļĄāđ„āļ§āđ‰āđāļĨāđ‰āļ§"; + + + public static readonly string CalculateTypeNotValid = "āļ›āļĢāļ°āđ€āļ āļ—āļœāļđāđ‰āļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ āđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ āļāļĢāļļāļ“āļēāļ•āļĢāļ§āļˆāļŠāļ­āļšāļ‚āđ‰āļ­āļĄāļđāļĨ"; + #endregion #region " Retirement " diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index d2095a1c..8a71e214 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -500,6 +500,57 @@ namespace BMA.EHR.Insignia.Service.Controllers return Success(); } + /// + /// āļ„āļģāļ™āļ§āļ“āļĢāļēāļŠāļŠāļ·āđˆāļ­āļœāļđāđ‰āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ (āđāļĒāļāļ•āļēāļĄ officer, employee) + /// + /// officer or employee + /// Id āļĢāļ­āļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("{type}/{insigniaPeriodId:length(36)}")] + public async Task> CalculateInsigniaRequestByTypeAsync(string type, Guid insigniaPeriodId) + { + try + { + var selectPeriod = _context.InsigniaPeriods.AsNoTracking().Where(x => x.Id == insigniaPeriodId).FirstOrDefault(); + if (selectPeriod == null) + throw new Exception(GlobalMessages.InsigniaPeriodNotFound); + + var organizations = await _userProfileRepository.GetActiveRootAsync(AccessToken, selectPeriod.RevisionId); + + foreach (var organization in organizations) + { + if (organization == null) + continue; + + + var result = await _repository.GetInsigniaRequest(insigniaPeriodId, organization.Id); + if (result != null) + { + Guid period = result.PeriodId; + string requestStatus = result.RequestStatus; + var candidate = await _repository.GetInsigniaCandidateBKKByTypeAsync(insigniaPeriodId, organization.Id, type); + // āļ•āļĢāļ§āļˆāļŠāļ­āļšāļ§āđˆāļēāļĢāļēāļĒāļāļēāļĢāļ­āļĒāļđāđˆāđƒāļ™ table insignia_request_new + if (requestStatus == null) + { + // āļšāļąāļ™āļ—āļķāļāļĢāļēāļĒāļŠāļ·āđˆāļ­ + await _repository.InsertCandidate(period, organization.Id, organization.OrgRootName, candidate); + } + } + } + + return Success(); + } + catch (Exception ex) + { + return Error(ex); + } + + } + /// /// āļ„āļģāļ™āļ§āļ“āļĢāļēāļŠāļŠāļ·āđˆāļ­āļœāļđāđ‰āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ (Rabbit MQ) /// From d9be2426c4b4bb3f01841919f4ac6f0f22fd237e Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 28 May 2025 10:56:36 +0700 Subject: [PATCH 335/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20api=20=E0=B9=80=E0=B8=A3=E0=B8=B5=E0=B8=A2=E0=B8=81?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3=20?= =?UTF-8?q?=E0=B9=81=E0=B8=A2=E0=B8=81=20officer,employee?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/InsigniaRequestController.cs | 120 ++++++++++++++++++ 1 file changed, 120 insertions(+) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 8a71e214..98c0f652 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -281,6 +281,126 @@ namespace BMA.EHR.Insignia.Service.Controllers #region " āļˆāļąāļ”āļ—āļģāļĢāļēāļĒāļŠāļ·āđˆāļ­āļ„āļĢāļđāļ—āļĩāđˆāļĄāļĩāļŠāļīāļ—āļ˜āļīāđƒāļ™āļāļēāļĢāļĒāļ·āļ™āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ " + /// + /// list āļĢāļēāļĒāļāļēāļĢāļ„āļģāļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āļœāļđāđ‰āđ„āļ”āđ‰āļĢāļąāļš,āļ„āļ™āđ„āļĄāđˆāļĒāļ·āđˆāļ™,āļ„āļ™āļ—āļĩāđˆāļ–āļđāļāļĨāļš + /// + /// Id āļĢāļ­āļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ + /// Id āļŠāļąāļ‡āļāļąāļ” + /// āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļĢāļ°āļŦāļ§āđˆāļēāļ‡āļŠāļāļˆ āļāļąāļš āđ€āļ‚āļ• (āļ•āļ­āļ™āļ™āļĩāđ‰āđƒāļŦāđ‰āļŠāđˆāļ‡ officer āļāđˆāļ­āļ™) + /// pending=āļœāļđāđ‰āđ„āļ”āđ‰āļĢāļąāļš, reject=āļ„āļ™āđ„āļĄāđˆāļĒāļ·āđˆāļ™, delete=āļ„āļ™āļ—āļĩāđˆāļ–āļđāļāļĨāļš + /// officer or employee + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("{insigniaPeriodId:length(36)}/{ocId:length(36)}/{role}/{status}/{isDeputy}/{type}")] + public async Task> GetInsignaiRequestBkkByTypeAsync(Guid insigniaPeriodId, Guid ocId, string role, string status, bool isDeputy, string type = "officer") + { + var result = await _repository.GetInsigniaRequest(insigniaPeriodId, ocId); + if (result != null) + { + Guid period = result.PeriodId; + var periodName = result.Name; + string requestStatus = result.RequestStatus; + string requestNote = result.RequestNote; + + var resend = new InsigniaResults + { + PeriodId = result.PeriodId, + Year = result.Year, + Round = result.Round, + Name = result.Name, + RequestId = result.RequestId, + RequestStatus = result.RequestStatus, + RequestNote = result.RequestNote, + IsLock = result.IsLock, + OrganizationName = result.OrganizationName, + Document = result.Document, + Items = new List() + }; + GetIsOfficerDto RoleInsignia = await _userProfileRepository.GetIsOfficerRootAsync(AccessToken, "SYS_INSIGNIA_MANAGE"); + if (RoleInsignia.isOfficer == true && isDeputy == false && result.RequestStatus != "st6") + return Success(resend); + if (RoleInsignia.isDirector == true && (result.RequestStatus == "st1" || result.RequestStatus == "st2")) + return Success(resend); + + // Jack Remark Remove āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰āđ€āļĢāļĩāļĒāļāļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļ­āļ­āļāļĄāļēāđ€āļĢāđ‡āļŠāļ§āļ‚āļķāđ‰āļ™ + //var candidate = await _repository.GetInsigniaCandidateBKK(period, ocId); + + //// āļ•āļĢāļ§āļˆāļŠāļ­āļšāļ§āđˆāļēāļĢāļēāļĒāļāļēāļĢāļ­āļĒāļđāđˆāđƒāļ™ table insignia_request_new + //if (requestStatus == null) + //{ + // // āļšāļąāļ™āļ—āļķāļāļĢāļēāļĒāļŠāļ·āđˆāļ­ + // await _repository.InsertCandidate(period, ocId, candidate); + //} + if (role.Trim().ToUpper() == "OFFICER") + { + resend.Items = (await _repository.InsigniaHasProfile(result.PeriodId, ocId, status)) + .Where(x => x.ProfileType!.ToLower() == type.ToLower()).ToList(); + return Success(resend); + } + else + { + var passData = _context.InsigniaRequests.AsQueryable() + .Include(x => x.RequestProfiles) + .Where(x => x.OrganizationId == ocId) + .Where(x => x.Period.Id == period) + .Select(ir => new + { + requstID = ir.Id, + requstStatus = ir.RequestStatus, + requstStatusName = GetRequestlStatusText(ir.RequestStatus), + fkInstituteId = -1, + fkInstitute = "", + fkPeriodId = ir.Period.Id, + insigniaRequestHasProfile = FormatRequestProfiles(ir.RequestProfiles.AsQueryable() + .Include(x => x.RequestInsignia) + .ThenInclude(x => x.InsigniaType) + .Where(x => x.IsApprove) + .Where(x => x.ProfileType!.ToLower() == type.ToLower()) + .ToList()) + }) + .ToList() + .FirstOrDefault(); + + var failData = _context.InsigniaRequests.AsQueryable() + .Include(x => x.RequestProfiles) + .Where(x => x.OrganizationId == ocId) + .Where(x => x.Period.Id == period) + .Select(ir => new + { + requstID = ir.Id, + requstStatus = ir.RequestStatus, + requstStatusName = GetRequestlStatusText(ir.RequestStatus), + fkInstituteId = -1, + fkInstitute = "", + fkPeriodId = ir.Period.Id, + insigniaRequestHasProfile = FormatRequestProfiles(ir.RequestProfiles.AsQueryable() + .Include(x => x.RequestInsignia) + .ThenInclude(x => x.InsigniaType) + .Where(x => !x.IsApprove) + .Where(x => x.ProfileType!.ToLower() == type.ToLower()) + .ToList()) + }) + .ToList() + .FirstOrDefault(); + + var period_data = (from p in _context.InsigniaPeriods.AsQueryable() + where p.Id == period + select new + { + periodName = p.Name, + periodYear = p.Year, + }).FirstOrDefault(); + + return Success(new { passData = passData, failData = failData, period = period_data }); + } + } + + return Success(); + } + /// /// list āļĢāļēāļĒāļāļēāļĢāļ„āļģāļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āļœāļđāđ‰āđ„āļ”āđ‰āļĢāļąāļš,āļ„āļ™āđ„āļĄāđˆāļĒāļ·āđˆāļ™,āļ„āļ™āļ—āļĩāđˆāļ–āļđāļāļĨāļš /// From fd25873348e818cf9bd527c73e59b72de89d78f7 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 28 May 2025 11:28:14 +0700 Subject: [PATCH 336/879] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=9A=E0=B8=B1=E0=B8=99?= =?UTF-8?q?=E0=B8=97=E0=B8=B6=E0=B8=81=E0=B9=84=E0=B8=9B=E0=B8=97=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4=20=E0=B8=95?= =?UTF-8?q?=E0=B8=B2=E0=B8=A1=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B9=80=E0=B8=A0?= =?UTF-8?q?=E0=B8=97=20officer=20=E0=B8=AB=E0=B8=A3=E0=B8=B7=E0=B8=AD=20em?= =?UTF-8?q?ployee=20=E0=B9=82=E0=B8=94=E0=B8=A2=E0=B9=84=E0=B8=9B=E0=B9=80?= =?UTF-8?q?=E0=B8=A3=E0=B8=B5=E0=B8=A2=E0=B8=81=20api=20=E0=B8=82=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B9=82=E0=B8=84?= =?UTF-8?q?=E0=B8=A3=E0=B8=87=E0=B8=AA=E0=B8=A3=E0=B9=89=E0=B8=B2=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/InsigniaRequestController.cs | 81 +++++++++++++++---- 1 file changed, 64 insertions(+), 17 deletions(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 98c0f652..beea1128 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -2293,24 +2293,71 @@ namespace BMA.EHR.Insignia.Service.Controllers if (profile.Status != "DONE") { profile.Status = "DONE"; - var profileInsignia = new PostProfileInsigniaDto + + // check profile.ProfileType āļāđˆāļ­āļ™āļŠāđˆāļ‡āđ„āļ›āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī + if (profile.ProfileType == "OFFICER") { - profileId = profile.ProfileId.Value, - year = insigniaNote.Year, - no = profile.No, - volumeNo = profile.VolumeNo, - section = profile.Section, - page = profile.Page, - receiveDate = profile.DateReceive.Value, - dateAnnounce = profile.Date.Value, - insigniaId = profile.RequestInsignia.Id, - issue = "", - note = "", - refCommandDate = null, - refCommandNo = "", - volume = "", - }; - await _userProfileRepository.PostProfileInsigniaAsync(profileInsignia, AccessToken); + var profileInsigniaBody = new PostProfileInsigniaDto + { + profileId = profile!.ProfileId!.Value, + year = insigniaNote.Year, + no = profile!.No ?? "", + volumeNo = profile!.VolumeNo ?? "", + section = profile!.Section ?? "", + page = profile!.Page ?? "", + receiveDate = profile.DateReceive!.Value, + dateAnnounce = profile.Date!.Value, + insigniaId = profile.RequestInsignia!.Id, + issue = "", + note = "", + refCommandDate = null, + refCommandNo = "", + volume = "", + + }; + await _userProfileRepository.PostProfileInsigniaAsync(profileInsigniaBody, AccessToken); + } + else + { + var profileInsigniaBody = new PostProfileEmpInsigniaDto + { + profileEmployeeId = profile!.ProfileId!.Value, + year = insigniaNote.Year, + no = profile!.No ?? "", + volumeNo = profile!.VolumeNo ?? "", + section = profile!.Section ?? "", + page = profile!.Page ?? "", + receiveDate = profile.DateReceive!.Value, + dateAnnounce = profile.Date!.Value, + insigniaId = profile.RequestInsignia!.Id, + issue = "", + note = "", + refCommandDate = null, + refCommandNo = "", + volume = "", + + }; + await _userProfileRepository.PostProfileEmpInsigniaAsync(profileInsigniaBody, AccessToken); + } + + //var profileInsignia = new PostProfileInsigniaDto + //{ + // profileId = profile.ProfileId.Value, + // year = insigniaNote.Year, + // no = profile.No, + // volumeNo = profile.VolumeNo, + // section = profile.Section, + // page = profile.Page, + // receiveDate = profile.DateReceive.Value, + // dateAnnounce = profile.Date.Value, + // insigniaId = profile.RequestInsignia.Id, + // issue = "", + // note = "", + // refCommandDate = null, + // refCommandNo = "", + // volume = "", + //}; + //await _userProfileRepository.PostProfileInsigniaAsync(profileInsignia, AccessToken); } } await _context.SaveChangesAsync(); From 2547590ce830ee5f9cd9e1112f819592bdfa3e8a Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 28 May 2025 15:19:02 +0700 Subject: [PATCH 337/879] add repo --- BMA.EHR.Application/ApplicationServicesRegistration.cs | 1 + .../Controllers/RetirementResignEmployeeController.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Application/ApplicationServicesRegistration.cs b/BMA.EHR.Application/ApplicationServicesRegistration.cs index 987de7c3..350b7a75 100644 --- a/BMA.EHR.Application/ApplicationServicesRegistration.cs +++ b/BMA.EHR.Application/ApplicationServicesRegistration.cs @@ -23,6 +23,7 @@ namespace BMA.EHR.Application services.AddTransient(); services.AddTransient(); services.AddTransient(); + services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index bfde334c..670555c0 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -23,7 +23,7 @@ namespace BMA.EHR.Retirement.Service.Controllers [Produces("application/json")] [Authorize] [SwaggerTag("āļĢāļ°āļšāļšāļĨāļēāļ­āļ­āļāļĨāļđāļāļˆāđ‰āļēāļ‡")] - public class RetirementResignEmployeeEmployeeController : BaseController + public class RetirementResignEmployeeController : BaseController { private readonly RetirementEmployeeRepository _repository; private readonly NotificationRepository _repositoryNoti; @@ -33,7 +33,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private readonly IConfiguration _configuration; private readonly PermissionRepository _permission; - public RetirementResignEmployeeEmployeeController(RetirementEmployeeRepository repository, + public RetirementResignEmployeeController(RetirementEmployeeRepository repository, NotificationRepository repositoryNoti, ApplicationDBContext context, MinIOService documentService, From 216d7c02fb4c26264c91205612d0e15df4c88836 Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 28 May 2025 15:33:05 +0700 Subject: [PATCH 338/879] update status cancel --- .../Controllers/RetirementResignController.cs | 1 + .../Controllers/RetirementResignEmployeeController.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 9e8d91e5..195a5843 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -2563,6 +2563,7 @@ namespace BMA.EHR.Retirement.Service.Controllers if (_res.IsSuccessStatusCode) { data.ForEach(profile => profile.Status = "DONE"); + data.ForEach(profile => profile.RetirementResign.Status = "CANCEL"); // var _data = await _context.RetirementResigns // .Where(x => data.Select(x => x.RetirementResign.Id).Contains(x.Id)) // .ToListAsync(); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 670555c0..6ed75dd6 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -2000,6 +2000,7 @@ namespace BMA.EHR.Retirement.Service.Controllers if (_res.IsSuccessStatusCode) { data.ForEach(profile => profile.Status = "DONE"); + data.ForEach(profile => profile.RetirementResignEmployee.Status = "CANCEL"); // var _data = await _context.RetirementResignEmployees // .Where(x => data.Select(x => x.RetirementResignEmployee.Id).Contains(x.Id)) // .ToListAsync(); From 9483d537cee8b0bb7954aa450a9b22d26d2c0436 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 28 May 2025 15:58:02 +0700 Subject: [PATCH 339/879] fix --- .../Repositories/InsigniaPeriodsRepository.cs | 96 +++++++++- .../Controllers/InsigniaRequestController.cs | 164 ++++++++++++++++++ 2 files changed, 259 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index db4f4c92..8c74811f 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -8974,6 +8974,100 @@ namespace BMA.EHR.Application.Repositories // } // insert candidate list + + public async Task UpdateCandidateAsync(Guid periodId, Guid ocId, string oc, List items) + { + try + { + var period = await _dbContext.Set().FirstOrDefaultAsync(p => p.Id == periodId); + + if (period == null) + throw new Exception(GlobalMessages.InsigniaPeriodNotFound); + + var req = await _dbContext.Set() + .Include(x => x.RequestProfiles) + .Include(x => x.Period) + .Where(x => x.Period.Id == periodId) + .Where(x => x.OrganizationId == ocId) + .FirstOrDefaultAsync(); + + if (req != null) + { + foreach (var item in items) + { + var reqInsignia = await _dbContext.Set() + .FirstOrDefaultAsync(i => i.Id == item.RequestInsignia.Id); + + if (reqInsignia == null) throw new Exception(GlobalMessages.InsigniaNotFound); + + var pf = req.RequestProfiles.FirstOrDefault(x => x.ProfileId == item.ProfileId); + if (pf != null) continue; // āļĄāļĩāļ­āļĒāļđāđˆāđāļĨāđ‰āļ§āļ‚āđ‰āļēāļĄāđ„āļ› + + req.RequestProfiles.Add(new InsigniaRequestProfile + { + Status = "PENDING", + ProfileId = item.ProfileId, + RequestInsignia = reqInsignia, + Salary = item.Salary, + RequestDate = DateTime.Now, + MatchingConditions = + System.Text.Json.JsonSerializer.Serialize(item.MatchingConditions), + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + + // Add Information for reused in API Call + ProfileType = item.ProfileType ?? "officer", + Prefix = item.Prefix, + FirstName = item.FirstName, + LastName = item.LastName, + CitizenId = item.CitizenId, + BirthDate = item.BirthDate, + DateAppoint = item.DateAppoint, + Position = item.Position, + Gender = item.Gender, + PosTypeName = item.PosTypeName, + PosLevelName = item.PosLevelName, + PosNo = item.PosNo, + Amount = item.Salary, + PositionSalaryAmount = item.PositionSalary, + LastInsigniaName = item.LastInsignia, + Root = item.Root, + RootId = item.RootId, + RootDnaId = item.RootDnaId, + Child1 = item.Child1, + Child1Id = item.Child1Id, + Child1DnaId = item.Child1DnaId, + Child2 = item.Child2, + Child2Id = item.Child2Id, + Child2DnaId = item.Child2DnaId, + Child3 = item.Child3, + Child3Id = item.Child3Id, + Child3DnaId = item.Child3DnaId, + Child4 = item.Child4, + Child4Id = item.Child4Id, + Child4DnaId = item.Child4DnaId, + + MarkDiscipline = item.MarkDiscipline, + MarkInsignia = item.MarkInsignia, + MarkLeave = item.MarkLeave, + MarkRate = item.MarkRate + }); + } + + await _dbContext.SaveChangesAsync(); + } + } + catch + { + throw; + } + } + + public async Task InsertCandidate(Guid periodId, Guid ocId, string oc, List items) { try @@ -8981,7 +9075,7 @@ namespace BMA.EHR.Application.Repositories var period = await _dbContext.Set().FirstOrDefaultAsync(p => p.Id == periodId); if (period == null) - throw new Exception(GlobalMessages.CoinPeriodNotFound); + throw new Exception(GlobalMessages.InsigniaPeriodNotFound); var periodOlds = await _dbContext.Set().Where(p => p.Year == period.Year).ToListAsync(); foreach (var periodOld in periodOlds) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index beea1128..4bce56a2 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -659,6 +659,12 @@ namespace BMA.EHR.Insignia.Service.Controllers // āļšāļąāļ™āļ—āļķāļāļĢāļēāļĒāļŠāļ·āđˆāļ­ await _repository.InsertCandidate(period, organization.Id, organization.OrgRootName, candidate); } + else + { + // update āļĢāļēāļĒāļŠāļ·āđˆāļ­ + await _repository.UpdateCandidateAsync(period, organization.Id, organization.OrgRootName, candidate); + } + } } @@ -1472,6 +1478,164 @@ namespace BMA.EHR.Insignia.Service.Controllers return Success(insigniaNotes); } + + /// + /// list āļĢāļēāļĒāļŠāļ·āđˆāļ­āļšāļąāļ™āļ—āļķāļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļ­āļīāļŠāļĢāļīāļĒāļŠāļ āļĢāļ“āđŒ/āļāļēāļĢāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš (āđāļĒāļ officer, employee) + /// + /// Reqest Body + /// officer or employee + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("note/search/{type}")] + public async Task> GetListNoteProfileByTypeAsync([FromBody] InsigniaNoteSearchRequest req, string type = "officer") + { + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_INSIGNIA_RECORD"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + var insigniaNote = await _context.InsigniaNotes + .FirstOrDefaultAsync(x => x.Id == req.InsigniaNoteId); + if (insigniaNote == null) + return Error(GlobalMessages.InsigniaRequestNotFound); + var insigniaType = await _context.InsigniaTypes + .FirstOrDefaultAsync(x => x.Id == req.InsigniaTypeId); + if (insigniaType == null) + return Error(GlobalMessages.InsigniaTypeNotFound); + + var rawNoteProfiles = await _context.InsigniaNoteProfiles + .Where(x => x.ProfileType!.ToLower() == type.ToLower()) + .Where(x => x.InsigniaNote == insigniaNote) + .Where(x => x.RequestInsignia.InsigniaType == insigniaType) + .Where(x => req.InsigniaId == null ? x.RequestInsignia != null : (x.RequestInsignia.Id == req.InsigniaId)) + .Select(x => new + { + Id = x.Id, + x.Prefix, + x.FirstName, + x.LastName, + x.Position, + x.CitizenId, + x.ProfileType, + OcId = x.RootId, // TODO: āļ•āđ‰āļ­āļ‡āļĄāļēāđāļāđ‰āđ„āļ‚ + RequestInsignia = x.RequestInsignia.Name, + RequestInsigniaId = x.RequestInsignia.Id, + RequestInsigniaShortName = x.RequestInsignia.ShortName, + DateReceive = x.DateReceive, + x.OrganizationOrganizationSend, + x.OrganizationOrganizationReceive, + Status = x.Status, + Issue = x.Issue, + Date = x.Date, + VolumeNo = x.VolumeNo, + Section = x.Section, + Page = x.Page, + No = x.No, + DatePayment = x.DatePayment, + TypePayment = x.TypePayment, + Address = x.Address, + Number = x.Number, + Salary = x.Salary, + DateReceiveInsignia = x.DateReceiveInsignia, + DocReceiveInsignia = x.DocReceiveInsignia == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : x.DocReceiveInsignia.Id, + x.OrgReceiveInsignia, + x.OrgReceiveInsigniaId, + DateReturnInsignia = x.DateReturnInsignia, + DocReturnInsignia = x.DocReturnInsignia == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : x.DocReturnInsignia.Id, + x.OrgReturnInsignia, + x.OrgReturnInsigniaId, + }) + .ToListAsync(); + + var insigniaNoteProfiles = rawNoteProfiles + .Select(x => new + { + Id = x.Id, + Prefix = x.Prefix ?? "", + Position = x.Position ?? "", + ProfileType = x.ProfileType ?? "", + x.OcId, + CitizenId = x.CitizenId ?? "", + FullName = $"{x.Prefix ?? ""}{x.FirstName ?? ""} {x.LastName ?? ""}".Trim(), + RequestInsignia = x.RequestInsignia, + RequestInsigniaId = x.RequestInsigniaId, + RequestInsigniaShortName = x.RequestInsigniaShortName, + DateReceive = x.DateReceive, + x.OrganizationOrganizationSend, + x.OrganizationOrganizationReceive, + Status = x.Status, + Issue = x.Issue, + Date = x.Date, + VolumeNo = x.VolumeNo, + Section = x.Section, + Page = x.Page, + No = x.No, + DatePayment = x.DatePayment, + TypePayment = x.TypePayment, + Address = x.Address, + Number = x.Number, + Salary = x.Salary, + DateReceiveInsignia = x.DateReceiveInsignia, + DocReceiveInsignia = x.DocReceiveInsignia, + x.OrgReceiveInsignia, + x.OrgReceiveInsigniaId, + DateReturnInsignia = x.DateReturnInsignia, + DocReturnInsignia = x.DocReturnInsignia, + x.OrgReturnInsignia, + x.OrgReturnInsigniaId, + }) + .ToList(); + + var _insigniaNoteProfiles = new List(); + foreach (var insigniaNoteProfile in insigniaNoteProfiles) + { + _insigniaNoteProfiles.Add( + new + { + insigniaNoteProfile.Id, + insigniaNoteProfile.Prefix, + insigniaNoteProfile.Position, + insigniaNoteProfile.CitizenId, + insigniaNoteProfile.ProfileType, + insigniaNoteProfile.FullName, + insigniaNoteProfile.RequestInsignia, + insigniaNoteProfile.RequestInsigniaId, + insigniaNoteProfile.RequestInsigniaShortName, + insigniaNoteProfile.DateReceive, + insigniaNoteProfile.OrganizationOrganizationSend, + insigniaNoteProfile.OrganizationOrganizationReceive, + insigniaNoteProfile.Status, + insigniaNoteProfile.Issue, + insigniaNoteProfile.Date, + insigniaNoteProfile.VolumeNo, + insigniaNoteProfile.Section, + insigniaNoteProfile.Page, + insigniaNoteProfile.No, + insigniaNoteProfile.DatePayment, + insigniaNoteProfile.TypePayment, + insigniaNoteProfile.Address, + insigniaNoteProfile.Number, + insigniaNoteProfile.Salary, + insigniaNoteProfile.DateReceiveInsignia, + DocReceiveInsignia = insigniaNoteProfile.DocReceiveInsignia == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(insigniaNoteProfile.DocReceiveInsignia), + insigniaNoteProfile.OrgReceiveInsignia, + insigniaNoteProfile.OrgReceiveInsigniaId, + insigniaNoteProfile.DateReturnInsignia, + DocReturnInsignia = insigniaNoteProfile.DocReturnInsignia == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(insigniaNoteProfile.DocReturnInsignia), + insigniaNoteProfile.OrgReturnInsignia, + insigniaNoteProfile.OrgReturnInsigniaId, + } + ); + } + + return Success(_insigniaNoteProfiles); + } + + /// /// list āļĢāļēāļĒāļŠāļ·āđˆāļ­āļšāļąāļ™āļ—āļķāļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļ­āļīāļŠāļĢāļīāļĒāļŠāļ āļĢāļ“āđŒ/āļāļēāļĢāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš /// From 87715ff7cca657678b80067039ea63a3bb99f8ec Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 29 May 2025 10:34:44 +0700 Subject: [PATCH 340/879] check status retire resign --- .../Controllers/RetirementResignEmployeeController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 6ed75dd6..9c3b827e 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -456,7 +456,7 @@ namespace BMA.EHR.Retirement.Service.Controllers data.Group, idCancel = data.RetirementResignEmployeeCancels?.Id ?? Guid.Empty, statusCancel = data.RetirementResignEmployeeCancels?.Status ?? null, - statusMain = data.Status, + statusMain = data.Status == "CANCEL" ? "DONECANCEL" : data.Status, Docs = retirementResignEmployeeDocs, }; @@ -1114,7 +1114,7 @@ namespace BMA.EHR.Retirement.Service.Controllers if (updated == null) return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404); updated.CancelReason = req.Reason; - if (updated.Status == "DONE") + if (updated.Status == "DONE" || updated.Status == "WAITING") { var retirementResignEmployeeCancel = new RetirementResignEmployeeCancel { From de72adc3ae525be8f3cab60e8d0feefdb4c716e1 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 29 May 2025 11:22:14 +0700 Subject: [PATCH 341/879] search retriement cancel --- .../Controllers/RetirementResignEmployeeController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 9c3b827e..4c0947fa 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -467,7 +467,7 @@ namespace BMA.EHR.Retirement.Service.Controllers var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "RETIREMENT_CANCEL_EMP"); var createdUserId = await _context.RetirementResignEmployeeCancels.AsQueryable() .Where(x => x.CreatedUserId == UserId) - .Where(x => x.Id == id) + .Where(x => x.RetirementResignEmployee.Id == id) .FirstOrDefaultAsync(); if (getWorkflow == false && createdUserId == null) { From d0e39e385befd097f69a3b1eacd1fe94962debb9 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 29 May 2025 12:07:49 +0700 Subject: [PATCH 342/879] =?UTF-8?q?=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=E0=B8=A2=E0=B8=99=20Method=20=E0=B9=80=E0=B8=AA?= =?UTF-8?q?=E0=B9=89=E0=B8=99=E0=B8=AD=E0=B8=B1=E0=B8=9E=E0=B9=80=E0=B8=94?= =?UTF-8?q?=E0=B8=97=20mark?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/InsigniaRequestController.cs | 37 ++++--------------- .../Requests/UpdateInsigniaRequestProfile.cs | 12 ++++++ 2 files changed, 19 insertions(+), 30 deletions(-) create mode 100644 BMA.EHR.Insignia/Requests/UpdateInsigniaRequestProfile.cs diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 4bce56a2..d3d81065 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -3139,58 +3139,35 @@ namespace BMA.EHR.Insignia.Service.Controllers /// /// āļ­āļąāļžāđ€āļ”āļ—āļŠāļ–āļēāļ™āļ° Mark (āđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ, āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ (āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™), āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ, āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ) /// - /// Id āļĢāļ­āļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ /// /// /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpGet("update/{insigniaPeriodId:length(36)}")] - public async Task> InsigniaRequestUpdateMark(Guid insigniaPeriodId) + [HttpPut("update")] + public async Task> InsigniaRequestUpdateMark([FromBody] UpdateInsigniaRequestProfile req) { try { var insigniaPeriod = await _context.InsigniaPeriods - .Include(x => x.InsigniaRequests) - .Include(x => x.InsigniaEmployees) - .FirstOrDefaultAsync(x => x.Id == insigniaPeriodId); + .Include(x => x.InsigniaRequests.Where(r => r.OrganizationId == req.agencyId)) + .FirstOrDefaultAsync(x => x.Id == req.insigniaPeriodId); if (insigniaPeriod == null) return Error(GlobalMessages.InsigniaRequestNotFound); if (insigniaPeriod.InsigniaRequests.Count > 0) { - //var allProfileIds = new List(); - //var allProfileEmpIds = new List(); + foreach (var InsigniaRequest in insigniaPeriod.InsigniaRequests) { var profiles = await _context.Set() - .Where(p => p.Request.Id == InsigniaRequest.Id && p.ProfileType.Trim().ToUpper() == "OFFICER").Select(x => x.ProfileId.ToString()).ToListAsync(); - - var profileEmps = await _context.Set() - .Where(p => p.Request.Id == InsigniaRequest.Id && p.ProfileType.Trim().ToUpper() == "EMPLOYEE").Select(x => x.ProfileId.ToString()).ToListAsync(); + .Where(p => p.Request.Id == InsigniaRequest.Id && p.ProfileType == req.type.Trim().ToUpper()).Select(x => x.ProfileId.ToString()).ToListAsync(); if (profiles.Count > 0) { - //allProfileIds.AddRange(profiles); - await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(profiles.ToArray(), "OFFICER"); - } - - if (profileEmps.Count > 0) - { - //allProfileEmpIds.AddRange(profileEmps); - await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(profileEmps.ToArray(), "EMPLOYEE"); + await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(profiles.ToArray(), req.type.Trim().ToUpper()); } } - - //if (allProfileIds.Count > 0) - //{ - // await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(allProfileIds.ToArray(), "OFFICER"); - //} - - //if (allProfileEmpIds.Count > 0) - //{ - // await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(allProfileEmpIds.ToArray(), "EMPLOYEE"); - //} } return Success(); diff --git a/BMA.EHR.Insignia/Requests/UpdateInsigniaRequestProfile.cs b/BMA.EHR.Insignia/Requests/UpdateInsigniaRequestProfile.cs new file mode 100644 index 00000000..50c79940 --- /dev/null +++ b/BMA.EHR.Insignia/Requests/UpdateInsigniaRequestProfile.cs @@ -0,0 +1,12 @@ +using BMA.EHR.Domain.Models.MetaData; +using Microsoft.EntityFrameworkCore; + +namespace BMA.EHR.Insignia.Service.Requests +{ + public class UpdateInsigniaRequestProfile + { + public Guid insigniaPeriodId { get; set; } + public Guid agencyId { get; set; } + public string type { get; set; } + } +} \ No newline at end of file From c3c9c85d305914f76e131bf4983661d07ee8f2d9 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 29 May 2025 13:08:06 +0700 Subject: [PATCH 343/879] fix #1357 --- BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index d3d81065..7db22ad3 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -1514,6 +1514,7 @@ namespace BMA.EHR.Insignia.Service.Controllers .Where(x => req.InsigniaId == null ? x.RequestInsignia != null : (x.RequestInsignia.Id == req.InsigniaId)) .Select(x => new { + x.ProfileId, Id = x.Id, x.Prefix, x.FirstName, @@ -1555,6 +1556,7 @@ namespace BMA.EHR.Insignia.Service.Controllers .Select(x => new { Id = x.Id, + ProfileId = x.ProfileId, Prefix = x.Prefix ?? "", Position = x.Position ?? "", ProfileType = x.ProfileType ?? "", @@ -1597,6 +1599,7 @@ namespace BMA.EHR.Insignia.Service.Controllers new { insigniaNoteProfile.Id, + insigniaNoteProfile.ProfileId, insigniaNoteProfile.Prefix, insigniaNoteProfile.Position, insigniaNoteProfile.CitizenId, From 7b55e16e7d8f299b2da39de5a932e7221e7e40cf Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 29 May 2025 13:10:27 +0700 Subject: [PATCH 344/879] =?UTF-8?q?=E0=B9=80=E0=B8=AA=E0=B9=89=E0=B8=99?= =?UTF-8?q?=E0=B8=94=E0=B8=B2=E0=B8=A7=E0=B8=99=E0=B9=8C=E0=B9=82=E0=B8=AB?= =?UTF-8?q?=E0=B8=A5=E0=B8=94=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=8A=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=82=E0=B8=AD=E0=B8=87=E0=B8=A5=E0=B8=B9?= =?UTF-8?q?=E0=B8=81=E0=B8=88=E0=B9=89=E0=B8=B2=E0=B8=87=E0=B9=81=E0=B8=AA?= =?UTF-8?q?=E0=B8=94=E0=B8=87=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=96=E0=B8=B9?= =?UTF-8?q?=E0=B8=81=E0=B8=95=E0=B9=89=E0=B8=AD=E0=B8=87=20#1357?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 7db22ad3..49d78c78 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -2941,7 +2941,10 @@ namespace BMA.EHR.Insignia.Service.Controllers requestProfiles = requestProfiles.Where(x => x.ProfileId != null) .ToList(); if (req.InsigniaId != null) - requestProfiles = requestProfiles.Where(x => x.RequestInsignia.Id == req.InsigniaId).ToList(); + requestProfiles = requestProfiles + .Where(x => x.ProfileType.ToLower() == req.ProfileType.ToLower()) + .Where(x => x.RequestInsignia.Id == req.InsigniaId) + .ToList(); var row = 2; foreach (var item in requestProfiles) { From 88270a230f115ac12ded33ab16dd4a6fd519d83f Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 29 May 2025 13:57:44 +0700 Subject: [PATCH 345/879] =?UTF-8?q?fix=20#1357=20=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B1=E0=B8=9A=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/InsigniaPeriodsRepository.cs | 96 +- .../Models/Insignias/InsigniaRequest.cs | 2 + ...ProfileType To InsigniaRequest.Designer.cs | 20683 ++++++++++++++++ ...2132_Add ProfileType To InsigniaRequest.cs | 29 + .../ApplicationDBContextModelSnapshot.cs | 3 + .../Controllers/InsigniaRequestController.cs | 53 +- 6 files changed, 20839 insertions(+), 27 deletions(-) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250529062132_Add ProfileType To InsigniaRequest.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250529062132_Add ProfileType To InsigniaRequest.cs diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 8c74811f..48d7a1cb 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -8745,6 +8745,23 @@ namespace BMA.EHR.Application.Repositories } } + public async Task GetRequestIdByTypeAsync(Guid period, Guid ocId, string type = "officer") + { + try + { + var req = await _dbContext.Set() + .Where(x => x.OrganizationId != null) + .FirstOrDefaultAsync(x => x.Period.Id == period && x.OrganizationId == ocId && x.ProfileType.ToLower() == type.ToLower()); + if (req == null) + return null; + return req.Id; + } + catch + { + throw; + } + } + // Save Aprove public async Task SaveAprove(Guid period, Guid ocId) { @@ -8771,6 +8788,31 @@ namespace BMA.EHR.Application.Repositories } } + public async Task SaveApproveByTypeAsync(Guid period, Guid ocId, string type = "officer") + { + try + { + var req = await GetRequestIdByTypeAsync(period, ocId, type); + + if (req != null) + { + var insigniaRequestProfiles = await _dbContext.Set() + .Where(x => x.Request.Id == req) + .ToListAsync(); + foreach (var insigniaRequestProfile in insigniaRequestProfiles) + { + insigniaRequestProfile.IsApprove = true; + } + } + + await _dbContext.SaveChangesAsync(); + } + catch + { + throw; + } + } + // āđ€āļŠāđ‡āļ„āļ‚āđ‰āļ­āļĄāļđāļĨ āđƒāļ™ table insignia_request_new public async Task GetInsigniaRequest(Guid id, Guid ocId) { @@ -8820,6 +8862,54 @@ namespace BMA.EHR.Application.Repositories } } + public async Task GetInsigniaRequestByTypeAsync(Guid id, Guid ocId, string type = "officer") + { + try + { + var period = await _dbContext.Set() + .Select(p => new + { + Id = p.Id, + Name = p.Name, + Round = p.Round, + Year = p.Year, + IsLock = p.IsLock, + }) + .FirstOrDefaultAsync(x => x.Id == id); + + if (period == null) + return null; + else + { + var request = await _dbContext.Set() + .Include(x => x.Document) + .FirstOrDefaultAsync(x => x.Period.Id == period.Id && x.OrganizationId == ocId && x.ProfileType.ToLower() == type.ToLower()); + + return new InsigniaResults + { + PeriodId = period.Id, + Year = period.Year, + Round = period.Round, + Name = period.Name, + IsLock = period.IsLock, + RequestId = request == null ? null : request.Id, + RequestNote = request == null ? "" : request.RequestNote, + RequestStatus = request == null ? null : request.RequestStatus, + OrganizationName = request == null ? "" : request.Organization, + Document = request == null + ? null + : (request.Document == null + ? null + : await _documentService.ImagesPath(request.Document.Id)), + }; + } + } + catch + { + throw; + } + } + // Get Data Table insignai_has_profile public async Task> InsigniaHasProfile(Guid period, Guid ocId, string status) { @@ -8975,7 +9065,7 @@ namespace BMA.EHR.Application.Repositories // insert candidate list - public async Task UpdateCandidateAsync(Guid periodId, Guid ocId, string oc, List items) + public async Task UpdateCandidateAsync(Guid periodId, Guid ocId, string oc, List items, string type = "officer") { try { @@ -8989,6 +9079,7 @@ namespace BMA.EHR.Application.Repositories .Include(x => x.Period) .Where(x => x.Period.Id == periodId) .Where(x => x.OrganizationId == ocId) + .Where(x => x.ProfileType.ToLower() == type.ToLower()) .FirstOrDefaultAsync(); if (req != null) @@ -9068,7 +9159,7 @@ namespace BMA.EHR.Application.Repositories } - public async Task InsertCandidate(Guid periodId, Guid ocId, string oc, List items) + public async Task InsertCandidate(Guid periodId, Guid ocId, string oc, List items, string type = "officer") { try { @@ -9103,6 +9194,7 @@ namespace BMA.EHR.Application.Repositories LastUpdateFullName = FullName ?? "System Administrator", LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, + ProfileType = type }; foreach (var item in items) diff --git a/BMA.EHR.Domain/Models/Insignias/InsigniaRequest.cs b/BMA.EHR.Domain/Models/Insignias/InsigniaRequest.cs index 144a0f4f..8c68e267 100644 --- a/BMA.EHR.Domain/Models/Insignias/InsigniaRequest.cs +++ b/BMA.EHR.Domain/Models/Insignias/InsigniaRequest.cs @@ -25,5 +25,7 @@ namespace BMA.EHR.Domain.Models.Insignias public Document? Document { get; set; } public virtual List RequestProfiles { get; set; } = new List(); + + public string? ProfileType { get; set; } = string.Empty; } } diff --git a/BMA.EHR.Infrastructure/Migrations/20250529062132_Add ProfileType To InsigniaRequest.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250529062132_Add ProfileType To InsigniaRequest.Designer.cs new file mode 100644 index 00000000..a887d45f --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250529062132_Add ProfileType To InsigniaRequest.Designer.cs @@ -0,0 +1,20683 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250529062132_Add ProfileType To InsigniaRequest")] + partial class AddProfileTypeToInsigniaRequest + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReclaimDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.Property("ReclaimOrganization") + .HasColumnType("longtext"); + + b.Property("ReclaimOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("ReclaimReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaReclaimProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("APR1") + .HasColumnType("longtext"); + + b.Property("APR2") + .HasColumnType("longtext"); + + b.Property("APR3") + .HasColumnType("longtext"); + + b.Property("APR4") + .HasColumnType("longtext"); + + b.Property("APR5") + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkInsignia") + .HasColumnType("tinyint(1)"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("OCT1") + .HasColumnType("longtext"); + + b.Property("OCT2") + .HasColumnType("longtext"); + + b.Property("OCT3") + .HasColumnType("longtext"); + + b.Property("OCT4") + .HasColumnType("longtext"); + + b.Property("OCT5") + .HasColumnType("longtext"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignCancelId"); + + b.ToTable("RetirementResignCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignEmployeeCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeCancelId"); + + b.ToTable("RetirementResignEmployeeCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("Approvers") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", "RetirementResignCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", "RetirementResignEmployeeCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployeeCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Navigation("Approvers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Navigation("Approvers"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250529062132_Add ProfileType To InsigniaRequest.cs b/BMA.EHR.Infrastructure/Migrations/20250529062132_Add ProfileType To InsigniaRequest.cs new file mode 100644 index 00000000..bb67406b --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250529062132_Add ProfileType To InsigniaRequest.cs @@ -0,0 +1,29 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class AddProfileTypeToInsigniaRequest : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "ProfileType", + table: "InsigniaRequests", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "ProfileType", + table: "InsigniaRequests"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 5ca0f499..03812a23 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -6542,6 +6542,9 @@ namespace BMA.EHR.Infrastructure.Migrations b.Property("PeriodId") .HasColumnType("char(36)"); + b.Property("ProfileType") + .HasColumnType("longtext"); + b.Property("RequestNote") .IsRequired() .HasColumnType("text"); diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 49d78c78..4f8d00a3 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -297,7 +297,7 @@ namespace BMA.EHR.Insignia.Service.Controllers [HttpGet("{insigniaPeriodId:length(36)}/{ocId:length(36)}/{role}/{status}/{isDeputy}/{type}")] public async Task> GetInsignaiRequestBkkByTypeAsync(Guid insigniaPeriodId, Guid ocId, string role, string status, bool isDeputy, string type = "officer") { - var result = await _repository.GetInsigniaRequest(insigniaPeriodId, ocId); + var result = await _repository.GetInsigniaRequestByTypeAsync(insigniaPeriodId, ocId, type); if (result != null) { Guid period = result.PeriodId; @@ -647,7 +647,7 @@ namespace BMA.EHR.Insignia.Service.Controllers continue; - var result = await _repository.GetInsigniaRequest(insigniaPeriodId, organization.Id); + var result = await _repository.GetInsigniaRequestByTypeAsync(insigniaPeriodId, organization.Id, type); if (result != null) { Guid period = result.PeriodId; @@ -657,12 +657,12 @@ namespace BMA.EHR.Insignia.Service.Controllers if (requestStatus == null) { // āļšāļąāļ™āļ—āļķāļāļĢāļēāļĒāļŠāļ·āđˆāļ­ - await _repository.InsertCandidate(period, organization.Id, organization.OrgRootName, candidate); + await _repository.InsertCandidate(period, organization.Id, organization.OrgRootName, candidate, type); } else { // update āļĢāļēāļĒāļŠāļ·āđˆāļ­ - await _repository.UpdateCandidateAsync(period, organization.Id, organization.OrgRootName, candidate); + await _repository.UpdateCandidateAsync(period, organization.Id, organization.OrgRootName, candidate, type); } } @@ -750,11 +750,11 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpGet("officer/approve/{id:length(36)}/{ocId:length(36)}")] - public async Task> ApproveChangeStatusToSt3(Guid id, Guid ocId) + [HttpGet("officer/approve/{type}/{id:length(36)}/{ocId:length(36)}")] + public async Task> ApproveChangeStatusToSt3(Guid id, Guid ocId, string type) { - await _repository.SaveAprove(id, ocId); - var requestId = await _repository.GetRequestId(id, ocId); + await _repository.SaveApproveByTypeAsync(id, ocId, type); + var requestId = await _repository.GetRequestIdByTypeAsync(id, ocId, type); var requestNew = await _context.InsigniaRequests .Include(x => x.Period) .FirstOrDefaultAsync(i => i.Id == requestId); @@ -785,11 +785,11 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpPut("officer/reject/{id:length(36)}/{ocId:length(36)}")] - public async Task> RejectChangeStatusToSt2([FromBody] InsigniaReasonRequest req, Guid id, Guid ocId) + [HttpPut("officer/reject/{type}/{id:length(36)}/{ocId:length(36)}")] + public async Task> RejectChangeStatusToSt2([FromBody] InsigniaReasonRequest req, Guid id, Guid ocId, string type) { - await _repository.SaveAprove(id, ocId); - var requestId = await _repository.GetRequestId(id, ocId); + await _repository.SaveApproveByTypeAsync(id, ocId, type); + var requestId = await _repository.GetRequestIdByTypeAsync(id, ocId, type); var requestNew = await _context.InsigniaRequests.FirstOrDefaultAsync(i => i.Id == requestId); if (requestNew != null) { @@ -810,10 +810,10 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpGet("director/approve/{id:length(36)}/{ocId:length(36)}")] - public async Task> ApproveChangeStatusToSt6(Guid id, Guid ocId) + [HttpGet("director/approve/{type}/{id:length(36)}/{ocId:length(36)}")] + public async Task> ApproveChangeStatusToSt6(Guid id, Guid ocId, string type) { - var requestId = await _repository.GetRequestId(id, ocId); + var requestId = await _repository.GetRequestIdByTypeAsync(id, ocId, type); var requestNew = await _context.InsigniaRequests .Include(x => x.Period) .FirstOrDefaultAsync(i => i.Id == requestId); @@ -852,10 +852,10 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpPut("director/reject/{id:length(36)}/{ocId:length(36)}")] - public async Task> RejectChangeStatusToSt4([FromBody] InsigniaReasonRequest req, Guid id, Guid ocId) + [HttpPut("director/reject/{type}/{id:length(36)}/{ocId:length(36)}")] + public async Task> RejectChangeStatusToSt4([FromBody] InsigniaReasonRequest req, Guid id, Guid ocId, string type) { - var requestId = await _repository.GetRequestId(id, ocId); + var requestId = await _repository.GetRequestIdByTypeAsync(id, ocId, type); var requestNew = await _context.InsigniaRequests .Include(x => x.Period) .FirstOrDefaultAsync(i => i.Id == requestId); @@ -886,10 +886,10 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpPut("head/reject/{id:length(36)}/{ocId:length(36)}")] - public async Task> RejectChangeStatusToSt5([FromBody] InsigniaReasonRequest req, Guid id, Guid ocId) + [HttpPut("head/reject/{type}/{id:length(36)}/{ocId:length(36)}")] + public async Task> RejectChangeStatusToSt5([FromBody] InsigniaReasonRequest req, Guid id, Guid ocId, string type) { - var requestId = await _repository.GetRequestId(id, ocId); + var requestId = await _repository.GetRequestIdByTypeAsync(id, ocId, type); var requestNew = await _context.InsigniaRequests .Include(x => x.Period) .FirstOrDefaultAsync(i => i.Id == requestId); @@ -1015,18 +1015,20 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpGet("dashboard/{insigniaPeriodId:length(36)}")] - public async Task> DashboardInsigniaPeriod(Guid insigniaPeriodId) + [HttpGet("dashboard/{type}/{insigniaPeriodId:length(36)}")] + public async Task> DashboardInsigniaPeriod(Guid insigniaPeriodId, string type) { var insigniaPeriod = await _context.InsigniaPeriods.FirstOrDefaultAsync(x => x.Id == insigniaPeriodId); if (insigniaPeriod == null) return Error(GlobalMessages.InsigniaRequestNotFound); var orgAllCount = await _context.InsigniaRequests .Where(x => x.Period == insigniaPeriod) + .Where(x => x.ProfileType!.ToLower() == type.ToLower()) .ToListAsync(); GetIsOfficerDto RoleInsignia = await _userProfileRepository.GetIsOfficerRootAsync(AccessToken, "SYS_INSIGNIA_MANAGE"); var allUserUser = await _context.InsigniaRequests .Where(x => x.Period == insigniaPeriod) + .Where(x => x.ProfileType!.ToLower() == type.ToLower()) .Where(x => RoleInsignia.isOfficer == true ? x.RequestStatus == "st6" : (RoleInsignia.isDirector == true ? (x.RequestStatus != "st1" && x.RequestStatus != "st2") : x.Id != null)) .Select(x => x.RequestProfiles.Count(x => x.Status != "DELETE" && x.Status != "REJECT")) .SumAsync(); @@ -1043,8 +1045,8 @@ namespace BMA.EHR.Insignia.Service.Controllers /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ - [HttpGet("org/no-send/{insigniaPeriodId:length(36)}")] - public async Task> ListOrgDontSentUser(Guid insigniaPeriodId) + [HttpGet("org/no-send/{type}/{insigniaPeriodId:length(36)}")] + public async Task> ListOrgDontSentUser(Guid insigniaPeriodId, string type) { var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_INSIGNIA_MANAGE"); var jsonData = JsonConvert.DeserializeObject(getPermission); @@ -1057,6 +1059,7 @@ namespace BMA.EHR.Insignia.Service.Controllers return Error(GlobalMessages.InsigniaRequestNotFound); var orgIdSend = await _context.InsigniaRequests .Where(x => x.Period == insigniaPeriod) + .Where(x => x.ProfileType!.ToLower() == type.ToLower()) .Where(x => x.RequestStatus == "st6") .Select(x => x.OrganizationId) .ToListAsync(); From 97b5bd1176b167158df3a23279de4daa00c25d37 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 29 May 2025 14:59:57 +0700 Subject: [PATCH 346/879] status camcel --- .../Controllers/RetirementResignController.cs | 2 +- .../Controllers/RetirementResignEmployeeController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 195a5843..b4f4d608 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -290,7 +290,7 @@ namespace BMA.EHR.Retirement.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var retirementResigns = await _context.RetirementResignCancels.AsQueryable() - .Where(x => x.Status == type.Trim().ToUpper()) + .Where(x => type.Trim().ToUpper() == "APPROVE" ? (x.Status == "APPROVE" || x.Status == "REJECT") : x.Status == type.Trim().ToUpper()) .OrderByDescending(x => x.CreatedAt) .Select(p => new { diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 4c0947fa..7b87e143 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -229,7 +229,7 @@ namespace BMA.EHR.Retirement.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var retirementResignEmployees = await _context.RetirementResignEmployeeCancels.AsQueryable() - .Where(x => x.Status == type.Trim().ToUpper()) + .Where(x => type.Trim().ToUpper() == "APPROVE" ? (x.Status == "APPROVE" || x.Status == "REJECT") : x.Status == type.Trim().ToUpper()) .OrderByDescending(x => x.CreatedAt) .Select(p => new { From ad72bc7ff6d4e14607bc8017374a370c7264e4eb Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 29 May 2025 16:30:08 +0700 Subject: [PATCH 347/879] fix bug --- BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs | 4 ++-- BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 48d7a1cb..4353f6f6 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -8911,11 +8911,11 @@ namespace BMA.EHR.Application.Repositories } // Get Data Table insignai_has_profile - public async Task> InsigniaHasProfile(Guid period, Guid ocId, string status) + public async Task> InsigniaHasProfile(Guid period, Guid ocId, string status, string type = "officer") { try { - var id = await GetRequestId(period, ocId); + var id = await GetRequestIdByTypeAsync(period, ocId, type); if (id != null) { var raw_result = _dbContext.Set() diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index 4f8d00a3..d60bb2ff 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -336,7 +336,7 @@ namespace BMA.EHR.Insignia.Service.Controllers //} if (role.Trim().ToUpper() == "OFFICER") { - resend.Items = (await _repository.InsigniaHasProfile(result.PeriodId, ocId, status)) + resend.Items = (await _repository.InsigniaHasProfile(result.PeriodId, ocId, status, type)) .Where(x => x.ProfileType!.ToLower() == type.ToLower()).ToList(); return Success(resend); } From 25f6ebcdd7dc8d936f7cb24c774af6f4e03338f7 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 29 May 2025 17:46:42 +0700 Subject: [PATCH 348/879] #1423 --- .../Reports/InsigniaReportRepository.cs | 98 +++++++++++++++++++ .../Controllers/InsigniaReportController.cs | 11 ++- 2 files changed, 104 insertions(+), 5 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs index 946fd41a..68b1451f 100644 --- a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs @@ -1253,6 +1253,104 @@ namespace BMA.EHR.Application.Repositories.Reports return resultList; } + //47-āļšāļąāļāļŠāļĩāļĢāļ°āļ”āļąāļšāļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļœāļĨāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ NEW + public async Task GetEvaluationResult5YearReport(Guid id, string type = null, int node = -1, Guid nodeId = default) + { + var period = await _dbContext.Set() + .FirstOrDefaultAsync(x => x.Id == id); + if (period == null) + throw new Exception(GlobalMessages.InsigniaPeriodNotFound); + + var data_insigniaQuery = _dbContext.Set() + .Where(x => x.Request.Period.Id == period.Id) + .Where(x => x.IsApprove == true) + .Where(x => x.Status == "PENDING") + .Where(x => x.RequestInsignia.InsigniaType != null); + + if (type == "officer") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "officer"); + } + else if (type == "employee") + { + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType == "employee"); + } + + + switch (node) + { + case 0: + data_insigniaQuery = data_insigniaQuery.Where(r => r.RootDnaId == nodeId); + break; + + case 1: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child1DnaId == nodeId); + break; + + case 2: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child2DnaId == nodeId); + break; + + case 3: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child3DnaId == nodeId); + break; + + case 4: + data_insigniaQuery = data_insigniaQuery.Where(r => r.Child4DnaId == nodeId); + break; + + default: + break; + } + var data = await data_insigniaQuery + .Select(x => new + { + ProfileId = x.ProfileId, + FullName = $"{x.Prefix}{x.FirstName} {x.LastName}", + RequestInsigniaName = x.RequestInsignia.Name, // Name of the Insignia + Reason = x.Reason, + Agency = x.Root, + ResultAPR1 = x.APR1, + ResultOCT1 = x.OCT1, + ResultAPR2 = x.APR2, + ResultOCT2 = x.OCT2, + ResultAPR3 = x.APR3, + ResultOCT3 = x.OCT3, + ResultAPR4 = x.APR4, + ResultOCT4 = x.OCT4, + ResultAPR5 = x.APR5, + ResultOCT5 = x.OCT5 + }) + .ToListAsync(); + + var seq = 1; + var resultList = new List(); + foreach (var d in data) + { + resultList.Add(new + { + rowNo = seq++.ToString().ToThaiNumber(), + d.ProfileId, + d.FullName, + d.RequestInsigniaName, + Agency = d.Agency, + ResultAPR1 = d.ResultAPR1 ?? "-", + ResultOCT1 = d.ResultOCT1 ?? "-", + ResultAPR2 = d.ResultAPR2 ?? "-", + ResultOCT2 = d.ResultOCT2 ?? "-", + ResultAPR3 = d.ResultAPR3 ?? "-", + ResultOCT3 = d.ResultOCT3 ?? "-", + ResultAPR4 = d.ResultAPR4 ?? "-", + ResultOCT4 = d.ResultOCT4 ?? "-", + ResultAPR5 = d.ResultAPR5 ?? "-", + ResultOCT5 = d.ResultOCT5 ?? "-", + Remark = d.Reason ?? "-" + }); + } + + return resultList; + } + //noti āļĒāļ·āđˆāļ™āđ€āļŠāļ™āļ­āļ„āļ™ public async Task NotifyInsignia() { diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index 3648c4c9..620ab706 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -10,6 +10,7 @@ using BMA.EHR.Domain.Models.Insignias; using BMA.EHR.Domain.Shared; using BMA.EHR.Infrastructure.Persistence; using BMA.EHR.Insignia.Service.Requests; +using Elasticsearch.Net; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; @@ -223,6 +224,7 @@ namespace BMA.EHR.Insignia.Service.Controllers [HttpPost("report2/{type}")] public async Task> GetInsigniaReport2Async([FromBody] GetInsigniaDetailByNodeReportDto req, string type) { + try { var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_INSIGNIA_REPORT"); @@ -232,18 +234,17 @@ namespace BMA.EHR.Insignia.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var yearInsignalPeriod = await _repository.GetYearInsigniaPeriod(req.roundId); - var agency = ""; - var data = await _repository.GetEvaluationResultReport(req.roundId, type, req.node, req.nodeId); + var data = await _repository.GetEvaluationResult5YearReport(req.roundId, type, req.node, req.nodeId); var year = ((DateTime.UtcNow.Year) + 543); - + var _agency = data.Count > 0 ? data[0].GetType().GetProperty("Agency").GetValue(data[0]) : null; var result = new { template = "reportInsignia2", reportName = "reportInsignia2", data = new { - agency = agency, + agency = _agency, yearInsignalPeriod = yearInsignalPeriod, year1 = year.ToString().ToThaiNumber(), year2 = (year - 1).ToString().ToThaiNumber(), @@ -256,7 +257,7 @@ namespace BMA.EHR.Insignia.Service.Controllers return Success(result); } - catch + catch { throw; } From db84cdbf29cbec0909850b24630329d473d44892 Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 30 May 2025 10:58:15 +0700 Subject: [PATCH 349/879] check type insignia --- .../Repositories/InsigniaPeriodsRepository.cs | 4 ++-- .../Reports/InsigniaReportRepository.cs | 18 +++++++++--------- .../Controllers/InsigniaRequestController.cs | 18 +++++++++--------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 4353f6f6..70a41db4 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -9111,7 +9111,7 @@ namespace BMA.EHR.Application.Repositories LastUpdatedAt = DateTime.Now, // Add Information for reused in API Call - ProfileType = item.ProfileType ?? "officer", + ProfileType = item.ProfileType != null && item.ProfileType != "" ? item.ProfileType.ToLower() : "officer", Prefix = item.Prefix, FirstName = item.FirstName, LastName = item.LastName, @@ -9221,7 +9221,7 @@ namespace BMA.EHR.Application.Repositories LastUpdatedAt = DateTime.Now, // Add Information for reused in API Call - ProfileType = item.ProfileType ?? "officer", + ProfileType = item.ProfileType != null && item.ProfileType != "" ? item.ProfileType.ToLower() : "officer", Prefix = item.Prefix, FirstName = item.FirstName, LastName = item.LastName, diff --git a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs index 68b1451f..3e7181eb 100644 --- a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs @@ -1167,7 +1167,7 @@ namespace BMA.EHR.Application.Repositories.Reports if (matchedData != null) { resultList.Add(new - { + { rowNo = seq++.ToString().ToThaiNumber(), d.ProfileId, d.FullName, @@ -1342,10 +1342,10 @@ namespace BMA.EHR.Application.Repositories.Reports ResultOCT3 = d.ResultOCT3 ?? "-", ResultAPR4 = d.ResultAPR4 ?? "-", ResultOCT4 = d.ResultOCT4 ?? "-", - ResultAPR5 = d.ResultAPR5 ?? "-", + ResultAPR5 = d.ResultAPR5 ?? "-", ResultOCT5 = d.ResultOCT5 ?? "-", Remark = d.Reason ?? "-" - }); + }); } return resultList; @@ -1545,11 +1545,11 @@ namespace BMA.EHR.Application.Repositories.Reports if (type == "officer") { - data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToUpper() == "OFFICER"); + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToLower() == "officer"); } else if (type == "employee") { - data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToUpper() == "EMPLOYEE"); + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToLower() == "employee"); } switch (node) @@ -1618,11 +1618,11 @@ namespace BMA.EHR.Application.Repositories.Reports if (type == "officer") { - data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToUpper() == "OFFICER"); + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToLower() == "officer"); } else if (type == "employee") { - data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToUpper() == "EMPLOYEE"); + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToLower() == "employee"); } switch (node) @@ -1691,11 +1691,11 @@ namespace BMA.EHR.Application.Repositories.Reports if (type == "officer") { - data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToUpper() == "OFFICER"); + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToLower() == "officer"); } else if (type == "employee") { - data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToUpper() == "EMPLOYEE"); + data_insigniaQuery = data_insigniaQuery.Where(r => r.ProfileType.Trim().ToLower() == "employee"); } switch (node) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index d60bb2ff..b9a7cf48 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -334,7 +334,7 @@ namespace BMA.EHR.Insignia.Service.Controllers // // āļšāļąāļ™āļ—āļķāļāļĢāļēāļĒāļŠāļ·āđˆāļ­ // await _repository.InsertCandidate(period, ocId, candidate); //} - if (role.Trim().ToUpper() == "OFFICER") + if (role.Trim().ToLower() == "officer") { resend.Items = (await _repository.InsigniaHasProfile(result.PeriodId, ocId, status, type)) .Where(x => x.ProfileType!.ToLower() == type.ToLower()).ToList(); @@ -453,7 +453,7 @@ namespace BMA.EHR.Insignia.Service.Controllers // // āļšāļąāļ™āļ—āļķāļāļĢāļēāļĒāļŠāļ·āđˆāļ­ // await _repository.InsertCandidate(period, ocId, candidate); //} - if (role.Trim().ToUpper() == "OFFICER") + if (role.Trim().ToLower() == "officer") { resend.Items = await _repository.InsigniaHasProfile(result.PeriodId, ocId, status); return Success(resend); @@ -549,7 +549,7 @@ namespace BMA.EHR.Insignia.Service.Controllers } } - var resultData = candidates.Where(x => x.ProfileType == "EMPLOYEE").ToList(); + var resultData = candidates.Where(x => x.ProfileType == "employee").ToList(); //var resultData = allEmployeeProfileByRoot.Select(x => new //{ @@ -1168,7 +1168,7 @@ namespace BMA.EHR.Insignia.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, // Add Information for reused in API Call - ProfileType = profile.ProfileType ?? "officer", + ProfileType = profile.ProfileType != null && profile.ProfileType != "" ? profile.ProfileType.ToLower() : "officer", Prefix = profile.Prefix, FirstName = profile.FirstName, LastName = profile.LastName, @@ -2139,7 +2139,7 @@ namespace BMA.EHR.Insignia.Service.Controllers { insigniaNoteProfile.Status = "DONE"; - if (profile.ProfileType == "OFFICER") + if (profile.ProfileType == "officer") { var profileInsigniaBody = new PostProfileInsigniaDto { @@ -2207,7 +2207,7 @@ namespace BMA.EHR.Insignia.Service.Controllers if (req.DateReceive != null && req.Date != null) { profileInsignia.Status = "DONE"; - if (profile.ProfileType == "OFFICER") + if (profile.ProfileType == "officer") { var profileInsigniaBody = new PostProfileInsigniaDto { @@ -2465,7 +2465,7 @@ namespace BMA.EHR.Insignia.Service.Controllers profile.Status = "DONE"; // check profile.ProfileType āļāđˆāļ­āļ™āļŠāđˆāļ‡āđ„āļ›āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī - if (profile.ProfileType == "OFFICER") + if (profile.ProfileType == "officer") { var profileInsigniaBody = new PostProfileInsigniaDto { @@ -3170,11 +3170,11 @@ namespace BMA.EHR.Insignia.Service.Controllers foreach (var InsigniaRequest in insigniaPeriod.InsigniaRequests) { var profiles = await _context.Set() - .Where(p => p.Request.Id == InsigniaRequest.Id && p.ProfileType == req.type.Trim().ToUpper()).Select(x => x.ProfileId.ToString()).ToListAsync(); + .Where(p => p.Request.Id == InsigniaRequest.Id && p.ProfileType == req.type.Trim().ToLower()).Select(x => x.ProfileId.ToString()).ToListAsync(); if (profiles.Count > 0) { - await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(profiles.ToArray(), req.type.Trim().ToUpper()); + await _insigniaPeriodRepository.UpdateInsigniaRequestProfile(profiles.ToArray(), req.type.Trim().ToLower()); } } } From c49375718df788fecd118c605bdd6c8f141a990e Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 30 May 2025 11:36:48 +0700 Subject: [PATCH 350/879] add mark insignia --- BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs | 1 + BMA.EHR.Application/Requests/InsigniaRequestItem.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 70a41db4..7655e052 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -8952,6 +8952,7 @@ namespace BMA.EHR.Application.Repositories MarkDiscipline = h.MarkDiscipline, MarkLeave = h.MarkLeave, MarkRate = h.MarkRate, + MarkInsignia = h.MarkInsignia, MatchingConditions = h.MatchingConditions == null || h.MatchingConditions == "" ? null : JsonConvert.DeserializeObject>(h.MatchingConditions) diff --git a/BMA.EHR.Application/Requests/InsigniaRequestItem.cs b/BMA.EHR.Application/Requests/InsigniaRequestItem.cs index c500bcc0..330626d9 100644 --- a/BMA.EHR.Application/Requests/InsigniaRequestItem.cs +++ b/BMA.EHR.Application/Requests/InsigniaRequestItem.cs @@ -23,6 +23,7 @@ public bool? MarkDiscipline { get; set; } public bool? MarkLeave { get; set; } public bool? MarkRate { get; set; } + public bool? MarkInsignia { get; set; } public List? Docs { get; set; } public List MatchingConditions { get; set; } = new List(); From fb76f5737a238f2ed06c6ca5f5ba89fce439c20f Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 30 May 2025 11:55:23 +0700 Subject: [PATCH 351/879] fix cronjob --- .../Reports/InsigniaReportRepository.cs | 51 +++++++++++++++++-- BMA.EHR.Insignia/Program.cs | 3 +- 2 files changed, 50 insertions(+), 4 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs index 68b1451f..5099b375 100644 --- a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs @@ -1167,7 +1167,7 @@ namespace BMA.EHR.Application.Repositories.Reports if (matchedData != null) { resultList.Add(new - { + { rowNo = seq++.ToString().ToThaiNumber(), d.ProfileId, d.FullName, @@ -1342,10 +1342,10 @@ namespace BMA.EHR.Application.Repositories.Reports ResultOCT3 = d.ResultOCT3 ?? "-", ResultAPR4 = d.ResultAPR4 ?? "-", ResultOCT4 = d.ResultOCT4 ?? "-", - ResultAPR5 = d.ResultAPR5 ?? "-", + ResultAPR5 = d.ResultAPR5 ?? "-", ResultOCT5 = d.ResultOCT5 ?? "-", Remark = d.Reason ?? "-" - }); + }); } return resultList; @@ -1488,6 +1488,49 @@ namespace BMA.EHR.Application.Repositories.Reports } //āļ„āļģāļ™āļ§āļ™āļœāļđāđ‰āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ + public async Task CalInsigniaRequestBkkByType(string type = "officer") + { + var insigniaPeriods = await _dbContext.Set() + .Include(x => x.InsigniaRequests) + .AsQueryable() + .ToListAsync(); + insigniaPeriods = insigniaPeriods + .Where(x => x.StartDate < DateTime.Now.Date || x.InsigniaRequests.Count == 0).ToList(); + + foreach (var insigniaPeriod in insigniaPeriods) + { + if (insigniaPeriod.StartDate >= DateTime.Now.Date || insigniaPeriod.InsigniaRequests.Count > 0) + continue; + var organizations = await _userProfileRepository.GetActiveRootLatestAsync(AccessToken); + if (organizations == null) + continue; + insigniaPeriod.RevisionId = Guid.Parse(organizations[0].OrgRevisionId); + foreach (var organization in organizations) + { + if (organization == null) + continue; + + var result = await _repositoryInsignia.GetInsigniaRequestByTypeAsync(insigniaPeriod.Id, organization.Id, type); + if (result != null) + { + Guid period = result.PeriodId; + string requestStatus = result.RequestStatus; + var candidate = await _repositoryInsignia.GetInsigniaCandidateBKKByTypeAsync(insigniaPeriod.Id, organization.Id, type); + // āļ•āļĢāļ§āļˆāļŠāļ­āļšāļ§āđˆāļēāļĢāļēāļĒāļāļēāļĢāļ­āļĒāļđāđˆāđƒāļ™ table insignia_request_new + if (requestStatus == null) + { + // āļšāļąāļ™āļ—āļķāļāļĢāļēāļĒāļŠāļ·āđˆāļ­ + if (candidate != null) + await _repositoryInsignia.InsertCandidate(period, organization.Id, organization.OrgRootName, candidate, type); + } + + + } + } + } + } + + public async Task CalInsignaiRequestBkk() { var insigniaPeriods = await _dbContext.Set() @@ -1528,6 +1571,8 @@ namespace BMA.EHR.Application.Repositories.Reports } } } + + public async Task GetKhr5TotalReport(Guid id, string type = null, int node = -1, Guid nodeId = default) { var period = await _dbContext.Set() diff --git a/BMA.EHR.Insignia/Program.cs b/BMA.EHR.Insignia/Program.cs index 558ff818..4ccbb492 100644 --- a/BMA.EHR.Insignia/Program.cs +++ b/BMA.EHR.Insignia/Program.cs @@ -180,7 +180,8 @@ var app = builder.Build(); { manager.AddOrUpdate("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĢāļ­āļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ", Job.FromExpression(x => x.NotifyInsignia()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); manager.AddOrUpdate("āļĨāđ‡āļ­āļāļ‚āđ‰āļ­āļĄāļđāļĨāļĢāļ­āļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ", Job.FromExpression(x => x.LockInsignia()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); - manager.AddOrUpdate("āļ„āļģāļ™āļ§āļ™āļœāļđāđ‰āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ", Job.FromExpression(x => x.CalInsignaiRequestBkk()), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); + manager.AddOrUpdate("āļ„āļģāļ™āļ§āļ™āļœāļđāđ‰āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ", Job.FromExpression(x => x.CalInsigniaRequestBkkByType("officer")), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); + manager.AddOrUpdate("āļ„āļģāļ™āļ§āļ™āļœāļđāđ‰āđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ Employee", Job.FromExpression(x => x.CalInsigniaRequestBkkByType("employee")), Cron.Daily(Int32.Parse(builder.Configuration["KeycloakCron:Hour"]), Int32.Parse(builder.Configuration["KeycloakCron:Minute"])), TimeZoneInfo.Local); } // apply migrations From 75d8434935de42b82be4b7385d500af2fc1e4506 Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 30 May 2025 12:38:07 +0700 Subject: [PATCH 352/879] check type officer --- BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index b9a7cf48..edff00d4 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -2207,7 +2207,7 @@ namespace BMA.EHR.Insignia.Service.Controllers if (req.DateReceive != null && req.Date != null) { profileInsignia.Status = "DONE"; - if (profile.ProfileType == "officer") + if (profile.ProfileType != null && profile.ProfileType.ToLower() == "officer") { var profileInsigniaBody = new PostProfileInsigniaDto { From 175232148bde957dfdd83fe37373fd2b26dda226 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 30 May 2025 14:04:33 +0700 Subject: [PATCH 353/879] fix issue #1543 --- .../PlacementAppointmentController.cs | 20 +++++++++---------- .../Controllers/PlacementController.cs | 20 +++++++++---------- .../Controllers/PlacementOfficerController.cs | 4 ++-- .../Controllers/PlacementReceiveController.cs | 4 ++-- .../PlacementTransferController.cs | 4 ++-- .../Controllers/RetirementOtherController.cs | 8 ++++---- .../Controllers/RetirementResignController.cs | 8 ++++---- .../RetirementResignEmployeeController.cs | 8 ++++---- 8 files changed, 38 insertions(+), 38 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index d900e5ed..d7677d88 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -839,8 +839,8 @@ namespace BMA.EHR.Placement.Service.Controllers NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); @@ -1049,8 +1049,8 @@ namespace BMA.EHR.Placement.Service.Controllers NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); @@ -1256,8 +1256,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.node == 1 ? $"{p.child1ShortName} {p.posMasterNo}".ToThaiNumber() : p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "", NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); @@ -1461,8 +1461,8 @@ namespace BMA.EHR.Placement.Service.Controllers NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), ReportingDate = p.ReportingDate == null ? "" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); @@ -1677,8 +1677,8 @@ namespace BMA.EHR.Placement.Service.Controllers NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index bef98cec..94d07fee 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1655,8 +1655,8 @@ namespace BMA.EHR.Placement.Service.Controllers (p.child2 == null ? "" : $"{p.child2}\n") + (p.child1 == null ? "" : $"{p.child1}\n") + (p.root == null ? "" : $"{p.root}"), - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); @@ -2004,8 +2004,8 @@ namespace BMA.EHR.Placement.Service.Controllers AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), PositionCandidate = p.PositionCandidate, - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); @@ -2370,8 +2370,8 @@ namespace BMA.EHR.Placement.Service.Controllers NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); @@ -2602,8 +2602,8 @@ namespace BMA.EHR.Placement.Service.Controllers NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); @@ -2821,8 +2821,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.node == 0 ? $"{p.rootShortName} {p.posMasterNo}".ToThaiNumber() : "-", NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 0eecf85d..b8cd149b 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -619,8 +619,8 @@ namespace BMA.EHR.Placement.Service.Controllers StartDate = p.DateStart == null ? "" : p.DateStart.Value.ToThaiShortDate2().ToThaiNumber(), EndDate = p.DateEnd == null ? "" : p.DateEnd.Value.ToThaiShortDate2().ToThaiNumber(), Reason = p.Reason == null ? "" : p.Reason.ToThaiNumber(), - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 459673a7..1db1b52d 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -968,8 +968,8 @@ namespace BMA.EHR.Placement.Service.Controllers NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.ReportingDate == null ? "-" : p.ReportingDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index 7e35d753..d02665d2 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -815,8 +815,8 @@ namespace BMA.EHR.Placement.Service.Controllers ActiveDate = p.Date == null ? "-" : p.Date.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), Reason = p.Reason ?? "-", - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index dad02dc7..aa442d0b 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -744,8 +744,8 @@ namespace BMA.EHR.Retirement.Service.Controllers NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.PositionDate == null ? "-" : p.PositionDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); @@ -971,8 +971,8 @@ namespace BMA.EHR.Retirement.Service.Controllers NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.PositionDate == null ? "-" : p.PositionDate.Value.ToThaiShortDate2().ToThaiNumber(), CommandExcecuteDate = string.IsNullOrEmpty(r.CommandExcecuteDate.ToString()) ? "-" : r.CommandExcecuteDate.Value.ToThaiShortDate2().ToThaiNumber(), - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index b4f4d608..f7b088f9 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -2263,8 +2263,8 @@ namespace BMA.EHR.Retirement.Service.Controllers ActiveDate = p.ActiveDate == null ? "-" : p.ActiveDate.Value.ToThaiShortDate2().ToThaiNumber(), Salary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), Remark = p.Reason ?? "-", - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); @@ -2456,8 +2456,8 @@ namespace BMA.EHR.Retirement.Service.Controllers ActiveDate = p.ActiveDate == null ? "-" : p.ActiveDate.Value.ToThaiShortDate2().ToThaiNumber(), Salary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), Remark = p.Reason ?? "-", - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 7b87e143..1aa792ef 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -1703,8 +1703,8 @@ namespace BMA.EHR.Retirement.Service.Controllers ActiveDate = p.ActiveDate == null ? "" : p.ActiveDate.Value.ToThaiShortDate2().ToThaiNumber(), Salary = p.AmountOld == null ? "" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), Remark = p.Reason ?? "", - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); @@ -1893,8 +1893,8 @@ namespace BMA.EHR.Retirement.Service.Controllers ActiveDate = p.ActiveDate == null ? "-" : p.ActiveDate.Value.ToThaiShortDate2().ToThaiNumber(), Salary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), Remark = p.Reason ?? "-", - RemarkHorizontal = r.RemarkHorizontal, - RemarkVertical = r.RemarkVertical, + RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), + RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); var result = new List(); From 6ad83ecc534929d732bd97efb09ebe36299a216e Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 4 Jun 2025 10:02:32 +0700 Subject: [PATCH 354/879] fix migration --- .../20250604025614_Fix Missing.Designer.cs | 1518 +++++++++++++++++ .../LeaveDb/20250604025614_Fix Missing.cs | 49 + .../LeaveDb/LeaveDbContextModelSnapshot.cs | 9 + 3 files changed, 1576 insertions(+) create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250604025614_Fix Missing.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250604025614_Fix Missing.cs diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250604025614_Fix Missing.Designer.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250604025614_Fix Missing.Designer.cs new file mode 100644 index 00000000..fb7c9474 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250604025614_Fix Missing.Designer.cs @@ -0,0 +1,1518 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + [DbContext(typeof(LeaveDbContext))] + [Migration("20250604025614_Fix Missing")] + partial class FixMissing + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Code") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Limit") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļŠāļđāļ‡āļŠāļļāļ”āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("LeaveTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDays") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļĒāļāļĄāļē"); + + b.Property("LeaveDaysUsed") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđƒāļŠāđ‰āđ„āļ›"); + + b.Property("LeaveTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.HasIndex("LeaveTypeId"); + + b.ToTable("LeaveBeginnings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AbsentDayAt") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayGetIn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayLocation") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayRegistorDate") + .HasColumnType("datetime(6)"); + + b.Property("AbsentDaySummon") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("CancelLeaveWrote") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ (āļ‚āļ­āļĒāļāđ€āļĨāļīāļ)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CommanderPosition") + .HasColumnType("longtext"); + + b.Property("CoupleDayCountryHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayEndDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDayLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayLevelCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayPosition") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayStartDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDaySumTotalHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayTotalHistory") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("Dear") + .HasColumnType("longtext") + .HasComment("āđ€āļĢāļĩāļĒāļ™āđƒāļ„āļĢ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("HajjDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveAddress") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveBirthDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveCancelComment") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveCancelDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveCancelStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("LeaveDetail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļĨāļē"); + + b.Property("LeaveDirectorComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļ­āļģāļ™āļ§āļĒāļāļēāļĢāļŠāļģāļ™āļąāļ"); + + b.Property("LeaveDraftDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("LeaveGovernmentDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveLast") + .HasColumnType("datetime(6)"); + + b.Property("LeaveNumber") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveRange") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄ āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveRangeEnd") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ” āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveSalary") + .HasColumnType("int"); + + b.Property("LeaveSalaryText") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LeaveStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļĨāļē"); + + b.Property("LeaveStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļĢāđ‰āļ­āļ‡"); + + b.Property("LeaveSubTypeName") + .HasColumnType("longtext"); + + b.Property("LeaveTotal") + .HasColumnType("double"); + + b.Property("LeaveTypeCode") + .HasColumnType("longtext") + .HasComment("code āļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveWrote") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ"); + + b.Property("OrdainDayBuddhistLentAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayBuddhistLentName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationNumber") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayOrdination") + .HasColumnType("datetime(6)"); + + b.Property("OrdainDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionLevelName") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RestDayCurrentTotal") + .HasColumnType("double"); + + b.Property("RestDayOldTotal") + .HasColumnType("double"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("StudyDayCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayDegreeLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayScholarship") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDaySubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingSubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayUniversityName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("TypeId") + .HasColumnType("char(36)"); + + b.Property("WifeDayDateBorn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("WifeDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("LeaveCancelDocumentId"); + + b.HasIndex("LeaveDraftDocumentId"); + + b.HasIndex("TypeId"); + + b.ToTable("LeaveRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveRequestApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.AdditionalCheckRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckDate") + .HasColumnType("datetime(6)") + .HasComment("*āļ§āļąāļ™āļ—āļĩāđˆāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("CheckInEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("CheckOutEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđƒāļ™āļāļēāļĢāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("*āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āļ‚āļ­"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Latitude") + .HasColumnType("double"); + + b.Property("Longitude") + .HasColumnType("double"); + + b.Property("POI") + .HasColumnType("longtext"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("AdditionalCheckRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ"); + + b.Property("EndTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("EndTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļīāļ”āđƒāļŠāđ‰āļ‡āļēāļ™ (āđ€āļ›āļīāļ”/āļ›āļīāļ”)"); + + b.Property("IsDefault") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ§āđˆāļēāļĢāļ­āļšāđƒāļ”āđ€āļ›āđ‡āļ™āļ„āđˆāļē Default āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ (āļŠāļģāļŦāļĢāļąāļšāļ—āļļāļāļ„āļ™āļ—āļĩāđˆāļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ—āļģāļāļēāļĢāđ€āļĨāļ·āļ­āļāļĢāļ­āļš)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("StartTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("StartTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("DutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.ProcessUserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckInStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("CheckOutStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EditReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("EditStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ‚āļ­āļ‡āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("ProcessUserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserCalendar", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Calendar") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļāļīāļ—āļīāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡ āļ‚āļĢāļ āļ›āļāļ•āļī āļŦāļĢāļ·āļ­ 6 āļ§āļąāļ™āļ•āđˆāļ­āļŠāļąāļ›āļ”āļēāļŦāđŒ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("UserCalendars"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("EffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļœāļĨ"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DutyTimeId"); + + b.ToTable("UserDutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("UserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "LeaveType") + .WithMany() + .HasForeignKey("LeaveTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("LeaveDocument") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveCancelDocument") + .WithMany() + .HasForeignKey("LeaveCancelDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveDraftDocument") + .WithMany() + .HasForeignKey("LeaveDraftDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "Type") + .WithMany() + .HasForeignKey("TypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveCancelDocument"); + + b.Navigation("LeaveDraftDocument"); + + b.Navigation("Type"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("Approvers") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", "DutyTime") + .WithMany() + .HasForeignKey("DutyTimeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DutyTime"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Navigation("Approvers"); + + b.Navigation("LeaveDocument"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250604025614_Fix Missing.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250604025614_Fix Missing.cs new file mode 100644 index 00000000..981da45a --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250604025614_Fix Missing.cs @@ -0,0 +1,49 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + /// + public partial class FixMissing : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "Latitude", + table: "AdditionalCheckRequests", + type: "double", + nullable: true); + + migrationBuilder.AddColumn( + name: "Longitude", + table: "AdditionalCheckRequests", + type: "double", + nullable: true); + + migrationBuilder.AddColumn( + name: "POI", + table: "AdditionalCheckRequests", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Latitude", + table: "AdditionalCheckRequests"); + + migrationBuilder.DropColumn( + name: "Longitude", + table: "AdditionalCheckRequests"); + + migrationBuilder.DropColumn( + name: "POI", + table: "AdditionalCheckRequests"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs index 8723c584..08994f33 100644 --- a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs @@ -811,6 +811,15 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb .HasColumnOrder(102) .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + b.Property("Latitude") + .HasColumnType("double"); + + b.Property("Longitude") + .HasColumnType("double"); + + b.Property("POI") + .HasColumnType("longtext"); + b.Property("Prefix") .HasColumnType("longtext"); From b260e4067fd023e491db138a3518cb5bc27bb8da Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 4 Jun 2025 16:19:06 +0700 Subject: [PATCH 355/879] =?UTF-8?q?=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=E0=B8=A5=E0=B8=B9?= =?UTF-8?q?=E0=B8=81=E0=B8=88=E0=B9=89=E0=B8=B2=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/RetirementResignController.cs | 1 - .../Controllers/RetirementResignEmployeeController.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index f7b088f9..5844ae10 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -1493,7 +1493,6 @@ namespace BMA.EHR.Retirement.Service.Controllers if (updated == null) return Error(GlobalMessages.RetirementResignNotFound, 404); - // updated.Status = "APPROVE"; updated.CommanderReject = false; updated.CommanderApproveReason = req.Reason; updated.LastUpdateFullName = FullName ?? "System Administrator"; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 1aa792ef..bf674e77 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -1987,7 +1987,7 @@ namespace BMA.EHR.Retirement.Service.Controllers }).ToList(); var baseAPIOrg = _configuration["API"]; - var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave"; + var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave"; using (var client = new HttpClient()) { client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); From ffecbf7df2769ca5cd2503346d8a0a94098e4d05 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 4 Jun 2025 17:01:55 +0700 Subject: [PATCH 356/879] fix issue #1554, #1558 --- .../Controllers/RetirementOtherController.cs | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index aa442d0b..7e902b87 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -842,6 +842,20 @@ namespace BMA.EHR.Retirement.Service.Controllers positionTypeNew = p.posTypeId, positionLevelNew = p.posLevelId, positionNameNew = p.position, + posmasterId = p.posmasterId, + posTypeNameNew = p.posTypeName, + posLeveNamelNew = p.posLevelName, + posNoNew = p.posMasterNo?.ToString(), + posNoAbbNew = p.child4ShortName != null ? $"{p.child4ShortName}" : + p.child3ShortName != null ? $"{p.child3ShortName}" : + p.child2ShortName != null ? $"{p.child2ShortName}" : + p.child1ShortName != null ? $"{p.child1ShortName}" : + p.rootShortName != null ? $"{p.rootShortName}" : "", + orgRootNew = p.root, + orgChild1New = p.child1, + orgChild2New = p.child2, + orgChild3New = p.child3, + orgChild4New = p.child4 }).ToList(); var baseAPIOrg = _configuration["API"]; @@ -1070,6 +1084,20 @@ namespace BMA.EHR.Retirement.Service.Controllers positionTypeNew = p.posTypeId, positionLevelNew = p.posLevelId, positionNameNew = p.position, + posmasterId = p.posmasterId, + posTypeNameNew = p.posTypeName, + posLevelNameNew = p.posLevelName, + posNoNew = p.posMasterNo?.ToString(), + posNoAbbNew = p.child4ShortName != null ? $"{p.child4ShortName}" : + p.child3ShortName != null ? $"{p.child3ShortName}" : + p.child2ShortName != null ? $"{p.child2ShortName}" : + p.child1ShortName != null ? $"{p.child1ShortName}" : + p.rootShortName != null ? $"{p.rootShortName}" : "", + orgRootNew = p.root, + orgChild1New = p.child1, + orgChild2New = p.child2, + orgChild3New = p.child3, + orgChild4New = p.child4 }).ToList(); var baseAPIOrg = _configuration["API"]; From d539f6fa4a390022b5d916c7d645746b2423440f Mon Sep 17 00:00:00 2001 From: moss <> Date: Wed, 4 Jun 2025 18:24:30 +0700 Subject: [PATCH 357/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=8A?= =?UTF-8?q?=E0=B8=B7=E0=B9=88=E0=B8=AD=20noti?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RetirementEmployeeRepository.cs | 46 +++++++++++++++---- .../Repositories/RetirementRepository.cs | 20 ++++---- 2 files changed, 47 insertions(+), 19 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs index f33ac559..500ec956 100644 --- a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs @@ -170,6 +170,20 @@ namespace BMA.EHR.Application.Repositories else if (rawData.ApproveStep == "st3") { rawData.ApproveStep = "st4"; + // TODO: Send notification to 1st Approver + var _firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var _noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = _firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-employee-detail/{id}", + }; + _dbContext.Set().Add(_noti1); } await _dbContext.SaveChangesAsync(); @@ -599,6 +613,20 @@ namespace BMA.EHR.Application.Repositories else if (rawData.ApproveStep == "st3") { rawData.ApproveStep = "st4"; + // TODO: Send notification to 1st Approver + var _firstCommander = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .FirstOrDefault(); + // Send Notification + var _noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = _firstCommander!.ProfileId, + Type = "", + Payload = $"{URL}/retirement/resign-employee-detail/{id}", + }; + _dbContext.Set().Add(_noti1); } await _dbContext.SaveChangesAsync(); @@ -611,7 +639,7 @@ namespace BMA.EHR.Application.Repositories // Send Notification var noti1 = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", Payload = $"{URL}/retirement/resign-employee-detail/{id}", @@ -699,7 +727,7 @@ namespace BMA.EHR.Application.Repositories // Send Noti var noti = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", Payload = $"{URL}/retirement/resign-employee-detail/{id}", @@ -726,7 +754,7 @@ namespace BMA.EHR.Application.Repositories // Send Notification var noti1 = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", Payload = $"{URL}/retirement/resign-employee-detail/{id}", @@ -788,7 +816,7 @@ namespace BMA.EHR.Application.Repositories // Send Noti var noti = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", Payload = $"{URL}/retirement/resign-employee-detail/{id}", @@ -816,7 +844,7 @@ namespace BMA.EHR.Application.Repositories // Send Notification var noti1 = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", Payload = $"{URL}/retirement/resign-employee-detail/{id}", @@ -876,7 +904,7 @@ namespace BMA.EHR.Application.Repositories // Send Noti var noti1 = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", Payload = "", @@ -900,7 +928,7 @@ namespace BMA.EHR.Application.Repositories // Send Noti var noti = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", ReceiverUserId = Guid.Parse(rawData.profileId), Type = "", Payload = "", @@ -960,7 +988,7 @@ namespace BMA.EHR.Application.Repositories // Send Noti var noti1 = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", Payload = "", @@ -984,7 +1012,7 @@ namespace BMA.EHR.Application.Repositories // Send Noti var noti = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī \r\nāđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļ{reason}", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī \r\nāđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļ{reason}", ReceiverUserId = Guid.Parse(rawData.profileId), Type = "", Payload = "", diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index dac2345f..50d2ea66 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -547,7 +547,7 @@ namespace BMA.EHR.Application.Repositories // Send Notification var _noti1 = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = _firstCommander!.ProfileId, Type = "", Payload = $"{URL}/retirement/resign-detail/{id}", @@ -563,7 +563,7 @@ namespace BMA.EHR.Application.Repositories // Send Notification var noti1 = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", Payload = $"{URL}/retirement/resign-detail/{id}", @@ -623,7 +623,7 @@ namespace BMA.EHR.Application.Repositories // Send Noti var noti = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", Payload = $"{URL}/retirement/resign-detail/{id}", @@ -647,7 +647,7 @@ namespace BMA.EHR.Application.Repositories // Send Notification var noti1 = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", Payload = $"{URL}/retirement/resign-detail/{id}", @@ -710,7 +710,7 @@ namespace BMA.EHR.Application.Repositories // Send Noti var noti = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", Payload = $"{URL}/retirement/resign-detail/{id}", @@ -739,7 +739,7 @@ namespace BMA.EHR.Application.Repositories // Send Notification var noti1 = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", Payload = $"{URL}/retirement/resign-detail/{id}", @@ -800,7 +800,7 @@ namespace BMA.EHR.Application.Repositories // Send Noti var noti1 = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", Payload = "", @@ -826,7 +826,7 @@ namespace BMA.EHR.Application.Repositories // Send Noti var noti = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", ReceiverUserId = Guid.Parse(rawData.profileId), Type = "", Payload = "", @@ -887,7 +887,7 @@ namespace BMA.EHR.Application.Repositories // Send Noti var noti1 = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", Payload = "", @@ -910,7 +910,7 @@ namespace BMA.EHR.Application.Repositories // Send Noti var noti = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī \r\nāđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļ{reason}", + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī \r\nāđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļ{reason}", ReceiverUserId = Guid.Parse(rawData.profileId), Type = "", Payload = "", From 78a47bc7357e8ecec19af1b097bfd0dcbf228b87 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 5 Jun 2025 09:52:12 +0700 Subject: [PATCH 358/879] fix issue #1568 (convert thaiNumber) --- .../Controllers/RetirementResignController.cs | 2 +- .../Controllers/RetirementResignEmployeeController.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 5844ae10..7621c9a2 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -2454,7 +2454,7 @@ namespace BMA.EHR.Retirement.Service.Controllers PositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), ActiveDate = p.ActiveDate == null ? "-" : p.ActiveDate.Value.ToThaiShortDate2().ToThaiNumber(), Salary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), - Remark = p.Reason ?? "-", + Remark = p.Reason?.ToThaiNumber() ?? "-", RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index bf674e77..d6cde482 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -1887,12 +1887,12 @@ namespace BMA.EHR.Retirement.Service.Controllers (p.child2Old == null ? "" : $"{p.child2Old}\n") + (p.child1Old == null ? "" : $"{p.child1Old}\n") + (p.rootOld == null ? "" : $"{p.rootOld}"), - PositionLevel = p.PositionLevelOld ?? "-", + PositionLevel = p.PositionLevelOld?.ToThaiNumber() ?? "-", PositionType = p.PositionTypeOld ?? "-", PositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), ActiveDate = p.ActiveDate == null ? "-" : p.ActiveDate.Value.ToThaiShortDate2().ToThaiNumber(), Salary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), - Remark = p.Reason ?? "-", + Remark = p.Reason?.ToThaiNumber() ?? "-", RemarkHorizontal = r.RemarkHorizontal == null ? "-" : r.RemarkHorizontal.ToThaiNumber(), RemarkVertical = r.RemarkVertical == null ? "-" : r.RemarkVertical.ToThaiNumber() }).ToList(); From a494020d376cc91ec179e9748ae4367949dccd39 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 5 Jun 2025 11:24:18 +0700 Subject: [PATCH 359/879] fix bug --- .../Controllers/RetirementOtherController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 7e902b87..6abfd2fb 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -844,7 +844,7 @@ namespace BMA.EHR.Retirement.Service.Controllers positionNameNew = p.position, posmasterId = p.posmasterId, posTypeNameNew = p.posTypeName, - posLeveNamelNew = p.posLevelName, + posLevelNameNew = p.posLevelName, posNoNew = p.posMasterNo?.ToString(), posNoAbbNew = p.child4ShortName != null ? $"{p.child4ShortName}" : p.child3ShortName != null ? $"{p.child3ShortName}" : From 237567e5abaa9afb29ffbe78e1ccd838dd871f0c Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 5 Jun 2025 12:16:50 +0700 Subject: [PATCH 360/879] edit path noti --- .../Repositories/RetirementEmployeeRepository.cs | 13 +++++++------ .../Repositories/RetirementRepository.cs | 12 ++++++------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs index 500ec956..ca9b8821 100644 --- a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs @@ -587,6 +587,7 @@ namespace BMA.EHR.Application.Repositories { var data = await _dbContext.Set().AsQueryable() .Include(x => x.Approvers) + .Include(x => x.RetirementResignEmployee) .FirstOrDefaultAsync(x => x.Id == id); return data; @@ -624,7 +625,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = _firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{id}", + Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", }; _dbContext.Set().Add(_noti1); } @@ -642,7 +643,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{id}", + Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); @@ -730,7 +731,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{id}", + Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", }; _dbContext.Set().Add(noti); await _dbContext.SaveChangesAsync(); @@ -757,7 +758,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{id}", + Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); @@ -819,7 +820,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{id}", + Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", }; _dbContext.Set().Add(noti); @@ -847,7 +848,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{id}", + Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 50d2ea66..1cc84895 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -550,7 +550,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = _firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{id}", + Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", }; _dbContext.Set().Add(_noti1); } @@ -566,7 +566,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{id}", + Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); @@ -626,7 +626,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{id}", + Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", }; _dbContext.Set().Add(noti); await _dbContext.SaveChangesAsync(); @@ -650,7 +650,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{id}", + Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", }; _dbContext.Set().Add(noti1); } @@ -713,7 +713,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{id}", + Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", }; _dbContext.Set().Add(noti); @@ -742,7 +742,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{id}", + Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", }; _dbContext.Set().Add(noti1); } From 7e3ae58b3342fa2b2e177049ddbfbb7d7805dad3 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 5 Jun 2025 14:41:58 +0700 Subject: [PATCH 361/879] =?UTF-8?q?=E0=B8=99=E0=B8=B1=E0=B8=9A=20||=20x.Le?= =?UTF-8?q?aveStatus=20=3D=3D=20"DELETING"=20=E0=B9=80=E0=B8=82=E0=B9=89?= =?UTF-8?q?=E0=B8=B2=E0=B9=84=E0=B8=9B=E0=B9=83=E0=B8=99=E0=B8=A3=E0=B8=B2?= =?UTF-8?q?=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3=20Approve=20=E0=B8=94?= =?UTF-8?q?=E0=B9=89=E0=B8=A7=E0=B8=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveRequestRepository.cs | 35 +++++++++---------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 336bdeac..609047a1 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -1,8 +1,6 @@ -ïŧŋusing Amazon.S3.Model; -using BMA.EHR.Application.Common.Interfaces; +ïŧŋusing BMA.EHR.Application.Common.Interfaces; using BMA.EHR.Application.Messaging; using BMA.EHR.Application.Responses.Leaves; -using BMA.EHR.Domain.Models.HR; using BMA.EHR.Domain.Models.Leave.Commons; using BMA.EHR.Domain.Models.Leave.Requests; using BMA.EHR.Domain.Models.Notifications; @@ -10,8 +8,6 @@ using BMA.EHR.Domain.Shared; using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; -using Nest; -using System.Drawing; using System.Net.Http.Headers; using System.Net.Http.Json; @@ -415,7 +411,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Where(x => x.Type.Id == leaveType.Id) //.Where(x => x.LeaveStartDate.Year == year) .Where(x => x.LeaveStartDate.Date >= startFiscalDate && x.LeaveStartDate.Date <= endFiscalDate) - .Where(x => x.LeaveStatus == "APPROVE") + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING") .Sum(x => x.LeaveTotal); return data; @@ -444,7 +440,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Where(x => x.Type.Id == leaveTypeId) //.Where(x => x.LeaveStartDate.Year == year) .Where(x => x.LeaveStartDate.Date >= startFiscalDate && x.LeaveStartDate.Date <= endFiscalDate) - .Where(x => x.LeaveStatus == "APPROVE") + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING") //.Where(x => x.LeaveStatus != "REJECT" && x.LeaveStatus != "DELETE") .ToListAsync(); @@ -470,7 +466,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Include(x => x.Type) .Where(x => x.KeycloakUserId == keycloakUserId) .Where(x => x.Type.Id == leaveTypeId) - .Where(x => x.LeaveStatus == "APPROVE") + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING") //.Where(x => x.LeaveStatus != "REJECT" && x.LeaveStatus != "DELETE") .OrderByDescending(x => x.LeaveStartDate.Date) .Select(x => x.LeaveStartDate.Date) @@ -486,7 +482,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Where(x => x.LeaveStartDate.Date < beforeDate.Date) .Where(x => x.KeycloakUserId == keycloakUserId) .Where(x => x.Type.Id == leaveTypeId) - .Where(x => x.LeaveStatus == "APPROVE") + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING") //.Where(x => x.LeaveStatus != "REJECT" && x.LeaveStatus != "DELETE") .OrderByDescending(x => x.LeaveStartDate.Date) .FirstOrDefaultAsync(); @@ -1366,7 +1362,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Where(x => x.KeycloakUserId == keycloakUserId) .Where(x => x.Type.Id == leaveTypeId) .Where(x => x.LeaveStartDate.Year == year) - .Where(x => x.LeaveStatus == "APPROVE") + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING") .ToListAsync(); if (data.Count > 0) @@ -1382,7 +1378,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Where(x => x.KeycloakUserId == keycloakUserId) .Where(x => x.Type.Id == leaveTypeId) .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) - .Where(x => x.LeaveStatus == "APPROVE") + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING") .ToListAsync(); if (data.Count > 0) @@ -1397,7 +1393,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Include(x => x.Type) .Where(x => x.KeycloakUserId == keycloakUserId) .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) - .Where(x => x.LeaveStatus == "APPROVE") + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING") .ToListAsync(); if (data.Count > 0) @@ -1411,7 +1407,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests var data = await _dbContext.Set().AsQueryable() .Include(x => x.Type) .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) - .Where(x => x.LeaveStatus == "APPROVE").ToListAsync(); + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING").ToListAsync(); var res = (from d in data group d by new { d.KeycloakUserId, LeaveTypeId = d.Type.Id, LeaveTypeCode = d.Type.Code } into grp @@ -1438,7 +1434,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Where(x => x.ProfileType == type.Trim().ToUpper()) .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) .Where(x => node == 4 ? x.Child4Id == Guid.Parse(nodeId) : (node == 3 ? x.Child3Id == Guid.Parse(nodeId) : (node == 2 ? x.Child2Id == Guid.Parse(nodeId) : (node == 1 ? x.Child1Id == Guid.Parse(nodeId) : (node == 0 ? x.RootId == Guid.Parse(nodeId) : (node == null ? true : true)))))) - .Where(x => x.LeaveStatus == "APPROVE").ToListAsync(); + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING").ToListAsync(); } else { @@ -1448,7 +1444,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) .Where(x => node == 4 ? x.Child4Id == Guid.Parse(nodeId) : (node == 3 ? x.Child3Id == Guid.Parse(nodeId) : (node == 2 ? x.Child2Id == Guid.Parse(nodeId) : (node == 1 ? x.Child1Id == Guid.Parse(nodeId) : (node == 0 ? x.RootId == Guid.Parse(nodeId) : (node == null ? true : true)))))) .Where(x => node == 0 ? x.Child1Id == null : (node == 1 ? x.Child2Id == null : (node == 2 ? x.Child3Id == null : (node == 3 ? x.Child4Id == null : true)))) - .Where(x => x.LeaveStatus == "APPROVE").ToListAsync(); + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING").ToListAsync(); } var res = (from d in data @@ -1504,7 +1500,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests var data = await _dbContext.Set().AsQueryable() .Include(x => x.Type) .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) - .Where(x => x.LeaveStatus == "APPROVE").ToListAsync(); + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING") + .ToListAsync(); var res = (from d in data group d by new { d.KeycloakUserId, LeaveTypeId = d.Type.Id, LeaveTypeCode = d.Type.Code } into grp @@ -1527,7 +1524,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Where(x => x.KeycloakUserId == keycloakUserId) .Where(x => x.Type.Id == leaveTypeId) .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) - .Where(x => x.LeaveStatus == "APPROVE") + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING") .ToListAsync(); if (data.Count > 0) @@ -1543,7 +1540,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests .Where(x => x.KeycloakUserId == keycloakUserId) .Where(x => x.Type.Id == leaveTypeId) .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) - .Where(x => x.LeaveStatus == "APPROVE") + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING") .ToListAsync(); return data.Count; @@ -1628,7 +1625,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests var data = await _dbContext.Set().AsQueryable().AsNoTracking() .Include(x => x.Type) .Where(x => x.KeycloakUserId == keycloakUserId) - .Where(x => x.LeaveStatus == "APPROVE") + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING") .Where(x => x.LeaveStartDate.Date <= date.Date && x.LeaveEndDate >= date.Date) .FirstOrDefaultAsync(); return data; From 40babdf1a717a3b31aa532c14ea8d63977a7b108 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 5 Jun 2025 15:15:49 +0700 Subject: [PATCH 362/879] =?UTF-8?q?=E0=B8=95=E0=B8=AD=E0=B8=99=E0=B8=81?= =?UTF-8?q?=E0=B8=94=E0=B8=82=E0=B8=AD=E0=B8=A2=E0=B8=81=E0=B9=80=E0=B8=A5?= =?UTF-8?q?=E0=B8=B4=E0=B8=81=E0=B8=AA=E0=B9=88=E0=B8=87=20noti=20=20-=20?= =?UTF-8?q?=E0=B8=95=E0=B8=AD=E0=B8=99=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=A2?= =?UTF-8?q?=E0=B8=B7=E0=B9=88=E0=B8=99=E0=B8=81=E0=B8=94=E0=B8=82=E0=B8=AD?= =?UTF-8?q?=E0=B8=A2=E0=B8=81=E0=B9=80=E0=B8=A5=E0=B8=B4=E0=B8=81=E0=B9=81?= =?UTF-8?q?=E0=B8=88=E0=B9=89=E0=B8=87=E0=B8=A1=E0=B8=B2=E0=B8=97=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=A1=E0=B8=B5=E0=B8=AD?= =?UTF-8?q?=E0=B8=B3=E0=B8=99=E0=B8=B2=E0=B8=88=20=20-=20=E0=B8=9C?= =?UTF-8?q?=E0=B8=B9=E0=B9=89=E0=B8=A1=E0=B8=B5=E0=B8=AD=E0=B8=B3=E0=B8=99?= =?UTF-8?q?=E0=B8=B2=E0=B8=88=E0=B8=AD=E0=B8=99=E0=B8=B8=E0=B8=A1=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=E0=B8=AB=E0=B8=A3=E0=B8=B7=E0=B8=AD=E0=B9=84?= =?UTF-8?q?=E0=B8=A1=E0=B9=88=E0=B8=AD=E0=B8=99=E0=B8=B8=E0=B8=A1=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=20=E0=B9=81=E0=B8=88=E0=B9=89=E0=B8=87?= =?UTF-8?q?=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=A2=E0=B8=B7=E0=B9=88=E0=B8=99?= =?UTF-8?q?=20=E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B8=9C=E0=B8=B9=E0=B9=89?= =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=87=E0=B8=84=E0=B8=B1=E0=B8=9A=E0=B8=9A?= =?UTF-8?q?=E0=B8=B1=E0=B8=8D=E0=B8=8A=E0=B8=B2=E0=B8=97=E0=B8=B5=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=B5=E0=B9=83=E0=B8=99=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LeaveRequests/LeaveRequestRepository.cs | 42 ++++++++++++++++++- .../Controllers/LeaveRequestController.cs | 31 +++++++++++++- 2 files changed, 70 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 609047a1..25595c5f 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -633,11 +633,11 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests throw new Exception("āđ„āļĄāđˆāļŠāļēāļĄāļēāļĢāļ–āļ­āļąāļžāđ€āļ”āļ•āļāļēāļĢāļĒāļāđ€āļĨāļīāļāļĢāļēāļĒāļāļēāļĢāļĨāļēāđ„āļ›āļĒāļąāļ‡āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); //var _result = await _res.Content.ReadAsStringAsync(); } - } + } // TODO: remove āļ§āļąāļ™āļĨāļē - // Send Noti + // Send Noti āļŦāļēāđ€āļˆāđ‰āļēāļ‚āļ­āļ‡āđƒāļšāļĨāļē var noti = new Notification { Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāđƒāļšāļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī", @@ -646,6 +646,25 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests Payload = "", }; _appDbContext.Set().Add(noti); + + var commanders = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "COMMANDER") + .OrderBy(x => x.Seq) + .ToList(); + + foreach(var commander in commanders) + { + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāđƒāļšāļĨāļēāļ‚āļ­āļ‡ {rawData.FirstName} {rawData.LastName} āđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāđāļĨāđ‰āļ§", + ReceiverUserId = commander.ProfileId, + Type = "", + Payload = "", + }; + _appDbContext.Set().Add(noti1); + } + + await _appDbContext.SaveChangesAsync(); @@ -708,6 +727,25 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests Payload = "", }; _appDbContext.Set().Add(noti); + + var commanders = rawData.Approvers + .Where(x => x.ApproveType!.ToUpper() == "COMMANDER") + .OrderBy(x => x.Seq) + .ToList(); + + foreach (var commander in commanders) + { + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāđƒāļšāļĨāļēāļ‚āļ­āļ‡ {rawData.FirstName} {rawData.LastName} āđ„āļĄāđˆāđ„āļ”āđ‰āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī \r\nāđ€āļ™āļ·āļ­āļ‡āļˆāļēāļ {Reason}", + ReceiverUserId = commander.ProfileId, + Type = "", + Payload = "", + }; + _appDbContext.Set().Add(noti1); + } + + await _appDbContext.SaveChangesAsync(); } diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index e2c80240..a69dcf59 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -8,6 +8,7 @@ using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Leave.Commons; using BMA.EHR.Domain.Models.Leave.Requests; +using BMA.EHR.Domain.Models.Notifications; using BMA.EHR.Domain.Shared; using BMA.EHR.Infrastructure.Persistence; using BMA.EHR.Leave.Service.DTOs.LeaveRequest; @@ -35,6 +36,7 @@ namespace BMA.EHR.Leave.Service.Controllers #region " Fields " private readonly LeaveDbContext _context; + private readonly ApplicationDBContext _appDbContext; private readonly IHttpContextAccessor _httpContextAccessor; private readonly IWebHostEnvironment _hostingEnvironment; private readonly IConfiguration _configuration; @@ -54,6 +56,8 @@ namespace BMA.EHR.Leave.Service.Controllers private const string APPROVE_STEP_APPROVE = "st4"; private const string APPROVE_STEP_REJECT = "st5"; + private readonly string URL = string.Empty; + #endregion #region " Constuctor and Destructor " @@ -70,7 +74,8 @@ namespace BMA.EHR.Leave.Service.Controllers CommandRepository commandRepository, UserCalendarRepository userCalendarRepository, PermissionRepository permission, - LeaveBeginningRepository leaveBeginningRepository) + LeaveBeginningRepository leaveBeginningRepository, + ApplicationDBContext appDbContext) { _context = context; _httpContextAccessor = httpContextAccessor; @@ -85,6 +90,9 @@ namespace BMA.EHR.Leave.Service.Controllers _userCalendarRepository = userCalendarRepository; _permission = permission; _leaveBeginningRepository = leaveBeginningRepository; + _appDbContext = appDbContext; + + URL = (_configuration["VITE_URL_MGT"]).Replace("/api/v1", ""); } #endregion @@ -1726,6 +1734,27 @@ namespace BMA.EHR.Leave.Service.Controllers // save to database await _leaveRequestRepository.UpdateWithTrackingAsync(data); + + // TODO: Send notification to 1st Commander + var approvers = data.Approvers + .Where(x => x.ApproveType!.ToUpper() == "APPROVER") + .OrderBy(x => x.Seq) + .ToList(); + + foreach(var approver in approvers) + { + // Send Notification + var noti1 = new Notification + { + Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {data.FirstName} {data.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + ReceiverUserId = approver!.ProfileId, + Type = "", + Payload = $"{URL}/leave/detail/{id}", + }; + _appDbContext.Set().Add(noti1); + } + + return Success(); } From b747e3ae684a4745eccaf8fcd17ce23ccaacba55 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 5 Jun 2025 15:36:44 +0700 Subject: [PATCH 363/879] change word --- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index a69dcf59..ebe2757d 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1746,7 +1746,7 @@ namespace BMA.EHR.Leave.Service.Controllers // Send Notification var noti1 = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {data.FirstName} {data.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļ„āļģāļĢāđ‰āļ­āļ‡āļ‚āļ­āļĒāļāđ€āļĨāļīāļāļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {data.FirstName} {data.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = approver!.ProfileId, Type = "", Payload = $"{URL}/leave/detail/{id}", From 9bde6a98957417a9617fb7a03a386af72adc6479 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 10 Jun 2025 11:10:40 +0700 Subject: [PATCH 364/879] #1425 --- .../Reports/InsigniaReportRepository.cs | 32 ++- .../Controllers/InsigniaReportController.cs | 259 +++++++++++++++--- 2 files changed, 250 insertions(+), 41 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs index 52600792..95bef940 100644 --- a/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/InsigniaReportRepository.cs @@ -1000,16 +1000,36 @@ namespace BMA.EHR.Application.Repositories.Reports r.FirstName, r.LastName, r.Gender, + r.Root, + r.RootId, + r.Child1, + r.Child1Id, + r.Child2, + r.Child2Id, + r.Child3, + r.Child3Id, + r.Child4, + r.Child4Id, r.RequestInsignia.Id, r.Request.OrganizationId }) .Select(group => new - { + { InsigniaInitial = group.Key.ShortName, InsigniaName = group.Key.Name, ProfileId = group.Key.ProfileId, FullName = $"{group.Key.Prefix}{group.Key.FirstName} {group.Key.LastName}", Gender = group.Key.Gender, + Root = group.Key.Root ?? "", + RootId = group.Key.RootId, + Child1 = group.Key.Child1 ?? "", + Child1Id = group.Key.Child1Id, + Child2 = group.Key.Child2 ?? "", + Child2Id = group.Key.Child2Id, + Child3 = group.Key.Child3 ?? "", + Child3Id = group.Key.Child3Id, + Child4 = group.Key.Child4 ?? "", + Child4Id = group.Key.Child4Id, Male = group.Count(r => r.Gender == "Male"), // Count male entries Female = group.Count(r => r.Gender == "Female"), // Count female entries InsigniaId = group.Key.Id, @@ -1035,6 +1055,16 @@ namespace BMA.EHR.Application.Repositories.Reports ProfileId = Guid.Parse("00000000-0000-0000-0000-000000000000"), FullName = "", Gender = "", + Root = "", + RootId = (Guid?)Guid.Parse("00000000-0000-0000-0000-000000000000"), + Child1 = "", + Child1Id = (Guid?)Guid.Parse("00000000-0000-0000-0000-000000000000"), + Child2 = "", + Child2Id = (Guid?)Guid.Parse("00000000-0000-0000-0000-000000000000"), + Child3 = "", + Child3Id = (Guid?)Guid.Parse("00000000-0000-0000-0000-000000000000"), + Child4 = "", + Child4Id = (Guid?)Guid.Parse("00000000-0000-0000-0000-000000000000"), Male = 0, Female = 0, InsigniaId = ins.InsigniaId, diff --git a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs index 620ab706..e5c28e4f 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaReportController.cs @@ -99,6 +99,7 @@ namespace BMA.EHR.Insignia.Service.Controllers var data = await _repository.GetCoinReport(req.roundId, type, req.node, req.nodeId); var yearInsignalPeriod = await _repository.GetYearInsigniaPeriod(req.roundId); + var yearLastTwoDigits = yearInsignalPeriod.Substring(yearInsignalPeriod.Length - 2); var dataResult = new List(); var dataList = new List(data); @@ -117,6 +118,16 @@ namespace BMA.EHR.Insignia.Service.Controllers InsigniaName = dataList[i].GetType().GetProperty("InsigniaName").GetValue(dataList[i]), FullName = dataList[i].GetType().GetProperty("FullName").GetValue(dataList[i]), InsigniaInitial = dataList[i].GetType().GetProperty("InsigniaInitial").GetValue(dataList[i]), + Root = dataList[i].GetType().GetProperty("Root").GetValue(dataList[i]), + RootId = dataList[i].GetType().GetProperty("RootId").GetValue(dataList[i]), + Child1 = dataList[i].GetType().GetProperty("Child1").GetValue(dataList[i]), + Child1Id = dataList[i].GetType().GetProperty("Child1Id").GetValue(dataList[i]), + Child2 = dataList[i].GetType().GetProperty("Child2").GetValue(dataList[i]), + Child2Id = dataList[i].GetType().GetProperty("Child2Id").GetValue(dataList[i]), + Child3 = dataList[i].GetType().GetProperty("Child3").GetValue(dataList[i]), + Child3Id = dataList[i].GetType().GetProperty("Child3Id").GetValue(dataList[i]), + Child4 = dataList[i].GetType().GetProperty("Child4").GetValue(dataList[i]), + Child4Id = dataList[i].GetType().GetProperty("Child4Id").GetValue(dataList[i]), Male = gender == "āļŠāļēāļĒ" ? 1 : 0, Female = gender == "āļŦāļāļīāļ‡" ? 1 : 0, }); @@ -145,54 +156,221 @@ namespace BMA.EHR.Insignia.Service.Controllers var stop = 0; var colLeft = 0; var colRight = 0; - for (int i = 0; i < detailList.Count / 2; i++) - { - if (InsigniaName != (string)left.ElementAt(i).GetType().GetProperty("InsigniaName").GetValue(left.ElementAt(i))) - { - InsigniaName = (string)left.ElementAt(i).GetType().GetProperty("InsigniaName").GetValue(left.ElementAt(i)); - male = left.Count(x => x.Male == 1 && x.InsigniaName == InsigniaName) + right.Count(x => x.Male == 1 && x.InsigniaName == InsigniaName); - female = left.Count(x => x.Female == 1 && x.InsigniaName == InsigniaName) + right.Count(x => x.Female == 1 && x.InsigniaName == InsigniaName); - var countGroup = detailList.Count(x => x.InsigniaName == InsigniaName); - var countGroupTemp = detailList.Count(x => x.InsigniaName == InsigniaName && x.FullName == ""); - start = i == 0 ? (mergeList.Count + 1) : (stop + 1); - stop = i == 0 ? (mergeList.Count) + (countGroup - countGroupTemp) : (countGroup - countGroupTemp) == 1 ? start : start + (countGroup - countGroupTemp); - range = countGroup - countGroupTemp != 1 ? $"{start} - {stop}" : $"{start}"; - colLeft = start; - colRight = start + 25; - } - // āļ”āļķāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ NameLeft āđāļĨāļ° NameRight - var nameLeft = left.ElementAt(i).GetType().GetProperty("FullName").GetValue(left.ElementAt(i)); - var nameRight = right.ElementAt(i).GetType().GetProperty("FullName").GetValue(right.ElementAt(i)); + var maxRow = Math.Max(left.Count(), right.Count()); + + for (int i = 0; i < maxRow; i++) + { + var leftItem = i < left.Count() ? left.ElementAt(i) : null; + var rightItem = i < right.Count() ? right.ElementAt(i) : null; + + // āļ‚āđ‰āļēāļĄāļ–āđ‰āļēāđ„āļĄāđˆāļĄāļĩāļ‚āđ‰āļ­āļĄāļđāļĨāļ—āļąāđ‰āļ‡āļŠāļ­āļ‡āļāļąāđˆāļ‡ + if (leftItem == null && rightItem == null) + continue; + + var insigniaName = leftItem != null + ? leftItem.GetType().GetProperty("InsigniaName").GetValue(leftItem) + : rightItem.GetType().GetProperty("InsigniaName").GetValue(rightItem); + + male = detailList.Count(x => x.Male == 1 && x.InsigniaName == insigniaName); + female = detailList.Count(x => x.Female == 1 && x.InsigniaName == insigniaName); + var countGroup = detailList.Count(x => x.InsigniaName == insigniaName); + var countGroupTemp = detailList.Count(x => x.InsigniaName == insigniaName && x.FullName == ""); + + start = mergeList.Count + 1; + stop = start + (countGroup - countGroupTemp) - 1; + range = (countGroup - countGroupTemp) != 1 ? $"{start} - {stop}" : $"{start}"; - // āļ–āđ‰āļēāđ„āļĄāđˆāļĄāļĩāļ—āļąāđ‰āļ‡ NameLeft āđāļĨāļ° NameRight āđƒāļŦāđ‰āļ‚āđ‰āļēāļĄāđ„āļ› - if (string.IsNullOrEmpty((string)nameLeft) && string.IsNullOrEmpty((string)nameRight)) - { - continue; // āļ‚āđ‰āļēāļĄāļāļēāļĢāļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡āļĨāļđāļ›āđƒāļ™āļĢāļ­āļšāļ™āļĩāđ‰ - } mergeList.Add(new { - row = mergeList.Count + 1, - ColLeft = colLeft.ToString().ToThaiNumber(), - NameLeft = left.ElementAt(i).GetType().GetProperty("FullName").GetValue(left.ElementAt(i)), - ColRight = colRight.ToString().ToThaiNumber(), - NameRight = right.ElementAt(i).GetType().GetProperty("FullName").GetValue(right.ElementAt(i)), - InsigniaInitial = left.ElementAt(i).GetType().GetProperty("InsigniaInitial").GetValue(left.ElementAt(i)), - InsigniaName = left.ElementAt(i).GetType().GetProperty("InsigniaName").GetValue(left.ElementAt(i)), + ColLeft = colLeft > 0 ? colLeft.ToString().ToThaiNumber() : "", + NameLeft = leftItem?.GetType().GetProperty("FullName").GetValue(leftItem), + RootLeft = leftItem?.GetType().GetProperty("Root").GetValue(leftItem), + Child1Left = leftItem?.GetType().GetProperty("Child1").GetValue(leftItem), + Child2Left = leftItem?.GetType().GetProperty("Child2").GetValue(leftItem), + Child3Left = leftItem?.GetType().GetProperty("Child3").GetValue(leftItem), + Child4Left = leftItem?.GetType().GetProperty("Child4").GetValue(leftItem), + + ColRight = colRight > 0 ? colRight.ToString().ToThaiNumber() : "", + NameRight = rightItem?.GetType().GetProperty("FullName").GetValue(rightItem), + RootRight = rightItem?.GetType().GetProperty("Root").GetValue(rightItem), + Child1Right = rightItem?.GetType().GetProperty("Child1").GetValue(rightItem), + Child2Right = rightItem?.GetType().GetProperty("Child2").GetValue(rightItem), + Child3Right = rightItem?.GetType().GetProperty("Child3").GetValue(rightItem), + Child4Right = rightItem?.GetType().GetProperty("Child4").GetValue(rightItem), + + InsigniaInitial = leftItem?.GetType().GetProperty("InsigniaInitial").GetValue(leftItem) + ?? rightItem?.GetType().GetProperty("InsigniaInitial").GetValue(rightItem), + InsigniaName = insigniaName, Range = range.ToThaiNumber(), Male = male.ToString().ToThaiNumber(), - Female = female.ToString().ToThaiNumber(), + Female = female.ToString().ToThaiNumber() }); - if (mergeList.Count % 25 == 0) - { - colLeft = colRight; - colRight = colLeft + 25; - } - colLeft++; - colRight++; } - dataResult = mergeList; + + dataResult = mergeList; } + var groupedByOrg = detailList + .GroupBy(x => + { + string child4Id = x.Child4Id?.ToString() ?? ""; + string child3Id = x.Child3Id?.ToString() ?? ""; + string child2Id = x.Child2Id?.ToString() ?? ""; + string child1Id = x.Child1Id?.ToString() ?? ""; + string rootId = x.RootId?.ToString() ?? ""; + + + if (!string.IsNullOrEmpty(child4Id)) return child4Id; + if (!string.IsNullOrEmpty(child3Id)) return child3Id; + if (!string.IsNullOrEmpty(child2Id)) return child2Id; + if (!string.IsNullOrEmpty(child1Id)) return child1Id; + return rootId; + }) + .Where(g => !string.IsNullOrWhiteSpace(g.Key)) + .Select(orgGroup => + { + var first = orgGroup.FirstOrDefault(); + + var org = !string.IsNullOrWhiteSpace(first?.Child4) ? first.Child4.Trim() : + !string.IsNullOrWhiteSpace(first?.Child3) ? first.Child3.Trim() : + !string.IsNullOrWhiteSpace(first?.Child2) ? first.Child2.Trim() : + !string.IsNullOrWhiteSpace(first?.Child1) ? first.Child1.Trim() : + first.Root.Trim(); + + // Group by InsigniaName + var groupedByInsignia = orgGroup + .GroupBy(x => x.InsigniaName) + .Select(insigniaGroup => + { + if (!insigniaGroup.Any(x => !string.IsNullOrWhiteSpace(x.FullName))) + return null; + + var insigniaName = insigniaGroup.Key; + var left = insigniaGroup.Where(x => x.status == false).ToList(); + var right = insigniaGroup.Where(x => x.status == true).ToList(); + + var male = insigniaGroup.Count(x => x.Male == 1); + var female = insigniaGroup.Count(x => x.Female == 1); + var countGroup = insigniaGroup.Count(); + var countGroupTemp = insigniaGroup.Count(x => x.FullName == ""); + + var start = 1; + var stop = countGroup - countGroupTemp; + var range = stop == 1 ? $"{start}" : $"{start} - {stop}"; + range = range.ToThaiNumber(); + + var people = new List(); + + int colLeft = 1; + int colRight = 26; + int rowCount = Math.Max(left.Count, right.Count); + + var allPeople = left.Concat(right).ToList(); + + int colLeftStart = 1; + int colRightStart = 26; + + for (int i = 0; i < allPeople.Count; i++) + { + var person = allPeople[i]; + + if (string.IsNullOrWhiteSpace(person?.FullName)) + continue; + + if (i < 25) + { + people.Add(new + { + ColLeft = colLeftStart.ToString().ToThaiNumber(), + NameLeft = person.FullName, + RootLeft = person.Root, + Child1Left = person.Child1, + Child2Left = person.Child2, + Child3Left = person.Child3, + Child4Left = person.Child4, + + ColRight = "", + NameRight = "", + RootRight = "", + Child1Right = "", + Child2Right = "", + Child3Right = "", + Child4Right = "", + + InsigniaInitial = person.InsigniaInitial, + InsigniaName = insigniaName, + Range = range, + Male = male.ToString().ToThaiNumber(), + Female = female.ToString().ToThaiNumber() + }); + + colLeftStart++; + } + else + { + // āļ„āļģāļ™āļ§āļ“āđāļ–āļ§āļ—āļĩāđˆāļˆāļ°āđ€āļ­āļēāļ‚āđ‰āļ­āļĄāļđāļĨāļ‚āļ§āļēāđ„āļ›āđƒāļŠāđˆ + int indexToUpdate = i - 25; // āļ–āđ‰āļē i=25 āļˆāļ°āđ„āļ›āđāļ–āļ§ 0, i=26 āđ„āļ›āđāļ–āļ§ 1 āđ€āļ›āđ‡āļ™āļ•āđ‰āļ™ + + // āļ”āļķāļ‡āđāļ–āļ§āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĄāļēāđāļāđ‰āđ„āļ‚ + var row = (dynamic)people[indexToUpdate]; + + // āļŠāļĢāđ‰āļēāļ‡ object āđƒāļŦāļĄāđˆāđ‚āļ”āļĒāļ„āļąāļ”āļĨāļ­āļāļ‚āđ‰āļ­āļĄāļđāļĨāļ‹āđ‰āļēāļĒāđ€āļ”āļīāļĄāđāļĨāļ°āđ€āļžāļīāđˆāļĄāļ‚āđ‰āļ­āļĄāļđāļĨāļ‚āļ§āļē + var updatedRow = new + { + ColLeft = row.ColLeft, + NameLeft = row.NameLeft, + RootLeft = row.RootLeft, + Child1Left = row.Child1Left, + Child2Left = row.Child2Left, + Child3Left = row.Child3Left, + Child4Left = row.Child4Left, + + ColRight = colRightStart.ToString().ToThaiNumber(), + NameRight = person.FullName, + RootRight = person.Root, + Child1Right = person.Child1, + Child2Right = person.Child2, + Child3Right = person.Child3, + Child4Right = person.Child4, + + InsigniaInitial = person.InsigniaInitial, + InsigniaName = insigniaName, + Range = range, + Male = male.ToString().ToThaiNumber(), + Female = female.ToString().ToThaiNumber() + }; + + // āđāļ—āļ™āļ—āļĩāđˆāđāļ–āļ§āđ€āļ”āļīāļĄāļ”āđ‰āļ§āļĒāđāļ–āļ§āļ—āļĩāđˆāļ­āļąāļžāđ€āļ”āļ• + people[indexToUpdate] = updatedRow; + + colRightStart++; + } + } + + + + return new + { + name = $"(āļŠāļąāđ‰āļ™āļ•āļĢāļē) {insigniaName}", + shotName = left.FirstOrDefault()?.InsigniaInitial ?? right.FirstOrDefault()?.InsigniaInitial, + range = range, + male = male.ToString().ToThaiNumber(), + female = female.ToString().ToThaiNumber(), + people = people + }; + }).ToList(); + + return new + { + org = org, + insignia = groupedByInsignia + }; + }) + .Where(x => !string.IsNullOrWhiteSpace(x.org) && x.insignia.Any()) + .ToList(); + + + var result = new { template = "reportInsignia1", @@ -200,7 +378,8 @@ namespace BMA.EHR.Insignia.Service.Controllers data = new { yearInsignalPeriod = yearInsignalPeriod, - data = dataResult, + yearLastTwoDigits = yearLastTwoDigits, + data = groupedByOrg, } }; return Success(result); From b0cfc2eee90ee95795a7eabaf986574563dc87d1 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 10 Jun 2025 12:25:21 +0700 Subject: [PATCH 365/879] fix url noti retirement reject & field Id --- .../Repositories/RetirementEmployeeRepository.cs | 12 ++++++------ .../Repositories/RetirementRepository.cs | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs index ca9b8821..d20589c5 100644 --- a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs @@ -625,7 +625,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = _firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(_noti1); } @@ -643,7 +643,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); @@ -731,7 +731,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti); await _dbContext.SaveChangesAsync(); @@ -758,7 +758,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); @@ -820,7 +820,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti); @@ -848,7 +848,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 1cc84895..b03a2afb 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -550,7 +550,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = _firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(_noti1); } @@ -566,7 +566,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); @@ -626,7 +626,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti); await _dbContext.SaveChangesAsync(); @@ -650,7 +650,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti1); } @@ -713,7 +713,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti); @@ -742,7 +742,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti1); } From 4bf0593b0e0cb299e0b85151a8ebaa068a932634 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 10 Jun 2025 16:42:37 +0700 Subject: [PATCH 366/879] fix resign detail --- .../Controllers/RetirementResignController.cs | 354 +++++++++--------- .../RetirementResignEmployeeController.cs | 352 ++++++++--------- 2 files changed, 353 insertions(+), 353 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 7621c9a2..5fd88ee9 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -347,8 +347,8 @@ namespace BMA.EHR.Retirement.Service.Controllers .FirstOrDefaultAsync(); if (dataMain == null) return Error(GlobalMessages.RetirementResignNotFound, 404); - if (dataMain.IsCancel != true) - { + // if (dataMain.IsCancel != true) + // { var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "SYS_RESIGN"); var createdUserId = await _context.RetirementResigns.AsQueryable() .Where(x => x.Id == id) @@ -522,182 +522,182 @@ namespace BMA.EHR.Retirement.Service.Controllers }; return Success(_data); - } - else - { - var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "RETIREMENT_CANCEL"); - var createdUserId = await _context.RetirementResignCancels.AsQueryable() - .Where(x => x.CreatedUserId == UserId) - .Where(x => x.RetirementResign.Id == id) - .FirstOrDefaultAsync(); - if (getWorkflow == false && createdUserId == null) - { - var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") - { - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - } - } - var data = await _context.RetirementResignCancels.AsQueryable() - .Where(x => x.RetirementResign.Id == id) - .Select(p => new - { - p.Id, - p.prefix, - p.firstName, - p.lastName, - p.profileId, - p.Location, - p.SendDate, - p.ActiveDate, - p.Reason, - p.Remark, - p.Status, - salary = p.AmountOld, - p.ApproveReason, - p.RejectReason, - p.IsActive, - p.CreatedAt, - p.PositionTypeOld, - p.PositionLevelOld, - p.PositionNumberOld, - p.OrganizationPositionOld, - p.OligarchReject, - p.OligarchApproveReason, - p.OligarchRejectReason, - p.OligarchRejectDate, - p.CommanderReject, - p.CommanderApproveReason, - p.CommanderRejectReason, - p.CommanderRejectDate, - p.OfficerReject, - p.OfficerApproveReason, - p.OfficerRejectReason, - p.OfficerRejectDate, - p.RemarkHorizontal, - p.rootOld, - p.rootOldId, - p.rootShortNameOld, - p.child1Old, - p.child1OldId, - p.child1ShortNameOld, - p.child2Old, - p.child2OldId, - p.child2ShortNameOld, - p.child3Old, - p.child3OldId, - p.child3ShortNameOld, - p.child4Old, - p.child4OldId, - p.child4ShortNameOld, - p.PositionOld, - p.posMasterNoOld, - p.posTypeOldId, - p.posTypeNameOld, - p.posLevelOldId, - p.posLevelNameOld, - p.IsNoDebt, - p.IsNoBurden, - p.IsDiscipline, - p.CancelReason, - p.ApproveStep, - p.Group, - Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), - Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), - KeycloakUserId = p.CreatedUserId, - idMain = p.RetirementResign.Id, - statusMain = p.RetirementResign.Status, - RetirementResignDocs = p.RetirementResign.RetirementResignDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), - }) - .FirstOrDefaultAsync(); - if (data == null) - return Error(GlobalMessages.RetirementResignNotFound, 404); + // } + // else + // { + // var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "RETIREMENT_CANCEL"); + // var createdUserId = await _context.RetirementResignCancels.AsQueryable() + // .Where(x => x.CreatedUserId == UserId) + // .Where(x => x.RetirementResign.Id == id) + // .FirstOrDefaultAsync(); + // if (getWorkflow == false && createdUserId == null) + // { + // var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + // } + // var data = await _context.RetirementResignCancels.AsQueryable() + // .Where(x => x.RetirementResign.Id == id) + // .Select(p => new + // { + // p.Id, + // p.prefix, + // p.firstName, + // p.lastName, + // p.profileId, + // p.Location, + // p.SendDate, + // p.ActiveDate, + // p.Reason, + // p.Remark, + // p.Status, + // salary = p.AmountOld, + // p.ApproveReason, + // p.RejectReason, + // p.IsActive, + // p.CreatedAt, + // p.PositionTypeOld, + // p.PositionLevelOld, + // p.PositionNumberOld, + // p.OrganizationPositionOld, + // p.OligarchReject, + // p.OligarchApproveReason, + // p.OligarchRejectReason, + // p.OligarchRejectDate, + // p.CommanderReject, + // p.CommanderApproveReason, + // p.CommanderRejectReason, + // p.CommanderRejectDate, + // p.OfficerReject, + // p.OfficerApproveReason, + // p.OfficerRejectReason, + // p.OfficerRejectDate, + // p.RemarkHorizontal, + // p.rootOld, + // p.rootOldId, + // p.rootShortNameOld, + // p.child1Old, + // p.child1OldId, + // p.child1ShortNameOld, + // p.child2Old, + // p.child2OldId, + // p.child2ShortNameOld, + // p.child3Old, + // p.child3OldId, + // p.child3ShortNameOld, + // p.child4Old, + // p.child4OldId, + // p.child4ShortNameOld, + // p.PositionOld, + // p.posMasterNoOld, + // p.posTypeOldId, + // p.posTypeNameOld, + // p.posLevelOldId, + // p.posLevelNameOld, + // p.IsNoDebt, + // p.IsNoBurden, + // p.IsDiscipline, + // p.CancelReason, + // p.ApproveStep, + // p.Group, + // Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + // Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + // KeycloakUserId = p.CreatedUserId, + // idMain = p.RetirementResign.Id, + // statusMain = p.RetirementResign.Status, + // RetirementResignDocs = p.RetirementResign.RetirementResignDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), + // }) + // .FirstOrDefaultAsync(); + // if (data == null) + // return Error(GlobalMessages.RetirementResignNotFound, 404); - var retirementResignDocs = new List(); - foreach (var doc in data.RetirementResignDocs) - { - var _doc = new - { - FileName = doc.FileName, - PathName = await _documentService.ImagesPath(doc.Id), - doc.Id, - }; - retirementResignDocs.Add(_doc); - } - var _data = new - { - data.Id, - data.profileId, - data.prefix, - // data.PrefixId, - data.firstName, - data.lastName, - data.Location, - data.SendDate, - data.ActiveDate, - data.Reason, - data.Remark, - data.Status, - data.salary, - data.PositionTypeOld, - data.PositionLevelOld, - data.PositionNumberOld, - data.OrganizationPositionOld, - data.ApproveReason, - data.RejectReason, - data.IsActive, - data.CreatedAt, - data.OligarchReject, - data.OligarchApproveReason, - data.OligarchRejectReason, - data.OligarchRejectDate, - data.CommanderReject, - data.CommanderApproveReason, - data.CommanderRejectReason, - data.CommanderRejectDate, - data.OfficerReject, - data.OfficerApproveReason, - data.OfficerRejectReason, - data.OfficerRejectDate, - data.RemarkHorizontal, - data.rootOld, - data.rootOldId, - data.rootShortNameOld, - data.child1Old, - data.child1OldId, - data.child1ShortNameOld, - data.child2Old, - data.child2OldId, - data.child2ShortNameOld, - data.child3Old, - data.child3OldId, - data.child3ShortNameOld, - data.child4Old, - data.child4OldId, - data.child4ShortNameOld, - data.PositionOld, - data.posMasterNoOld, - data.posTypeOldId, - data.posTypeNameOld, - data.posLevelOldId, - data.posLevelNameOld, - data.IsNoDebt, - data.IsNoBurden, - data.IsDiscipline, - data.CancelReason, - data.idMain, - data.statusMain, - data.KeycloakUserId, - data.ApproveStep, - data.Group, - data.Approvers, - data.Commanders, - statusCancel = data.Status, - Docs = retirementResignDocs, - }; - return Success(_data); - } + // var retirementResignDocs = new List(); + // foreach (var doc in data.RetirementResignDocs) + // { + // var _doc = new + // { + // FileName = doc.FileName, + // PathName = await _documentService.ImagesPath(doc.Id), + // doc.Id, + // }; + // retirementResignDocs.Add(_doc); + // } + // var _data = new + // { + // data.Id, + // data.profileId, + // data.prefix, + // // data.PrefixId, + // data.firstName, + // data.lastName, + // data.Location, + // data.SendDate, + // data.ActiveDate, + // data.Reason, + // data.Remark, + // data.Status, + // data.salary, + // data.PositionTypeOld, + // data.PositionLevelOld, + // data.PositionNumberOld, + // data.OrganizationPositionOld, + // data.ApproveReason, + // data.RejectReason, + // data.IsActive, + // data.CreatedAt, + // data.OligarchReject, + // data.OligarchApproveReason, + // data.OligarchRejectReason, + // data.OligarchRejectDate, + // data.CommanderReject, + // data.CommanderApproveReason, + // data.CommanderRejectReason, + // data.CommanderRejectDate, + // data.OfficerReject, + // data.OfficerApproveReason, + // data.OfficerRejectReason, + // data.OfficerRejectDate, + // data.RemarkHorizontal, + // data.rootOld, + // data.rootOldId, + // data.rootShortNameOld, + // data.child1Old, + // data.child1OldId, + // data.child1ShortNameOld, + // data.child2Old, + // data.child2OldId, + // data.child2ShortNameOld, + // data.child3Old, + // data.child3OldId, + // data.child3ShortNameOld, + // data.child4Old, + // data.child4OldId, + // data.child4ShortNameOld, + // data.PositionOld, + // data.posMasterNoOld, + // data.posTypeOldId, + // data.posTypeNameOld, + // data.posLevelOldId, + // data.posLevelNameOld, + // data.IsNoDebt, + // data.IsNoBurden, + // data.IsDiscipline, + // data.CancelReason, + // data.idMain, + // data.statusMain, + // data.KeycloakUserId, + // data.ApproveStep, + // data.Group, + // data.Approvers, + // data.Commanders, + // statusCancel = data.Status, + // Docs = retirementResignDocs, + // }; + // return Success(_data); + // } } /// diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index d6cde482..d35c0af0 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -286,8 +286,8 @@ namespace BMA.EHR.Retirement.Service.Controllers if (dataMain == null) return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404); - if (dataMain.IsCancel != true) - { + // if (dataMain.IsCancel != true) + // { var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "SYS_RESIGN_EMP"); var createdUserId = await _context.RetirementResignEmployees.AsQueryable() .Where(x => x.Id == id) @@ -461,181 +461,181 @@ namespace BMA.EHR.Retirement.Service.Controllers }; return Success(_data); - } - else - { - var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "RETIREMENT_CANCEL_EMP"); - var createdUserId = await _context.RetirementResignEmployeeCancels.AsQueryable() - .Where(x => x.CreatedUserId == UserId) - .Where(x => x.RetirementResignEmployee.Id == id) - .FirstOrDefaultAsync(); - if (getWorkflow == false && createdUserId == null) - { - var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN_EMP"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") - { - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - } - } - var data = await _context.RetirementResignEmployeeCancels.AsQueryable() - .Where(x => x.RetirementResignEmployee.Id == id) - .Select(p => new - { - p.Id, - p.prefix, - p.firstName, - p.lastName, - p.profileId, - p.Location, - p.SendDate, - p.ActiveDate, - p.Reason, - p.Remark, - p.Status, - salary = p.AmountOld, - p.ApproveReason, - p.RejectReason, - p.IsActive, - p.CreatedAt, - p.PositionTypeOld, - p.PositionLevelOld, - p.PositionNumberOld, - p.OrganizationPositionOld, - p.OligarchReject, - p.OligarchApproveReason, - p.OligarchRejectReason, - p.OligarchRejectDate, - p.CommanderReject, - p.CommanderApproveReason, - p.CommanderRejectReason, - p.CommanderRejectDate, - p.OfficerReject, - p.OfficerApproveReason, - p.OfficerRejectReason, - p.OfficerRejectDate, - p.RemarkHorizontal, - p.rootOld, - p.rootOldId, - p.rootShortNameOld, - p.child1Old, - p.child1OldId, - p.child1ShortNameOld, - p.child2Old, - p.child2OldId, - p.child2ShortNameOld, - p.child3Old, - p.child3OldId, - p.child3ShortNameOld, - p.child4Old, - p.child4OldId, - p.child4ShortNameOld, - p.PositionOld, - p.posMasterNoOld, - p.posTypeOldId, - p.posTypeNameOld, - p.posLevelOldId, - p.posLevelNameOld, - p.IsNoDebt, - p.IsNoBurden, - p.IsDiscipline, - p.ApproveStep, - p.Group, - Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), - Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), - KeycloakUserId = p.CreatedUserId, - p.CancelReason, - idMain = p.RetirementResignEmployee.Id, - statusMain = p.RetirementResignEmployee.Status, - RetirementResignEmployeeDocs = p.RetirementResignEmployee.RetirementResignEmployeeDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), - }) - .FirstOrDefaultAsync(); - if (data == null) - return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404); + // } + // else + // { + // var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "RETIREMENT_CANCEL_EMP"); + // var createdUserId = await _context.RetirementResignEmployeeCancels.AsQueryable() + // .Where(x => x.CreatedUserId == UserId) + // .Where(x => x.RetirementResignEmployee.Id == id) + // .FirstOrDefaultAsync(); + // if (getWorkflow == false && createdUserId == null) + // { + // var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN_EMP"); + // var jsonData = JsonConvert.DeserializeObject(getPermission); + // if (jsonData["status"]?.ToString() != "200") + // { + // return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + // } + // } + // var data = await _context.RetirementResignEmployeeCancels.AsQueryable() + // .Where(x => x.RetirementResignEmployee.Id == id) + // .Select(p => new + // { + // p.Id, + // p.prefix, + // p.firstName, + // p.lastName, + // p.profileId, + // p.Location, + // p.SendDate, + // p.ActiveDate, + // p.Reason, + // p.Remark, + // p.Status, + // salary = p.AmountOld, + // p.ApproveReason, + // p.RejectReason, + // p.IsActive, + // p.CreatedAt, + // p.PositionTypeOld, + // p.PositionLevelOld, + // p.PositionNumberOld, + // p.OrganizationPositionOld, + // p.OligarchReject, + // p.OligarchApproveReason, + // p.OligarchRejectReason, + // p.OligarchRejectDate, + // p.CommanderReject, + // p.CommanderApproveReason, + // p.CommanderRejectReason, + // p.CommanderRejectDate, + // p.OfficerReject, + // p.OfficerApproveReason, + // p.OfficerRejectReason, + // p.OfficerRejectDate, + // p.RemarkHorizontal, + // p.rootOld, + // p.rootOldId, + // p.rootShortNameOld, + // p.child1Old, + // p.child1OldId, + // p.child1ShortNameOld, + // p.child2Old, + // p.child2OldId, + // p.child2ShortNameOld, + // p.child3Old, + // p.child3OldId, + // p.child3ShortNameOld, + // p.child4Old, + // p.child4OldId, + // p.child4ShortNameOld, + // p.PositionOld, + // p.posMasterNoOld, + // p.posTypeOldId, + // p.posTypeNameOld, + // p.posLevelOldId, + // p.posLevelNameOld, + // p.IsNoDebt, + // p.IsNoBurden, + // p.IsDiscipline, + // p.ApproveStep, + // p.Group, + // Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + // Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + // KeycloakUserId = p.CreatedUserId, + // p.CancelReason, + // idMain = p.RetirementResignEmployee.Id, + // statusMain = p.RetirementResignEmployee.Status, + // RetirementResignEmployeeDocs = p.RetirementResignEmployee.RetirementResignEmployeeDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), + // }) + // .FirstOrDefaultAsync(); + // if (data == null) + // return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404); - var retirementResignEmployeeDocs = new List(); - foreach (var doc in data.RetirementResignEmployeeDocs) - { - var _doc = new - { - FileName = doc.FileName, - PathName = await _documentService.ImagesPath(doc.Id), - doc.Id, - }; - retirementResignEmployeeDocs.Add(_doc); - } - var _data = new - { - data.Id, - data.profileId, - data.prefix, - data.firstName, - data.lastName, - data.Location, - data.SendDate, - data.ActiveDate, - data.Reason, - data.Remark, - data.Status, - data.salary, - data.PositionTypeOld, - data.PositionLevelOld, - data.PositionNumberOld, - data.OrganizationPositionOld, - data.ApproveReason, - data.RejectReason, - data.IsActive, - data.CreatedAt, - data.OligarchReject, - data.OligarchApproveReason, - data.OligarchRejectReason, - data.OligarchRejectDate, - data.CommanderReject, - data.CommanderApproveReason, - data.CommanderRejectReason, - data.CommanderRejectDate, - data.OfficerReject, - data.OfficerApproveReason, - data.OfficerRejectReason, - data.OfficerRejectDate, - data.RemarkHorizontal, - data.rootOld, - data.rootOldId, - data.rootShortNameOld, - data.child1Old, - data.child1OldId, - data.child1ShortNameOld, - data.child2Old, - data.child2OldId, - data.child2ShortNameOld, - data.child3Old, - data.child3OldId, - data.child3ShortNameOld, - data.child4Old, - data.child4OldId, - data.child4ShortNameOld, - data.PositionOld, - data.posMasterNoOld, - data.posTypeOldId, - data.posTypeNameOld, - data.posLevelOldId, - data.posLevelNameOld, - data.IsNoDebt, - data.IsNoBurden, - data.IsDiscipline, - data.CancelReason, - data.idMain, - data.statusMain, - data.ApproveStep, - data.Group, - data.KeycloakUserId, - data.Approvers, - data.Commanders, - statusCancel = data.Status, - Docs = retirementResignEmployeeDocs, - }; - return Success(_data); - } + // var retirementResignEmployeeDocs = new List(); + // foreach (var doc in data.RetirementResignEmployeeDocs) + // { + // var _doc = new + // { + // FileName = doc.FileName, + // PathName = await _documentService.ImagesPath(doc.Id), + // doc.Id, + // }; + // retirementResignEmployeeDocs.Add(_doc); + // } + // var _data = new + // { + // data.Id, + // data.profileId, + // data.prefix, + // data.firstName, + // data.lastName, + // data.Location, + // data.SendDate, + // data.ActiveDate, + // data.Reason, + // data.Remark, + // data.Status, + // data.salary, + // data.PositionTypeOld, + // data.PositionLevelOld, + // data.PositionNumberOld, + // data.OrganizationPositionOld, + // data.ApproveReason, + // data.RejectReason, + // data.IsActive, + // data.CreatedAt, + // data.OligarchReject, + // data.OligarchApproveReason, + // data.OligarchRejectReason, + // data.OligarchRejectDate, + // data.CommanderReject, + // data.CommanderApproveReason, + // data.CommanderRejectReason, + // data.CommanderRejectDate, + // data.OfficerReject, + // data.OfficerApproveReason, + // data.OfficerRejectReason, + // data.OfficerRejectDate, + // data.RemarkHorizontal, + // data.rootOld, + // data.rootOldId, + // data.rootShortNameOld, + // data.child1Old, + // data.child1OldId, + // data.child1ShortNameOld, + // data.child2Old, + // data.child2OldId, + // data.child2ShortNameOld, + // data.child3Old, + // data.child3OldId, + // data.child3ShortNameOld, + // data.child4Old, + // data.child4OldId, + // data.child4ShortNameOld, + // data.PositionOld, + // data.posMasterNoOld, + // data.posTypeOldId, + // data.posTypeNameOld, + // data.posLevelOldId, + // data.posLevelNameOld, + // data.IsNoDebt, + // data.IsNoBurden, + // data.IsDiscipline, + // data.CancelReason, + // data.idMain, + // data.statusMain, + // data.ApproveStep, + // data.Group, + // data.KeycloakUserId, + // data.Approvers, + // data.Commanders, + // statusCancel = data.Status, + // Docs = retirementResignEmployeeDocs, + // }; + // return Success(_data); + // } } /// From 588e13c3f5180cf8e7ca736b63bc07f77749cbc6 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 5 Jun 2025 15:36:44 +0700 Subject: [PATCH 367/879] change word --- .../Repositories/RetirementEmployeeRepository.cs | 12 ++++++------ .../Repositories/RetirementRepository.cs | 12 ++++++------ BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs index ca9b8821..a897cf46 100644 --- a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs @@ -625,7 +625,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = _firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.RetirementResignEmployee.Id}", }; _dbContext.Set().Add(_noti1); } @@ -643,7 +643,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.RetirementResignEmployee.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); @@ -731,7 +731,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.RetirementResignEmployee.Id}", }; _dbContext.Set().Add(noti); await _dbContext.SaveChangesAsync(); @@ -758,7 +758,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.RetirementResignEmployee.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); @@ -820,7 +820,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.RetirementResignEmployee.Id}", }; _dbContext.Set().Add(noti); @@ -848,7 +848,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.RetirementResignEmployee.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 1cc84895..6c6ba2f1 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -550,7 +550,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = _firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.RetirementResign.Id}", }; _dbContext.Set().Add(_noti1); } @@ -566,7 +566,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.RetirementResign.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); @@ -626,7 +626,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.RetirementResign.Id}", }; _dbContext.Set().Add(noti); await _dbContext.SaveChangesAsync(); @@ -650,7 +650,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.RetirementResign.Id}", }; _dbContext.Set().Add(noti1); } @@ -713,7 +713,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.RetirementResign.Id}", }; _dbContext.Set().Add(noti); @@ -742,7 +742,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.RetirementResign.Id}", }; _dbContext.Set().Add(noti1); } diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index a69dcf59..ebe2757d 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1746,7 +1746,7 @@ namespace BMA.EHR.Leave.Service.Controllers // Send Notification var noti1 = new Notification { - Body = $"āļāļēāļĢāļ‚āļ­āļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {data.FirstName} {data.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", + Body = $"āļ„āļģāļĢāđ‰āļ­āļ‡āļ‚āļ­āļĒāļāđ€āļĨāļīāļāļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ„āļļāļ“ {data.FirstName} {data.LastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = approver!.ProfileId, Type = "", Payload = $"{URL}/leave/detail/{id}", From afb2cfa1897089bbe046040bb6c7288f84f77a60 Mon Sep 17 00:00:00 2001 From: kittapath <> Date: Wed, 11 Jun 2025 10:58:47 +0700 Subject: [PATCH 368/879] remove workflow retire --- .../RetirementEmployeeRepository.cs | 12 +- .../Repositories/RetirementRepository.cs | 12 +- .../Controllers/RetirementResignController.cs | 716 ++++++++++++----- .../RetirementResignEmployeeController.cs | 755 +++++++++++++----- 4 files changed, 1070 insertions(+), 425 deletions(-) diff --git a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs index a897cf46..d20589c5 100644 --- a/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementEmployeeRepository.cs @@ -625,7 +625,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = _firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(_noti1); } @@ -643,7 +643,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); @@ -731,7 +731,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti); await _dbContext.SaveChangesAsync(); @@ -758,7 +758,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); @@ -820,7 +820,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti); @@ -848,7 +848,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.RetirementResignEmployee.Id}", + Payload = $"{URL}/retirement/resign-employee-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); diff --git a/BMA.EHR.Application/Repositories/RetirementRepository.cs b/BMA.EHR.Application/Repositories/RetirementRepository.cs index 6c6ba2f1..b03a2afb 100644 --- a/BMA.EHR.Application/Repositories/RetirementRepository.cs +++ b/BMA.EHR.Application/Repositories/RetirementRepository.cs @@ -550,7 +550,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = _firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail-reject/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(_noti1); } @@ -566,7 +566,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail-reject/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti1); await _dbContext.SaveChangesAsync(); @@ -626,7 +626,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail-reject/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti); await _dbContext.SaveChangesAsync(); @@ -650,7 +650,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail-reject/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti1); } @@ -713,7 +713,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = nextApprover!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail-reject/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti); @@ -742,7 +742,7 @@ namespace BMA.EHR.Application.Repositories Body = $"āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļāļĨāļēāļ­āļ­āļāļ‚āļ­āļ‡āļ„āļļāļ“ {rawData.firstName} {rawData.lastName} āļĢāļ­āļĢāļąāļšāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļīāļˆāļēāļāļ„āļļāļ“", ReceiverUserId = firstCommander!.ProfileId, Type = "", - Payload = $"{URL}/retirement/resign-detail-reject/{rawData.RetirementResign.Id}", + Payload = $"{URL}/retirement/resign-detail-reject/{rawData.Id}", }; _dbContext.Set().Add(noti1); } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 5fd88ee9..ab6636b3 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -349,179 +349,165 @@ namespace BMA.EHR.Retirement.Service.Controllers return Error(GlobalMessages.RetirementResignNotFound, 404); // if (dataMain.IsCancel != true) // { - var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "SYS_RESIGN"); - var createdUserId = await _context.RetirementResigns.AsQueryable() - .Where(x => x.Id == id) - .Where(x => x.CreatedUserId == UserId) - .FirstOrDefaultAsync(); - if (getWorkflow == false && createdUserId == null) - { - var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") - { - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - } - } - var data = await _context.RetirementResigns.AsQueryable() - .Where(x => x.Id == id) - .Select(p => new - { - p.Id, - p.prefix, - p.firstName, - p.lastName, - p.profileId, - p.Location, - p.SendDate, - p.ActiveDate, - p.Reason, - p.ReasonResign, - p.Remark, - p.Status, - salary = p.AmountOld, - p.ApproveReason, - p.RejectReason, - p.IsActive, - p.CreatedAt, - p.PositionTypeOld, - p.PositionLevelOld, - p.PositionNumberOld, - p.OrganizationPositionOld, - p.OligarchReject, - p.OligarchApproveReason, - p.OligarchRejectReason, - p.OligarchRejectDate, - p.CommanderReject, - p.CommanderApproveReason, - p.CommanderRejectReason, - p.CommanderRejectDate, - p.OfficerReject, - p.OfficerApproveReason, - p.OfficerRejectReason, - p.OfficerRejectDate, - p.RemarkHorizontal, - p.rootOld, - p.rootOldId, - p.rootShortNameOld, - p.child1Old, - p.child1OldId, - p.child1ShortNameOld, - p.child2Old, - p.child2OldId, - p.child2ShortNameOld, - p.child3Old, - p.child3OldId, - p.child3ShortNameOld, - p.child4Old, - p.child4OldId, - p.child4ShortNameOld, - p.PositionOld, - p.posMasterNoOld, - p.posTypeOldId, - p.posTypeNameOld, - p.posLevelOldId, - p.posLevelNameOld, - p.IsNoDebt, - p.IsNoBurden, - p.IsDiscipline, - p.CancelReason, - p.ApproveStep, - p.Group, - Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), - Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), - KeycloakUserId = p.CreatedUserId, - RetirementResignCancels = p.RetirementResignCancels.FirstOrDefault(), - RetirementResignDocs = p.RetirementResignDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), - }) - .FirstOrDefaultAsync(); - if (data == null) - return Error(GlobalMessages.RetirementResignNotFound, 404); + var data = await _context.RetirementResigns.AsQueryable() + .Where(x => x.Id == id) + .Select(p => new + { + p.Id, + p.prefix, + p.firstName, + p.lastName, + p.profileId, + p.Location, + p.SendDate, + p.ActiveDate, + p.Reason, + p.ReasonResign, + p.Remark, + p.Status, + salary = p.AmountOld, + p.ApproveReason, + p.RejectReason, + p.IsActive, + p.CreatedAt, + p.PositionTypeOld, + p.PositionLevelOld, + p.PositionNumberOld, + p.OrganizationPositionOld, + p.OligarchReject, + p.OligarchApproveReason, + p.OligarchRejectReason, + p.OligarchRejectDate, + p.CommanderReject, + p.CommanderApproveReason, + p.CommanderRejectReason, + p.CommanderRejectDate, + p.OfficerReject, + p.OfficerApproveReason, + p.OfficerRejectReason, + p.OfficerRejectDate, + p.RemarkHorizontal, + p.rootOld, + p.rootOldId, + p.rootShortNameOld, + p.child1Old, + p.child1OldId, + p.child1ShortNameOld, + p.child2Old, + p.child2OldId, + p.child2ShortNameOld, + p.child3Old, + p.child3OldId, + p.child3ShortNameOld, + p.child4Old, + p.child4OldId, + p.child4ShortNameOld, + p.PositionOld, + p.posMasterNoOld, + p.posTypeOldId, + p.posTypeNameOld, + p.posLevelOldId, + p.posLevelNameOld, + p.IsNoDebt, + p.IsNoBurden, + p.IsDiscipline, + p.CancelReason, + p.ApproveStep, + p.Group, + Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + KeycloakUserId = p.CreatedUserId, + RetirementResignCancels = p.RetirementResignCancels.FirstOrDefault(), + RetirementResignDocs = p.RetirementResignDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), + }) + .FirstOrDefaultAsync(); + if (data == null) + return Error(GlobalMessages.RetirementResignNotFound, 404); - var retirementResignDocs = new List(); - foreach (var doc in data.RetirementResignDocs) + var retirementResignDocs = new List(); + foreach (var doc in data.RetirementResignDocs) + { + var _doc = new { - var _doc = new - { - FileName = doc.FileName, - PathName = await _documentService.ImagesPath(doc.Id), - doc.Id, - }; - retirementResignDocs.Add(_doc); - } - var _data = new - { - data.Id, - data.profileId, - data.prefix, - data.firstName, - data.lastName, - data.Location, - data.SendDate, - data.ActiveDate, - data.Reason, - data.ReasonResign, - data.Remark, - data.Status, - data.salary, - data.PositionTypeOld, - data.PositionLevelOld, - data.PositionNumberOld, - data.OrganizationPositionOld, - data.ApproveReason, - data.RejectReason, - data.IsActive, - data.CreatedAt, - data.OligarchReject, - data.OligarchApproveReason, - data.OligarchRejectReason, - data.OligarchRejectDate, - data.CommanderReject, - data.CommanderApproveReason, - data.CommanderRejectReason, - data.CommanderRejectDate, - data.OfficerReject, - data.OfficerApproveReason, - data.OfficerRejectReason, - data.OfficerRejectDate, - data.RemarkHorizontal, - data.rootOld, - data.rootOldId, - data.rootShortNameOld, - data.child1Old, - data.child1OldId, - data.child1ShortNameOld, - data.child2Old, - data.child2OldId, - data.child2ShortNameOld, - data.child3Old, - data.child3OldId, - data.child3ShortNameOld, - data.child4Old, - data.child4OldId, - data.child4ShortNameOld, - data.PositionOld, - data.posMasterNoOld, - data.posTypeOldId, - data.posTypeNameOld, - data.posLevelOldId, - data.posLevelNameOld, - data.IsNoDebt, - data.IsNoBurden, - data.IsDiscipline, - data.CancelReason, - data.KeycloakUserId, - data.Approvers, - data.Commanders, - data.ApproveStep, - data.Group, - idCancel = data.RetirementResignCancels?.Id ?? null, - statusCancel = data.RetirementResignCancels?.Status ?? null, - statusMain = data.Status == "CANCEL" ? "DONECANCEL" : data.Status, - Docs = retirementResignDocs, + FileName = doc.FileName, + PathName = await _documentService.ImagesPath(doc.Id), + doc.Id, }; + retirementResignDocs.Add(_doc); + } + var _data = new + { + data.Id, + data.profileId, + data.prefix, + data.firstName, + data.lastName, + data.Location, + data.SendDate, + data.ActiveDate, + data.Reason, + data.ReasonResign, + data.Remark, + data.Status, + data.salary, + data.PositionTypeOld, + data.PositionLevelOld, + data.PositionNumberOld, + data.OrganizationPositionOld, + data.ApproveReason, + data.RejectReason, + data.IsActive, + data.CreatedAt, + data.OligarchReject, + data.OligarchApproveReason, + data.OligarchRejectReason, + data.OligarchRejectDate, + data.CommanderReject, + data.CommanderApproveReason, + data.CommanderRejectReason, + data.CommanderRejectDate, + data.OfficerReject, + data.OfficerApproveReason, + data.OfficerRejectReason, + data.OfficerRejectDate, + data.RemarkHorizontal, + data.rootOld, + data.rootOldId, + data.rootShortNameOld, + data.child1Old, + data.child1OldId, + data.child1ShortNameOld, + data.child2Old, + data.child2OldId, + data.child2ShortNameOld, + data.child3Old, + data.child3OldId, + data.child3ShortNameOld, + data.child4Old, + data.child4OldId, + data.child4ShortNameOld, + data.PositionOld, + data.posMasterNoOld, + data.posTypeOldId, + data.posTypeNameOld, + data.posLevelOldId, + data.posLevelNameOld, + data.IsNoDebt, + data.IsNoBurden, + data.IsDiscipline, + data.CancelReason, + data.KeycloakUserId, + data.Approvers, + data.Commanders, + data.ApproveStep, + data.Group, + idCancel = data.RetirementResignCancels?.Id ?? null, + statusCancel = data.RetirementResignCancels?.Status ?? null, + statusMain = data.Status == "CANCEL" ? "DONECANCEL" : data.Status, + Docs = retirementResignDocs, + }; - return Success(_data); + return Success(_data); // } // else // { @@ -700,6 +686,360 @@ namespace BMA.EHR.Retirement.Service.Controllers // } } + /// + /// get āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĨāļēāļ­āļ­āļ + /// + /// Id āļĨāļēāļ­āļ­āļ + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("user/{id:length(36)}")] + public async Task> GetDetailByUsers(Guid id) + { + var dataMain = await _context.RetirementResigns.AsQueryable() + .Where(x => x.Id == id) + .Select(p => new + { + p.IsCancel, + }) + .FirstOrDefaultAsync(); + if (dataMain == null) + return Error(GlobalMessages.RetirementResignNotFound, 404); + if (dataMain.IsCancel != true) + { + var data = await _context.RetirementResigns.AsQueryable() + .Where(x => x.Id == id) + .Select(p => new + { + p.Id, + p.prefix, + p.firstName, + p.lastName, + p.profileId, + p.Location, + p.SendDate, + p.ActiveDate, + p.Reason, + p.ReasonResign, + p.Remark, + p.Status, + salary = p.AmountOld, + p.ApproveReason, + p.RejectReason, + p.IsActive, + p.CreatedAt, + p.PositionTypeOld, + p.PositionLevelOld, + p.PositionNumberOld, + p.OrganizationPositionOld, + p.OligarchReject, + p.OligarchApproveReason, + p.OligarchRejectReason, + p.OligarchRejectDate, + p.CommanderReject, + p.CommanderApproveReason, + p.CommanderRejectReason, + p.CommanderRejectDate, + p.OfficerReject, + p.OfficerApproveReason, + p.OfficerRejectReason, + p.OfficerRejectDate, + p.RemarkHorizontal, + p.rootOld, + p.rootOldId, + p.rootShortNameOld, + p.child1Old, + p.child1OldId, + p.child1ShortNameOld, + p.child2Old, + p.child2OldId, + p.child2ShortNameOld, + p.child3Old, + p.child3OldId, + p.child3ShortNameOld, + p.child4Old, + p.child4OldId, + p.child4ShortNameOld, + p.PositionOld, + p.posMasterNoOld, + p.posTypeOldId, + p.posTypeNameOld, + p.posLevelOldId, + p.posLevelNameOld, + p.IsNoDebt, + p.IsNoBurden, + p.IsDiscipline, + p.CancelReason, + p.ApproveStep, + p.Group, + Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + CancelApprovers = new List(), + CancelCommanders = new List(), + KeycloakUserId = p.CreatedUserId, + RetirementResignCancels = p.RetirementResignCancels.FirstOrDefault(), + RetirementResignDocs = p.RetirementResignDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), + }) + .FirstOrDefaultAsync(); + if (data == null) + return Error(GlobalMessages.RetirementResignNotFound, 404); + + var retirementResignDocs = new List(); + foreach (var doc in data.RetirementResignDocs) + { + var _doc = new + { + FileName = doc.FileName, + PathName = await _documentService.ImagesPath(doc.Id), + doc.Id, + }; + retirementResignDocs.Add(_doc); + } + var _data = new + { + data.Id, + data.profileId, + data.prefix, + data.firstName, + data.lastName, + data.Location, + data.SendDate, + data.ActiveDate, + data.Reason, + data.ReasonResign, + data.Remark, + data.Status, + data.salary, + data.PositionTypeOld, + data.PositionLevelOld, + data.PositionNumberOld, + data.OrganizationPositionOld, + data.ApproveReason, + data.RejectReason, + data.IsActive, + data.CreatedAt, + data.OligarchReject, + data.OligarchApproveReason, + data.OligarchRejectReason, + data.OligarchRejectDate, + data.CommanderReject, + data.CommanderApproveReason, + data.CommanderRejectReason, + data.CommanderRejectDate, + data.OfficerReject, + data.OfficerApproveReason, + data.OfficerRejectReason, + data.OfficerRejectDate, + data.RemarkHorizontal, + data.rootOld, + data.rootOldId, + data.rootShortNameOld, + data.child1Old, + data.child1OldId, + data.child1ShortNameOld, + data.child2Old, + data.child2OldId, + data.child2ShortNameOld, + data.child3Old, + data.child3OldId, + data.child3ShortNameOld, + data.child4Old, + data.child4OldId, + data.child4ShortNameOld, + data.PositionOld, + data.posMasterNoOld, + data.posTypeOldId, + data.posTypeNameOld, + data.posLevelOldId, + data.posLevelNameOld, + data.IsNoDebt, + data.IsNoBurden, + data.IsDiscipline, + data.CancelReason, + data.KeycloakUserId, + data.Approvers, + data.Commanders, + data.ApproveStep, + data.CancelApprovers, + data.CancelCommanders, + data.Group, + idCancel = data.RetirementResignCancels?.Id ?? null, + statusCancel = data.RetirementResignCancels?.Status ?? null, + statusMain = data.Status == "CANCEL" ? "DONECANCEL" : data.Status, + Docs = retirementResignDocs, + }; + + return Success(_data); + } + else + { + var data = await _context.RetirementResignCancels.AsQueryable() + .Where(x => x.RetirementResign.Id == id) + .Select(p => new + { + p.Id, + p.prefix, + p.firstName, + p.lastName, + p.profileId, + p.Location, + p.SendDate, + p.ActiveDate, + p.Reason, + p.Remark, + p.Status, + salary = p.AmountOld, + p.ApproveReason, + p.RejectReason, + p.IsActive, + p.CreatedAt, + p.PositionTypeOld, + p.PositionLevelOld, + p.PositionNumberOld, + p.OrganizationPositionOld, + p.OligarchReject, + p.OligarchApproveReason, + p.OligarchRejectReason, + p.OligarchRejectDate, + p.CommanderReject, + p.CommanderApproveReason, + p.CommanderRejectReason, + p.CommanderRejectDate, + p.OfficerReject, + p.OfficerApproveReason, + p.OfficerRejectReason, + p.OfficerRejectDate, + p.RemarkHorizontal, + p.rootOld, + p.rootOldId, + p.rootShortNameOld, + p.child1Old, + p.child1OldId, + p.child1ShortNameOld, + p.child2Old, + p.child2OldId, + p.child2ShortNameOld, + p.child3Old, + p.child3OldId, + p.child3ShortNameOld, + p.child4Old, + p.child4OldId, + p.child4ShortNameOld, + p.PositionOld, + p.posMasterNoOld, + p.posTypeOldId, + p.posTypeNameOld, + p.posLevelOldId, + p.posLevelNameOld, + p.IsNoDebt, + p.IsNoBurden, + p.IsDiscipline, + p.CancelReason, + p.ApproveStep, + p.Group, + Approvers = p.RetirementResign.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + Commanders = p.RetirementResign.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + CancelApprovers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + CancelCommanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + KeycloakUserId = p.CreatedUserId, + idMain = p.RetirementResign.Id, + statusMain = p.RetirementResign.Status, + RetirementResignDocs = p.RetirementResign.RetirementResignDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), + }) + .FirstOrDefaultAsync(); + if (data == null) + return Error(GlobalMessages.RetirementResignNotFound, 404); + + var retirementResignDocs = new List(); + foreach (var doc in data.RetirementResignDocs) + { + var _doc = new + { + FileName = doc.FileName, + PathName = await _documentService.ImagesPath(doc.Id), + doc.Id, + }; + retirementResignDocs.Add(_doc); + } + var _data = new + { + data.Id, + data.profileId, + data.prefix, + // data.PrefixId, + data.firstName, + data.lastName, + data.Location, + data.SendDate, + data.ActiveDate, + data.Reason, + data.Remark, + data.Status, + data.salary, + data.PositionTypeOld, + data.PositionLevelOld, + data.PositionNumberOld, + data.OrganizationPositionOld, + data.ApproveReason, + data.RejectReason, + data.IsActive, + data.CreatedAt, + data.OligarchReject, + data.OligarchApproveReason, + data.OligarchRejectReason, + data.OligarchRejectDate, + data.CommanderReject, + data.CommanderApproveReason, + data.CommanderRejectReason, + data.CommanderRejectDate, + data.OfficerReject, + data.OfficerApproveReason, + data.OfficerRejectReason, + data.OfficerRejectDate, + data.RemarkHorizontal, + data.rootOld, + data.rootOldId, + data.rootShortNameOld, + data.child1Old, + data.child1OldId, + data.child1ShortNameOld, + data.child2Old, + data.child2OldId, + data.child2ShortNameOld, + data.child3Old, + data.child3OldId, + data.child3ShortNameOld, + data.child4Old, + data.child4OldId, + data.child4ShortNameOld, + data.PositionOld, + data.posMasterNoOld, + data.posTypeOldId, + data.posTypeNameOld, + data.posLevelOldId, + data.posLevelNameOld, + data.IsNoDebt, + data.IsNoBurden, + data.IsDiscipline, + data.CancelReason, + data.idMain, + data.statusMain, + data.KeycloakUserId, + data.ApproveStep, + data.Group, + data.Approvers, + data.Commanders, + data.CancelApprovers, + data.CancelCommanders, + statusCancel = data.Status, + Docs = retirementResignDocs, + }; + return Success(_data); + } + } + /// /// get āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĨāļēāļ­āļ­āļ /// @@ -712,19 +1052,6 @@ namespace BMA.EHR.Retirement.Service.Controllers [HttpGet("cancel/{id:length(36)}")] public async Task> GetDetailByUserCancel(Guid id) { - var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "RETIREMENT_CANCEL"); - var createdUserId = await _context.RetirementResignCancels.AsQueryable() - .Where(x => x.CreatedUserId == UserId) - .FirstOrDefaultAsync(); - if (getWorkflow == false && createdUserId == null) - { - var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") - { - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - } - } var data = await _context.RetirementResignCancels.AsQueryable() .Where(x => x.Id == id) .Select(p => new @@ -1026,19 +1353,6 @@ namespace BMA.EHR.Retirement.Service.Controllers } } await _context.SaveChangesAsync(); - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _res = await client.PostAsJsonAsync($"{_configuration["API"]}/org/workflow/add-workflow", new - { - refId = retirementResign.Id, - sysName = "SYS_RESIGN", - posLevelName = retirementResign.PositionLevelOld, - posTypeName = retirementResign.PositionTypeOld, - fullName = $"{retirementResign.prefix}{retirementResign.firstName} {retirementResign.lastName}" - }); - } return Success(retirementResign); } @@ -1304,18 +1618,6 @@ namespace BMA.EHR.Retirement.Service.Controllers } await _context.AddRangeAsync(addList); await _context.SaveChangesAsync(); - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _res = await client.PostAsJsonAsync($"{_configuration["API"]}/org/workflow/add-workflow", new - { - refId = retirementResignCancel.Id, - sysName = "RETIREMENT_CANCEL", - posLevelName = retirementResignCancel.PositionLevelOld, - posTypeName = retirementResignCancel.PositionTypeOld, - }); - } updated.IsCancel = true; updated.Status = "CANCELING"; } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index d35c0af0..82320216 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -288,179 +288,165 @@ namespace BMA.EHR.Retirement.Service.Controllers // if (dataMain.IsCancel != true) // { - var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "SYS_RESIGN_EMP"); - var createdUserId = await _context.RetirementResignEmployees.AsQueryable() - .Where(x => x.Id == id) - .Where(x => x.CreatedUserId == UserId) - .FirstOrDefaultAsync(); - if (getWorkflow == false && createdUserId == null) - { - var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN_EMP"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") - { - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - } - } - var data = await _context.RetirementResignEmployees.AsQueryable() - .Where(x => x.Id == id) - .Select(p => new - { - p.Id, - p.prefix, - p.firstName, - p.lastName, - p.profileId, - p.Location, - p.SendDate, - p.ActiveDate, - p.Reason, - p.ReasonResign, - p.Remark, - p.Status, - salary = p.AmountOld, - p.ApproveReason, - p.RejectReason, - p.IsActive, - p.CreatedAt, - p.PositionTypeOld, - p.PositionLevelOld, - p.PositionNumberOld, - p.OrganizationPositionOld, - p.OligarchReject, - p.OligarchApproveReason, - p.OligarchRejectReason, - p.OligarchRejectDate, - p.CommanderReject, - p.CommanderApproveReason, - p.CommanderRejectReason, - p.CommanderRejectDate, - p.OfficerReject, - p.OfficerApproveReason, - p.OfficerRejectReason, - p.OfficerRejectDate, - p.RemarkHorizontal, - p.rootOld, - p.rootOldId, - p.rootShortNameOld, - p.child1Old, - p.child1OldId, - p.child1ShortNameOld, - p.child2Old, - p.child2OldId, - p.child2ShortNameOld, - p.child3Old, - p.child3OldId, - p.child3ShortNameOld, - p.child4Old, - p.child4OldId, - p.child4ShortNameOld, - p.PositionOld, - p.posMasterNoOld, - p.posTypeOldId, - p.posTypeNameOld, - p.posLevelOldId, - p.posLevelNameOld, - p.IsNoDebt, - p.IsNoBurden, - p.IsDiscipline, - p.CancelReason, - p.ApproveStep, - p.Group, - Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), - Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), - KeycloakUserId = p.CreatedUserId, - RetirementResignEmployeeCancels = p.RetirementResignEmployeeCancels.FirstOrDefault(), - RetirementResignEmployeeDocs = p.RetirementResignEmployeeDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), - }) - .FirstOrDefaultAsync(); - if (data == null) - return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404); + var data = await _context.RetirementResignEmployees.AsQueryable() + .Where(x => x.Id == id) + .Select(p => new + { + p.Id, + p.prefix, + p.firstName, + p.lastName, + p.profileId, + p.Location, + p.SendDate, + p.ActiveDate, + p.Reason, + p.ReasonResign, + p.Remark, + p.Status, + salary = p.AmountOld, + p.ApproveReason, + p.RejectReason, + p.IsActive, + p.CreatedAt, + p.PositionTypeOld, + p.PositionLevelOld, + p.PositionNumberOld, + p.OrganizationPositionOld, + p.OligarchReject, + p.OligarchApproveReason, + p.OligarchRejectReason, + p.OligarchRejectDate, + p.CommanderReject, + p.CommanderApproveReason, + p.CommanderRejectReason, + p.CommanderRejectDate, + p.OfficerReject, + p.OfficerApproveReason, + p.OfficerRejectReason, + p.OfficerRejectDate, + p.RemarkHorizontal, + p.rootOld, + p.rootOldId, + p.rootShortNameOld, + p.child1Old, + p.child1OldId, + p.child1ShortNameOld, + p.child2Old, + p.child2OldId, + p.child2ShortNameOld, + p.child3Old, + p.child3OldId, + p.child3ShortNameOld, + p.child4Old, + p.child4OldId, + p.child4ShortNameOld, + p.PositionOld, + p.posMasterNoOld, + p.posTypeOldId, + p.posTypeNameOld, + p.posLevelOldId, + p.posLevelNameOld, + p.IsNoDebt, + p.IsNoBurden, + p.IsDiscipline, + p.CancelReason, + p.ApproveStep, + p.Group, + Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + KeycloakUserId = p.CreatedUserId, + RetirementResignEmployeeCancels = p.RetirementResignEmployeeCancels.FirstOrDefault(), + RetirementResignEmployeeDocs = p.RetirementResignEmployeeDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), + }) + .FirstOrDefaultAsync(); + if (data == null) + return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404); - var retirementResignEmployeeDocs = new List(); - foreach (var doc in data.RetirementResignEmployeeDocs) + var retirementResignEmployeeDocs = new List(); + foreach (var doc in data.RetirementResignEmployeeDocs) + { + var _doc = new { - var _doc = new - { - FileName = doc.FileName, - PathName = await _documentService.ImagesPath(doc.Id), - doc.Id, - }; - retirementResignEmployeeDocs.Add(_doc); - } - var _data = new - { - data.Id, - data.profileId, - data.prefix, - data.firstName, - data.lastName, - data.Location, - data.SendDate, - data.ActiveDate, - data.Reason, - data.ReasonResign, - data.Remark, - data.Status, - data.salary, - data.PositionTypeOld, - data.PositionLevelOld, - data.PositionNumberOld, - data.OrganizationPositionOld, - data.ApproveReason, - data.RejectReason, - data.IsActive, - data.CreatedAt, - data.OligarchReject, - data.OligarchApproveReason, - data.OligarchRejectReason, - data.OligarchRejectDate, - data.CommanderReject, - data.CommanderApproveReason, - data.CommanderRejectReason, - data.CommanderRejectDate, - data.OfficerReject, - data.OfficerApproveReason, - data.OfficerRejectReason, - data.OfficerRejectDate, - data.RemarkHorizontal, - data.rootOld, - data.rootOldId, - data.rootShortNameOld, - data.child1Old, - data.child1OldId, - data.child1ShortNameOld, - data.child2Old, - data.child2OldId, - data.child2ShortNameOld, - data.child3Old, - data.child3OldId, - data.child3ShortNameOld, - data.child4Old, - data.child4OldId, - data.child4ShortNameOld, - data.PositionOld, - data.posMasterNoOld, - data.posTypeOldId, - data.posTypeNameOld, - data.posLevelOldId, - data.posLevelNameOld, - data.IsNoDebt, - data.IsNoBurden, - data.IsDiscipline, - data.CancelReason, - data.KeycloakUserId, - data.Approvers, - data.Commanders, - data.ApproveStep, - data.Group, - idCancel = data.RetirementResignEmployeeCancels?.Id ?? Guid.Empty, - statusCancel = data.RetirementResignEmployeeCancels?.Status ?? null, - statusMain = data.Status == "CANCEL" ? "DONECANCEL" : data.Status, - Docs = retirementResignEmployeeDocs, + FileName = doc.FileName, + PathName = await _documentService.ImagesPath(doc.Id), + doc.Id, }; + retirementResignEmployeeDocs.Add(_doc); + } + var _data = new + { + data.Id, + data.profileId, + data.prefix, + data.firstName, + data.lastName, + data.Location, + data.SendDate, + data.ActiveDate, + data.Reason, + data.ReasonResign, + data.Remark, + data.Status, + data.salary, + data.PositionTypeOld, + data.PositionLevelOld, + data.PositionNumberOld, + data.OrganizationPositionOld, + data.ApproveReason, + data.RejectReason, + data.IsActive, + data.CreatedAt, + data.OligarchReject, + data.OligarchApproveReason, + data.OligarchRejectReason, + data.OligarchRejectDate, + data.CommanderReject, + data.CommanderApproveReason, + data.CommanderRejectReason, + data.CommanderRejectDate, + data.OfficerReject, + data.OfficerApproveReason, + data.OfficerRejectReason, + data.OfficerRejectDate, + data.RemarkHorizontal, + data.rootOld, + data.rootOldId, + data.rootShortNameOld, + data.child1Old, + data.child1OldId, + data.child1ShortNameOld, + data.child2Old, + data.child2OldId, + data.child2ShortNameOld, + data.child3Old, + data.child3OldId, + data.child3ShortNameOld, + data.child4Old, + data.child4OldId, + data.child4ShortNameOld, + data.PositionOld, + data.posMasterNoOld, + data.posTypeOldId, + data.posTypeNameOld, + data.posLevelOldId, + data.posLevelNameOld, + data.IsNoDebt, + data.IsNoBurden, + data.IsDiscipline, + data.CancelReason, + data.KeycloakUserId, + data.Approvers, + data.Commanders, + data.ApproveStep, + data.Group, + idCancel = data.RetirementResignEmployeeCancels?.Id ?? Guid.Empty, + statusCancel = data.RetirementResignEmployeeCancels?.Status ?? null, + statusMain = data.Status == "CANCEL" ? "DONECANCEL" : data.Status, + Docs = retirementResignEmployeeDocs, + }; - return Success(_data); + return Success(_data); // } // else // { @@ -638,6 +624,376 @@ namespace BMA.EHR.Retirement.Service.Controllers // } } + /// + /// get āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĨāļēāļ­āļ­āļ + /// + /// Id āļĨāļēāļ­āļ­āļ + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpGet("user/{id:length(36)}")] + public async Task> GetDetailByUsers(Guid id) + { + var dataMain = await _context.RetirementResignEmployees.AsQueryable() + .Where(x => x.Id == id) + .Select(p => new + { + p.IsCancel, + }) + .FirstOrDefaultAsync(); + if (dataMain == null) + return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404); + + if (dataMain.IsCancel != true) + { + var createdUserId = await _context.RetirementResignEmployees.AsQueryable() + .Where(x => x.Id == id) + .Where(x => x.CreatedUserId == UserId) + .FirstOrDefaultAsync(); + var data = await _context.RetirementResignEmployees.AsQueryable() + .Where(x => x.Id == id) + .Select(p => new + { + p.Id, + p.prefix, + p.firstName, + p.lastName, + p.profileId, + p.Location, + p.SendDate, + p.ActiveDate, + p.Reason, + p.ReasonResign, + p.Remark, + p.Status, + salary = p.AmountOld, + p.ApproveReason, + p.RejectReason, + p.IsActive, + p.CreatedAt, + p.PositionTypeOld, + p.PositionLevelOld, + p.PositionNumberOld, + p.OrganizationPositionOld, + p.OligarchReject, + p.OligarchApproveReason, + p.OligarchRejectReason, + p.OligarchRejectDate, + p.CommanderReject, + p.CommanderApproveReason, + p.CommanderRejectReason, + p.CommanderRejectDate, + p.OfficerReject, + p.OfficerApproveReason, + p.OfficerRejectReason, + p.OfficerRejectDate, + p.RemarkHorizontal, + p.rootOld, + p.rootOldId, + p.rootShortNameOld, + p.child1Old, + p.child1OldId, + p.child1ShortNameOld, + p.child2Old, + p.child2OldId, + p.child2ShortNameOld, + p.child3Old, + p.child3OldId, + p.child3ShortNameOld, + p.child4Old, + p.child4OldId, + p.child4ShortNameOld, + p.PositionOld, + p.posMasterNoOld, + p.posTypeOldId, + p.posTypeNameOld, + p.posLevelOldId, + p.posLevelNameOld, + p.IsNoDebt, + p.IsNoBurden, + p.IsDiscipline, + p.CancelReason, + p.ApproveStep, + p.Group, + Approvers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + Commanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + CancelApprovers = new List(), + CancelCommanders = new List(), + KeycloakUserId = p.CreatedUserId, + RetirementResignEmployeeCancels = p.RetirementResignEmployeeCancels.FirstOrDefault(), + RetirementResignEmployeeDocs = p.RetirementResignEmployeeDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), + }) + .FirstOrDefaultAsync(); + if (data == null) + return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404); + + var retirementResignEmployeeDocs = new List(); + foreach (var doc in data.RetirementResignEmployeeDocs) + { + var _doc = new + { + FileName = doc.FileName, + PathName = await _documentService.ImagesPath(doc.Id), + doc.Id, + }; + retirementResignEmployeeDocs.Add(_doc); + } + var _data = new + { + data.Id, + data.profileId, + data.prefix, + data.firstName, + data.lastName, + data.Location, + data.SendDate, + data.ActiveDate, + data.Reason, + data.ReasonResign, + data.Remark, + data.Status, + data.salary, + data.PositionTypeOld, + data.PositionLevelOld, + data.PositionNumberOld, + data.OrganizationPositionOld, + data.ApproveReason, + data.RejectReason, + data.IsActive, + data.CreatedAt, + data.OligarchReject, + data.OligarchApproveReason, + data.OligarchRejectReason, + data.OligarchRejectDate, + data.CommanderReject, + data.CommanderApproveReason, + data.CommanderRejectReason, + data.CommanderRejectDate, + data.OfficerReject, + data.OfficerApproveReason, + data.OfficerRejectReason, + data.OfficerRejectDate, + data.RemarkHorizontal, + data.rootOld, + data.rootOldId, + data.rootShortNameOld, + data.child1Old, + data.child1OldId, + data.child1ShortNameOld, + data.child2Old, + data.child2OldId, + data.child2ShortNameOld, + data.child3Old, + data.child3OldId, + data.child3ShortNameOld, + data.child4Old, + data.child4OldId, + data.child4ShortNameOld, + data.PositionOld, + data.posMasterNoOld, + data.posTypeOldId, + data.posTypeNameOld, + data.posLevelOldId, + data.posLevelNameOld, + data.IsNoDebt, + data.IsNoBurden, + data.IsDiscipline, + data.CancelReason, + data.KeycloakUserId, + data.Approvers, + data.Commanders, + data.ApproveStep, + data.CancelApprovers, + data.CancelCommanders, + data.Group, + idCancel = data.RetirementResignEmployeeCancels?.Id ?? Guid.Empty, + statusCancel = data.RetirementResignEmployeeCancels?.Status ?? null, + statusMain = data.Status == "CANCEL" ? "DONECANCEL" : data.Status, + Docs = retirementResignEmployeeDocs, + }; + + return Success(_data); + } + else + { + var createdUserId = await _context.RetirementResignEmployeeCancels.AsQueryable() + .Where(x => x.CreatedUserId == UserId) + .Where(x => x.RetirementResignEmployee.Id == id) + .FirstOrDefaultAsync(); + { + var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN_EMP"); + var jsonData = JsonConvert.DeserializeObject(getPermission); + if (jsonData["status"]?.ToString() != "200") + { + return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); + } + } + var data = await _context.RetirementResignEmployeeCancels.AsQueryable() + .Where(x => x.RetirementResignEmployee.Id == id) + .Select(p => new + { + p.Id, + p.prefix, + p.firstName, + p.lastName, + p.profileId, + p.Location, + p.SendDate, + p.ActiveDate, + p.Reason, + p.Remark, + p.Status, + salary = p.AmountOld, + p.ApproveReason, + p.RejectReason, + p.IsActive, + p.CreatedAt, + p.PositionTypeOld, + p.PositionLevelOld, + p.PositionNumberOld, + p.OrganizationPositionOld, + p.OligarchReject, + p.OligarchApproveReason, + p.OligarchRejectReason, + p.OligarchRejectDate, + p.CommanderReject, + p.CommanderApproveReason, + p.CommanderRejectReason, + p.CommanderRejectDate, + p.OfficerReject, + p.OfficerApproveReason, + p.OfficerRejectReason, + p.OfficerRejectDate, + p.RemarkHorizontal, + p.rootOld, + p.rootOldId, + p.rootShortNameOld, + p.child1Old, + p.child1OldId, + p.child1ShortNameOld, + p.child2Old, + p.child2OldId, + p.child2ShortNameOld, + p.child3Old, + p.child3OldId, + p.child3ShortNameOld, + p.child4Old, + p.child4OldId, + p.child4ShortNameOld, + p.PositionOld, + p.posMasterNoOld, + p.posTypeOldId, + p.posTypeNameOld, + p.posLevelOldId, + p.posLevelNameOld, + p.IsNoDebt, + p.IsNoBurden, + p.IsDiscipline, + p.ApproveStep, + p.Group, + Approvers = p.RetirementResignEmployee.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + Commanders = p.RetirementResignEmployee.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + CancelApprovers = p.Approvers.Where(x => x.ApproveType.ToUpper() == "APPROVER"), + CancelCommanders = p.Approvers.Where(x => x.ApproveType.ToUpper() == "COMMANDER"), + KeycloakUserId = p.CreatedUserId, + p.CancelReason, + idMain = p.RetirementResignEmployee.Id, + statusMain = p.RetirementResignEmployee.Status, + RetirementResignEmployeeDocs = p.RetirementResignEmployee.RetirementResignEmployeeDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), + }) + .FirstOrDefaultAsync(); + if (data == null) + return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404); + + var retirementResignEmployeeDocs = new List(); + foreach (var doc in data.RetirementResignEmployeeDocs) + { + var _doc = new + { + FileName = doc.FileName, + PathName = await _documentService.ImagesPath(doc.Id), + doc.Id, + }; + retirementResignEmployeeDocs.Add(_doc); + } + var _data = new + { + data.Id, + data.profileId, + data.prefix, + data.firstName, + data.lastName, + data.Location, + data.SendDate, + data.ActiveDate, + data.Reason, + data.Remark, + data.Status, + data.salary, + data.PositionTypeOld, + data.PositionLevelOld, + data.PositionNumberOld, + data.OrganizationPositionOld, + data.ApproveReason, + data.RejectReason, + data.IsActive, + data.CreatedAt, + data.OligarchReject, + data.OligarchApproveReason, + data.OligarchRejectReason, + data.OligarchRejectDate, + data.CommanderReject, + data.CommanderApproveReason, + data.CommanderRejectReason, + data.CommanderRejectDate, + data.OfficerReject, + data.OfficerApproveReason, + data.OfficerRejectReason, + data.OfficerRejectDate, + data.RemarkHorizontal, + data.rootOld, + data.rootOldId, + data.rootShortNameOld, + data.child1Old, + data.child1OldId, + data.child1ShortNameOld, + data.child2Old, + data.child2OldId, + data.child2ShortNameOld, + data.child3Old, + data.child3OldId, + data.child3ShortNameOld, + data.child4Old, + data.child4OldId, + data.child4ShortNameOld, + data.PositionOld, + data.posMasterNoOld, + data.posTypeOldId, + data.posTypeNameOld, + data.posLevelOldId, + data.posLevelNameOld, + data.IsNoDebt, + data.IsNoBurden, + data.IsDiscipline, + data.CancelReason, + data.idMain, + data.statusMain, + data.ApproveStep, + data.Group, + data.KeycloakUserId, + data.Approvers, + data.Commanders, + data.CancelApprovers, + data.CancelCommanders, + statusCancel = data.Status, + Docs = retirementResignEmployeeDocs, + }; + return Success(_data); + } + } + /// /// get āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĨāļēāļ­āļ­āļ /// @@ -650,19 +1006,6 @@ namespace BMA.EHR.Retirement.Service.Controllers [HttpGet("cancel/{id:length(36)}")] public async Task> GetDetailByUserCancel(Guid id) { - var getWorkflow = await _permission.GetPermissionAPIWorkflowAsync(id.ToString(), "RETIREMENT_CANCEL_EMP"); - var createdUserId = await _context.RetirementResignEmployeeCancels.AsQueryable() - .Where(x => x.CreatedUserId == UserId) - .FirstOrDefaultAsync(); - if (getWorkflow == false && createdUserId == null) - { - var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN_EMP"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") - { - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - } - } var data = await _context.RetirementResignEmployeeCancels.AsQueryable() .Where(x => x.Id == id) .Select(p => new @@ -961,18 +1304,18 @@ namespace BMA.EHR.Retirement.Service.Controllers } } await _context.SaveChangesAsync(); - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _res = await client.PostAsJsonAsync($"{_configuration["API"]}/org/workflow/add-workflow", new - { - refId = retirementResignEmployee.Id, - sysName = "SYS_RESIGN_EMP", - posLevelName = retirementResignEmployee.PositionLevelOld, - posTypeName = retirementResignEmployee.PositionTypeOld, - }); - } + // using (var client = new HttpClient()) + // { + // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + // var _res = await client.PostAsJsonAsync($"{_configuration["API"]}/org/workflow/add-workflow", new + // { + // refId = retirementResignEmployee.Id, + // sysName = "SYS_RESIGN_EMP", + // posLevelName = retirementResignEmployee.PositionLevelOld, + // posTypeName = retirementResignEmployee.PositionTypeOld, + // }); + // } return Success(retirementResignEmployee); } @@ -1209,18 +1552,18 @@ namespace BMA.EHR.Retirement.Service.Controllers } await _context.AddRangeAsync(addList); await _context.SaveChangesAsync(); - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _res = await client.PostAsJsonAsync($"{_configuration["API"]}/org/workflow/add-workflow", new - { - refId = retirementResignEmployeeCancel.Id, - sysName = "RETIREMENT_CANCEL_EMP", - posLevelName = retirementResignEmployeeCancel.PositionLevelOld, - posTypeName = retirementResignEmployeeCancel.PositionTypeOld, - }); - } + // using (var client = new HttpClient()) + // { + // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + // var _res = await client.PostAsJsonAsync($"{_configuration["API"]}/org/workflow/add-workflow", new + // { + // refId = retirementResignEmployeeCancel.Id, + // sysName = "RETIREMENT_CANCEL_EMP", + // posLevelName = retirementResignEmployeeCancel.PositionLevelOld, + // posTypeName = retirementResignEmployeeCancel.PositionTypeOld, + // }); + // } updated.IsCancel = true; updated.Status = "CANCELING"; } From b528f0a81de5b1918cb155ee2647b7a805223293 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 11 Jun 2025 12:05:46 +0700 Subject: [PATCH 369/879] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B9=80=E0=B8=AB=E0=B8=95=E0=B8=B8=E0=B8=9C=E0=B8=A5=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?=E0=B8=AD=E0=B8=AD=E0=B8=81,=E0=B9=82=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B8=AD=E0=B8=AD=E0=B8=81=20issue=20#1572?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/PlacementTransferController.cs | 3 ++- .../Controllers/RetirementResignController.cs | 5 ++++- .../Controllers/RetirementResignEmployeeController.cs | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index d02665d2..cdc3b298 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -881,7 +881,8 @@ namespace BMA.EHR.Placement.Service.Controllers positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, commandId = r.commandId, - leaveReason = "āđ‚āļ­āļ™āļ­āļ­āļ", + //leaveReason = "āđ‚āļ­āļ™āļ­āļ­āļ", + leaveReason = string.IsNullOrWhiteSpace(p.Reason) ? "āđ‚āļ­āļ™āļ­āļ­āļ" : p.Reason, dateLeave = r.commandDateAffect, isLeave = true, orgRoot = p.rootOld, diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index ab6636b3..cbb31dbe 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -2630,7 +2630,10 @@ namespace BMA.EHR.Retirement.Service.Controllers positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, isLeave = p.IsCancel == true ? false : true, - leaveReason = "āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", + //leaveReason = "āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", + leaveReason = p.ReasonResign == "āļ­āļ·āđˆāļ™ āđ†" + ? string.IsNullOrWhiteSpace(p.Remark) ? p.ReasonResign : $"{p.ReasonResign}({p.Remark})" + : p.ReasonResign, dateLeave = r.commandDateAffect, commandId = r.commandId, isGovernment = false, diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 82320216..d02c9c80 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -2111,7 +2111,10 @@ namespace BMA.EHR.Retirement.Service.Controllers positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, isLeave = p.IsCancel == true ? false : true, - leaveReason = "āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", + //leaveReason = "āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", + leaveReason = p.ReasonResign == "āļ­āļ·āđˆāļ™ āđ†" + ? string.IsNullOrWhiteSpace(p.Remark) ? p.ReasonResign : $"{p.ReasonResign}({p.Remark})" + : p.ReasonResign, dateLeave = r.commandDateAffect, commandId = r.commandId, isGovernment = false, From 706edbd0f0acd6ba7a2a88b628abfcdbdbeb7336 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 16 Jun 2025 12:10:50 +0700 Subject: [PATCH 370/879] update placement and retire --- .../Models/Placement/PlacementAppointment.cs | 10 +++++ .../Models/Placement/PlacementOfficer.cs | 9 +++++ .../Models/Placement/PlacementProfile.cs | 9 +++++ .../Models/Placement/PlacementReceive.cs | 8 ++++ .../Models/Placement/PlacementRepatriation.cs | 8 ++++ .../Models/Placement/PlacementTransfer.cs | 8 ++++ .../Models/Retirement/RetirementDeceased.cs | 10 +++++ .../Models/Retirement/RetirementOther.cs | 8 ++++ .../Models/Retirement/RetirementOut.cs | 9 +++++ .../Models/Retirement/RetirementProfile.cs | 9 +++++ .../Models/Retirement/RetirementRawProfile.cs | 10 +++++ .../Models/Retirement/RetirementResign.cs | 8 ++++ .../Retirement/RetirementResignCancel.cs | 9 +++++ .../PlacementAppointmentController.cs | 32 +++++++++++++--- .../Controllers/PlacementController.cs | 38 ++++++++++++------- .../Controllers/PlacementOfficerController.cs | 14 ++++++- .../Controllers/PlacementReceiveController.cs | 18 +++++++-- .../PlacementRepatriationController.cs | 10 ++++- .../PlacementTransferController.cs | 16 +++++++- .../Requests/OrgRequest.cs | 2 + .../PersonSelectPositionAppointmentRequest.cs | 2 + .../PersonSelectPositionReceiveRequest.cs | 2 + .../Requests/PersonSelectPositionRequest.cs | 3 ++ .../Controllers/RetirementController.cs | 18 +++++++++ .../RetirementDeceasedController.cs | 2 + .../Controllers/RetirementOtherController.cs | 16 ++++++-- .../Controllers/RetirementOutController.cs | 6 ++- .../Controllers/RetirementResignController.cs | 12 ++++-- .../Requests/OrgRequest.cs | 2 + .../Requests/OrgRequestArray.cs | 2 + .../PersonSelectPositionOtherRequest.cs | 2 + .../Requests/ProfileJsonRequest.cs | 2 + 32 files changed, 282 insertions(+), 32 deletions(-) diff --git a/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs b/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs index ebe94d91..983a3859 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs @@ -179,6 +179,16 @@ namespace BMA.EHR.Domain.Models.Placement [Comment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡")] public string? typeCommand { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? positionExecutiveField { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē")] + public string? positionArea { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)")] + public string? positionExecutiveFieldOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] + public string? positionAreaOld { get; set; } + + // public OrgEmployee? OrgEmployee { get; set; } // public PositionEmployeeStatus? PositionEmployeeStatus { get; set; } // public PositionEmployeeLine? PositionEmployeeLine { get; set; } diff --git a/BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs b/BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs index 129c96b9..26ad3d66 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs @@ -109,5 +109,14 @@ namespace BMA.EHR.Domain.Models.Placement [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡")] public string? commandNo { get; set; } + + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? positionExecutiveField { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē")] + public string? positionArea { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)")] + public string? positionExecutiveFieldOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] + public string? positionAreaOld { get; set; } } } diff --git a/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs b/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs index 597ec658..be65f04c 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementProfile.cs @@ -411,6 +411,15 @@ namespace BMA.EHR.Domain.Models.Placement [Comment("Id āļĢāļđāļ›āđ‚āļ›āļĢāđ„āļŸāļĨāđŒ")] public virtual Document? ProfileImg { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? positionExecutiveField { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē")] + public string? positionArea { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)")] + public string? positionExecutiveFieldOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] + public string? positionAreaOld { get; set; } + public virtual List PlacementProfileDocs { get; set; } = new List(); public virtual List PlacementCertificates { get; set; } = new List(); public virtual List PlacementEducations { get; set; } = new List(); diff --git a/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs b/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs index 85b2bd47..9d366d19 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementReceive.cs @@ -184,6 +184,14 @@ namespace BMA.EHR.Domain.Models.Placement [Comment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™")] public bool IsActive { get; set; } = true; + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? positionExecutiveField { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē")] + public string? positionArea { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)")] + public string? positionExecutiveFieldOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] + public string? positionAreaOld { get; set; } public virtual List PlacementReceiveDocs { get; set; } = new List(); } } diff --git a/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs b/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs index 39b2a7ba..c08fe684 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs @@ -103,5 +103,13 @@ namespace BMA.EHR.Domain.Models.Placement public string? posLevelNameOld { get; set; } [Comment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ")] public Guid? refId { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? positionExecutiveField { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē")] + public string? positionArea { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)")] + public string? positionExecutiveFieldOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] + public string? positionAreaOld { get; set; } } } diff --git a/BMA.EHR.Domain/Models/Placement/PlacementTransfer.cs b/BMA.EHR.Domain/Models/Placement/PlacementTransfer.cs index 5f770d73..58f7505e 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementTransfer.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementTransfer.cs @@ -98,6 +98,14 @@ namespace BMA.EHR.Domain.Models.Placement public string? posLevelOldId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old")] public string? posLevelNameOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? positionExecutiveField { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē")] + public string? positionArea { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)")] + public string? positionExecutiveFieldOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] + public string? positionAreaOld { get; set; } public virtual List PlacementTransferDocs { get; set; } = new List(); } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs b/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs index 62e627c2..ed9b5500 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementDeceased.cs @@ -97,6 +97,16 @@ namespace BMA.EHR.Domain.Models.Retirement [Comment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)")] public string? profileType { get; set; } + + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? positionExecutiveField { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē")] + public string? positionArea { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)")] + public string? positionExecutiveFieldOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] + public string? positionAreaOld { get; set; } + public virtual List RetirementDeceasedNotis { get; set; } = new List(); } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs b/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs index cf74ebe0..b37e47aa 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementOther.cs @@ -181,6 +181,14 @@ namespace BMA.EHR.Domain.Models.Retirement public string? posLevelId { get; set; } [Comment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡")] public string? posLevelName { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? positionExecutiveField { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē")] + public string? positionArea { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)")] + public string? positionExecutiveFieldOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] + public string? positionAreaOld { get; set; } public virtual List RetirementOtherDocs { get; set; } = new List(); } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs b/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs index 1a3013bf..e50a4bf9 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementOut.cs @@ -103,5 +103,14 @@ namespace BMA.EHR.Domain.Models.Retirement [Comment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)")] public string? profileType { get; set; } + + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? positionExecutiveField { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē")] + public string? positionArea { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)")] + public string? positionExecutiveFieldOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] + public string? positionAreaOld { get; set; } } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementProfile.cs b/BMA.EHR.Domain/Models/Retirement/RetirementProfile.cs index 7951476e..8f8d2208 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementProfile.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementProfile.cs @@ -87,5 +87,14 @@ namespace BMA.EHR.Domain.Models.Retirement public string? posExecutiveName { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ ")] public string? posNo { get; set; } + + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? positionExecutiveField { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē")] + public string? positionArea { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)")] + public string? positionExecutiveFieldOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] + public string? positionAreaOld { get; set; } } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementRawProfile.cs b/BMA.EHR.Domain/Models/Retirement/RetirementRawProfile.cs index e8242dd1..299bf29f 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementRawProfile.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementRawProfile.cs @@ -76,5 +76,15 @@ namespace BMA.EHR.Domain.Models.Retirement public string? posExecutiveName { get; set; } [Comment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ ")] public string? posNo { get; set; } + + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? positionExecutiveField { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē")] + public string? positionArea { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)")] + public string? positionExecutiveFieldOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] + public string? positionAreaOld { get; set; } + } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs index 6539c945..f748de84 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResign.cs @@ -156,6 +156,14 @@ namespace BMA.EHR.Domain.Models.Retirement [Comment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ")] public string? Group { get; set; } = string.Empty; + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? positionExecutiveField { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē")] + public string? positionArea { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)")] + public string? positionExecutiveFieldOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] + public string? positionAreaOld { get; set; } public List Approvers { get; set; } = new(); diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs index 5f4ac59c..c00df843 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs @@ -137,6 +137,15 @@ namespace BMA.EHR.Domain.Models.Retirement public string? Group { get; set; } = string.Empty; [Required, Comment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļąāļšāļĒāđ‰āļēāļĒ")] public virtual RetirementResign RetirementResign { get; set; } + + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ")] + public string? positionExecutiveField { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē")] + public string? positionArea { get; set; } + [Comment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)")] + public string? positionExecutiveFieldOld { get; set; } + [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] + public string? positionAreaOld { get; set; } public List Approvers { get; set; } = new(); } } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index d7677d88..c917b448 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -118,6 +118,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.posMasterNo, p.position, p.PositionExecutive, + p.positionExecutiveField, + p.positionArea, p.positionField, p.posTypeId, p.posTypeName, @@ -167,6 +169,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.posmasterId, p.positionOld, p.PositionExecutiveOld, + p.positionExecutiveFieldOld, + p.positionAreaOld, p.CreatedAt, p.typeCommand, }) @@ -229,6 +233,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.posMasterNo, p.position, p.PositionExecutive, + p.positionExecutiveField, + p.positionArea, p.positionField, p.posTypeId, p.posTypeName, @@ -273,6 +279,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.OrganizationOld, p.positionOld, p.PositionExecutiveOld, + p.positionExecutiveFieldOld, + p.positionAreaOld, p.typeCommand, p.posmasterId, }) @@ -311,6 +319,8 @@ namespace BMA.EHR.Placement.Service.Controllers data.posMasterNo, data.position, data.PositionExecutive, + data.positionExecutiveField, + data.positionArea, data.positionField, data.posTypeId, data.posTypeName, @@ -359,6 +369,8 @@ namespace BMA.EHR.Placement.Service.Controllers organizationOld = data.OrganizationOld == "/" || data.OrganizationOld == null ? null : data.OrganizationOld, data.positionOld, data.PositionExecutiveOld, + data.positionExecutiveFieldOld, + data.positionAreaOld, // Docs = placementAppointmentDocs, data.typeCommand, data.posmasterId, @@ -455,6 +467,8 @@ namespace BMA.EHR.Placement.Service.Controllers placementAppointment.positionOld = org.result.position; placementAppointment.PositionExecutiveOld = org.result.posExecutiveName; + placementAppointment.positionExecutiveFieldOld = org.result.positionExecutiveField; + placementAppointment.positionAreaOld = org.result.positionArea; placementAppointment.PositionLevelOld = org.result.posLevelName; placementAppointment.PositionTypeOld = org.result.posTypeName; placementAppointment.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; @@ -577,6 +591,8 @@ namespace BMA.EHR.Placement.Service.Controllers uppdated.posMasterNo = req.posMasterNo; uppdated.position = req.positionName; uppdated.PositionExecutive = req.posExecutiveName; + uppdated.positionExecutiveField = req.positionExecutiveField; + uppdated.positionArea = req.positionArea; uppdated.positionField = req.positionField; uppdated.posTypeId = req.posTypeId; uppdated.posTypeName = req.posTypeName; @@ -822,7 +838,7 @@ namespace BMA.EHR.Placement.Service.Controllers OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = "-", NewOc = (p.position == null ? "" : $"{p.position}\n") + - (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + + (p.PositionExecutive == null ? "" : (p.positionExecutiveField == null ? $"{p.PositionExecutive}\n" : $"{p.PositionExecutive}({p.positionExecutiveField})\n")) + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -907,6 +923,8 @@ namespace BMA.EHR.Placement.Service.Controllers positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, positionExecutive = p.PositionExecutive, + positionExecutiveField = p.positionExecutiveField, + positionArea = p.positionArea, positionType = p.posTypeName, positionLevel = p.posLevelName, posmasterId = p.posmasterId, @@ -1032,7 +1050,7 @@ namespace BMA.EHR.Placement.Service.Controllers OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = "-", NewOc = (p.position == null ? "" : $"{p.position}\n") + - (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + + (p.PositionExecutive == null ? "" : (p.positionExecutiveField == null ? $"{p.PositionExecutive}\n" : $"{p.PositionExecutive}({p.positionExecutiveField})\n")) + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -1117,6 +1135,8 @@ namespace BMA.EHR.Placement.Service.Controllers positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, positionExecutive = p.PositionExecutive, + positionExecutiveField = p.positionExecutiveField, + positionArea = p.positionArea, positionType = p.posTypeName, positionLevel = p.posLevelName, posmasterId = p.posmasterId, @@ -1242,7 +1262,7 @@ namespace BMA.EHR.Placement.Service.Controllers OldPositionNumber = p.PositionNumberOld == null ? "-" : p.PositionNumberOld.ToThaiNumber(), OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = (p.position == null ? "" : $"{p.position}\n") + - (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + + (p.PositionExecutive == null ? "" : (p.positionExecutiveField == null ? $"{p.PositionExecutive}\n" : $"{p.PositionExecutive}({p.positionExecutiveField})\n")) + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -1446,7 +1466,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.rootOld != null ? $"{p.rootShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = (p.position == null ? "" : $"{p.position}\n") + - (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + + (p.PositionExecutive == null ? "" : (p.positionExecutiveField == null ? $"{p.PositionExecutive}\n" : $"{p.PositionExecutive}({p.positionExecutiveField})\n")) + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -1660,7 +1680,7 @@ namespace BMA.EHR.Placement.Service.Controllers OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), PositionDate = p.PositionDate == null ? "-" : p.PositionDate.Value.ToThaiShortDate2().ToThaiNumber(), NewOc = (p.position == null ? "" : $"{p.position}\n") + - (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + + (p.PositionExecutive == null ? "" : (p.positionExecutiveField == null ? $"{p.PositionExecutive}\n" : $"{p.PositionExecutive}({p.positionExecutiveField})\n")) + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -1744,6 +1764,8 @@ namespace BMA.EHR.Placement.Service.Controllers positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, positionExecutive = p.PositionExecutive, + positionExecutiveField = p.positionExecutiveField, + positionArea = p.positionArea, positionType = p.posTypeName, positionLevel = p.posLevelName, posmasterId = p.posmasterId, diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 94d07fee..8cdeadbc 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -969,6 +969,8 @@ namespace BMA.EHR.Placement.Service.Controllers person.posMasterNo = req.posMasterNo; person.positionName = req.positionName; person.PositionExecutive = req.posExecutiveName; + person.positionExecutiveField = req.positionExecutiveField; + person.positionArea = req.positionArea; person.positionField = req.positionField; person.posTypeId = req.posTypeId; person.posTypeName = req.posTypeName; @@ -1630,7 +1632,7 @@ namespace BMA.EHR.Placement.Service.Controllers ExamNumber = p.ExamNumber == null ? "-" : p.ExamNumber.Value.ToString().ToThaiNumber(), PlacementName = $"{p.Placement.Name.ToThaiNumber()} āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ {p.Placement.Round.ToThaiNumber()} {p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", Oc = (p.positionName == null ? "" : $"{p.positionName}\n") + - (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + + (p.PositionExecutive == null ? "" : (p.positionExecutiveField == null ? $"{p.PositionExecutive}\n" : $"{p.PositionExecutive}({p.positionExecutiveField})\n")) + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -1806,7 +1808,9 @@ namespace BMA.EHR.Placement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutive, + positionExecutiveField = p.positionExecutiveField, + positionArea = p.positionArea, positionType = p.posTypeName, positionLevel = p.posLevelName, commandId = r.commandId, @@ -1986,7 +1990,7 @@ namespace BMA.EHR.Placement.Service.Controllers ExamNumber = p.ExamNumber == null ? "-" : p.ExamNumber.Value.ToString().ToThaiNumber(), PlacementName = $"{p.Placement.Name.ToThaiNumber()} āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ {p.Placement.Round.ToThaiNumber()} {p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", Oc = (p.positionName == null ? "" : $"{p.positionName}\n") + - (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + + (p.PositionExecutive == null ? "" : (p.positionExecutiveField == null ? $"{p.PositionExecutive}\n" : $"{p.PositionExecutive}({p.positionExecutiveField})\n")) + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -2154,7 +2158,9 @@ namespace BMA.EHR.Placement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutive, + positionExecutiveField = p.positionExecutiveField, + positionArea = p.positionArea, positionType = p.posTypeName, positionLevel = p.posLevelName, commandId = r.commandId, @@ -2335,7 +2341,7 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.PlacementEducations == null || p.PlacementEducations.Count == 0 ? "-" : p.PlacementEducations.FirstOrDefault().Degree, OldOc = (p.positionNameOld == null ? "" : $"{p.positionNameOld}\n") + - (p.PositionExecutiveOld == null ? "" : $"{p.PositionExecutiveOld}\n") + + (p.PositionExecutiveOld == null ? "" : (p.positionExecutiveFieldOld == null ? $"{p.PositionExecutiveOld}\n" : $"{p.PositionExecutiveOld}({p.positionExecutiveFieldOld})\n")) + (p.child4Old == null ? "" : $"{p.child4Old}\n") + (p.child3Old == null ? "" : $"{p.child3Old}\n") + (p.child2Old == null ? "" : $"{p.child2Old}\n") + @@ -2352,7 +2358,7 @@ namespace BMA.EHR.Placement.Service.Controllers OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), OldPosition = p.positionNameOld == null ? "-" : p.positionNameOld, NewOc = (p.positionName == null ? "" : $"{p.positionName}\n") + - (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + + (p.PositionExecutive == null ? "" : (p.positionExecutiveField == null ? $"{p.PositionExecutive}\n" : $"{p.PositionExecutive}({p.positionExecutiveField})\n")) + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -2438,7 +2444,9 @@ namespace BMA.EHR.Placement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutive, + positionExecutiveField = p.positionExecutiveField, + positionArea = p.positionArea, positionType = p.posTypeName, positionLevel = p.posLevelName, posmasterId = p.posmasterId, @@ -2567,7 +2575,7 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.PlacementEducations == null || p.PlacementEducations.Count == 0 ? "-" : p.PlacementEducations.FirstOrDefault().Degree, OldOc = (p.positionNameOld == null ? "" : $"{p.positionNameOld}\n") + - (p.PositionExecutiveOld == null ? "" : $"{p.PositionExecutiveOld}\n") + + (p.PositionExecutiveOld == null ? "" : (p.positionExecutiveFieldOld == null ? $"{p.PositionExecutiveOld}\n" : $"{p.PositionExecutiveOld}({p.positionExecutiveFieldOld})\n")) + (p.child4Old == null ? "" : $"{p.child4Old}\n") + (p.child3Old == null ? "" : $"{p.child3Old}\n") + (p.child2Old == null ? "" : $"{p.child2Old}\n") + @@ -2584,7 +2592,7 @@ namespace BMA.EHR.Placement.Service.Controllers p.nodeOld == "0" ? $"{p.rootShortNameOld} {p.posMasterNoOld}".ToThaiNumber() : "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = (p.positionName == null ? "" : $"{p.positionName}\n") + - (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + + (p.PositionExecutive == null ? "" : (p.positionExecutiveField == null ? $"{p.PositionExecutive}\n" : $"{p.PositionExecutive}({p.positionExecutiveField})\n")) + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -2670,7 +2678,9 @@ namespace BMA.EHR.Placement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutive, + positionExecutiveField = p.positionExecutiveField, + positionArea = p.positionArea, positionType = p.posTypeName, positionLevel = p.posLevelName, posmasterId = p.posmasterId, @@ -2788,7 +2798,7 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.PlacementEducations == null || p.PlacementEducations.Count == 0 ? "-" : p.PlacementEducations.FirstOrDefault().Degree, OldOc = (p.positionNameOld == null ? "" : $"{p.positionNameOld}\n") + - (p.PositionExecutiveOld == null ? "" : $"{p.PositionExecutiveOld}\n") + + (p.PositionExecutiveOld == null ? "" : (p.positionExecutiveFieldOld == null ? $"{p.PositionExecutiveOld}\n" : $"{p.PositionExecutiveOld}({p.positionExecutiveFieldOld})\n")) + (p.child4Old == null ? "" : $"{p.child4Old}\n") + (p.child3Old == null ? "" : $"{p.child3Old}\n") + (p.child2Old == null ? "" : $"{p.child2Old}\n") + @@ -2805,7 +2815,7 @@ namespace BMA.EHR.Placement.Service.Controllers OldSalary = p.Amount == null ? "-" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = "-", NewOc = (p.positionName == null ? "" : $"{p.positionName}\n") + - (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + + (p.PositionExecutive == null ? "" : (p.positionExecutiveField == null ? $"{p.PositionExecutive}\n" : $"{p.PositionExecutive}({p.positionExecutiveField})\n")) + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -2887,7 +2897,9 @@ namespace BMA.EHR.Placement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutive, + positionExecutiveField = p.positionExecutiveField, + positionArea = p.positionArea, positionType = p.posTypeName, positionLevel = p.posLevelName, posmasterId = p.posmasterId, diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index b8cd149b..4886f587 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -113,6 +113,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.child4ShortNameOld, p.PositionOld, p.PositionExecutiveOld, + p.positionExecutiveFieldOld, + p.positionAreaOld, p.posMasterNoOld, p.posTypeOldId, p.posTypeNameOld, @@ -185,6 +187,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.child4ShortNameOld, p.PositionOld, p.PositionExecutiveOld, + p.positionExecutiveFieldOld, + p.positionAreaOld, p.posMasterNoOld, p.posTypeOldId, p.posTypeNameOld, @@ -243,6 +247,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.child4ShortNameOld, p.PositionOld, p.PositionExecutiveOld, + p.positionExecutiveFieldOld, + p.positionAreaOld, p.posMasterNoOld, p.posTypeOldId, p.posTypeNameOld, @@ -323,6 +329,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.OrganizationPositionOld, p.PositionOld, p.PositionExecutiveOld, + p.positionExecutiveFieldOld, + p.positionAreaOld, p.OrganizationOld, p.IsActive, }) @@ -403,6 +411,8 @@ namespace BMA.EHR.Placement.Service.Controllers placementOfficer.PositionOld = org.result.position; placementOfficer.PositionExecutiveOld = org.result.posExecutiveName; + placementOfficer.positionExecutiveFieldOld = org.result.positionExecutiveField; + placementOfficer.positionAreaOld = org.result.positionArea; placementOfficer.PositionLevelOld = org.result.posLevelName; placementOfficer.PositionTypeOld = org.result.posTypeName; placementOfficer.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; @@ -678,7 +688,9 @@ namespace BMA.EHR.Placement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutiveOld, + positionExecutiveField = p.positionExecutiveFieldOld, + positionArea = p.positionAreaOld, positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, commandId = r.commandId, diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 1db1b52d..993df51b 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -157,6 +157,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.posMasterNoOld, p.PositionOld, p.PositionExecutiveOld, + p.positionExecutiveFieldOld, + p.positionAreaOld, p.posTypeOldId, p.posTypeNameOld, p.posLevelOldId, @@ -244,6 +246,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.AmountOld, p.PositionOld, p.PositionExecutiveOld, + p.positionExecutiveFieldOld, + p.positionAreaOld, p.OrganizationOld, p.PositionTypeOld, p.PositionLevelOld, @@ -343,6 +347,8 @@ namespace BMA.EHR.Placement.Service.Controllers data.AmountOld, data.PositionOld, data.PositionExecutiveOld, + data.positionExecutiveFieldOld, + data.positionAreaOld, organizationOld = data.OrganizationOld == "/" || data.OrganizationOld == null ? null : data.OrganizationOld, data.PositionTypeOld, data.PositionLevelOld, @@ -498,6 +504,8 @@ namespace BMA.EHR.Placement.Service.Controllers placementReceive.PositionOld = org.result.position; placementReceive.PositionExecutiveOld = org.result.posExecutiveName; + placementReceive.positionExecutiveFieldOld = org.result.positionExecutiveField; + placementReceive.positionAreaOld = org.result.positionArea; placementReceive.PositionLevelOld = org.result.posLevelName; placementReceive.PositionTypeOld = org.result.posTypeName; placementReceive.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; @@ -674,6 +682,8 @@ namespace BMA.EHR.Placement.Service.Controllers uppdated.posMasterNo = req.posMasterNo; uppdated.position = req.positionName; uppdated.PositionExecutive = req.posExecutiveName; + uppdated.positionExecutiveField = req.positionExecutiveField; + uppdated.positionArea = req.positionArea; uppdated.positionField = req.positionField; uppdated.posTypeId = req.posTypeId; uppdated.posTypeName = req.posTypeName; @@ -941,7 +951,7 @@ namespace BMA.EHR.Placement.Service.Controllers Education = p.EducationOld == null ? "-" : p.EducationOld, OldOrg = p.OrganizationPositionOld ?? "-", OldOc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + - (p.PositionExecutiveOld == null ? "" : $"{p.PositionExecutiveOld}\n") + + (p.PositionExecutiveOld == null ? "" : (p.positionExecutiveFieldOld == null ? $"{p.PositionExecutiveOld}\n" : $"{p.PositionExecutiveOld}({p.positionExecutiveFieldOld})\n")) + (p.child4Old == null ? "" : $"{p.child4Old}\n") + (p.child3Old == null ? "" : $"{p.child3Old}\n") + (p.child2Old == null ? "" : $"{p.child2Old}\n") + @@ -951,7 +961,7 @@ namespace BMA.EHR.Placement.Service.Controllers OldPositionLevel = p.PositionLevelOld ?? "-", OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), NewOc = (p.position == null ? "" : $"{p.position}\n") + - (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + + (p.PositionExecutive == null ? "" : (p.positionExecutiveField == null ? $"{p.PositionExecutive}\n" : $"{p.PositionExecutive}({p.positionExecutiveField})\n")) + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -1078,7 +1088,9 @@ namespace BMA.EHR.Placement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutive, + positionExecutiveField = p.positionExecutiveField, + positionArea = p.positionArea, positionType = p.posTypeName, positionLevel = p.posLevelName, commandId = r.commandId, diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index aeb23069..bd839917 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -114,6 +114,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.child4ShortNameOld, p.PositionOld, p.PositionExecutiveOld, + p.positionExecutiveFieldOld, + p.positionAreaOld, p.posMasterNoOld, p.posTypeOldId, p.posTypeNameOld, @@ -201,6 +203,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.OrganizationPositionOld, p.PositionOld, p.PositionExecutiveOld, + p.positionExecutiveFieldOld, + p.positionAreaOld, p.DateRepatriation, }) .FirstOrDefaultAsync(); @@ -289,6 +293,8 @@ namespace BMA.EHR.Placement.Service.Controllers placementRepatriation.PositionOld = org.result.position; placementRepatriation.PositionExecutiveOld = org.result.posExecutiveName; + placementRepatriation.positionExecutiveFieldOld = org.result.positionExecutiveField; + placementRepatriation.positionAreaOld = org.result.positionArea; placementRepatriation.PositionLevelOld = org.result.posLevelName; placementRepatriation.PositionTypeOld = org.result.posTypeName; placementRepatriation.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; @@ -550,7 +556,9 @@ namespace BMA.EHR.Placement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutiveOld, + positionExecutiveField = p.positionExecutiveFieldOld, + positionArea = p.positionAreaOld, positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, commandId = r.commandId, diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index cdc3b298..8689339a 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -207,6 +207,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.child4ShortNameOld, p.PositionOld, p.PositionExecutiveOld, + p.positionExecutiveFieldOld, + p.positionAreaOld, p.posMasterNoOld, p.posTypeOldId, p.posTypeNameOld, @@ -283,6 +285,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.OrganizationPositionOld, p.PositionOld, p.PositionExecutiveOld, + p.positionExecutiveFieldOld, + p.positionAreaOld, PlacementTransferDocs = p.PlacementTransferDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), }) .FirstOrDefaultAsync(); @@ -338,6 +342,8 @@ namespace BMA.EHR.Placement.Service.Controllers data.OrganizationPositionOld, data.PositionOld, data.PositionExecutiveOld, + data.positionExecutiveFieldOld, + data.positionAreaOld, Docs = placementTransferDocs, }; @@ -407,6 +413,8 @@ namespace BMA.EHR.Placement.Service.Controllers p.OrganizationPositionOld, p.PositionOld, p.PositionExecutiveOld, + p.positionExecutiveFieldOld, + p.positionAreaOld, PlacementTransferDocs = p.PlacementTransferDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }), }) .FirstOrDefaultAsync(); @@ -462,6 +470,8 @@ namespace BMA.EHR.Placement.Service.Controllers data.OrganizationPositionOld, data.PositionOld, data.PositionExecutiveOld, + data.positionExecutiveFieldOld, + data.positionAreaOld, Docs = placementTransferDocs, }; @@ -538,6 +548,8 @@ namespace BMA.EHR.Placement.Service.Controllers placementTransfer.AmountOld = org.result.salary; placementTransfer.PositionOld = org.result.position; placementTransfer.PositionExecutiveOld = org.result.posExecutiveName; + placementTransfer.positionExecutiveFieldOld = org.result.positionExecutiveField; + placementTransfer.positionAreaOld = org.result.positionArea; placementTransfer.PositionLevelOld = org.result.posLevelName; placementTransfer.PositionTypeOld = org.result.posTypeName; placementTransfer.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; @@ -877,7 +889,9 @@ namespace BMA.EHR.Placement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutiveOld, + positionExecutiveField = p.positionExecutiveFieldOld, + positionArea = p.positionAreaOld, positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, commandId = r.commandId, diff --git a/BMA.EHR.Placement.Service/Requests/OrgRequest.cs b/BMA.EHR.Placement.Service/Requests/OrgRequest.cs index 71dbcc81..2505b19d 100644 --- a/BMA.EHR.Placement.Service/Requests/OrgRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/OrgRequest.cs @@ -42,6 +42,8 @@ namespace BMA.EHR.Placement.Service.Requests public int? posMasterNo { get; set; } public string? position { get; set; } public string? posExecutiveName { get; set; } + public string? positionExecutiveField { get; set; } + public string? positionArea { get; set; } public string? posTypeId { get; set; } public string? posTypeName { get; set; } public string? posLevelId { get; set; } diff --git a/BMA.EHR.Placement.Service/Requests/PersonSelectPositionAppointmentRequest.cs b/BMA.EHR.Placement.Service/Requests/PersonSelectPositionAppointmentRequest.cs index c3b084bc..8f6c31ba 100644 --- a/BMA.EHR.Placement.Service/Requests/PersonSelectPositionAppointmentRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/PersonSelectPositionAppointmentRequest.cs @@ -30,5 +30,7 @@ namespace BMA.EHR.Placement.Service.Requests public string? posLevelName { get; set; } public string? typeCommand { get; set; } public string? posExecutiveName { get; set; } + public string? positionExecutiveField { get; set; } + public string? positionArea { get; set; } } } \ No newline at end of file diff --git a/BMA.EHR.Placement.Service/Requests/PersonSelectPositionReceiveRequest.cs b/BMA.EHR.Placement.Service/Requests/PersonSelectPositionReceiveRequest.cs index 340647cf..9b22874b 100644 --- a/BMA.EHR.Placement.Service/Requests/PersonSelectPositionReceiveRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/PersonSelectPositionReceiveRequest.cs @@ -30,5 +30,7 @@ namespace BMA.EHR.Placement.Service.Requests public string? posLevelName { get; set; } public string? typeCommand { get; set; } public string? posExecutiveName { get; set; } + public string? positionExecutiveField { get; set; } + public string? positionArea { get; set; } } } \ No newline at end of file diff --git a/BMA.EHR.Placement.Service/Requests/PersonSelectPositionRequest.cs b/BMA.EHR.Placement.Service/Requests/PersonSelectPositionRequest.cs index 511cd196..66042358 100644 --- a/BMA.EHR.Placement.Service/Requests/PersonSelectPositionRequest.cs +++ b/BMA.EHR.Placement.Service/Requests/PersonSelectPositionRequest.cs @@ -39,5 +39,8 @@ namespace BMA.EHR.Placement.Service.Requests public string? posLevelName { get; set; } public string? typeCommand { get; set; } public string? posExecutiveName { get; set; } + public string? positionExecutiveField { get; set; } + public string? positionArea { get; set; } + } } \ No newline at end of file diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs index 6aca09a7..d01ef48c 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementController.cs @@ -376,6 +376,8 @@ namespace BMA.EHR.Retirement.Service.Controllers posLevelRank = profile.posLevelRank, posExecutiveId = profile.posExecutiveId, posExecutiveName = profile.posExecutiveName, + positionExecutiveField = profile.positionExecutiveField, + positionArea = profile.positionArea, posNo = profile.posNo, CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", @@ -419,6 +421,8 @@ namespace BMA.EHR.Retirement.Service.Controllers posLevelRank = profile.posLevelRank, posExecutiveId = profile.posExecutiveId, posExecutiveName = profile.posExecutiveName, + positionExecutiveField = profile.positionExecutiveField, + positionArea = profile.positionArea, posNo = profile.posNo, CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", @@ -479,6 +483,8 @@ namespace BMA.EHR.Retirement.Service.Controllers posLevelRank = x.posLevelRank, posExecutiveId = x.posExecutiveId, posExecutiveName = x.posExecutiveName, + positionExecutiveField = x.positionExecutiveField, + positionArea = x.positionArea, posNo = x.posNo, }) .ToListAsync(); @@ -574,6 +580,8 @@ namespace BMA.EHR.Retirement.Service.Controllers posLevelRank = profileOld.posLevelRank, posExecutiveId = profileOld.posExecutiveId, posExecutiveName = profileOld.posExecutiveName, + positionExecutiveField = profileOld.positionExecutiveField, + positionArea = profileOld.positionArea, posNo = profileOld.posNo, CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", @@ -636,6 +644,8 @@ namespace BMA.EHR.Retirement.Service.Controllers posLevelRank = profileOld.posLevelRank, posExecutiveId = profileOld.posExecutiveId, posExecutiveName = profileOld.posExecutiveName, + positionExecutiveField = profileOld.positionExecutiveField, + positionArea = profileOld.positionArea, posNo = profileOld.posNo, CreatedFullName = FullName ?? "System Administrator", CreatedUserId = UserId ?? "", @@ -681,6 +691,8 @@ namespace BMA.EHR.Retirement.Service.Controllers positionType = x.posTypeName, positionLevel = x.posLevelName, positionExecutive = x.posExecutiveName, + positionExecutiveField = x.positionExecutiveField, + positionArea = x.positionArea, posNo = x.posNo, }) .ToListAsync(); @@ -791,6 +803,8 @@ namespace BMA.EHR.Retirement.Service.Controllers posTypeName = x.posTypeName, posLevelName = x.posLevelName, posExecutiveName = x.posExecutiveName, + positionExecutiveField = x.positionExecutiveField, + positionArea = x.positionArea, posNo = x.posNo, // positionEmployeePosition = x.Profile.PositionEmployeePosition == null ? null : x.Profile.PositionEmployeePosition.Name, // positionEmployeeLevel = x.Profile.PositionEmployeeLevel == null ? null : x.Profile.PositionEmployeeLevel.Name, @@ -976,6 +990,8 @@ namespace BMA.EHR.Retirement.Service.Controllers data.posLevelRank = org.result.posLevelRank; data.posExecutiveId = org.result.posExecutiveId; data.posExecutiveName = org.result.posExecutiveName; + data.positionExecutiveField = org.result.positionExecutiveField; + data.positionArea = org.result.positionArea; data.posNo = org.result.posNo; dataRaw.profileId = org.result.profileId; @@ -1008,6 +1024,8 @@ namespace BMA.EHR.Retirement.Service.Controllers dataRaw.posLevelRank = org.result.posLevelRank; dataRaw.posExecutiveId = org.result.posExecutiveId; dataRaw.posExecutiveName = org.result.posExecutiveName; + dataRaw.positionExecutiveField = org.result.positionExecutiveField; + dataRaw.positionArea = org.result.positionArea; dataRaw.posNo = org.result.posNo; _context.RetirementProfiles.Add(data); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 24d01982..6f6f8fa5 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -290,6 +290,8 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementDeceased.posMasterNo = org.result.posMasterNo; retirementDeceased.position = org.result.position; retirementDeceased.PositionExecutiveOld = org.result.posExecutiveName; + retirementDeceased.positionExecutiveFieldOld = org.result.positionExecutiveField; + retirementDeceased.positionAreaOld = org.result.positionArea; retirementDeceased.posTypeId = org.result.posTypeId; retirementDeceased.posTypeName = $"{org.result.posTypeShortName} {org.result.posTypeName}"; retirementDeceased.posLevelId = org.result.posLevelId; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 6abfd2fb..83398c89 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -406,6 +406,8 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOther.LeaveDate = org.result.leaveDate; retirementOther.PositionOld = org.result.position; retirementOther.PositionExecutiveOld = org.result.posExecutiveName; + retirementOther.positionExecutiveFieldOld = org.result.positionExecutiveField; + retirementOther.positionAreaOld = org.result.positionArea; retirementOther.PositionLevelOld = org.result.posLevelName; retirementOther.PositionTypeOld = org.result.posTypeName; retirementOther.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; @@ -528,6 +530,8 @@ namespace BMA.EHR.Retirement.Service.Controllers uppdated.posMasterNo = req.posMasterNo; uppdated.position = req.positionName; uppdated.PositionExecutive = req.posExecutiveName; + uppdated.positionExecutiveField = req.positionExecutiveField; + uppdated.positionArea = req.positionArea; uppdated.positionField = req.positionField; uppdated.posTypeId = req.posTypeId; uppdated.posTypeName = req.posTypeName; @@ -731,7 +735,7 @@ namespace BMA.EHR.Retirement.Service.Controllers OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(), LeaveDate = p.LeaveDate == null ? "-" : p.LeaveDate.Value.ToThaiShortDate2().ToThaiNumber(), NewOc = (p.position == null ? "" : $"{p.position}\n") + - (p.PositionExecutive == null ? "" : $"{p.PositionExecutive}\n") + + (p.PositionExecutive == null ? "" : (p.positionArea == null ? $"{p.positionExecutiveField}\n" : $"{p.PositionExecutive}({p.positionExecutiveField})\n")) + (p.child4 == null ? "" : $"{p.child4}\n") + (p.child3 == null ? "" : $"{p.child3}\n") + (p.child2 == null ? "" : $"{p.child2}\n") + @@ -812,7 +816,9 @@ namespace BMA.EHR.Retirement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutiveOld, + positionExecutiveField = p.positionExecutiveFieldOld, + positionArea = p.positionAreaOld, positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, isLeave = false, @@ -973,7 +979,7 @@ namespace BMA.EHR.Retirement.Service.Controllers LeaveDate = p.LeaveDate == null ? "-" : p.LeaveDate.Value.ToThaiShortDate2().ToThaiNumber(), MilitaryDate = p.MilitaryDate == null ? "-" : p.MilitaryDate.Value.ToThaiShortDate2().ToThaiNumber(), NewOc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + - (p.PositionExecutiveOld == null ? "" : $"{p.PositionExecutiveOld}\n") + + (p.PositionExecutiveOld == null ? "" : (p.positionExecutiveFieldOld == null ? $"{p.PositionExecutiveOld}\n" : $"{p.PositionExecutiveOld}({p.positionExecutiveFieldOld})\n")) + (p.child4Old == null ? "" : $"{p.child4Old}\n") + (p.child3Old == null ? "" : $"{p.child3Old}\n") + (p.child2Old == null ? "" : $"{p.child2Old}\n") + @@ -1054,7 +1060,9 @@ namespace BMA.EHR.Retirement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutiveOld, + positionExecutiveField = p.positionExecutiveFieldOld, + positionArea = p.positionAreaOld, positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, isLeave = false, diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index 236afd4c..6e6fb9ae 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -300,6 +300,8 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementOut.PositionOld = org.result.position; retirementOut.PositionExecutiveOld = org.result.posExecutiveName; + retirementOut.positionExecutiveFieldOld = org.result.positionExecutiveField; + retirementOut.positionAreaOld = org.result.positionArea; retirementOut.PositionLevelOld = org.result.posLevelName; retirementOut.PositionTypeOld = org.result.posTypeName; retirementOut.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; @@ -562,7 +564,9 @@ namespace BMA.EHR.Retirement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutiveOld, + positionExecutiveField = p.positionExecutiveFieldOld, + positionArea = p.positionAreaOld, positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, isLeave = true, diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index cbb31dbe..9dd5189a 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -1301,6 +1301,8 @@ namespace BMA.EHR.Retirement.Service.Controllers retirementResign.AmountOld = org.result.salary; retirementResign.PositionOld = org.result.position; retirementResign.PositionExecutiveOld = org.result.posExecutiveName; + retirementResign.positionExecutiveFieldOld = org.result.positionExecutiveField; + retirementResign.positionAreaOld = org.result.positionArea; retirementResign.PositionLevelOld = org.result.posLevelName; retirementResign.PositionTypeOld = org.result.posTypeName; retirementResign.PositionNumberOld = org.result.nodeShortName + " " + org.result.posMasterNo; @@ -2626,7 +2628,9 @@ namespace BMA.EHR.Retirement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutiveOld, + positionExecutiveField = p.positionExecutiveFieldOld, + positionArea = p.positionAreaOld, positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, isLeave = p.IsCancel == true ? false : true, @@ -2748,7 +2752,7 @@ namespace BMA.EHR.Retirement.Service.Controllers PositionName = p.PositionOld ?? "-", Organization = p.OrganizationPositionOld ?? "-", Oc = (p.PositionOld == null ? "" : $"{p.PositionOld}\n") + - (p.PositionExecutiveOld == null ? "" : $"{p.PositionExecutiveOld}\n") + + (p.PositionExecutiveOld == null ? "" : (p.positionExecutiveFieldOld == null ? $"{p.PositionExecutiveOld}\n" : $"{p.PositionExecutiveOld}({p.positionExecutiveFieldOld})\n")) + (p.child4Old == null ? "" : $"{p.child4Old}\n") + (p.child3Old == null ? "" : $"{p.child3Old}\n") + (p.child2Old == null ? "" : $"{p.child2Old}\n") + @@ -2824,7 +2828,9 @@ namespace BMA.EHR.Retirement.Service.Controllers amountSpecial = r.amountSpecial, positionSalaryAmount = r.positionSalaryAmount, mouthSalaryAmount = r.mouthSalaryAmount, - positionExecutive = "", + positionExecutive = p.PositionExecutiveOld, + positionExecutiveField = p.positionExecutiveFieldOld, + positionArea = p.positionAreaOld, positionType = p.PositionTypeOld, positionLevel = p.PositionLevelOld, isLeave = false, diff --git a/BMA.EHR.Retirement.Service/Requests/OrgRequest.cs b/BMA.EHR.Retirement.Service/Requests/OrgRequest.cs index c859378c..d68ed4a1 100644 --- a/BMA.EHR.Retirement.Service/Requests/OrgRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/OrgRequest.cs @@ -48,6 +48,8 @@ namespace BMA.EHR.Retirement.Service.Requests public int? posLevelRank { get; set; } public string? posExecutiveId { get; set; } public string? posExecutiveName { get; set; } + public string? positionExecutiveField { get; set; } + public string? positionArea { get; set; } public string? posNo { get; set; } public DateTime? leaveDate { get; set; } public string? education { get; set; } diff --git a/BMA.EHR.Retirement.Service/Requests/OrgRequestArray.cs b/BMA.EHR.Retirement.Service/Requests/OrgRequestArray.cs index de96af94..d03b9738 100644 --- a/BMA.EHR.Retirement.Service/Requests/OrgRequestArray.cs +++ b/BMA.EHR.Retirement.Service/Requests/OrgRequestArray.cs @@ -42,6 +42,8 @@ namespace BMA.EHR.Retirement.Service.Requests public int? posLevelRank { get; set; } public string? posExecutiveId { get; set; } public string? posExecutiveName { get; set; } + public string? positionExecutiveField { get; set; } + public string? positionArea { get; set; } public string? posNo { get; set; } } } \ No newline at end of file diff --git a/BMA.EHR.Retirement.Service/Requests/PersonSelectPositionOtherRequest.cs b/BMA.EHR.Retirement.Service/Requests/PersonSelectPositionOtherRequest.cs index e9dfc86c..8252d1af 100644 --- a/BMA.EHR.Retirement.Service/Requests/PersonSelectPositionOtherRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/PersonSelectPositionOtherRequest.cs @@ -30,5 +30,7 @@ namespace BMA.EHR.Retirement.Service.Requests public string? posLevelName { get; set; } public string? typeCommand { get; set; } public string? posExecutiveName { get; set; } + public string? positionExecutiveField { get; set; } + public string? positionArea { get; set; } } } \ No newline at end of file diff --git a/BMA.EHR.Retirement.Service/Requests/ProfileJsonRequest.cs b/BMA.EHR.Retirement.Service/Requests/ProfileJsonRequest.cs index 3521bf91..bb5b8317 100644 --- a/BMA.EHR.Retirement.Service/Requests/ProfileJsonRequest.cs +++ b/BMA.EHR.Retirement.Service/Requests/ProfileJsonRequest.cs @@ -58,6 +58,8 @@ namespace BMA.EHR.Retirement.Service.Requests public int? posLevelRank { get; set; } public string? posExecutiveId { get; set; } public string? posExecutiveName { get; set; } + public string? positionExecutiveField { get; set; } + public string? positionArea { get; set; } public string? posNo { get; set; } } } From bc8b6819005944ad71d7797b2908eeebad67e91e Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 16 Jun 2025 13:45:21 +0700 Subject: [PATCH 371/879] update (positionExecutiveField) --- .../Controllers/PlacementAppointmentController.cs | 4 +++- .../Controllers/PlacementOfficerController.cs | 5 ++++- .../Controllers/PlacementReceiveController.cs | 4 +++- .../Controllers/PlacementRepatriationController.cs | 4 +++- .../Controllers/PlacementTransferController.cs | 4 +++- .../Controllers/RetirementOtherController.cs | 4 +++- .../Controllers/RetirementOutController.cs | 7 ++++--- .../Controllers/RetirementResignController.cs | 4 +++- 8 files changed, 26 insertions(+), 10 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index c917b448..14e27b2f 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -477,7 +477,9 @@ namespace BMA.EHR.Placement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementAppointment.OrganizationPositionOld = org.result.position + "\n" + (placementAppointment.PositionExecutiveOld == null ? "" : placementAppointment.PositionExecutiveOld + "\n") + placementAppointment.OrganizationOld; + placementAppointment.OrganizationPositionOld = org.result.position + "\n" + + (placementAppointment.PositionExecutiveOld == null ? "" : (placementAppointment.positionExecutiveField == null ? placementAppointment.PositionExecutiveOld + "\n": placementAppointment.PositionExecutiveOld + "(" + placementAppointment.positionExecutiveField + ")" + "\n")) + + placementAppointment.OrganizationOld; placementAppointment.AmountOld = org.result.salary; } await _context.PlacementAppointments.AddAsync(placementAppointment); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 4886f587..5b1e24d8 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -421,7 +421,10 @@ namespace BMA.EHR.Placement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementOfficer.OrganizationPositionOld = org.result.position + "\n" + (placementOfficer.PositionExecutiveOld == null ? "" : placementOfficer.PositionExecutiveOld + "\n") + placementOfficer.OrganizationOld; + placementOfficer.OrganizationPositionOld = org.result.position + "\n" + + (placementOfficer.PositionExecutiveOld == null ? "" : (placementOfficer.positionExecutiveField == null ? placementOfficer.PositionExecutiveOld + "\n" : placementOfficer.PositionExecutiveOld + "(" + placementOfficer.positionExecutiveField + ")" + "\n")) + + placementOfficer.OrganizationOld; + } await _context.PlacementOfficers.AddAsync(placementOfficer); await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 993df51b..f36ee09e 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -514,7 +514,9 @@ namespace BMA.EHR.Placement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementReceive.OrganizationPositionOld = org.result.position + "\n" + (placementReceive.PositionExecutiveOld == null ? "" : placementReceive.PositionExecutiveOld + "\n") + placementReceive.OrganizationOld; + placementReceive.OrganizationPositionOld = org.result.position + "\n" + + (placementReceive.PositionExecutiveOld == null ? "" : (placementReceive.positionExecutiveField == null ? placementReceive.PositionExecutiveOld + "\n" : placementReceive.PositionExecutiveOld + "(" + placementReceive.positionExecutiveField + ")" + "\n")) + + placementReceive.OrganizationOld; } } await _context.PlacementReceives.AddAsync(placementReceive); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index bd839917..cd24d0f0 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -303,7 +303,9 @@ namespace BMA.EHR.Placement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementRepatriation.OrganizationPositionOld = org.result.position + "\n" + (placementRepatriation.PositionExecutiveOld == null ? "" : placementRepatriation.PositionExecutiveOld + "\n") + placementRepatriation.OrganizationOld; + placementRepatriation.OrganizationPositionOld = org.result.position + "\n" + + (placementRepatriation.PositionExecutiveOld == null ? "" : (placementRepatriation.positionExecutiveField == null ? placementRepatriation.PositionExecutiveOld + "\n" : placementRepatriation.PositionExecutiveOld + "(" + placementRepatriation.positionExecutiveField + ")" + "\n")) + + placementRepatriation.OrganizationOld; } var baseAPIOrg = _configuration["API"]; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index 8689339a..1440f49a 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -558,7 +558,9 @@ namespace BMA.EHR.Placement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementTransfer.OrganizationPositionOld = org.result.position + "\n" + (placementTransfer.PositionExecutiveOld == null ? "" : placementTransfer.PositionExecutiveOld + "\n") + placementTransfer.OrganizationOld; + placementTransfer.OrganizationPositionOld = org.result.position + "\n" + + (placementTransfer.PositionExecutiveOld == null ? "" : (placementTransfer.positionExecutiveField == null ? placementTransfer.PositionExecutiveOld + "\n" : placementTransfer.PositionExecutiveOld + "(" + placementTransfer.positionExecutiveField + ")" + "\n")) + + placementTransfer.OrganizationOld; } await _context.PlacementTransfers.AddAsync(placementTransfer); await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 83398c89..91413ff4 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -416,7 +416,9 @@ namespace BMA.EHR.Retirement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - retirementOther.OrganizationPositionOld = org.result.position + "\n" + (retirementOther.PositionExecutiveOld == null ? "" : retirementOther.PositionExecutiveOld + "\n") + retirementOther.OrganizationOld; + retirementOther.OrganizationPositionOld = org.result.position + "\n" + + (retirementOther.PositionExecutiveOld == null ? "" : (retirementOther.positionExecutiveField == null ? retirementOther.PositionExecutiveOld + "\n" : retirementOther.PositionExecutiveOld + "(" + retirementOther.positionExecutiveField + ")" + "\n")) + + retirementOther.OrganizationOld; retirementOther.EducationOld = org.result.education; retirementOther.AmountOld = org.result.salary; } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index 6e6fb9ae..ae943e50 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -2,6 +2,7 @@ using BMA.EHR.Application.Repositories.MessageQueue; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; +using BMA.EHR.Domain.Models.Placement; using BMA.EHR.Domain.Models.Retirement; using BMA.EHR.Domain.Shared; using BMA.EHR.Infrastructure.Persistence; @@ -310,7 +311,9 @@ namespace BMA.EHR.Retirement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - retirementOut.OrganizationPositionOld = org.result.position + "\n" + (retirementOut.PositionExecutiveOld == null ? "" : retirementOut.PositionExecutiveOld + "\n") + retirementOut.OrganizationOld; + retirementOut.OrganizationPositionOld = org.result.position + "\n" + + (retirementOut.PositionExecutiveOld == null ? "" : (retirementOut.positionExecutiveField == null ? retirementOut.PositionExecutiveOld + "\n" : retirementOut.PositionExecutiveOld + "(" + retirementOut.positionExecutiveField + ")" + "\n")) + + retirementOut.OrganizationOld; retirementOut.AmountOld = org.result.salary; } } @@ -324,9 +327,7 @@ namespace BMA.EHR.Retirement.Service.Controllers var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); var _res = await client.SendAsync(_req); var _result = await _res.Content.ReadAsStringAsync(); - var org = JsonConvert.DeserializeObject(_result); - if (org == null || org.result == null) return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļ„āļ™āļ™āļĩāđ‰", 404); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 9dd5189a..763ac48b 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -1311,7 +1311,9 @@ namespace BMA.EHR.Retirement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - retirementResign.OrganizationPositionOld = org.result.position + "\n" + (retirementResign.PositionExecutiveOld == null ? "" : retirementResign.PositionExecutiveOld + "\n") + retirementResign.OrganizationOld; + retirementResign.OrganizationPositionOld = org.result.position + "\n" + + (retirementResign.PositionExecutiveOld == null ? "" : (retirementResign.positionExecutiveField == null ? retirementResign.PositionExecutiveOld + "\n" : retirementResign.PositionExecutiveOld + "(" + retirementResign.positionExecutiveField + ")" + "\n")) + + retirementResign.OrganizationOld; if ((retirementResign.posTypeNameOld == "āļ—āļąāđˆāļ§āđ„āļ›" && retirementResign.posLevelNameOld == "āļŠāļģāļ™āļēāļāļ‡āļēāļ™") || (retirementResign.posTypeNameOld == "āļ—āļąāđˆāļ§āđ„āļ›" && retirementResign.posLevelNameOld == "āļ›āļāļīāļšāļąāļ•āļīāļ‡āļēāļ™") || (retirementResign.posTypeNameOld == "āļ§āļīāļŠāļēāļāļēāļĢ" && retirementResign.posLevelNameOld == "āļ›āļāļīāļšāļąāļ•āļīāļāļēāļĢ") || (retirementResign.posTypeNameOld == "āļ§āļīāļŠāļēāļāļēāļĢ" && retirementResign.posLevelNameOld == "āļŠāļģāļ™āļēāļāļāļēāļĢ")) { From 326a258e2b2fd828bae206c74759f92edb628455 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 16 Jun 2025 14:40:38 +0700 Subject: [PATCH 372/879] add migration placement and retire --- ...Add Field Placement and Retire.Designer.cs | 20891 ++++++++++++++++ ...16073836_Add Field Placement and Retire.cs | 642 + .../ApplicationDBContextModelSnapshot.cs | 208 + 3 files changed, 21741 insertions(+) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250616073836_Add Field Placement and Retire.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250616073836_Add Field Placement and Retire.cs diff --git a/BMA.EHR.Infrastructure/Migrations/20250616073836_Add Field Placement and Retire.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250616073836_Add Field Placement and Retire.Designer.cs new file mode 100644 index 00000000..2af1f0f2 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250616073836_Add Field Placement and Retire.Designer.cs @@ -0,0 +1,20891 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250616073836_Add Field Placement and Retire")] + partial class AddFieldPlacementandRetire + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReclaimDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.Property("ReclaimOrganization") + .HasColumnType("longtext"); + + b.Property("ReclaimOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("ReclaimReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaReclaimProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("APR1") + .HasColumnType("longtext"); + + b.Property("APR2") + .HasColumnType("longtext"); + + b.Property("APR3") + .HasColumnType("longtext"); + + b.Property("APR4") + .HasColumnType("longtext"); + + b.Property("APR5") + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkInsignia") + .HasColumnType("tinyint(1)"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("OCT1") + .HasColumnType("longtext"); + + b.Property("OCT2") + .HasColumnType("longtext"); + + b.Property("OCT3") + .HasColumnType("longtext"); + + b.Property("OCT4") + .HasColumnType("longtext"); + + b.Property("OCT5") + .HasColumnType("longtext"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignCancelId"); + + b.ToTable("RetirementResignCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignEmployeeCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeCancelId"); + + b.ToTable("RetirementResignEmployeeCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("Approvers") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", "RetirementResignCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", "RetirementResignEmployeeCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployeeCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Navigation("Approvers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Navigation("Approvers"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250616073836_Add Field Placement and Retire.cs b/BMA.EHR.Infrastructure/Migrations/20250616073836_Add Field Placement and Retire.cs new file mode 100644 index 00000000..b2647f8e --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250616073836_Add Field Placement and Retire.cs @@ -0,0 +1,642 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class AddFieldPlacementandRetire : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "positionArea", + table: "RetirementResigns", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionAreaOld", + table: "RetirementResigns", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveField", + table: "RetirementResigns", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveFieldOld", + table: "RetirementResigns", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionArea", + table: "RetirementResignCancels", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionAreaOld", + table: "RetirementResignCancels", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveField", + table: "RetirementResignCancels", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveFieldOld", + table: "RetirementResignCancels", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionArea", + table: "RetirementRawProfiles", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionAreaOld", + table: "RetirementRawProfiles", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveField", + table: "RetirementRawProfiles", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveFieldOld", + table: "RetirementRawProfiles", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionArea", + table: "RetirementProfiles", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionAreaOld", + table: "RetirementProfiles", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveField", + table: "RetirementProfiles", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveFieldOld", + table: "RetirementProfiles", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionArea", + table: "RetirementOuts", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionAreaOld", + table: "RetirementOuts", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveField", + table: "RetirementOuts", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveFieldOld", + table: "RetirementOuts", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionArea", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionAreaOld", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveField", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveFieldOld", + table: "RetirementOthers", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionArea", + table: "RetirementDeceaseds", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionAreaOld", + table: "RetirementDeceaseds", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveField", + table: "RetirementDeceaseds", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveFieldOld", + table: "RetirementDeceaseds", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionArea", + table: "PlacementTransfers", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionAreaOld", + table: "PlacementTransfers", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveField", + table: "PlacementTransfers", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveFieldOld", + table: "PlacementTransfers", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionArea", + table: "PlacementRepatriations", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionAreaOld", + table: "PlacementRepatriations", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveField", + table: "PlacementRepatriations", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveFieldOld", + table: "PlacementRepatriations", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionArea", + table: "PlacementReceives", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionAreaOld", + table: "PlacementReceives", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveField", + table: "PlacementReceives", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveFieldOld", + table: "PlacementReceives", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionArea", + table: "PlacementProfiles", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionAreaOld", + table: "PlacementProfiles", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveField", + table: "PlacementProfiles", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveFieldOld", + table: "PlacementProfiles", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionArea", + table: "PlacementOfficers", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionAreaOld", + table: "PlacementOfficers", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveField", + table: "PlacementOfficers", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveFieldOld", + table: "PlacementOfficers", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionArea", + table: "PlacementAppointments", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionAreaOld", + table: "PlacementAppointments", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveField", + table: "PlacementAppointments", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "positionExecutiveFieldOld", + table: "PlacementAppointments", + type: "longtext", + nullable: true, + comment: "āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "positionArea", + table: "RetirementResigns"); + + migrationBuilder.DropColumn( + name: "positionAreaOld", + table: "RetirementResigns"); + + migrationBuilder.DropColumn( + name: "positionExecutiveField", + table: "RetirementResigns"); + + migrationBuilder.DropColumn( + name: "positionExecutiveFieldOld", + table: "RetirementResigns"); + + migrationBuilder.DropColumn( + name: "positionArea", + table: "RetirementResignCancels"); + + migrationBuilder.DropColumn( + name: "positionAreaOld", + table: "RetirementResignCancels"); + + migrationBuilder.DropColumn( + name: "positionExecutiveField", + table: "RetirementResignCancels"); + + migrationBuilder.DropColumn( + name: "positionExecutiveFieldOld", + table: "RetirementResignCancels"); + + migrationBuilder.DropColumn( + name: "positionArea", + table: "RetirementRawProfiles"); + + migrationBuilder.DropColumn( + name: "positionAreaOld", + table: "RetirementRawProfiles"); + + migrationBuilder.DropColumn( + name: "positionExecutiveField", + table: "RetirementRawProfiles"); + + migrationBuilder.DropColumn( + name: "positionExecutiveFieldOld", + table: "RetirementRawProfiles"); + + migrationBuilder.DropColumn( + name: "positionArea", + table: "RetirementProfiles"); + + migrationBuilder.DropColumn( + name: "positionAreaOld", + table: "RetirementProfiles"); + + migrationBuilder.DropColumn( + name: "positionExecutiveField", + table: "RetirementProfiles"); + + migrationBuilder.DropColumn( + name: "positionExecutiveFieldOld", + table: "RetirementProfiles"); + + migrationBuilder.DropColumn( + name: "positionArea", + table: "RetirementOuts"); + + migrationBuilder.DropColumn( + name: "positionAreaOld", + table: "RetirementOuts"); + + migrationBuilder.DropColumn( + name: "positionExecutiveField", + table: "RetirementOuts"); + + migrationBuilder.DropColumn( + name: "positionExecutiveFieldOld", + table: "RetirementOuts"); + + migrationBuilder.DropColumn( + name: "positionArea", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "positionAreaOld", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "positionExecutiveField", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "positionExecutiveFieldOld", + table: "RetirementOthers"); + + migrationBuilder.DropColumn( + name: "positionArea", + table: "RetirementDeceaseds"); + + migrationBuilder.DropColumn( + name: "positionAreaOld", + table: "RetirementDeceaseds"); + + migrationBuilder.DropColumn( + name: "positionExecutiveField", + table: "RetirementDeceaseds"); + + migrationBuilder.DropColumn( + name: "positionExecutiveFieldOld", + table: "RetirementDeceaseds"); + + migrationBuilder.DropColumn( + name: "positionArea", + table: "PlacementTransfers"); + + migrationBuilder.DropColumn( + name: "positionAreaOld", + table: "PlacementTransfers"); + + migrationBuilder.DropColumn( + name: "positionExecutiveField", + table: "PlacementTransfers"); + + migrationBuilder.DropColumn( + name: "positionExecutiveFieldOld", + table: "PlacementTransfers"); + + migrationBuilder.DropColumn( + name: "positionArea", + table: "PlacementRepatriations"); + + migrationBuilder.DropColumn( + name: "positionAreaOld", + table: "PlacementRepatriations"); + + migrationBuilder.DropColumn( + name: "positionExecutiveField", + table: "PlacementRepatriations"); + + migrationBuilder.DropColumn( + name: "positionExecutiveFieldOld", + table: "PlacementRepatriations"); + + migrationBuilder.DropColumn( + name: "positionArea", + table: "PlacementReceives"); + + migrationBuilder.DropColumn( + name: "positionAreaOld", + table: "PlacementReceives"); + + migrationBuilder.DropColumn( + name: "positionExecutiveField", + table: "PlacementReceives"); + + migrationBuilder.DropColumn( + name: "positionExecutiveFieldOld", + table: "PlacementReceives"); + + migrationBuilder.DropColumn( + name: "positionArea", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "positionAreaOld", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "positionExecutiveField", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "positionExecutiveFieldOld", + table: "PlacementProfiles"); + + migrationBuilder.DropColumn( + name: "positionArea", + table: "PlacementOfficers"); + + migrationBuilder.DropColumn( + name: "positionAreaOld", + table: "PlacementOfficers"); + + migrationBuilder.DropColumn( + name: "positionExecutiveField", + table: "PlacementOfficers"); + + migrationBuilder.DropColumn( + name: "positionExecutiveFieldOld", + table: "PlacementOfficers"); + + migrationBuilder.DropColumn( + name: "positionArea", + table: "PlacementAppointments"); + + migrationBuilder.DropColumn( + name: "positionAreaOld", + table: "PlacementAppointments"); + + migrationBuilder.DropColumn( + name: "positionExecutiveField", + table: "PlacementAppointments"); + + migrationBuilder.DropColumn( + name: "positionExecutiveFieldOld", + table: "PlacementAppointments"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index 03812a23..cf809d3a 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -11762,6 +11762,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + b.Property("positionField") .HasColumnType("longtext") .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); @@ -12472,6 +12488,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + b.Property("prefix") .HasColumnType("longtext") .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); @@ -13113,6 +13145,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + b.Property("positionField") .HasColumnType("longtext") .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); @@ -13606,6 +13654,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + b.Property("positionField") .HasColumnType("longtext") .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); @@ -14183,6 +14247,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + b.Property("prefix") .HasColumnType("longtext") .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); @@ -14412,6 +14492,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + b.Property("prefix") .HasColumnType("longtext") .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); @@ -14829,6 +14925,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + b.Property("prefix") .HasColumnType("longtext") .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); @@ -15495,6 +15607,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + b.Property("positionField") .HasColumnType("longtext") .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); @@ -15812,6 +15940,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + b.Property("prefix") .HasColumnType("longtext") .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); @@ -16208,6 +16352,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + b.Property("prefix") .HasColumnType("longtext") .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); @@ -16752,6 +16912,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + b.Property("prefix") .HasColumnType("longtext") .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); @@ -17074,6 +17250,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + b.Property("prefix") .HasColumnType("longtext") .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); @@ -17477,6 +17669,22 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + b.Property("prefix") .HasColumnType("longtext") .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); From 2d7459da255fd027760fab048173be9061bfc656 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 17 Jun 2025 11:02:42 +0700 Subject: [PATCH 373/879] =?UTF-8?q?fix=20Approve=20=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=A5=E0=B8=87=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?=E0=B8=81=E0=B8=A3=E0=B8=93=E0=B8=B5=E0=B8=9E=E0=B8=B4=E0=B9=80?= =?UTF-8?q?=E0=B8=A8=E0=B8=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveController.cs | 26 +++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index 73c632b4..f7e315fa 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -2077,6 +2077,20 @@ namespace BMA.EHR.Leave.Service.Controllers processTimeStamp.EditStatus = "APPROVE"; processTimeStamp.EditReason = req.Reason; + if (requestData.CheckInEdit) + { + processTimeStamp.CheckInPOI = requestData.POI ?? ""; + processTimeStamp.CheckInLat = requestData.Latitude ?? 0; + processTimeStamp.CheckInLon = requestData.Longitude ?? 0; + } + + if (requestData.CheckOutEdit) + { + processTimeStamp.CheckOutPOI = requestData.POI ?? ""; + processTimeStamp.CheckOutLat = requestData.Latitude ?? 0; + processTimeStamp.CheckOutLon = requestData.Longitude ?? 0; + } + await _processUserTimeStampRepository.AddAsync(processTimeStamp); } else @@ -2085,9 +2099,9 @@ namespace BMA.EHR.Leave.Service.Controllers { processTimeStamp.CheckIn = DateTime.Parse($"{requestData.CheckDate.Date.ToString("yyyy-MM-dd")} {req.CheckInTime}"); processTimeStamp.CheckInRemark = req.Reason; - processTimeStamp.CheckInLat = 0; - processTimeStamp.CheckInLon = 0; - processTimeStamp.CheckInPOI = "āļĨāļ‡āđ€āļ§āļĨāļēāļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"; + //processTimeStamp.CheckInLat = 0; + //processTimeStamp.CheckInLon = 0; + //processTimeStamp.CheckInPOI = "āļĨāļ‡āđ€āļ§āļĨāļēāļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"; processTimeStamp.CheckInStatus = req.CheckInStatus; processTimeStamp.CheckInPOI = requestData.POI ?? ""; @@ -2099,9 +2113,9 @@ namespace BMA.EHR.Leave.Service.Controllers { processTimeStamp.CheckOut = DateTime.Parse($"{requestData.CheckDate.Date.ToString("yyyy-MM-dd")} {req.CheckOutTime}"); processTimeStamp.CheckOutRemark = req.Reason; - processTimeStamp.CheckOutLat = 0; - processTimeStamp.CheckOutLon = 0; - processTimeStamp.CheckOutPOI = "āļĨāļ‡āđ€āļ§āļĨāļēāļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"; + //processTimeStamp.CheckOutLat = 0; + //processTimeStamp.CheckOutLon = 0; + //processTimeStamp.CheckOutPOI = "āļĨāļ‡āđ€āļ§āļĨāļēāļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"; processTimeStamp.CheckOutStatus = req.CheckOutStatus; processTimeStamp.CheckOutPOI = requestData.POI ?? ""; From 9070378060ef8a15d94184d4ff187b9b5e982684 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 17 Jun 2025 13:22:39 +0700 Subject: [PATCH 374/879] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=94?= =?UTF-8?q?=E0=B8=B6=E0=B8=87=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9?= =?UTF-8?q?=E0=B8=A5=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2=20=E0=B8=A1?= =?UTF-8?q?=E0=B8=B2=E0=B9=83=E0=B8=8A=E0=B9=89=20process=20time=20stamp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Leave/Controllers/LeaveController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index f7e315fa..9dbdc7d5 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -2329,7 +2329,8 @@ namespace BMA.EHR.Leave.Service.Controllers var roundId = effectiveDate != null ? effectiveDate.DutyTimeId : Guid.Empty; var userRound = await _dutyTimeRepository.GetByIdAsync(roundId); - var checkInData = await _userTimeStampRepository.GetTimestampByDateAsync(data.KeycloakUserId, data.CheckDate); + //var checkInData = await _userTimeStampRepository.GetTimestampByDateAsync(data.KeycloakUserId, data.CheckDate); + var checkInData = await _processUserTimeStampRepository.GetTimestampByDateAsync(data.KeycloakUserId, data.CheckDate); var duty = userRound ?? getDefaultRound; From 360580535a8cc243caeb27f5a03679ef27512062 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 17 Jun 2025 14:19:52 +0700 Subject: [PATCH 375/879] fix again --- BMA.EHR.Leave/Controllers/LeaveController.cs | 43 ++++++++++++-------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index 9dbdc7d5..8b19a67a 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -2329,18 +2329,20 @@ namespace BMA.EHR.Leave.Service.Controllers var roundId = effectiveDate != null ? effectiveDate.DutyTimeId : Guid.Empty; var userRound = await _dutyTimeRepository.GetByIdAsync(roundId); - //var checkInData = await _userTimeStampRepository.GetTimestampByDateAsync(data.KeycloakUserId, data.CheckDate); - var checkInData = await _processUserTimeStampRepository.GetTimestampByDateAsync(data.KeycloakUserId, data.CheckDate); + var checkInData = await _userTimeStampRepository.GetTimestampByDateAsync(data.KeycloakUserId, data.CheckDate); + //var checkInData = await _processUserTimeStampRepository.GetTimestampByDateAsync(data.KeycloakUserId, data.CheckDate); var duty = userRound ?? getDefaultRound; - DateTime? resultCheckInDate, resultCheckOutDate; + DateTime? resultCheckInDate, resultCheckOutDate, resultCheckInDateAndTime, resultCheckOutDateAndTime; string resultCheckInTime, resultCheckOutTime; + string resultCheckInLocation = "", resultCheckOutLocation = ""; if (data.CheckInEdit) { resultCheckInDate = data.CheckDate.Date; resultCheckInTime = duty.StartTimeMorning; + resultCheckInLocation = data.POI ?? ""; } else { @@ -2352,6 +2354,7 @@ namespace BMA.EHR.Leave.Service.Controllers { resultCheckOutDate = data.CheckDate.Date; resultCheckOutTime = duty.EndTimeAfternoon; + resultCheckOutLocation = data.POI ?? ""; } else { @@ -2365,6 +2368,11 @@ namespace BMA.EHR.Leave.Service.Controllers } + + resultCheckInDateAndTime = DateTime.Parse($"{resultCheckInDate.Value.Date.ToString("yyyy-MM-dd")} {resultCheckInTime}"); + resultCheckOutDateAndTime = DateTime.Parse($"{resultCheckOutDate.Value.Date.ToString("yyyy-MM-dd")} {resultCheckOutTime}"); + + // create result object to return var resObj = new GetAdditionalCheckRequestHistoryDto { @@ -2376,27 +2384,30 @@ namespace BMA.EHR.Leave.Service.Controllers CheckInTime = resultCheckInTime, CheckOutTime = resultCheckOutTime, - CheckInStatus = checkInData == null ? null : - DateTime.Parse(checkInData.CheckIn.ToString("yyyy-MM-dd HH:mm")) > - DateTime.Parse($"{checkInData.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.StartTimeMorning}") ? - DateTime.Parse(checkInData.CheckIn.ToString("yyyy-MM-dd HH:mm")) > - DateTime.Parse($"{checkInData.CheckIn.ToString("yyyy-MM-dd")} {duty.EndTimeMorning}") ? + CheckInStatus = resultCheckInDateAndTime == null ? null : + DateTime.Parse(resultCheckInDateAndTime.Value.ToString("yyyy-MM-dd HH:mm")) > + DateTime.Parse($"{resultCheckInDate.Value.Date.ToString("yyyy-MM-dd")} {duty.StartTimeMorning}") ? + DateTime.Parse(resultCheckInDateAndTime.Value.ToString("yyyy-MM-dd HH:mm")) > + DateTime.Parse($"{resultCheckInDate.Value.ToString("yyyy-MM-dd")} {duty.EndTimeMorning}") ? "ABSENT" : "LATE" : "NORMAL", - CheckOutStatus = checkInData == null ? null : - checkInData.CheckOut == null ? null : - DateTime.Parse(checkInData.CheckOut.Value.ToString("yyyy-MM-dd HH:mm")) < - DateTime.Parse($"{checkInData.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}") ? + CheckOutStatus = resultCheckInDate == null ? null : + resultCheckOutDate == null ? null : + DateTime.Parse(resultCheckOutDateAndTime.Value.ToString("yyyy-MM-dd HH:mm")) < + DateTime.Parse($"{resultCheckInDate.Value.Date.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}") ? "ABSENT" : - DateTime.Parse(checkInData.CheckOut.Value.ToString("yyyy-MM-dd HH:mm")) < - DateTime.Parse($"{checkInData.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.EndTimeMorning}") ? + DateTime.Parse(resultCheckOutDateAndTime.Value.ToString("yyyy-MM-dd HH:mm")) < + DateTime.Parse($"{resultCheckInDate.Value.Date.ToString("yyyy-MM-dd")} {duty.EndTimeMorning}") ? "ABSENT" : "NORMAL", - CheckInLocation = checkInData == null ? "" : checkInData.CheckInPOI, - CheckOutLocation = checkInData == null ? "" : checkInData.CheckOutPOI ?? "", + //CheckInLocation = checkInData == null ? "" : checkInData.CheckInPOI, + //CheckOutLocation = checkInData == null ? "" : checkInData.CheckOutPOI ?? "", + + CheckInLocation = resultCheckInLocation, + CheckOutLocation = resultCheckOutLocation, EditReason = data.Comment ?? "", EditStatus = data.Status, From e790b50f58a08320c58780d3c954d7e56fca44ea Mon Sep 17 00:00:00 2001 From: Bright Date: Tue, 17 Jun 2025 18:07:41 +0700 Subject: [PATCH 376/879] fix bug report #1368, #1578 --- .../LeaveRequests/LeaveRequestRepository.cs | 63 +++++++--- .../Repositories/UserProfileRepository.cs | 65 +++++++++++ .../Controllers/LeaveReportController.cs | 108 ++++++++++++++++-- 3 files changed, 215 insertions(+), 21 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 25595c5f..6845fb61 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -1465,24 +1465,59 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests { // var _nodeId = Guid.Parse(nodeId); var data = new List(); + //if (role == "OWNER" || role == "CHILD") + //{ + // data = await _dbContext.Set().AsQueryable() + // .Include(x => x.Type) + // .Where(x => x.ProfileType == type.Trim().ToUpper()) + // .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) + // .Where(x => node == 4 ? x.Child4Id == Guid.Parse(nodeId) : (node == 3 ? x.Child3Id == Guid.Parse(nodeId) : (node == 2 ? x.Child2Id == Guid.Parse(nodeId) : (node == 1 ? x.Child1Id == Guid.Parse(nodeId) : (node == 0 ? x.RootId == Guid.Parse(nodeId) : (node == null ? true : true)))))) + // .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING").ToListAsync(); + //} + //else + //{ + // data = await _dbContext.Set().AsQueryable() + // .Include(x => x.Type) + // .Where(x => x.ProfileType == type.Trim().ToUpper()) + // .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) + // .Where(x => node == 4 ? x.Child4Id == Guid.Parse(nodeId) : (node == 3 ? x.Child3Id == Guid.Parse(nodeId) : (node == 2 ? x.Child2Id == Guid.Parse(nodeId) : (node == 1 ? x.Child1Id == Guid.Parse(nodeId) : (node == 0 ? x.RootId == Guid.Parse(nodeId) : (node == null ? true : true)))))) + // .Where(x => node == 0 ? x.Child1Id == null : (node == 1 ? x.Child2Id == null : (node == 2 ? x.Child3Id == null : (node == 3 ? x.Child4Id == null : true)))) + // .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING").ToListAsync(); + //} + data = await _dbContext.Set().AsQueryable() + .Include(x => x.Type) + .Where(x => x.ProfileType == type.Trim().ToUpper()) + .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) + .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING").ToListAsync(); + + if (role == "OWNER") + { + node = null; + } if (role == "OWNER" || role == "CHILD") { - data = await _dbContext.Set().AsQueryable() - .Include(x => x.Type) - .Where(x => x.ProfileType == type.Trim().ToUpper()) - .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) - .Where(x => node == 4 ? x.Child4Id == Guid.Parse(nodeId) : (node == 3 ? x.Child3Id == Guid.Parse(nodeId) : (node == 2 ? x.Child2Id == Guid.Parse(nodeId) : (node == 1 ? x.Child1Id == Guid.Parse(nodeId) : (node == 0 ? x.RootId == Guid.Parse(nodeId) : (node == null ? true : true)))))) - .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING").ToListAsync(); + data = data.Where(x => + node == 4 ? x.Child4DnaId == Guid.Parse(nodeId) : + node == 3 ? x.Child3DnaId == Guid.Parse(nodeId) : + node == 2 ? x.Child2DnaId == Guid.Parse(nodeId) : + node == 1 ? x.Child1DnaId == Guid.Parse(nodeId) : + node == 0 ? x.RootDnaId == Guid.Parse(nodeId) : + node == null ? true : true + ).ToList(); } - else + else if (role == "ROOT") { - data = await _dbContext.Set().AsQueryable() - .Include(x => x.Type) - .Where(x => x.ProfileType == type.Trim().ToUpper()) - .Where(x => x.LeaveStartDate.Date >= startDate.Date && x.LeaveStartDate.Date <= endDate.Date) - .Where(x => node == 4 ? x.Child4Id == Guid.Parse(nodeId) : (node == 3 ? x.Child3Id == Guid.Parse(nodeId) : (node == 2 ? x.Child2Id == Guid.Parse(nodeId) : (node == 1 ? x.Child1Id == Guid.Parse(nodeId) : (node == 0 ? x.RootId == Guid.Parse(nodeId) : (node == null ? true : true)))))) - .Where(x => node == 0 ? x.Child1Id == null : (node == 1 ? x.Child2Id == null : (node == 2 ? x.Child3Id == null : (node == 3 ? x.Child4Id == null : true)))) - .Where(x => x.LeaveStatus == "APPROVE" || x.LeaveStatus == "DELETING").ToListAsync(); + data = data.Where(x => x.RootDnaId == Guid.Parse(nodeId)).ToList(); + } + else if (role == "NORMAL") + { + data = data.Where(x => + node == 0 ? x.Child1DnaId == null : + node == 1 ? x.Child2DnaId == null : + node == 2 ? x.Child3DnaId == null : + node == 3 ? x.Child4DnaId == null : + true + ).ToList(); } var res = (from d in data diff --git a/BMA.EHR.Application/Repositories/UserProfileRepository.cs b/BMA.EHR.Application/Repositories/UserProfileRepository.cs index 11fea71b..71bd30ad 100644 --- a/BMA.EHR.Application/Repositories/UserProfileRepository.cs +++ b/BMA.EHR.Application/Repositories/UserProfileRepository.cs @@ -523,6 +523,38 @@ namespace BMA.EHR.Application.Repositories } } + public async Task> GetProfileByAdminRole(string? accessToken, int? node, string? nodeId, string role, string? revisionId) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/officer-by-admin-role"; + var apiKey = _configuration["API_KEY"]; + var body = new + { + node = node, + nodeId = nodeId, + role = role, + revisionId = revisionId, + }; + + var profiles = new List(); + + var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey); + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } + } + public async Task> GetProfileWithKeycloakAllOfficerRetireFilterAndRevision(string? accessToken, int? node, string? nodeId, bool isAll, bool? isRetirement, string? revisionId) { try @@ -619,6 +651,39 @@ namespace BMA.EHR.Application.Repositories throw; } } + + public async Task> GetEmployeeByAdminRole(string? accessToken, int? node, string? nodeId, string role, string? revisionId) + { + try + { + var apiPath = $"{_configuration["API"]}/org/dotnet/employee-by-admin-role"; + var apiKey = _configuration["API_KEY"]; + var body = new + { + node = node, + nodeId = nodeId, + role = role, + revisionId = revisionId, + }; + + var profiles = new List(); + + var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey); + if (apiResult != null) + { + var raw = JsonConvert.DeserializeObject(apiResult); + if (raw != null) + return raw.Result; + } + + return null; + } + catch + { + throw; + } + } + public async Task> SearchProfile(string? citizenId, string? firstName, string? lastName, string accessToken) { try diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index b33c2a1e..c2aceda1 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -949,22 +949,47 @@ namespace BMA.EHR.Leave.Service.Controllers { try { - var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_SALARY_OFFICER"); + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_LEAVE_REPORT"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var profile = new List(); + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + if (type.Trim().ToUpper() == "OFFICER") { //profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficerAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); - profile = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllOfficerAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); + //profile = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllOfficerAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); + profile = await _userProfileRepository.GetProfileByAdminRole(AccessToken, profileAdmin?.Node, nodeId, role, req.revisionId); } else { //profile = await _userProfileRepository.GetProfileWithKeycloakAllEmployeeAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); - profile = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllEmployeeAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); + //profile = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllEmployeeAndRevision(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD", req.revisionId); + profile = await _userProfileRepository.GetEmployeeByAdminRole(AccessToken, profileAdmin?.Node, nodeId, role, req.revisionId); } // get leave day var leaveDays = await _leaveRequestRepository.GetSumApproveLeaveByTypeAndRange(req.StartDate, req.EndDate); @@ -1338,15 +1363,39 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var profile = new List(); + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } if (type.Trim().ToUpper() == "OFFICER") { //profile = await _userProfileRepository.GetProfileWithKeycloakAllOfficer(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); - profile = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllOfficer(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + //profile = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllOfficer(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + profile = await _userProfileRepository.GetProfileByAdminRole(AccessToken, profileAdmin?.Node, nodeId, role, req.revisionId); } else { //profile = await _userProfileRepository.GetProfileWithKeycloakAllEmployee(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); - profile = await _userProfileRepository.GetProfileWithNoneValidateKeycloakAllEmployee(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + //profile = await _userProfileRepository.GketProfileWithNoneValidateKeycloakAllEmployee(AccessToken, req.node, req.nodeId, jsonData["result"] == "OWNER" || jsonData["result"] == "CHILD"); + profile = await _userProfileRepository.GetEmployeeByAdminRole(AccessToken, profileAdmin?.Node, nodeId, role, req.revisionId); } var date = req.StartDate.Date; @@ -1630,8 +1679,30 @@ namespace BMA.EHR.Leave.Service.Controllers var employees = new List(); var count = 1; - + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } var userTimeStamps = await _processUserTimeStampRepository.GetTimestampByDateLateAsync(type.Trim().ToUpper(), jsonData["result"]?.ToString(), req.nodeId, req.node, req.StartDate, req.EndDate); + //var userTimeStamps = await _processUserTikmeStampRepository.GetTimestampByDateLateAsync(type.Trim().ToUpper(), role, nodeId, profileAdmin?.Node, req.StartDate, req.EndDate); foreach (var p in userTimeStamps) { var fullName = $"{p.Prefix}{p.FirstName} {p.LastName}"; @@ -1713,7 +1784,30 @@ namespace BMA.EHR.Leave.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - var leaveDays = await _leaveRequestRepository.GetSumApproveLeaveByRootAndRange(req.StartDate, req.EndDate, type, jsonData["result"]?.ToString(), req.nodeId, req.node); + + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + var leaveDays = await _leaveRequestRepository.GetSumApproveLeaveByRootAndRange(req.StartDate, req.EndDate, type, jsonData["result"]?.ToString(), nodeId, profileAdmin?.Node); var enddate = req.EndDate.Date == req.StartDate.Date ? "" : $" - {req.EndDate.Date.ToThaiShortDate().ToThaiNumber()}"; var result = new { From ea55d21f5194d3c70bb6a03a0344c444408615ae Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Wed, 18 Jun 2025 13:43:46 +0700 Subject: [PATCH 377/879] add Dna Id Field to Process TimeStamp --- .../TimeAttendants/ProcessUserTimeStamp.cs | 11 + ...Add Dna Id to ProcessTimeStamp.Designer.cs | 1533 +++++++++++++++++ ...18063628_Add Dna Id to ProcessTimeStamp.cs | 74 + .../LeaveDb/LeaveDbContextModelSnapshot.cs | 15 + BMA.EHR.Leave/Controllers/LeaveController.cs | 7 + 5 files changed, 1640 insertions(+) create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250618063628_Add Dna Id to ProcessTimeStamp.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/LeaveDb/20250618063628_Add Dna Id to ProcessTimeStamp.cs diff --git a/BMA.EHR.Domain/Models/Leave/TimeAttendants/ProcessUserTimeStamp.cs b/BMA.EHR.Domain/Models/Leave/TimeAttendants/ProcessUserTimeStamp.cs index 012d1b5f..828a425d 100644 --- a/BMA.EHR.Domain/Models/Leave/TimeAttendants/ProcessUserTimeStamp.cs +++ b/BMA.EHR.Domain/Models/Leave/TimeAttendants/ProcessUserTimeStamp.cs @@ -104,5 +104,16 @@ namespace BMA.EHR.Domain.Models.Leave.TimeAttendants public Guid? ProfileId { get; set; } public string? ProfileType { get; set; } + + + public Guid? RootDnaId { get; set; } + + public Guid? Child1DnaId { get; set; } + + public Guid? Child2DnaId { get; set; } + + public Guid? Child3DnaId { get; set; } + + public Guid? Child4DnaId { get; set; } } } diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250618063628_Add Dna Id to ProcessTimeStamp.Designer.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250618063628_Add Dna Id to ProcessTimeStamp.Designer.cs new file mode 100644 index 00000000..95cbe479 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250618063628_Add Dna Id to ProcessTimeStamp.Designer.cs @@ -0,0 +1,1533 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + [DbContext(typeof(LeaveDbContext))] + [Migration("20250618063628_Add Dna Id to ProcessTimeStamp")] + partial class AddDnaIdtoProcessTimeStamp + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Code") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Limit") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļŠāļđāļ‡āļŠāļļāļ”āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("LeaveTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDays") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļĒāļāļĄāļē"); + + b.Property("LeaveDaysUsed") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļĨāļēāļ—āļĩāđˆāđƒāļŠāđ‰āđ„āļ›"); + + b.Property("LeaveTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.HasIndex("LeaveTypeId"); + + b.ToTable("LeaveBeginnings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AbsentDayAt") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayGetIn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayLocation") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("AbsentDayRegistorDate") + .HasColumnType("datetime(6)"); + + b.Property("AbsentDaySummon") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("CancelLeaveWrote") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ (āļ‚āļ­āļĒāļāđ€āļĨāļīāļ)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CommanderPosition") + .HasColumnType("longtext"); + + b.Property("CoupleDayCountryHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayEndDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDayLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayLevelCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayPosition") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CoupleDayStartDateHistory") + .HasColumnType("datetime(6)"); + + b.Property("CoupleDaySumTotalHistory") + .HasColumnType("longtext"); + + b.Property("CoupleDayTotalHistory") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("Dear") + .HasColumnType("longtext") + .HasComment("āđ€āļĢāļĩāļĒāļ™āđƒāļ„āļĢ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("HajjDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveAddress") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveBirthDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveCancelComment") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveCancelDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveCancelStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļ‚āļ­āļĒāļāđ€āļĨāļīāļ"); + + b.Property("LeaveComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("LeaveDetail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļĨāļē"); + + b.Property("LeaveDirectorComment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāđ€āļŦāđ‡āļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļ­āļģāļ™āļ§āļĒāļāļēāļĢāļŠāļģāļ™āļąāļ"); + + b.Property("LeaveDraftDocumentId") + .HasColumnType("char(36)"); + + b.Property("LeaveEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("LeaveGovernmentDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveLast") + .HasColumnType("datetime(6)"); + + b.Property("LeaveNumber") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļīāļ”āļ•āđˆāļ­āļ‚āļ“āļ°āļĨāļē"); + + b.Property("LeaveRange") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄ āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveRangeEnd") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ‡āļ‚āļ­āļ‡āļāļēāļĢāļĨāļēāļ‚āļ­āļ‡āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ” āđ€āļŠāđˆāļ™ āļĨāļēāļ—āļąāđ‰āļ‡āļ§āļąāļ™ āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āđ€āļŠāđ‰āļē āļ„āļĢāļķāđˆāļ‡āļ§āļąāļ™āļšāđˆāļēāļĒ"); + + b.Property("LeaveSalary") + .HasColumnType("int"); + + b.Property("LeaveSalaryText") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LeaveStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļĨāļē"); + + b.Property("LeaveStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļĢāđ‰āļ­āļ‡"); + + b.Property("LeaveSubTypeName") + .HasColumnType("longtext"); + + b.Property("LeaveTotal") + .HasColumnType("double"); + + b.Property("LeaveTypeCode") + .HasColumnType("longtext") + .HasComment("code āļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.Property("LeaveWrote") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļĩāļĒāļ™āļ—āļĩāđˆ"); + + b.Property("OrdainDayBuddhistLentAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayBuddhistLentName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationAddress") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayLocationNumber") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("OrdainDayOrdination") + .HasColumnType("datetime(6)"); + + b.Property("OrdainDayStatus") + .HasColumnType("tinyint(1)"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionLevelName") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RestDayCurrentTotal") + .HasColumnType("double"); + + b.Property("RestDayOldTotal") + .HasColumnType("double"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("StudyDayCountry") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayDegreeLevel") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayScholarship") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDaySubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayTrainingSubject") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("StudyDayUniversityName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("TypeId") + .HasColumnType("char(36)"); + + b.Property("WifeDayDateBorn") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("WifeDayName") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("LeaveCancelDocumentId"); + + b.HasIndex("LeaveDraftDocumentId"); + + b.HasIndex("TypeId"); + + b.ToTable("LeaveRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveRequestId") + .HasColumnType("char(36)"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("LeaveRequestId"); + + b.ToTable("LeaveRequestApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.AdditionalCheckRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckDate") + .HasColumnType("datetime(6)") + .HasComment("*āļ§āļąāļ™āļ—āļĩāđˆāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("CheckInEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("CheckOutEdit") + .HasColumnType("tinyint(1)") + .HasComment("*āļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđƒāļ™āļāļēāļĢāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("*āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āļ‚āļ­"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Latitude") + .HasColumnType("double"); + + b.Property("Longitude") + .HasColumnType("double"); + + b.Property("POI") + .HasColumnType("longtext"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("AdditionalCheckRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ"); + + b.Property("EndTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("EndTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāļ­āļ­āļāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļīāļ”āđƒāļŠāđ‰āļ‡āļēāļ™ (āđ€āļ›āļīāļ”/āļ›āļīāļ”)"); + + b.Property("IsDefault") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ§āđˆāļēāļĢāļ­āļšāđƒāļ”āđ€āļ›āđ‡āļ™āļ„āđˆāļē Default āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ (āļŠāļģāļŦāļĢāļąāļšāļ—āļļāļāļ„āļ™āļ—āļĩāđˆāļĒāļąāļ‡āđ„āļĄāđˆāđ„āļ”āđ‰āļ—āļģāļāļēāļĢāđ€āļĨāļ·āļ­āļāļĢāļ­āļš)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("StartTimeAfternoon") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āļšāđˆāļēāļĒ"); + + b.Property("StartTimeMorning") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™āļŠāđˆāļ§āļ‡āđ€āļŠāđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("DutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.ProcessUserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckInStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("CheckOutStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ° Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EditReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī/āđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļīāļ‚āļ­āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("EditStatus") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ‚āļ­āļ‡āļĨāļ‡āđ€āļ§āļĨāļēāļžāļīāđ€āļĻāļĐ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("ProcessUserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserCalendar", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Calendar") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļāļīāļ—āļīāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡ āļ‚āļĢāļ āļ›āļāļ•āļī āļŦāļĢāļ·āļ­ 6 āļ§āļąāļ™āļ•āđˆāļ­āļŠāļąāļ›āļ”āļēāļŦāđŒ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("UserCalendars"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē"); + + b.Property("EffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļœāļĨ"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ Profile āđƒāļ™āļĢāļ°āļšāļšāļ—āļ°āđ€āļšāļĩāļĒāļ™āļ›āļĢāļ°āļ§āļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DutyTimeId"); + + b.ToTable("UserDutyTimes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserTimeStamp", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CheckIn") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("CheckInImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-In"); + + b.Property("CheckInLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-In"); + + b.Property("CheckInPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-In"); + + b.Property("CheckInRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-In"); + + b.Property("CheckOut") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ§āļĨāļē āļ­āļ­āļāļ‡āļēāļ™"); + + b.Property("CheckOutImageUrl") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āļ–āđˆāļēāļĒāļŠāļ–āļēāļ™āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLat") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ°āļ•āļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutLocationName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ āļ•āđ‰āļ­āļ‡āļĢāļ°āļšāļļāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ—āļĩāđˆ Check-Out"); + + b.Property("CheckOutLon") + .HasColumnType("double") + .HasComment("āļžāļīāļāļąāļ”āļĨāļ­āļ‡āļˆāļīāļˆāļđāļ” Check-Out"); + + b.Property("CheckOutPOI") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ—āļĩāđˆ āđ„āļ”āđ‰āļĄāļēāļˆāļēāļāļĢāļ°āļšāļš ArcGis āļ‚āļ­āļ‡āļāļ­āļ‡āļŠāļēāļĢāļŠāļ™āđ€āļ—āļĻāļ āļđāļĄāļīāļĻāļēāļŠāļ•āļĢāđŒ Check-Out"); + + b.Property("CheckOutRemark") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļĢāļ°āļšāļļāđ€āļžāļīāđˆāļĄ(āļĄāļĩāđ€āļœāļ·āđˆāļ­āđ„āļ§āđ‰āļ­āļēāļˆāđ„āļĄāđˆāđ„āļ”āđ‰āđƒāļŠāđ‰) Check-Out"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsLocationCheckIn") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-In"); + + b.Property("IsLocationCheckOut") + .HasColumnType("tinyint(1)") + .HasComment("true āļ„āļ·āļ­ āļ“ āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡, false āļ„āļ·āļ­ āļ™āļ­āļāļŠāļ–āļēāļ™āļ—āļĩāđˆāļ•āļąāđ‰āļ‡ Check-Out"); + + b.Property("IsProcess") + .HasColumnType("tinyint(1)") + .HasComment("āļ™āļģāđ„āļ›āļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠ User āļ‚āļ­āļ‡ Keycloak"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("UserTimeStamps"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveBeginning", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "LeaveType") + .WithMany() + .HasForeignKey("LeaveTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("LeaveDocument") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveCancelDocument") + .WithMany() + .HasForeignKey("LeaveCancelDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "LeaveDraftDocument") + .WithMany() + .HasForeignKey("LeaveDraftDocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Leave.Commons.LeaveType", "Type") + .WithMany() + .HasForeignKey("TypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveCancelDocument"); + + b.Navigation("LeaveDraftDocument"); + + b.Navigation("Type"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequestApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", "LeaveRequest") + .WithMany("Approvers") + .HasForeignKey("LeaveRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveRequest"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => + { + b.HasOne("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", "DutyTime") + .WithMany() + .HasForeignKey("DutyTimeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DutyTime"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.Requests.LeaveRequest", b => + { + b.Navigation("Approvers"); + + b.Navigation("LeaveDocument"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250618063628_Add Dna Id to ProcessTimeStamp.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250618063628_Add Dna Id to ProcessTimeStamp.cs new file mode 100644 index 00000000..505bf90a --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250618063628_Add Dna Id to ProcessTimeStamp.cs @@ -0,0 +1,74 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.LeaveDb +{ + /// + public partial class AddDnaIdtoProcessTimeStamp : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "Child1DnaId", + table: "ProcessUserTimeStamps", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "Child2DnaId", + table: "ProcessUserTimeStamps", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "Child3DnaId", + table: "ProcessUserTimeStamps", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "Child4DnaId", + table: "ProcessUserTimeStamps", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "RootDnaId", + table: "ProcessUserTimeStamps", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Child1DnaId", + table: "ProcessUserTimeStamps"); + + migrationBuilder.DropColumn( + name: "Child2DnaId", + table: "ProcessUserTimeStamps"); + + migrationBuilder.DropColumn( + name: "Child3DnaId", + table: "ProcessUserTimeStamps"); + + migrationBuilder.DropColumn( + name: "Child4DnaId", + table: "ProcessUserTimeStamps"); + + migrationBuilder.DropColumn( + name: "RootDnaId", + table: "ProcessUserTimeStamps"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs index 08994f33..e84e5565 100644 --- a/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/LeaveDb/LeaveDbContextModelSnapshot.cs @@ -999,24 +999,36 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb b.Property("Child1") .HasColumnType("longtext"); + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + b.Property("Child1Id") .HasColumnType("char(36)"); b.Property("Child2") .HasColumnType("longtext"); + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + b.Property("Child2Id") .HasColumnType("char(36)"); b.Property("Child3") .HasColumnType("longtext"); + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + b.Property("Child3Id") .HasColumnType("char(36)"); b.Property("Child4") .HasColumnType("longtext"); + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + b.Property("Child4Id") .HasColumnType("char(36)"); @@ -1106,6 +1118,9 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb b.Property("Root") .HasColumnType("longtext"); + b.Property("RootDnaId") + .HasColumnType("char(36)"); + b.Property("RootId") .HasColumnType("char(36)"); diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index 8b19a67a..277b1eeb 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -902,6 +902,13 @@ namespace BMA.EHR.Leave.Service.Controllers ProfileId = profile.Id, ProfileType = profile.ProfileType, + + + RootDnaId = profile.RootId, + Child1DnaId = profile.Child1DnaId, + Child2DnaId = profile.Child2DnaId, + Child3DnaId = profile.Child3DnaId, + Child4DnaId = profile.Child4DnaId, }; await _userTimeStampRepository.AddAsync(checkin); From 9e84bddb6577483fa59d295f35d8ea9d6f353b7e Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 18 Jun 2025 15:23:41 +0700 Subject: [PATCH 378/879] update issue #1578 --- .../ProcessUserTimeStampRepository.cs | 64 ++++++++++++++----- BMA.EHR.Leave/Controllers/LeaveController.cs | 2 +- .../Controllers/LeaveReportController.cs | 6 +- 3 files changed, 53 insertions(+), 19 deletions(-) diff --git a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/ProcessUserTimeStampRepository.cs b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/ProcessUserTimeStampRepository.cs index 17d07e75..ebf61de0 100644 --- a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/ProcessUserTimeStampRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/ProcessUserTimeStampRepository.cs @@ -139,28 +139,62 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants return data; } - public async Task> GetTimestampByDateLateAsync(string type, string role, string nodeId, int node, DateTime StartDate, DateTime EndDate) + public async Task> GetTimestampByDateLateAsync(string type, string role, string nodeId, int? node, DateTime StartDate, DateTime EndDate) { var _nodeId = Guid.Parse(nodeId); var data = new List(); + //if (role == "OWNER" || role == "CHILD") + //{ + // data = await _dbContext.Set().AsQueryable() + // .Where(x => x.CheckInStatus == "LATE") + // .Where(u => u.CheckIn.Date >= StartDate && u.CheckIn.Date <= EndDate) + // .Where(x => x.ProfileType == type.Trim().ToUpper()) + // .Where(x => node == 4 ? x.Child4Id == _nodeId : (node == 3 ? x.Child3Id == _nodeId : (node == 2 ? x.Child2Id == _nodeId : (node == 1 ? x.Child1Id == _nodeId : (node == 0 ? x.RootId == _nodeId : true))))) + // .ToListAsync(); + //} + //else + //{ + // data = await _dbContext.Set().AsQueryable() + // .Where(x => x.CheckInStatus == "LATE") + // .Where(u => u.CheckIn.Date >= StartDate && u.CheckIn.Date <= EndDate) + // .Where(x => x.ProfileType == type.Trim().ToUpper()) + // .Where(x => node == 4 ? x.Child4Id == _nodeId : (node == 3 ? x.Child3Id == _nodeId : (node == 2 ? x.Child2Id == _nodeId : (node == 1 ? x.Child1Id == _nodeId : (node == 0 ? x.RootId == _nodeId : true))))) + // .Where(x => node == 0 ? x.Child1Id == null : (node == 1 ? x.Child2Id == null : (node == 2 ? x.Child3Id == null : (node == 3 ? x.Child4Id == null : true)))) + // .ToListAsync(); + //} + data = await _dbContext.Set().AsQueryable() + .Where(x => x.CheckInStatus == "LATE") + .Where(u => u.CheckIn.Date >= StartDate && u.CheckIn.Date <= EndDate) + .Where(x => x.ProfileType == type.Trim().ToUpper()).ToListAsync(); + + if (role == "OWNER") + { + node = null; + } if (role == "OWNER" || role == "CHILD") { - data = await _dbContext.Set().AsQueryable() - .Where(x => x.CheckInStatus == "LATE") - .Where(u => u.CheckIn.Date >= StartDate && u.CheckIn.Date <= EndDate) - .Where(x => x.ProfileType == type.Trim().ToUpper()) - .Where(x => node == 4 ? x.Child4Id == _nodeId : (node == 3 ? x.Child3Id == _nodeId : (node == 2 ? x.Child2Id == _nodeId : (node == 1 ? x.Child1Id == _nodeId : (node == 0 ? x.RootId == _nodeId : true))))) - .ToListAsync(); + data = data.Where(x => + node == 4 ? x.Child4DnaId == Guid.Parse(nodeId) : + node == 3 ? x.Child3DnaId == Guid.Parse(nodeId) : + node == 2 ? x.Child2DnaId == Guid.Parse(nodeId) : + node == 1 ? x.Child1DnaId == Guid.Parse(nodeId) : + node == 0 ? x.RootDnaId == Guid.Parse(nodeId) : + node == null ? true : true + ).ToList(); } - else + else if (role == "ROOT") { - data = await _dbContext.Set().AsQueryable() - .Where(x => x.CheckInStatus == "LATE") - .Where(u => u.CheckIn.Date >= StartDate && u.CheckIn.Date <= EndDate) - .Where(x => x.ProfileType == type.Trim().ToUpper()) - .Where(x => node == 4 ? x.Child4Id == _nodeId : (node == 3 ? x.Child3Id == _nodeId : (node == 2 ? x.Child2Id == _nodeId : (node == 1 ? x.Child1Id == _nodeId : (node == 0 ? x.RootId == _nodeId : true))))) - .Where(x => node == 0 ? x.Child1Id == null : (node == 1 ? x.Child2Id == null : (node == 2 ? x.Child3Id == null : (node == 3 ? x.Child4Id == null : true)))) - .ToListAsync(); + data = data.Where(x => x.RootDnaId == Guid.Parse(nodeId)).ToList(); + } + else if (role == "NORMAL") + { + data = data.Where(x => + node == 0 ? x.Child1DnaId == null : + node == 1 ? x.Child2DnaId == null : + node == 2 ? x.Child3DnaId == null : + node == 3 ? x.Child4DnaId == null : + true + ).ToList(); } return data; } diff --git a/BMA.EHR.Leave/Controllers/LeaveController.cs b/BMA.EHR.Leave/Controllers/LeaveController.cs index 277b1eeb..1f68d06a 100644 --- a/BMA.EHR.Leave/Controllers/LeaveController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveController.cs @@ -904,7 +904,7 @@ namespace BMA.EHR.Leave.Service.Controllers ProfileType = profile.ProfileType, - RootDnaId = profile.RootId, + RootDnaId = profile.RootDnaId, Child1DnaId = profile.Child1DnaId, Child2DnaId = profile.Child2DnaId, Child3DnaId = profile.Child3DnaId, diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index c2aceda1..260fe484 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -1701,8 +1701,8 @@ namespace BMA.EHR.Leave.Service.Controllers { nodeId = profileAdmin?.RootDnaId; } - var userTimeStamps = await _processUserTimeStampRepository.GetTimestampByDateLateAsync(type.Trim().ToUpper(), jsonData["result"]?.ToString(), req.nodeId, req.node, req.StartDate, req.EndDate); - //var userTimeStamps = await _processUserTikmeStampRepository.GetTimestampByDateLateAsync(type.Trim().ToUpper(), role, nodeId, profileAdmin?.Node, req.StartDate, req.EndDate); + //var userTimeStamps = await _processUserTimeStampRepository.GetTimestampByDateLateAsync(type.Trim().ToUpper(), jsonData["result"]?.ToString(), req.nodeId, req.node, req.StartDate, req.EndDate); + var userTimeStamps = await _processUserTimeStampRepository.GetTimestampByDateLateAsync(type.Trim().ToUpper(), role, nodeId, profileAdmin.Node, req.StartDate, req.EndDate); foreach (var p in userTimeStamps) { var fullName = $"{p.Prefix}{p.FirstName} {p.LastName}"; @@ -1720,7 +1720,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error("āđ„āļĄāđˆāļžāļšāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļē Default", StatusCodes.Status404NotFound); } } - DateTime? checkIn = p.CheckIn ?? null; + DateTime? checkIn = p.CheckIn; DateTime? checkOut = p.CheckOut ?? null; var emp = new { From b1ad88c37b865b0ba5c713a2c12e4deaabdab049 Mon Sep 17 00:00:00 2001 From: kittapath <> Date: Thu, 19 Jun 2025 09:46:42 +0700 Subject: [PATCH 379/879] =?UTF-8?q?=E0=B8=A5=E0=B8=9A=E0=B8=AA=E0=B8=B4?= =?UTF-8?q?=E0=B8=97=E0=B8=98=E0=B8=B4=E0=B9=8C=E0=B8=A5=E0=B8=B2=E0=B8=AD?= =?UTF-8?q?=E0=B8=AD=E0=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RetirementResignEmployeeController.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index d02c9c80..0ae5a15d 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -818,18 +818,6 @@ namespace BMA.EHR.Retirement.Service.Controllers } else { - var createdUserId = await _context.RetirementResignEmployeeCancels.AsQueryable() - .Where(x => x.CreatedUserId == UserId) - .Where(x => x.RetirementResignEmployee.Id == id) - .FirstOrDefaultAsync(); - { - var getPermission = await _permission.GetPermissionAPIAsync("GET", "SYS_RESIGN_EMP"); - var jsonData = JsonConvert.DeserializeObject(getPermission); - if (jsonData["status"]?.ToString() != "200") - { - return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); - } - } var data = await _context.RetirementResignEmployeeCancels.AsQueryable() .Where(x => x.RetirementResignEmployee.Id == id) .Select(p => new From 826aa8db19202bc3d38595842edbfc2d1c72a094 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 19 Jun 2025 13:06:22 +0700 Subject: [PATCH 380/879] fix employee insignia request cal --- .../Repositories/InsigniaPeriodsRepository.cs | 242 +++++++++--------- 1 file changed, 128 insertions(+), 114 deletions(-) diff --git a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs index 7655e052..a520f502 100644 --- a/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs +++ b/BMA.EHR.Application/Repositories/InsigniaPeriodsRepository.cs @@ -151,6 +151,17 @@ namespace BMA.EHR.Application.Repositories } } + private static bool IsHigherLevel(BMA.EHR.Application.Responses.Profiles.ProfileInsignia? last, string request) + { + if (last == null) + return true; + else + { + var last_ins = last.Insignia?.ToLower().Trim() ?? ""; + return IsHigherLevel(last_ins, request); + } + } + private static bool IsHigherLevel(string last, string request) { if (request.Contains("āļ•āļĢāļīāļ•āļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ")) @@ -395,82 +406,85 @@ namespace BMA.EHR.Application.Repositories var jtmRoyal = await _dbContext.Set() .FirstOrDefaultAsync(x => x.Name.Contains("āļˆāļąāļ•āļļāļĢāļ–āļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ")); - var s2 = (from p in allProfilesByRoot - where p.ProfileInsignia != null - && p.ProfileInsignia.Count > 0 - && (p.ProfileInsignia.Where(x => x.InsigniaId.Value != coinInsignia.Id && - x.InsigniaId.Value == bcpRoyal.Id) - .ToList() - .Count() == 0) - select new - { - ProfileId = p.Id, - p.CitizenId, - p.FirstName, - p.LastName, - p.BirthDate, - p.DateAppoint, - Prefix = p.Prefix ?? "", - FullName = $"{(p.Prefix ?? "")}{p.FirstName} {p.LastName}", - Position = p.Position ?? "", - Rank = p.PosLevel ?? "", - ProfileDateAppoint = p.DateAppoint.Value, - GovAge = p.DateAppoint.Value.CalculateGovAgeStr(0, 0), - PosNo = p.PosNo, - PositionLevelId = p.PosLevelId, - PositionLevelName = p.PosLevel, - PositionTypeId = p.PosTypeId, - PositionTypeName = p.PosType, - Gender = p.Gender ?? "", - PositionSalaryAmount = p.PositionSalaryAmount ?? 0, - Amount = p.Amount ?? 0, - RootId = p.RootId, - RootDnaId = p.RootDnaId, - Root = p.Root, - Child1Id = p.Child1Id, - Child1DnaId = p.Child1DnaId, - Child1 = p.Child1, - Child2Id = p.Child2Id, - Child2DnaId = p.Child2DnaId, - Child2 = p.Child2, - Child3Id = p.Child3Id, - Child3DnaId = p.Child3DnaId, - Child3 = p.Child3, - Child4Id = p.Child4Id, - Child4DnaId = p.Child4DnaId, - Child4 = p.Child4, - LastInsignia = p.ProfileInsignia == null || p.ProfileInsignia.Count == 0 - ? null - : p.ProfileInsignia!.OrderByDescending(x => x.Year).FirstOrDefault()! - .Insignia, - LastInsigniaId = p.ProfileInsignia == null || p.ProfileInsignia.Count == 0 - ? Guid.Parse("00000000-0000-0000-0000-000000000000") - : p.ProfileInsignia!.OrderByDescending(x => x.Year).FirstOrDefault()!.InsigniaId.Value, - Salary = p.Amount, - SalaryCondition = p.ProfileSalary == null || p.ProfileSalary.Count == 0 ? 0 : - p.ProfileSalary.Where(x => x.Date != null).Where(x => x.Date.Value <= new DateTime(period.Year, 4, 29)) - .OrderByDescending(x => x.Order).FirstOrDefault() != null ? p.ProfileSalary - .Where(x => x.Date != null).Where(x => x.Date.Value <= new DateTime(period.Year, 4, 29)) - .OrderByDescending(x => x.Order).FirstOrDefault().Amount : - p.Amount, - IsHigherLevel = IsHigherLevel(p.ProfileInsignia.ToList() - .Where(x => x.InsigniaId.Value != coinInsignia.Id) - .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, - "āđ€āļšāļāļˆāļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), - FirstRecvInsigniaYear = p.ProfileInsignia == null ? 0 : - p.ProfileInsignia.Where(x => x.InsigniaId.Value == bcmRoyal.Id).OrderBy(x => x.Year) - .FirstOrDefault() == null ? 0 : - p.ProfileInsignia.Where(x => x.InsigniaId.Value == bcmRoyal.Id).OrderBy(x => x.Year) - .FirstOrDefault().Year, - ProfileType = p.ProfileType, + var s2_a = (from p in allProfilesByRoot + where p.ProfileInsignia != null + && p.ProfileInsignia.Count > 0 + && (p.ProfileInsignia.Where(x => x.InsigniaId.Value != coinInsignia.Id && + x.InsigniaId.Value == bcpRoyal.Id) + .ToList() + .Count() == 0) + select new + { + ProfileId = p.Id, + p.CitizenId, + p.FirstName, + p.LastName, + p.BirthDate, + p.DateAppoint, + Prefix = p.Prefix ?? "", + FullName = $"{(p.Prefix ?? "")}{p.FirstName} {p.LastName}", + Position = p.Position ?? "", + Rank = p.PosLevel ?? "", + ProfileDateAppoint = p.DateAppoint.Value, + GovAge = p.DateAppoint.Value.CalculateGovAgeStr(0, 0), + PosNo = p.PosNo, + PositionLevelId = p.PosLevelId, + PositionLevelName = p.PosLevel, + PositionTypeId = p.PosTypeId, + PositionTypeName = p.PosType, + Gender = p.Gender ?? "", + PositionSalaryAmount = p.PositionSalaryAmount ?? 0, + Amount = p.Amount ?? 0, + RootId = p.RootId, + RootDnaId = p.RootDnaId, + Root = p.Root, + Child1Id = p.Child1Id, + Child1DnaId = p.Child1DnaId, + Child1 = p.Child1, + Child2Id = p.Child2Id, + Child2DnaId = p.Child2DnaId, + Child2 = p.Child2, + Child3Id = p.Child3Id, + Child3DnaId = p.Child3DnaId, + Child3 = p.Child3, + Child4Id = p.Child4Id, + Child4DnaId = p.Child4DnaId, + Child4 = p.Child4, + LastInsignia = p.ProfileInsignia == null || p.ProfileInsignia.Count == 0 + ? null + : p.ProfileInsignia!.OrderByDescending(x => x.Year).FirstOrDefault()! + .Insignia, + LastInsigniaId = p.ProfileInsignia == null || p.ProfileInsignia.Count == 0 + ? Guid.Parse("00000000-0000-0000-0000-000000000000") + : p.ProfileInsignia!.OrderByDescending(x => x.Year).FirstOrDefault()!.InsigniaId.Value, + Salary = p.Amount, + SalaryCondition = p.ProfileSalary == null || p.ProfileSalary.Count == 0 ? 0 : + p.ProfileSalary.Where(x => x.Date != null).Where(x => x.Date.Value <= new DateTime(period.Year, 4, 29)) + .OrderByDescending(x => x.Order).FirstOrDefault() != null ? p.ProfileSalary + .Where(x => x.Date != null).Where(x => x.Date.Value <= new DateTime(period.Year, 4, 29)) + .OrderByDescending(x => x.Order).FirstOrDefault().Amount : + p.Amount, + IsHigherLevel = + IsHigherLevel(p.ProfileInsignia.ToList() + .Where(x => x.InsigniaId.Value != coinInsignia.Id) + .OrderByDescending(x => x.Year) + .FirstOrDefault(), + "āđ€āļšāļāļˆāļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), + FirstRecvInsigniaYear = p.ProfileInsignia == null || p.ProfileInsignia.Count == 0 ? 0 : + p.ProfileInsignia.Where(x => x.InsigniaId.Value == bcmRoyal.Id).OrderBy(x => x.Year) + .FirstOrDefault() == null ? 0 : + p.ProfileInsignia.Where(x => x.InsigniaId.Value == bcmRoyal.Id).OrderBy(x => x.Year) + .FirstOrDefault().Year, + ProfileType = p.ProfileType, - MarkDiscipline = p.MarkDiscipline, - MarkInsignia = p.MarkInsignia, - MarkLeave = p.MarkLeave, - MarkRate = p.MarkRate - }) - .ToList() + MarkDiscipline = p.MarkDiscipline, + MarkInsignia = p.MarkInsignia, + MarkLeave = p.MarkLeave, + MarkRate = p.MarkRate + }) + .ToList(); + + var s2 = s2_a .Where(x => (x.SalaryCondition >= 8340 && x.SalaryCondition < 10150) && !x.IsHigherLevel) .Where(x => x.FirstRecvInsigniaYear != 0 && x.FirstRecvInsigniaYear <= period.Year - 5) .Select(p => new InsigniaResultSet @@ -584,7 +598,7 @@ namespace BMA.EHR.Application.Repositories IsHigherLevel = IsHigherLevel(p.ProfileInsignia.ToList() .Where(x => x.InsigniaId.Value != coinInsignia.Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļˆāļąāļ•āļļāļĢāļ–āļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), FirstRecvInsigniaYear = p.ProfileInsignia == null ? 0 : p.ProfileInsignia.Where(x => x.InsigniaId.Value == bcmRoyal.Id).OrderBy(x => x.Year) @@ -950,7 +964,7 @@ namespace BMA.EHR.Application.Repositories IsHigherLevel = IsHigherLevel(p.ProfileInsignia.ToList() .Where(x => x.InsigniaId.Value != coinInsignia.Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļˆāļąāļ•āļļāļĢāļ–āļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), FirstRecvInsigniaYear = p.ProfileInsignia == null ? 0 : p.ProfileInsignia.Where(x => x.InsigniaId.Value == bcpRoyal.Id).OrderBy(x => x.Year) @@ -1092,7 +1106,7 @@ namespace BMA.EHR.Application.Repositories IsHigherLevel = IsHigherLevel(p.ProfileInsignia.ToList() .Where(x => x.InsigniaId.Value != coinInsignia.Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļˆāļąāļ•āļļāļĢāļ–āļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), FirstRecvInsigniaYear = p.ProfileInsignia == null ? 0 : p.ProfileInsignia.Where(x => x.InsigniaId.Value == jtmRoyal.Id).OrderBy(x => x.Year) @@ -1460,7 +1474,7 @@ namespace BMA.EHR.Application.Repositories IsHigherLevel = IsHigherLevel(p.ProfileInsignia .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āđ€āļšāļāļˆāļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, @@ -1613,7 +1627,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļˆāļąāļ•āļļāļĢāļ–āļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, @@ -1759,7 +1773,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļˆāļąāļ•āļļāļĢāļ–āļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionSalaryAmount = p.PositionSalaryAmount, Amount = p.Amount, @@ -2012,7 +2026,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ•āļĢāļīāļ•āļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -2158,7 +2172,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ•āļĢāļīāļ•āļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -2376,7 +2390,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ—āļ§āļĩāļ•āļīāļĒāļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -2527,7 +2541,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ—āļ§āļĩāļ•āļīāļĒāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -2746,7 +2760,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ—āļ§āļĩāļ•āļīāļĒāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -2898,7 +2912,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ›āļĢāļ°āļ–āļĄāļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -3059,7 +3073,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ›āļĢāļ°āļ–āļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -3305,7 +3319,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ•āļĢāļīāļ•āļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -3510,7 +3524,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ•āļĢāļīāļ•āļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -3668,7 +3682,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ—āļ§āļĩāļ•āļīāļĒāļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -3829,7 +3843,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ—āļ§āļĩāļ•āļīāļĒāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -4074,7 +4088,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ—āļ§āļĩāļ•āļīāļĒāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -4215,7 +4229,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ›āļĢāļ°āļ–āļĄāļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, @@ -4449,7 +4463,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ—āļ§āļĩāļ•āļīāļĒāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -4608,7 +4622,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ›āļĢāļ°āļ–āļĄāļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, @@ -4769,7 +4783,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ›āļĢāļ°āļ–āļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -5013,7 +5027,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ›āļĢāļ°āļ–āļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -5180,7 +5194,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļĄāļŦāļēāļ§āļŠāļīāļĢāļĄāļ‡āļāļļāļŽ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -5348,7 +5362,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļĄāļŦāļēāļ›āļĢāļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, @@ -5596,7 +5610,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ›āļĢāļ°āļ–āļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -5763,7 +5777,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļĄāļŦāļēāļ§āļŠāļīāļĢāļĄāļ‡āļāļļāļŽ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -5930,7 +5944,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļĄāļŦāļēāļ›āļĢāļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -6175,7 +6189,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ—āļ§āļĩāļ•āļīāļĒāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -6332,7 +6346,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ›āļĢāļ°āļ–āļĄāļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -6560,7 +6574,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ›āļĢāļ°āļ–āļĄāļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -6721,7 +6735,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ›āļĢāļ°āļ–āļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -6883,7 +6897,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļĄāļŦāļēāļ§āļŠāļīāļĢāļĄāļ‡āļāļļāļŽ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -7124,7 +7138,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ›āļĢāļ°āļ–āļĄāļēāļ āļĢāļ“āđŒāļĄāļ‡āļāļļāļŽāđ„āļ—āļĒ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -7285,7 +7299,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ›āļĢāļ°āļ–āļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -7446,7 +7460,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļĄāļŦāļēāļ§āļŠāļīāļĢāļĄāļ‡āļāļļāļŽ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -7658,7 +7672,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļ›āļĢāļ°āļ–āļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -7825,7 +7839,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļĄāļŦāļēāļ§āļŠāļīāļĢāļĄāļ‡āļāļļāļŽ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, @@ -7992,7 +8006,7 @@ namespace BMA.EHR.Application.Repositories .Where(x => x.InsigniaId.Value != GetInsigniaByName("āđ€āļŦāļĢāļĩāļĒāļāļˆāļąāļāļĢāļžāļĢāļĢāļ”āļīāļĄāļēāļĨāļē").Id) .OrderByDescending(x => x.Year) - .FirstOrDefault().Insignia, + .FirstOrDefault(), "āļĄāļŦāļēāļ›āļĢāļĄāļēāļ āļĢāļ“āđŒāļŠāđ‰āļēāļ‡āđ€āļœāļ·āļ­āļ"), PositionLevel = p.PosLevel == null ? "" : p.PosLevel, PositionType = p.PosType == null ? "" : p.PosType, From 1ef85448331f5f1ad49ba957f28c8f2d3526bd3b Mon Sep 17 00:00:00 2001 From: kittapath <> Date: Fri, 20 Jun 2025 00:35:25 +0700 Subject: [PATCH 381/879] =?UTF-8?q?=E0=B8=AB=E0=B8=B2=20dna=20=E0=B8=9A?= =?UTF-8?q?=E0=B8=A3=E0=B8=A3=E0=B8=88=E0=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DisciplineComplaint_AppealController.cs | 111 +++++++ .../Requests/OrgRequest.cs | 55 ++++ .../Discipline/DisciplineComplaint_Appeal.cs | 30 ++ .../Models/Placement/PlacementAppointment.cs | 1 - .../Retirement/RetirementEmployeeQuestion.cs | 104 +++++++ .../Models/Retirement/RetirementQuestion.cs | 30 ++ .../Retirement/RetirementResignCancel.cs | 10 + .../RetirementResignEmployeeCancel.cs | 10 + .../Persistence/ApplicationDBContext.cs | 1 + .../PlacementAppointmentController.cs | 63 +++- .../PlacementAppointmentEmployeeController.cs | 81 ++++-- .../Controllers/PlacementOfficerController.cs | 61 +++- .../Controllers/PlacementReceiveController.cs | 59 +++- .../PlacementRepatriationController.cs | 59 +++- .../PlacementTransferController.cs | 66 ++++- .../RetirementDeceasedController.cs | 111 ++++--- .../Controllers/RetirementOtherController.cs | 270 +++++++++--------- .../Controllers/RetirementOutController.cs | 178 +++++++----- .../Controllers/RetirementResignController.cs | 190 +++++++++++- .../RetirementResignEmployeeController.cs | 238 ++++++++++++++- 20 files changed, 1425 insertions(+), 303 deletions(-) create mode 100644 BMA.EHR.Discipline.Service/Requests/OrgRequest.cs create mode 100644 BMA.EHR.Domain/Models/Retirement/RetirementEmployeeQuestion.cs diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs index 0b063984..061a53ed 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs @@ -1,5 +1,6 @@ ïŧŋusing BMA.EHR.Application.Repositories; using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Discipline.Service.Requests; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; @@ -32,6 +33,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers private readonly IHttpContextAccessor _httpContextAccessor; private readonly NotificationRepository _repositoryNoti; private readonly IConfiguration _configuration; + private readonly UserProfileRepository _userProfileRepository; private readonly PermissionRepository _permission; public DisciplineComplaint_AppealController(DisciplineDbContext context, @@ -40,6 +42,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers MinIODisciplineService documentService, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, + UserProfileRepository userProfileRepository, PermissionRepository permission) { // _repository = repository; @@ -49,6 +52,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers _documentService = documentService; _httpContextAccessor = httpContextAccessor; _configuration = configuration; + _userProfileRepository = userProfileRepository; _permission = permission; } @@ -58,6 +62,8 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; private static string StatusDisciplineComplaintAppeal(string value) { switch (value) @@ -361,6 +367,36 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, }; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{id}"; + var _req = new HttpRequestMessage(HttpMethod.Get, _apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org == null || org.result == null) + return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļ„āļ™āļ™āļĩāđ‰", 404); + + disciplineComplaint_Appeal.root = org.result.root; + disciplineComplaint_Appeal.rootId = org.result.rootId; + disciplineComplaint_Appeal.rootDnaId = org.result.rootDnaId; + disciplineComplaint_Appeal.child1 = org.result.child1; + disciplineComplaint_Appeal.child1Id = org.result.child1Id; + disciplineComplaint_Appeal.child1DnaId = org.result.child1DnaId; + disciplineComplaint_Appeal.child2 = org.result.child2; + disciplineComplaint_Appeal.child2Id = org.result.child2Id; + disciplineComplaint_Appeal.child2DnaId = org.result.child2DnaId; + disciplineComplaint_Appeal.child3 = org.result.child3; + disciplineComplaint_Appeal.child3Id = org.result.child3Id; + disciplineComplaint_Appeal.child3DnaId = org.result.child3DnaId; + disciplineComplaint_Appeal.child4 = org.result.child4; + disciplineComplaint_Appeal.child4Id = org.result.child4Id; + disciplineComplaint_Appeal.child4DnaId = org.result.child4DnaId; + } var disciplineComplaint_Appeal_History = new DisciplineComplaint_Appeal_History { DisciplineComplaint_Appeal = disciplineComplaint_Appeal, @@ -469,6 +505,37 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, }; + + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{req.ProfileId}"; + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org == null || org.result == null) + return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļ„āļ™āļ™āļĩāđ‰", 404); + + disciplineComplaint_Appeal.root = org.result.root; + disciplineComplaint_Appeal.rootId = org.result.rootId; + disciplineComplaint_Appeal.rootDnaId = org.result.rootDnaId; + disciplineComplaint_Appeal.child1 = org.result.child1; + disciplineComplaint_Appeal.child1Id = org.result.child1Id; + disciplineComplaint_Appeal.child1DnaId = org.result.child1DnaId; + disciplineComplaint_Appeal.child2 = org.result.child2; + disciplineComplaint_Appeal.child2Id = org.result.child2Id; + disciplineComplaint_Appeal.child2DnaId = org.result.child2DnaId; + disciplineComplaint_Appeal.child3 = org.result.child3; + disciplineComplaint_Appeal.child3Id = org.result.child3Id; + disciplineComplaint_Appeal.child3DnaId = org.result.child3DnaId; + disciplineComplaint_Appeal.child4 = org.result.child4; + disciplineComplaint_Appeal.child4Id = org.result.child4Id; + disciplineComplaint_Appeal.child4DnaId = org.result.child4DnaId; + } var disciplineComplaint_Appeal_History = new DisciplineComplaint_Appeal_History { DisciplineComplaint_Appeal = disciplineComplaint_Appeal, @@ -653,6 +720,30 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; var data_search = (from x in _context.DisciplineComplaint_Appeals where (x.Title == null ? false : x.Title.Contains(keyword)) || (x.Description == null ? false : x.Description.Contains(keyword)) || @@ -667,6 +758,26 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers data_search = data_search.Where(x => x.Type == type).ToList(); if (year != 0) data_search = data_search.Where(x => x.Year == year).ToList(); + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + data_search = data_search + .Where(x => node == 4 ? x.child4DnaId == nodeId : (node == 3 ? x.child3DnaId == nodeId : (node == 2 ? x.child2DnaId == nodeId : (node == 1 ? x.child1DnaId == nodeId : (node == 0 ? x.rootDnaId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + data_search = data_search + .Where(x => x.rootDnaId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + data_search = data_search + .Where(x => node == 0 ? x.child1DnaId == null : (node == 1 ? x.child2DnaId == null : (node == 2 ? x.child3DnaId == null : (node == 3 ? x.child4DnaId == null : true)))).ToList(); + } var data = data_search .Select(x => new { diff --git a/BMA.EHR.Discipline.Service/Requests/OrgRequest.cs b/BMA.EHR.Discipline.Service/Requests/OrgRequest.cs new file mode 100644 index 00000000..c1e84290 --- /dev/null +++ b/BMA.EHR.Discipline.Service/Requests/OrgRequest.cs @@ -0,0 +1,55 @@ +namespace BMA.EHR.Discipline.Service.Requests +{ + public class OrgRequest + { + public OrgRequestData result { get; set; } = new(); + } + public class OrgRequestData + { + public string? profileId { get; set; } + public string? prefix { get; set; } + public string? firstName { get; set; } + public string? lastName { get; set; } + public string? citizenId { get; set; } + public string? root { get; set; } + public string? rootId { get; set; } + public string? rootDnaId { get; set; } + public string? rootShortName { get; set; } + public string? child1 { get; set; } + public string? child1Id { get; set; } + public string? child1DnaId { get; set; } + public string? child1ShortName { get; set; } + public string? child2 { get; set; } + public string? child2Id { get; set; } + public string? child2DnaId { get; set; } + public string? child2ShortName { get; set; } + public string? child3 { get; set; } + public string? child3Id { get; set; } + public string? child3DnaId { get; set; } + public string? child3ShortName { get; set; } + public string? child4 { get; set; } + public string? child4Id { get; set; } + public string? child4DnaId { get; set; } + public string? child4ShortName { get; set; } + public string? node { get; set; } + public string? nodeId { get; set; } + public string? nodeShortName { get; set; } + public int? posMasterNo { get; set; } + public string? position { get; set; } + public string? posTypeId { get; set; } + public string? posTypeName { get; set; } + public int? posTypeRank { get; set; } + public string? posLevelId { get; set; } + public string? posTypeShortName { get; set; } + public string? posLevelName { get; set; } + public int? posLevelRank { get; set; } + public string? posExecutiveId { get; set; } + public string? posExecutiveName { get; set; } + public string? positionExecutiveField { get; set; } + public string? positionArea { get; set; } + public string? posNo { get; set; } + public DateTime? leaveDate { get; set; } + public string? education { get; set; } + public double? salary { get; set; } + } +} \ No newline at end of file diff --git a/BMA.EHR.Domain/Models/Discipline/DisciplineComplaint_Appeal.cs b/BMA.EHR.Domain/Models/Discipline/DisciplineComplaint_Appeal.cs index 7bea750a..a92ea3b9 100644 --- a/BMA.EHR.Domain/Models/Discipline/DisciplineComplaint_Appeal.cs +++ b/BMA.EHR.Domain/Models/Discipline/DisciplineComplaint_Appeal.cs @@ -47,6 +47,36 @@ namespace BMA.EHR.Domain.Models.Discipline [Comment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)")] public string? profileType { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? root { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? rootId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root")] + public string? rootDnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] + public string? child1 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] + public string? child1Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1")] + public string? child1DnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] + public string? child2 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] + public string? child2Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2")] + public string? child2DnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] + public string? child3 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] + public string? child3Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3")] + public string? child3DnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] + public string? child4 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] + public string? child4Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4")] + public string? child4DnaId { get; set; } public virtual List DisciplineComplaint_Appeal_Docs { get; set; } = new List(); public virtual List DisciplineComplaint_Appeal_Historys { get; set; } = new List(); diff --git a/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs b/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs index 983a3859..870a7817 100644 --- a/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs +++ b/BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs @@ -188,7 +188,6 @@ namespace BMA.EHR.Domain.Models.Placement [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] public string? positionAreaOld { get; set; } - // public OrgEmployee? OrgEmployee { get; set; } // public PositionEmployeeStatus? PositionEmployeeStatus { get; set; } // public PositionEmployeeLine? PositionEmployeeLine { get; set; } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementEmployeeQuestion.cs b/BMA.EHR.Domain/Models/Retirement/RetirementEmployeeQuestion.cs new file mode 100644 index 00000000..7f36467f --- /dev/null +++ b/BMA.EHR.Domain/Models/Retirement/RetirementEmployeeQuestion.cs @@ -0,0 +1,104 @@ +ïŧŋusing Microsoft.EntityFrameworkCore; +using System.ComponentModel.DataAnnotations; +using BMA.EHR.Domain.Models.Base; +using System.ComponentModel.DataAnnotations.Schema; +using BMA.EHR.Domain.Models.Documents; +using BMA.EHR.Domain.Models.MetaData; + +namespace BMA.EHR.Domain.Models.Retirement +{ + public class RetirementEmployeeQuestion : EntityBase + { + [Comment("āļĢāļ­āļšāļāļēāļĢāļĨāļēāļ­āļ­āļ")] + public RetirementResignEmployee RetirementResignEmployee { get; set; } + [Comment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ")] + public string? ReasonWork { get; set; } + [Comment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ")] + public string? ReasonWorkOther { get; set; } + [Comment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”")] + public int? TimeThink { get; set; } + [Comment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ")] + public string? ExitFactor { get; set; } + [Comment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ")] + public string? ExitFactorOther { get; set; } + [Comment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡")] + public string? Adjust { get; set; } + [Comment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡")] + public string? AdjustOther { get; set; } + [Comment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ")] + public string? RealReason { get; set; } + [Comment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ")] + public string? NotExitFactor { get; set; } + [Comment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ")] + public bool? Havejob { get; set; } + [Comment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ")] + public string? HavejobReason { get; set; } + [Comment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ")] + public bool? SuggestFriends { get; set; } + [Comment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ")] + public string? SuggestFriendsReason { get; set; } + [Comment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ")] + public bool? FutureWork { get; set; } + [Comment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ")] + public string? FutureWorkReason { get; set; } + [Comment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† ")] + public string? Suggestion { get; set; } + [Comment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ")] + public DateTime? AppointDate { get; set; } + + [Comment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1")] + public int? Score1 { get; set; } + [Comment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2")] + public int? Score2 { get; set; } + [Comment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3")] + public int? Score3 { get; set; } + [Comment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4")] + public int? Score4 { get; set; } + [Comment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5")] + public int? Score5 { get; set; } + [Comment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6")] + public int? Score6 { get; set; } + [Comment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7")] + public int? Score7 { get; set; } + [Comment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8")] + public int? Score8 { get; set; } + [Comment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9")] + public int? Score9 { get; set; } + [Comment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10")] + public int? Score10 { get; set; } + [Comment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ")] + public int? ScoreTotal { get; set; } + [Comment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™")] + public string? Comment { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ")] + public string? root { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ")] + public string? rootId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ")] + public string? rootDnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ")] + public string? child1 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ")] + public string? child1Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ")] + public string? child1DnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ")] + public string? child2 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ")] + public string? child2Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ")] + public string? child2DnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ")] + public string? child3 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ")] + public string? child3Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ")] + public string? child3DnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ")] + public string? child4 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ")] + public string? child4Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ")] + public string? child4DnaId { get; set; } + } +} diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementQuestion.cs b/BMA.EHR.Domain/Models/Retirement/RetirementQuestion.cs index 77e71620..89f15e6f 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementQuestion.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementQuestion.cs @@ -70,5 +70,35 @@ namespace BMA.EHR.Domain.Models.Retirement public int? ScoreTotal { get; set; } [Comment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™")] public string? Comment { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ")] + public string? root { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ")] + public string? rootId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ")] + public string? rootDnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ")] + public string? child1 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ")] + public string? child1Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ")] + public string? child1DnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ")] + public string? child2 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ")] + public string? child2Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ")] + public string? child2DnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ")] + public string? child3 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ")] + public string? child3Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ")] + public string? child3DnaId { get; set; } + [Comment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ")] + public string? child4 { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ")] + public string? child4Id { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ")] + public string? child4DnaId { get; set; } } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs index c00df843..ebee38e7 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignCancel.cs @@ -146,6 +146,16 @@ namespace BMA.EHR.Domain.Models.Retirement public string? positionExecutiveFieldOld { get; set; } [Comment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)")] public string? positionAreaOld { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] + public string? rootDnaOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] + public string? child1DnaOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] + public string? child2DnaOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] + public string? child3DnaOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] + public string? child4DnaOldId { get; set; } public List Approvers { get; set; } = new(); } } diff --git a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancel.cs b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancel.cs index f6092b24..ad21aba4 100644 --- a/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancel.cs +++ b/BMA.EHR.Domain/Models/Retirement/RetirementResignEmployeeCancel.cs @@ -133,6 +133,16 @@ namespace BMA.EHR.Domain.Models.Retirement public string? ApproveStep { get; set; } = string.Empty; [Comment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ")] public string? Group { get; set; } = string.Empty; + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old")] + public string? rootDnaOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old")] + public string? child1DnaOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old")] + public string? child2DnaOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old")] + public string? child3DnaOldId { get; set; } + [Comment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old")] + public string? child4DnaOldId { get; set; } [Required, Comment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļąāļšāļĒāđ‰āļēāļĒ")] public virtual RetirementResignEmployee RetirementResignEmployee { get; set; } public List Approvers { get; set; } = new(); diff --git a/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs b/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs index 34ff0c78..6c7c18e2 100644 --- a/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs +++ b/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs @@ -350,6 +350,7 @@ namespace BMA.EHR.Infrastructure.Persistence public DbSet RetirementExpulsions { get; set; } public DbSet RetirementOthers { get; set; } public DbSet RetirementOtherDocs { get; set; } + public DbSet RetirementEmployeeQuestions { get; set; } public DbSet RetirementQuestions { get; set; } public DbSet RetirementQuestionnaireQuestions { get; set; } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 14e27b2f..63701573 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -1,5 +1,6 @@ ïŧŋusing BMA.EHR.Application.Repositories; using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Placement; @@ -31,6 +32,7 @@ namespace BMA.EHR.Placement.Service.Controllers private readonly MinIOService _documentService; private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; + private readonly UserProfileRepository _userProfileRepository; private readonly PermissionRepository _permission; public PlacementAppointmentController(PlacementRepository repository, @@ -39,6 +41,7 @@ namespace BMA.EHR.Placement.Service.Controllers MinIOService documentService, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, + UserProfileRepository userProfileRepository, PermissionRepository permiss) { _repository = repository; @@ -47,6 +50,7 @@ namespace BMA.EHR.Placement.Service.Controllers _documentService = documentService; _httpContextAccessor = httpContextAccessor; _configuration = configuration; + _userProfileRepository = userProfileRepository; _permission = permiss; } @@ -56,6 +60,7 @@ namespace BMA.EHR.Placement.Service.Controllers private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; #endregion @@ -76,11 +81,30 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - // string?[] rootId = jsonData?.result?.rootId ?? null; - // string?[] child1Id = jsonData?.result?.child1Id ?? null; - // string?[] child2Id = jsonData?.result?.child2Id ?? null; - // string?[] child3Id = jsonData?.result?.child3Id ?? null; - // string?[] child4Id = jsonData?.result?.child4Id ?? null; + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; var placementAppointments = await _context.PlacementAppointments.AsQueryable() .Where(x => x.type == "OFFICER") // .Where(x => rootId == null ? true : rootId.Contains(x.rootOldId)) @@ -173,10 +197,35 @@ namespace BMA.EHR.Placement.Service.Controllers p.positionAreaOld, p.CreatedAt, p.typeCommand, + p.rootDnaId, + p.child1DnaId, + p.child2DnaId, + p.child3DnaId, + p.child4DnaId, }) .ToListAsync(); if (status != null && status.Trim().ToUpper() != "ALL") placementAppointments = placementAppointments.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + placementAppointments = placementAppointments + .Where(x => node == 4 ? x.child4DnaId == nodeId : (node == 3 ? x.child3DnaId == nodeId : (node == 2 ? x.child2DnaId == nodeId : (node == 1 ? x.child1DnaId == nodeId : (node == 0 ? x.rootDnaId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + placementAppointments = placementAppointments + .Where(x => x.rootDnaId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + placementAppointments = placementAppointments + .Where(x => node == 0 ? x.child1DnaId == null : (node == 1 ? x.child2DnaId == null : (node == 2 ? x.child3DnaId == null : (node == 3 ? x.child4DnaId == null : true)))).ToList(); + } return Success(placementAppointments); } @@ -477,8 +526,8 @@ namespace BMA.EHR.Placement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementAppointment.OrganizationPositionOld = org.result.position + "\n" + - (placementAppointment.PositionExecutiveOld == null ? "" : (placementAppointment.positionExecutiveField == null ? placementAppointment.PositionExecutiveOld + "\n": placementAppointment.PositionExecutiveOld + "(" + placementAppointment.positionExecutiveField + ")" + "\n")) + placementAppointment.OrganizationPositionOld = org.result.position + "\n" + + (placementAppointment.PositionExecutiveOld == null ? "" : (placementAppointment.positionExecutiveField == null ? placementAppointment.PositionExecutiveOld + "\n" : placementAppointment.PositionExecutiveOld + "(" + placementAppointment.positionExecutiveField + ")" + "\n")) + placementAppointment.OrganizationOld; placementAppointment.AmountOld = org.result.salary; } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index a3d0cf47..e9a5b21f 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -1,5 +1,6 @@ ïŧŋusing BMA.EHR.Application.Repositories; using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Models.Placement; using BMA.EHR.Domain.Shared; @@ -30,6 +31,7 @@ namespace BMA.EHR.Placement.Service.Controllers private readonly MinIOService _documentService; private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; + private readonly UserProfileRepository _userProfileRepository; private readonly PermissionRepository _permission; public PlacementAppointmentEmployeeController(PlacementRepository repository, @@ -38,6 +40,7 @@ namespace BMA.EHR.Placement.Service.Controllers MinIOService documentService, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, + UserProfileRepository userProfileRepository, PermissionRepository permission) { _repository = repository; @@ -46,6 +49,7 @@ namespace BMA.EHR.Placement.Service.Controllers _documentService = documentService; _httpContextAccessor = httpContextAccessor; _configuration = configuration; + _userProfileRepository = userProfileRepository; _permission = permission; } @@ -55,6 +59,7 @@ namespace BMA.EHR.Placement.Service.Controllers private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; #endregion @@ -75,11 +80,30 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - // string?[] rootId = jsonData?.result?.rootId ?? null; - // string?[] child1Id = jsonData?.result?.child1Id ?? null; - // string?[] child2Id = jsonData?.result?.child2Id ?? null; - // string?[] child3Id = jsonData?.result?.child3Id ?? null; - // string?[] child4Id = jsonData?.result?.child4Id ?? null; + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; var placementAppointments = await _context.PlacementAppointments.AsQueryable() .Where(x => x.type == "EMPLOYEE") // .Where(x => rootId == null ? true : rootId.Contains(x.rootOldId)) @@ -167,32 +191,35 @@ namespace BMA.EHR.Placement.Service.Controllers p.positionOld, p.CreatedAt, p.typeCommand, + p.rootDnaId, + p.child1DnaId, + p.child2DnaId, + p.child3DnaId, + p.child4DnaId, }) .ToListAsync(); - // if (keyword != "") - // { - // var data = placementAppointments.Where(x => - // (x.citizenId != null && x.citizenId.Contains(keyword)) || - // (x.prefix != null && x.prefix.Contains(keyword)) || - // (x.firstName != null && x.firstName.Contains(keyword)) || - // (x.lastName != null && x.lastName.Contains(keyword)) || - // (x.rootShortNameOld != null && x.rootShortNameOld.Contains(keyword)) || - // (x.posMasterNoOld != null && x.posMasterNoOld.ToString().Contains(keyword)) || - // (x.OrganizationOld != null && x.OrganizationOld.Contains(keyword)) || - // (x.posTypeNameOld != null && x.posTypeNameOld.Contains(keyword)) || - // (x.posLevelNameOld != null && x.posLevelNameOld.Contains(keyword)) || - // (x.OrganizationPositionOld != null && x.OrganizationPositionOld.Contains(keyword)) || - // (x.Reason != null && x.Reason.Contains(keyword)) || - // (x.nodeName != null && x.nodeName.Contains(keyword))) - // .OrderByDescending(x => x.CreatedAt) - // .Skip((page - 1) * pageSize) - // .Take(pageSize) - // .ToList(); - - // placementAppointments = data; - // } if (status != null && status.Trim().ToUpper() != "ALL") placementAppointments = placementAppointments.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + placementAppointments = placementAppointments + .Where(x => node == 4 ? x.child4DnaId == nodeId : (node == 3 ? x.child3DnaId == nodeId : (node == 2 ? x.child2DnaId == nodeId : (node == 1 ? x.child1DnaId == nodeId : (node == 0 ? x.rootDnaId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + placementAppointments = placementAppointments + .Where(x => x.rootDnaId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + placementAppointments = placementAppointments + .Where(x => node == 0 ? x.child1DnaId == null : (node == 1 ? x.child2DnaId == null : (node == 2 ? x.child3DnaId == null : (node == 3 ? x.child4DnaId == null : true)))).ToList(); + } return Success(placementAppointments); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 5b1e24d8..44a5f6a4 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -1,5 +1,6 @@ ïŧŋusing BMA.EHR.Application.Repositories; using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Placement; @@ -31,6 +32,7 @@ namespace BMA.EHR.Placement.Service.Controllers private readonly MinIOService _documentService; private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; + private readonly UserProfileRepository _userProfileRepository; private readonly PermissionRepository _permission; public PlacementOfficerController(PlacementRepository repository, @@ -39,6 +41,7 @@ namespace BMA.EHR.Placement.Service.Controllers MinIOService documentService, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, + UserProfileRepository userProfileRepository, PermissionRepository permission) { _repository = repository; @@ -47,6 +50,7 @@ namespace BMA.EHR.Placement.Service.Controllers _documentService = documentService; _httpContextAccessor = httpContextAccessor; _configuration = configuration; + _userProfileRepository = userProfileRepository; _permission = permission; } @@ -56,6 +60,7 @@ namespace BMA.EHR.Placement.Service.Controllers private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; #endregion @@ -76,11 +81,30 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - // string?[] rootId = jsonData?.result?.rootId ?? null; - // string?[] child1Id = jsonData?.result?.child1Id ?? null; - // string?[] child2Id = jsonData?.result?.child2Id ?? null; - // string?[] child3Id = jsonData?.result?.child3Id ?? null; - // string?[] child4Id = jsonData?.result?.child4Id ?? null; + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; var placementOfficers = await _context.PlacementOfficers.AsQueryable() // .Where(x => rootId == null ? true : rootId.Contains(x.rootOldId)) // .Where(x => child1Id == null ? true : child1Id.Contains(x.child1OldId)) @@ -128,10 +152,35 @@ namespace BMA.EHR.Placement.Service.Controllers p.Organization, p.OrganizationPositionOld, p.IsActive, + p.rootDnaOldId, + p.child1DnaOldId, + p.child2DnaOldId, + p.child3DnaOldId, + p.child4DnaOldId, }) .ToListAsync(); if (status != null && status.Trim().ToUpper() != "ALL") placementOfficers = placementOfficers.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + placementOfficers = placementOfficers + .Where(x => node == 4 ? x.child4DnaOldId == nodeId : (node == 3 ? x.child3DnaOldId == nodeId : (node == 2 ? x.child2DnaOldId == nodeId : (node == 1 ? x.child1DnaOldId == nodeId : (node == 0 ? x.rootDnaOldId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + placementOfficers = placementOfficers + .Where(x => x.rootDnaOldId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + placementOfficers = placementOfficers + .Where(x => node == 0 ? x.child1DnaOldId == null : (node == 1 ? x.child2DnaOldId == null : (node == 2 ? x.child3DnaOldId == null : (node == 3 ? x.child4DnaOldId == null : true)))).ToList(); + } return Success(placementOfficers); } @@ -421,7 +470,7 @@ namespace BMA.EHR.Placement.Service.Controllers (org.result.child2 == null ? "" : org.result.child2 + "\n") + (org.result.child1 == null ? "" : org.result.child1 + "\n") + (org.result.root == null ? "" : org.result.root); - placementOfficer.OrganizationPositionOld = org.result.position + "\n" + + placementOfficer.OrganizationPositionOld = org.result.position + "\n" + (placementOfficer.PositionExecutiveOld == null ? "" : (placementOfficer.positionExecutiveField == null ? placementOfficer.PositionExecutiveOld + "\n" : placementOfficer.PositionExecutiveOld + "(" + placementOfficer.positionExecutiveField + ")" + "\n")) + placementOfficer.OrganizationOld; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index f36ee09e..c6d6f0a7 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -15,6 +15,7 @@ using Swashbuckle.AspNetCore.Annotations; using System.Net.Http.Headers; using System.Security.Claims; using System.Reflection; +using BMA.EHR.Application.Responses.Profiles; namespace BMA.EHR.Placement.Service.Controllers { @@ -32,6 +33,7 @@ namespace BMA.EHR.Placement.Service.Controllers private readonly MinIOService _documentService; private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; + private readonly UserProfileRepository _userProfileRepository; private readonly PermissionRepository _permission; public PlacementReceiveController(PlacementRepository repository, @@ -40,6 +42,7 @@ namespace BMA.EHR.Placement.Service.Controllers MinIOService documentService, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, + UserProfileRepository userProfileRepository, PermissionRepository permiss) { _repository = repository; @@ -48,6 +51,7 @@ namespace BMA.EHR.Placement.Service.Controllers _documentService = documentService; _httpContextAccessor = httpContextAccessor; _configuration = configuration; + _userProfileRepository = userProfileRepository; _permission = permiss; } @@ -57,6 +61,7 @@ namespace BMA.EHR.Placement.Service.Controllers private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; #endregion @@ -77,11 +82,30 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - // string?[] rootId = jsonData?.result?.rootId ?? null; - // string?[] child1Id = jsonData?.result?.child1Id ?? null; - // string?[] child2Id = jsonData?.result?.child2Id ?? null; - // string?[] child3Id = jsonData?.result?.child3Id ?? null; - // string?[] child4Id = jsonData?.result?.child4Id ?? null; + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; var placementReceives = await _context.PlacementReceives.AsQueryable() // .Where(x => rootId == null ? true : rootId.Contains(x.rootOldId)) // .Where(x => child1Id == null ? true : child1Id.Contains(x.child1OldId)) @@ -165,10 +189,35 @@ namespace BMA.EHR.Placement.Service.Controllers p.posLevelNameOld, p.CreatedAt, p.profileId, + p.rootDnaId, + p.child1DnaId, + p.child2DnaId, + p.child3DnaId, + p.child4DnaId, }) .ToListAsync(); if (status != null && status.Trim().ToUpper() != "ALL") placementReceives = placementReceives.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + placementReceives = placementReceives + .Where(x => node == 4 ? x.child4DnaId == nodeId : (node == 3 ? x.child3DnaId == nodeId : (node == 2 ? x.child2DnaId == nodeId : (node == 1 ? x.child1DnaId == nodeId : (node == 0 ? x.rootDnaId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + placementReceives = placementReceives + .Where(x => x.rootDnaId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + placementReceives = placementReceives + .Where(x => node == 0 ? x.child1DnaId == null : (node == 1 ? x.child2DnaId == null : (node == 2 ? x.child3DnaId == null : (node == 3 ? x.child4DnaId == null : true)))).ToList(); + } return Success(placementReceives); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index cd24d0f0..9f055cc8 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -1,5 +1,6 @@ ïŧŋusing BMA.EHR.Application.Repositories; using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Placement; @@ -32,6 +33,7 @@ namespace BMA.EHR.Placement.Service.Controllers private readonly MinIOService _documentService; private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; + private readonly UserProfileRepository _userProfileRepository; private readonly PermissionRepository _permission; public PlacementRepatriationController(PlacementRepository repository, @@ -40,6 +42,7 @@ namespace BMA.EHR.Placement.Service.Controllers MinIOService documentService, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, + UserProfileRepository userProfileRepository, PermissionRepository permiss) { _repository = repository; @@ -48,6 +51,7 @@ namespace BMA.EHR.Placement.Service.Controllers _documentService = documentService; _httpContextAccessor = httpContextAccessor; _configuration = configuration; + _userProfileRepository = userProfileRepository; _permission = permiss; } @@ -57,6 +61,7 @@ namespace BMA.EHR.Placement.Service.Controllers private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; #endregion @@ -77,11 +82,30 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - // string?[] rootId = jsonData?.result?.rootId ?? null; - // string?[] child1Id = jsonData?.result?.child1Id ?? null; - // string?[] child2Id = jsonData?.result?.child2Id ?? null; - // string?[] child3Id = jsonData?.result?.child3Id ?? null; - // string?[] child4Id = jsonData?.result?.child4Id ?? null; + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; var placementRepatriations = await _context.PlacementRepatriations.AsQueryable() // .Where(x => rootId == null ? true : rootId.Contains(x.rootOldId)) // .Where(x => child1Id == null ? true : child1Id.Contains(x.child1OldId)) @@ -133,10 +157,35 @@ namespace BMA.EHR.Placement.Service.Controllers p.OrganizationPositionOld, p.IsActive, p.DateRepatriation, + p.rootDnaOldId, + p.child1DnaOldId, + p.child2DnaOldId, + p.child3DnaOldId, + p.child4DnaOldId, }) .ToListAsync(); if (status != null && status.Trim().ToUpper() != "ALL") placementRepatriations = placementRepatriations.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + placementRepatriations = placementRepatriations + .Where(x => node == 4 ? x.child4DnaOldId == nodeId : (node == 3 ? x.child3DnaOldId == nodeId : (node == 2 ? x.child2DnaOldId == nodeId : (node == 1 ? x.child1DnaOldId == nodeId : (node == 0 ? x.rootDnaOldId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + placementRepatriations = placementRepatriations + .Where(x => x.rootDnaOldId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + placementRepatriations = placementRepatriations + .Where(x => node == 0 ? x.child1DnaOldId == null : (node == 1 ? x.child2DnaOldId == null : (node == 2 ? x.child3DnaOldId == null : (node == 3 ? x.child4DnaOldId == null : true)))).ToList(); + } return Success(placementRepatriations); } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index 1440f49a..20e4b821 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -15,6 +15,7 @@ using System.Net.Http.Headers; using System.Security.Claims; using Newtonsoft.Json.Linq; using BMA.EHR.Application.Repositories.Reports; +using BMA.EHR.Application.Responses.Profiles; namespace BMA.EHR.Placement.Service.Controllers { @@ -33,6 +34,7 @@ namespace BMA.EHR.Placement.Service.Controllers private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; private readonly PermissionRepository _permission; + private readonly UserProfileRepository _userProfileRepository; private readonly TransferReportRepository _service; public PlacementTransferController(PlacementRepository repository, @@ -42,6 +44,7 @@ namespace BMA.EHR.Placement.Service.Controllers IHttpContextAccessor httpContextAccessor, IConfiguration configuration, PermissionRepository permission, + UserProfileRepository userProfileRepository, TransferReportRepository service) { _repository = repository; @@ -51,6 +54,7 @@ namespace BMA.EHR.Placement.Service.Controllers _httpContextAccessor = httpContextAccessor; _configuration = configuration; _permission = permission; + _userProfileRepository = userProfileRepository; _service = service; } @@ -60,6 +64,7 @@ namespace BMA.EHR.Placement.Service.Controllers private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; #endregion @@ -169,18 +174,31 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - // var data = JsonConvert.DeserializeObject(getPermission); - // string?[]? root = data?.Result?.Root ?? null; - // string?[]? child1 = data?.Result?.Child1 ?? null; - // string?[]? child2 = data?.Result?.Child2 ?? null; - // string?[]? child3 = data?.Result?.Child3 ?? null; - // string?[]? child4 = data?.Result?.Child4 ?? null; + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; var placementTransfers = await _context.PlacementTransfers.AsQueryable() - // .Where(x => root == null ? true : root.Contains(x.rootOldId)) - // .Where(x => child1 == null ? true : child1.Contains(x.child1OldId)) - // .Where(x => child2 == null ? true : child2.Contains(x.child2OldId)) - // .Where(x => child3 == null ? true : child3.Contains(x.child3OldId)) - // .Where(x => child4 == null ? true : child4.Contains(x.child4OldId)) .OrderByDescending(x => x.CreatedAt) .Select(p => new { @@ -225,10 +243,36 @@ namespace BMA.EHR.Placement.Service.Controllers p.PositionNumberOld, p.OrganizationPositionOld, p.IsActive, + p.rootDnaOldId, + p.child1DnaOldId, + p.child2DnaOldId, + p.child3DnaOldId, + p.child4DnaOldId, }) .ToListAsync(); if (status != null && status.Trim().ToUpper() != "ALL") placementTransfers = placementTransfers.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + placementTransfers = placementTransfers + .Where(x => node == 4 ? x.child4DnaOldId == nodeId : (node == 3 ? x.child3DnaOldId == nodeId : (node == 2 ? x.child2DnaOldId == nodeId : (node == 1 ? x.child1DnaOldId == nodeId : (node == 0 ? x.rootDnaOldId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + placementTransfers = placementTransfers + .Where(x => x.rootDnaOldId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + placementTransfers = placementTransfers + .Where(x => node == 0 ? x.child1DnaOldId == null : (node == 1 ? x.child2DnaOldId == null : (node == 2 ? x.child3DnaOldId == null : (node == 3 ? x.child4DnaOldId == null : true)))).ToList(); + } + return Success(placementTransfers); } diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 6f6f8fa5..b5106358 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -2,6 +2,7 @@ using BMA.EHR.Application.Repositories.MessageQueue; using BMA.EHR.Application.Repositories.Reports; using BMA.EHR.Application.Responses; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Models.Retirement; using BMA.EHR.Domain.Shared; @@ -34,6 +35,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private readonly MinIOService _documentService; private readonly IConfiguration _configuration; private readonly IHttpContextAccessor _httpContextAccessor; + private readonly UserProfileRepository _userProfileRepository; private readonly PermissionRepository _permission; public RetirementDeceasedController(RetirementRepository repository, @@ -43,6 +45,7 @@ namespace BMA.EHR.Retirement.Service.Controllers MinIOService documentService, IConfiguration configuration, IHttpContextAccessor httpContextAccessor, + UserProfileRepository userProfileRepository, PermissionRepository permission) { _repository = repository; @@ -52,6 +55,7 @@ namespace BMA.EHR.Retirement.Service.Controllers _documentService = documentService; _httpContextAccessor = httpContextAccessor; _configuration = configuration; + _userProfileRepository = userProfileRepository; _permission = permission; } @@ -61,6 +65,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; #endregion @@ -81,19 +86,32 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } - string?[] rootId = jsonData?.result?.rootId ?? null; - string?[] child1Id = jsonData?.result?.child1Id ?? null; - string?[] child2Id = jsonData?.result?.child2Id ?? null; - string?[] child3Id = jsonData?.result?.child3Id ?? null; - string?[] child4Id = jsonData?.result?.child4Id ?? null; + var node = profileAdmin?.Node; var retirementDeceaseds = await _context.RetirementDeceaseds.AsQueryable() .OrderByDescending(x => x.CreatedAt) - .Where(x => rootId == null ? true : rootId.Contains(x.rootId)) - .Where(x => child1Id == null ? true : child1Id.Contains(x.child1Id)) - .Where(x => child2Id == null ? true : child2Id.Contains(x.child2Id)) - .Where(x => child3Id == null ? true : child3Id.Contains(x.child3Id)) - .Where(x => child4Id == null ? true : child4Id.Contains(x.child4Id)) .Select(p => new { p.Id, @@ -120,8 +138,33 @@ namespace BMA.EHR.Retirement.Service.Controllers p.posTypeName, p.CreatedAt, p.IsActive, + p.rootDnaId, + p.child1DnaId, + p.child2DnaId, + p.child3DnaId, + p.child4DnaId, }) .ToListAsync(); + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + retirementDeceaseds = retirementDeceaseds + .Where(x => node == 4 ? x.child4DnaId == nodeId : (node == 3 ? x.child3DnaId == nodeId : (node == 2 ? x.child2DnaId == nodeId : (node == 1 ? x.child1DnaId == nodeId : (node == 0 ? x.rootDnaId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + retirementDeceaseds = retirementDeceaseds + .Where(x => x.rootDnaId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + retirementDeceaseds = retirementDeceaseds + .Where(x => node == 0 ? x.child1DnaId == null : (node == 1 ? x.child2DnaId == null : (node == 2 ? x.child3DnaId == null : (node == 3 ? x.child4DnaId == null : true)))).ToList(); + } return Success(retirementDeceaseds); } @@ -482,7 +525,7 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdatedAt = DateTime.Now, }); } - } + } } await _context.SaveChangesAsync(); @@ -652,32 +695,32 @@ namespace BMA.EHR.Retirement.Service.Controllers }; //if (retirementDeceased.profileType.Trim().ToUpper() == "OFFICER") //{ - var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{item.ProfileId}"; - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); - var _res = await client.SendAsync(_req); - var _result = await _res.Content.ReadAsStringAsync(); + var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{item.ProfileId}"; + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); - var org = JsonConvert.DeserializeObject(_result); + var org = JsonConvert.DeserializeObject(_result); - if (org == null || org.result == null) - continue; + if (org == null || org.result == null) + continue; - retirementDeceasedNoti.Prefix = org.result.prefix == null ? "" : org.result.prefix; - retirementDeceasedNoti.FirstName = org.result.firstName == null ? "" : org.result.firstName; - retirementDeceasedNoti.LastName = org.result.lastName == null ? "" : org.result.lastName; - retirementDeceasedNoti.CitizenId = org.result.citizenId == null ? "" : org.result.citizenId; - retirementDeceasedNoti.PositionName = org.result.position == null ? "" : org.result.position; - retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "\n") + - (org.result.child3 == null ? "" : org.result.child3 + "\n") + - (org.result.child2 == null ? "" : org.result.child2 + "\n") + - (org.result.child1 == null ? "" : org.result.child1 + "\n") + - (org.result.root == null ? "" : org.result.root); - retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); - } + retirementDeceasedNoti.Prefix = org.result.prefix == null ? "" : org.result.prefix; + retirementDeceasedNoti.FirstName = org.result.firstName == null ? "" : org.result.firstName; + retirementDeceasedNoti.LastName = org.result.lastName == null ? "" : org.result.lastName; + retirementDeceasedNoti.CitizenId = org.result.citizenId == null ? "" : org.result.citizenId; + retirementDeceasedNoti.PositionName = org.result.position == null ? "" : org.result.position; + retirementDeceasedNoti.OrganizationName = (org.result.child4 == null ? "" : org.result.child4 + "\n") + + (org.result.child3 == null ? "" : org.result.child3 + "\n") + + (org.result.child2 == null ? "" : org.result.child2 + "\n") + + (org.result.child1 == null ? "" : org.result.child1 + "\n") + + (org.result.root == null ? "" : org.result.root); + retirementDeceased.RetirementDeceasedNotis.Add(retirementDeceasedNoti); + } //} //else //{ diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 91413ff4..7b8d3475 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -1,5 +1,6 @@ ïŧŋusing BMA.EHR.Application.Repositories; using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Retirement; @@ -31,6 +32,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private readonly MinIOService _documentService; private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; + private readonly UserProfileRepository _userProfileRepository; private readonly PermissionRepository _permission; public RetirementOtherController(RetirementRepository repository, @@ -39,6 +41,7 @@ namespace BMA.EHR.Retirement.Service.Controllers MinIOService documentService, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, + UserProfileRepository userProfileRepository, PermissionRepository permission) { _repository = repository; @@ -47,6 +50,7 @@ namespace BMA.EHR.Retirement.Service.Controllers _documentService = documentService; _httpContextAccessor = httpContextAccessor; _configuration = configuration; + _userProfileRepository = userProfileRepository; _permission = permission; } @@ -56,6 +60,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; #endregion @@ -77,135 +82,140 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - var rootId = ""; - var child1Id = ""; - var child2Id = ""; - var child3Id = ""; - var child4Id = ""; - var apiUrl = $"{_configuration["API"]}/org/permission/checkOrg/{UserId}"; - using (var client = new HttpClient()) + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); - var _res = await client.SendAsync(_req); - var _result = await _res.Content.ReadAsStringAsync(); - - var org = JsonConvert.DeserializeObject(_result); - - if (org == null || org.result == null) - return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļ„āļ™āļ™āļĩāđ‰", 404); - rootId = org.result.rootId == null ? "" : org.result.rootId; - child1Id = org.result.child1Id == null ? "" : org.result.child1Id; - child2Id = org.result.child2Id == null ? "" : org.result.child2Id; - child3Id = org.result.child3Id == null ? "" : org.result.child3Id; - child4Id = org.result.child4Id == null ? "" : org.result.child4Id; - - var retirementOthers = await _context.RetirementOthers.AsQueryable() - .OrderByDescending(x => x.CreatedAt) - // .Where(x => rootId == "" ? true : (child1Id == "" ? x.rootOldId == rootId : (child2Id == "" ? x.child1OldId == child1Id : (child3Id == "" ? x.child2OldId == child2Id : (child4Id == "" ? x.child3OldId == child3Id : x.child4OldId == child4Id))))) - .Select(p => new - { - p.Id, - p.citizenId, - p.profileId, - p.prefix, - p.firstName, - p.lastName, - p.root, - p.rootId, - p.rootShortName, - p.child1, - p.child1Id, - p.child1ShortName, - p.child2, - p.child2Id, - p.child2ShortName, - p.child3, - p.child3Id, - p.child3ShortName, - p.child4, - p.child4Id, - p.child4ShortName, - p.orgRevisionId, - p.positionId, - p.posMasterNo, - p.position, - p.PositionExecutive, - p.positionField, - p.posTypeId, - p.posTypeName, - p.posLevelId, - p.posLevelName, - node = p.root == null ? (int?)null : (p.child1 == null ? 0 : (p.child2 == null ? 1 : (p.child3 == null ? 2 : (p.child4 == null ? 3 : 4)))), - nodeName = p.root == null ? null : (p.child1 == null ? p.root : (p.child2 == null ? p.child1 : (p.child3 == null ? p.child2 : (p.child4 == null ? p.child3 : p.child4)))), - nodeId = p.rootId == null ? null : (p.child1Id == null ? p.rootId : (p.child2Id == null ? p.child1Id : (p.child3Id == null ? p.child2Id : (p.child4Id == null ? p.child3Id : p.child4Id)))), - nodeShortName = p.rootShortName == null ? null : (p.child1ShortName == null ? p.rootShortName : (p.child2ShortName == null ? p.child1ShortName : (p.child3ShortName == null ? p.child2ShortName : (p.child4ShortName == null ? p.child3ShortName : p.child4ShortName)))), - - p.rootOld, - p.rootOldId, - p.rootShortNameOld, - p.child1Old, - p.child1OldId, - p.child1ShortNameOld, - p.child2Old, - p.child2OldId, - p.child2ShortNameOld, - p.child3Old, - p.child3OldId, - p.child3ShortNameOld, - p.child4Old, - p.child4OldId, - p.child4ShortNameOld, - p.PositionOld, - p.PositionExecutiveOld, - p.posMasterNoOld, - p.posTypeOldId, - p.posTypeNameOld, - p.posLevelOldId, - p.posLevelNameOld, - - p.Status, - p.Amount, - p.ReportingDate, - - p.CreatedAt, - p.Reason, - p.MilitaryDate, - p.EducationOld, - p.AmountOld, - p.PositionTypeOld, - p.PositionLevelOld, - p.PositionNumberOld, - p.OrganizationPositionOld, - p.posmasterId, - p.PositionDate, - CommandType = p.CommandType == null ? null : p.CommandType.Name, - }) - .ToListAsync(); - // if (keyword != "") - // { - // var data = retirementOthers.Where(x => - // (x.prefix != null && x.prefix.Contains(keyword)) || - // (x.firstName != null && x.firstName.Contains(keyword)) || - // (x.lastName != null && x.lastName.Contains(keyword)) || - // (x.rootShortNameOld != null && x.rootShortNameOld.Contains(keyword)) || - // (x.posMasterNoOld != null && x.posMasterNoOld.ToString().Contains(keyword)) || - // (x.posTypeNameOld != null && x.posTypeNameOld.Contains(keyword)) || - // (x.posLevelNameOld != null && x.posLevelNameOld.Contains(keyword)) || - // (x.OrganizationPositionOld != null && x.OrganizationPositionOld.Contains(keyword)) || - // (x.Reason != null && x.Reason.Contains(keyword))) - // .OrderByDescending(x => x.CreatedAt) - // .Skip((page - 1) * pageSize) - // .Take(pageSize) - // .ToList(); - - // retirementOthers = data; - // } - if (status != null && status.Trim().ToUpper() != "ALL") - retirementOthers = retirementOthers.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); - return Success(retirementOthers); + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; + var retirementOthers = await _context.RetirementOthers.AsQueryable() + .OrderByDescending(x => x.CreatedAt) + .Select(p => new + { + p.Id, + p.citizenId, + p.profileId, + p.prefix, + p.firstName, + p.lastName, + p.root, + p.rootId, + p.rootShortName, + p.child1, + p.child1Id, + p.child1ShortName, + p.child2, + p.child2Id, + p.child2ShortName, + p.child3, + p.child3Id, + p.child3ShortName, + p.child4, + p.child4Id, + p.child4ShortName, + p.orgRevisionId, + p.positionId, + p.posMasterNo, + p.position, + p.PositionExecutive, + p.positionField, + p.posTypeId, + p.posTypeName, + p.posLevelId, + p.posLevelName, + node = p.root == null ? (int?)null : (p.child1 == null ? 0 : (p.child2 == null ? 1 : (p.child3 == null ? 2 : (p.child4 == null ? 3 : 4)))), + nodeName = p.root == null ? null : (p.child1 == null ? p.root : (p.child2 == null ? p.child1 : (p.child3 == null ? p.child2 : (p.child4 == null ? p.child3 : p.child4)))), + nodeId = p.rootId == null ? null : (p.child1Id == null ? p.rootId : (p.child2Id == null ? p.child1Id : (p.child3Id == null ? p.child2Id : (p.child4Id == null ? p.child3Id : p.child4Id)))), + nodeShortName = p.rootShortName == null ? null : (p.child1ShortName == null ? p.rootShortName : (p.child2ShortName == null ? p.child1ShortName : (p.child3ShortName == null ? p.child2ShortName : (p.child4ShortName == null ? p.child3ShortName : p.child4ShortName)))), + + p.rootOld, + p.rootOldId, + p.rootShortNameOld, + p.child1Old, + p.child1OldId, + p.child1ShortNameOld, + p.child2Old, + p.child2OldId, + p.child2ShortNameOld, + p.child3Old, + p.child3OldId, + p.child3ShortNameOld, + p.child4Old, + p.child4OldId, + p.child4ShortNameOld, + p.PositionOld, + p.PositionExecutiveOld, + p.posMasterNoOld, + p.posTypeOldId, + p.posTypeNameOld, + p.posLevelOldId, + p.posLevelNameOld, + + p.Status, + p.Amount, + p.ReportingDate, + + p.CreatedAt, + p.Reason, + p.MilitaryDate, + p.EducationOld, + p.AmountOld, + p.PositionTypeOld, + p.PositionLevelOld, + p.PositionNumberOld, + p.OrganizationPositionOld, + p.posmasterId, + p.PositionDate, + CommandType = p.CommandType == null ? null : p.CommandType.Name, + p.rootDnaOldId, + p.child1DnaOldId, + p.child2DnaOldId, + p.child3DnaOldId, + p.child4DnaOldId, + }) + .ToListAsync(); + + if (status != null && status.Trim().ToUpper() != "ALL") + retirementOthers = retirementOthers.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + retirementOthers = retirementOthers + .Where(x => node == 4 ? x.child4DnaOldId == nodeId : (node == 3 ? x.child3DnaOldId == nodeId : (node == 2 ? x.child2DnaOldId == nodeId : (node == 1 ? x.child1DnaOldId == nodeId : (node == 0 ? x.rootDnaOldId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + retirementOthers = retirementOthers + .Where(x => x.rootDnaOldId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + retirementOthers = retirementOthers + .Where(x => node == 0 ? x.child1DnaOldId == null : (node == 1 ? x.child2DnaOldId == null : (node == 2 ? x.child3DnaOldId == null : (node == 3 ? x.child4DnaOldId == null : true)))).ToList(); + } + return Success(retirementOthers); } /// @@ -351,14 +361,14 @@ namespace BMA.EHR.Retirement.Service.Controllers var apiUrl = string.Empty; if (req.profileType.Trim().ToUpper() == "EMPLOYEE") { - + apiUrl = $"{_configuration["API"]}/org/profile-employee/profileid/position/{req.Id}"; } else { apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{req.Id}"; } - + using (var client = new HttpClient()) { client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); @@ -745,7 +755,7 @@ namespace BMA.EHR.Retirement.Service.Controllers (p.root == null ? "" : $"{p.root}"), NewPositionType = p.posTypeName == null ? "-" : p.posTypeName, NewPositionLevel = p.posLevelName == null ? "-" : p.posLevelName, - NewPositionNumber = p.rootShortName == null && p.posMasterNo == null ? null : $"{(p.child1ShortName == null ? p.rootShortName : (p.child2ShortName == null ? p.child1ShortName : (p.child3ShortName == null ? p.child2ShortName : (p.child4ShortName == null ? p.child3ShortName : p.child4ShortName))))}"+ + NewPositionNumber = p.rootShortName == null && p.posMasterNo == null ? null : $"{(p.child1ShortName == null ? p.rootShortName : (p.child2ShortName == null ? p.child1ShortName : (p.child3ShortName == null ? p.child2ShortName : (p.child4ShortName == null ? p.child3ShortName : p.child4ShortName))))}" + $" {p.posMasterNo?.ToString().ToThaiNumber()}", NewSalary = r.Amount == null ? "-" : r.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.PositionDate == null ? "-" : p.PositionDate.Value.ToThaiShortDate2().ToThaiNumber(), diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index ae943e50..3f4308c1 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -1,5 +1,6 @@ ïŧŋusing BMA.EHR.Application.Repositories; using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Placement; @@ -32,6 +33,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private readonly MinIOService _documentService; private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; + private readonly UserProfileRepository _userProfileRepository; private readonly PermissionRepository _permission; public RetirementOutController(RetirementRepository repository, @@ -40,6 +42,7 @@ namespace BMA.EHR.Retirement.Service.Controllers MinIOService documentService, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, + UserProfileRepository userProfileRepository, PermissionRepository permission) { _repository = repository; @@ -48,6 +51,7 @@ namespace BMA.EHR.Retirement.Service.Controllers _documentService = documentService; _httpContextAccessor = httpContextAccessor; _configuration = configuration; + _userProfileRepository = userProfileRepository; _permission = permission; } @@ -57,6 +61,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; #endregion @@ -78,83 +83,106 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - var rootId = ""; - var child1Id = ""; - var child2Id = ""; - var child3Id = ""; - var child4Id = ""; - var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position"; - using (var client = new HttpClient()) + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") { - client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); - client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); - var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); - var _res = await client.SendAsync(_req); - var _result = await _res.Content.ReadAsStringAsync(); - - var org = JsonConvert.DeserializeObject(_result); - - if (org == null || org.result == null) - return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļ„āļ™āļ™āļĩāđ‰", 404); - rootId = org.result.rootId == null ? "" : org.result.rootId; - child1Id = org.result.child1Id == null ? "" : org.result.child1Id; - child2Id = org.result.child2Id == null ? "" : org.result.child2Id; - child3Id = org.result.child3Id == null ? "" : org.result.child3Id; - child4Id = org.result.child4Id == null ? "" : org.result.child4Id; - - var retirementOuts = await _context.RetirementOuts.AsQueryable() - .OrderByDescending(x => x.CreatedAt) - .Where(x => x.profileType.Trim().ToUpper().Contains(type.Trim().ToUpper())) - // .Where(x => rootId == "" ? true : (child1Id == "" ? x.rootOldId == rootId : (child2Id == "" ? x.child1OldId == child1Id : (child3Id == "" ? x.child2OldId == child2Id : (child4Id == "" ? x.child3OldId == child3Id : x.child4OldId == child4Id))))) - .Select(p => new - { - p.Id, - p.profileType, - p.citizenId, - p.profileId, - p.prefix, - p.firstName, - p.lastName, - p.rootOld, - p.rootOldId, - p.rootShortNameOld, - p.child1Old, - p.child1OldId, - p.child1ShortNameOld, - p.child2Old, - p.child2OldId, - p.child2ShortNameOld, - p.child3Old, - p.child3OldId, - p.child3ShortNameOld, - p.child4Old, - p.child4OldId, - p.child4ShortNameOld, - p.PositionOld, - p.PositionExecutiveOld, - p.posMasterNoOld, - p.posTypeOldId, - p.posTypeNameOld, - p.posLevelOldId, - p.posLevelNameOld, - p.CreatedAt, - p.Organization, - p.Reason, - p.Status, - p.Date, - salary = p.AmountOld, - p.PositionTypeOld, - p.PositionLevelOld, - p.PositionNumberOld, - p.OrganizationPositionOld, - p.IsActive, - }) - .ToListAsync(); - //if (status != null && status.Trim().ToUpper() != "WAITTING") - if (status != null) - retirementOuts = retirementOuts.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); - return Success(retirementOuts); + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; + var retirementOuts = await _context.RetirementOuts.AsQueryable() + .OrderByDescending(x => x.CreatedAt) + .Where(x => x.profileType.Trim().ToUpper().Contains(type.Trim().ToUpper())) + .Select(p => new + { + p.Id, + p.profileType, + p.citizenId, + p.profileId, + p.prefix, + p.firstName, + p.lastName, + p.rootOld, + p.rootOldId, + p.rootShortNameOld, + p.child1Old, + p.child1OldId, + p.child1ShortNameOld, + p.child2Old, + p.child2OldId, + p.child2ShortNameOld, + p.child3Old, + p.child3OldId, + p.child3ShortNameOld, + p.child4Old, + p.child4OldId, + p.child4ShortNameOld, + p.PositionOld, + p.PositionExecutiveOld, + p.posMasterNoOld, + p.posTypeOldId, + p.posTypeNameOld, + p.posLevelOldId, + p.posLevelNameOld, + p.CreatedAt, + p.Organization, + p.Reason, + p.Status, + p.Date, + salary = p.AmountOld, + p.PositionTypeOld, + p.PositionLevelOld, + p.PositionNumberOld, + p.OrganizationPositionOld, + p.IsActive, + p.rootDnaOldId, + p.child1DnaOldId, + p.child2DnaOldId, + p.child3DnaOldId, + p.child4DnaOldId, + }) + .ToListAsync(); + //if (status != null && status.Trim().ToUpper() != "WAITTING") + if (status != null) + retirementOuts = retirementOuts.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList(); + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + retirementOuts = retirementOuts + .Where(x => node == 4 ? x.child4DnaOldId == nodeId : (node == 3 ? x.child3DnaOldId == nodeId : (node == 2 ? x.child2DnaOldId == nodeId : (node == 1 ? x.child1DnaOldId == nodeId : (node == 0 ? x.rootDnaOldId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + retirementOuts = retirementOuts + .Where(x => x.rootDnaOldId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + retirementOuts = retirementOuts + .Where(x => node == 0 ? x.child1DnaOldId == null : (node == 1 ? x.child2DnaOldId == null : (node == 2 ? x.child3DnaOldId == null : (node == 3 ? x.child4DnaOldId == null : true)))).ToList(); + } + return Success(retirementOuts); } /// diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 763ac48b..16a6f5bf 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -2,6 +2,7 @@ using BMA.EHR.Application.Repositories.MessageQueue; using BMA.EHR.Application.Repositories.Reports; using BMA.EHR.Application.Repositories.Reports; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Retirement; @@ -34,6 +35,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; private readonly PermissionRepository _permission; + private readonly UserProfileRepository _userProfileRepository; private readonly RetireReportRepository _service; public RetirementResignController(RetirementRepository repository, @@ -43,6 +45,7 @@ namespace BMA.EHR.Retirement.Service.Controllers IHttpContextAccessor httpContextAccessor, IConfiguration configuration, PermissionRepository permission, + UserProfileRepository userProfileRepository, RetireReportRepository service) { _repository = repository; @@ -52,6 +55,7 @@ namespace BMA.EHR.Retirement.Service.Controllers _httpContextAccessor = httpContextAccessor; _configuration = configuration; _permission = permission; + _userProfileRepository = userProfileRepository; _service = service; } @@ -61,6 +65,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; #endregion // private List GetOcNameFullPath(Guid id, bool showRoot = false) @@ -234,6 +239,30 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; var retirementResigns = await _context.RetirementResigns.AsQueryable() .Where(x => type.Trim().ToUpper() == "APPROVE" ? (x.Status == "APPROVE" || x.Status == "REJECT") : x.Status == type.Trim().ToUpper()) .OrderByDescending(x => x.CreatedAt) @@ -266,9 +295,34 @@ namespace BMA.EHR.Retirement.Service.Controllers p.CreatedAt, p.ApproveStep, p.Group, + p.rootDnaOldId, + p.child1DnaOldId, + p.child2DnaOldId, + p.child3DnaOldId, + p.child4DnaOldId, }) .ToListAsync(); + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + retirementResigns = retirementResigns + .Where(x => node == 4 ? x.child4DnaOldId == nodeId : (node == 3 ? x.child3DnaOldId == nodeId : (node == 2 ? x.child2DnaOldId == nodeId : (node == 1 ? x.child1DnaOldId == nodeId : (node == 0 ? x.rootDnaOldId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + retirementResigns = retirementResigns + .Where(x => x.rootDnaOldId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + retirementResigns = retirementResigns + .Where(x => node == 0 ? x.child1DnaOldId == null : (node == 1 ? x.child2DnaOldId == null : (node == 2 ? x.child3DnaOldId == null : (node == 3 ? x.child4DnaOldId == null : true)))).ToList(); + } + return Success(retirementResigns); } @@ -289,6 +343,30 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; var retirementResigns = await _context.RetirementResignCancels.AsQueryable() .Where(x => type.Trim().ToUpper() == "APPROVE" ? (x.Status == "APPROVE" || x.Status == "REJECT") : x.Status == type.Trim().ToUpper()) .OrderByDescending(x => x.CreatedAt) @@ -320,9 +398,34 @@ namespace BMA.EHR.Retirement.Service.Controllers p.CreatedAt, p.ApproveStep, p.Group, + p.rootDnaOldId, + p.child1DnaOldId, + p.child2DnaOldId, + p.child3DnaOldId, + p.child4DnaOldId, }) .ToListAsync(); + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + retirementResigns = retirementResigns + .Where(x => node == 4 ? x.child4DnaOldId == nodeId : (node == 3 ? x.child3DnaOldId == nodeId : (node == 2 ? x.child2DnaOldId == nodeId : (node == 1 ? x.child1DnaOldId == nodeId : (node == 0 ? x.rootDnaOldId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + retirementResigns = retirementResigns + .Where(x => x.rootDnaOldId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + retirementResigns = retirementResigns + .Where(x => node == 0 ? x.child1DnaOldId == null : (node == 1 ? x.child2DnaOldId == null : (node == 2 ? x.child3DnaOldId == null : (node == 3 ? x.child4DnaOldId == null : true)))).ToList(); + } + return Success(retirementResigns); } @@ -1572,18 +1675,23 @@ namespace BMA.EHR.Retirement.Service.Controllers citizenId = updated.citizenId, rootOld = updated.rootOld, rootOldId = updated.rootOldId, + rootDnaOldId = updated.rootDnaOldId, rootShortNameOld = updated.rootShortNameOld, child1Old = updated.child1Old, child1OldId = updated.child1OldId, + child1DnaOldId = updated.child1DnaOldId, child1ShortNameOld = updated.child1ShortNameOld, child2Old = updated.child2Old, child2OldId = updated.child2OldId, + child2DnaOldId = updated.child2DnaOldId, child2ShortNameOld = updated.child2ShortNameOld, child3Old = updated.child3Old, child3OldId = updated.child3OldId, + child3DnaOldId = updated.child3DnaOldId, child3ShortNameOld = updated.child3ShortNameOld, child4Old = updated.child4Old, child4OldId = updated.child4OldId, + child4DnaOldId = updated.child4DnaOldId, child4ShortNameOld = updated.child4ShortNameOld, posMasterNoOld = updated.posMasterNoOld, posTypeOldId = updated.posTypeOldId, @@ -2001,6 +2109,30 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; var data = await _context.RetirementQuestions.AsQueryable() .OrderByDescending(x => x.CreatedAt) .Select(p => new @@ -2026,8 +2158,33 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdatedAt = p.LastUpdatedAt, CreatedAt = p.CreatedAt, AppointDate = p.AppointDate, + p.rootDnaId, + p.child1DnaId, + p.child2DnaId, + p.child3DnaId, + p.child4DnaId, }) .ToListAsync(); + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + data = data + .Where(x => node == 4 ? x.child4DnaId == nodeId : (node == 3 ? x.child3DnaId == nodeId : (node == 2 ? x.child2DnaId == nodeId : (node == 1 ? x.child1DnaId == nodeId : (node == 0 ? x.rootDnaId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + data = data + .Where(x => x.rootDnaId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + data = data + .Where(x => node == 0 ? x.child1DnaId == null : (node == 1 ? x.child2DnaId == null : (node == 2 ? x.child3DnaId == null : (node == 3 ? x.child4DnaId == null : true)))).ToList(); + } return Success(data); } @@ -2150,6 +2307,37 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, }; + + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{retirementResign.profileId}"; + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org == null || org.result == null) + return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļ„āļ™āļ™āļĩāđ‰", 404); + + period.root = org.result.root; + period.rootId = org.result.rootId; + period.rootDnaId = org.result.rootDnaId; + period.child1 = org.result.child1; + period.child1Id = org.result.child1Id; + period.child1DnaId = org.result.child1DnaId; + period.child2 = org.result.child2; + period.child2Id = org.result.child2Id; + period.child2DnaId = org.result.child2DnaId; + period.child3 = org.result.child3; + period.child3Id = org.result.child3Id; + period.child3DnaId = org.result.child3DnaId; + period.child4 = org.result.child4; + period.child4Id = org.result.child4Id; + period.child4DnaId = org.result.child4DnaId; + } await _context.RetirementQuestions.AddAsync(period); await _context.SaveChangesAsync(); @@ -2637,7 +2825,7 @@ namespace BMA.EHR.Retirement.Service.Controllers positionLevel = p.PositionLevelOld, isLeave = p.IsCancel == true ? false : true, //leaveReason = "āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ", - leaveReason = p.ReasonResign == "āļ­āļ·āđˆāļ™ āđ†" + leaveReason = p.ReasonResign == "āļ­āļ·āđˆāļ™ āđ†" ? string.IsNullOrWhiteSpace(p.Remark) ? p.ReasonResign : $"{p.ReasonResign}({p.Remark})" : p.ReasonResign, dateLeave = r.commandDateAffect, diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 0ae5a15d..a932eedd 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -1,5 +1,6 @@ ïŧŋusing BMA.EHR.Application.Repositories; using BMA.EHR.Application.Repositories.MessageQueue; +using BMA.EHR.Application.Responses.Profiles; using BMA.EHR.Domain.Common; using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Retirement; @@ -31,6 +32,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private readonly MinIOService _documentService; private readonly IHttpContextAccessor _httpContextAccessor; private readonly IConfiguration _configuration; + private readonly UserProfileRepository _userProfileRepository; private readonly PermissionRepository _permission; public RetirementResignEmployeeController(RetirementEmployeeRepository repository, @@ -39,6 +41,7 @@ namespace BMA.EHR.Retirement.Service.Controllers MinIOService documentService, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, + UserProfileRepository userProfileRepository, PermissionRepository permission) { _repository = repository; @@ -47,6 +50,7 @@ namespace BMA.EHR.Retirement.Service.Controllers _documentService = documentService; _httpContextAccessor = httpContextAccessor; _configuration = configuration; + _userProfileRepository = userProfileRepository; _permission = permission; } @@ -56,6 +60,7 @@ namespace BMA.EHR.Retirement.Service.Controllers private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; private string? token => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; + private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"]; #endregion /// @@ -173,6 +178,30 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; var retirementResignEmployees = await _context.RetirementResignEmployees.AsQueryable() .Where(x => type.Trim().ToUpper() == "APPROVE" ? (x.Status == "APPROVE" || x.Status == "REJECT") : x.Status == type.Trim().ToUpper()) .OrderByDescending(x => x.CreatedAt) @@ -205,9 +234,34 @@ namespace BMA.EHR.Retirement.Service.Controllers p.CreatedAt, p.ApproveStep, p.Group, + p.rootDnaOldId, + p.child1DnaOldId, + p.child2DnaOldId, + p.child3DnaOldId, + p.child4DnaOldId, }) .ToListAsync(); + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + retirementResignEmployees = retirementResignEmployees + .Where(x => node == 4 ? x.child4DnaOldId == nodeId : (node == 3 ? x.child3DnaOldId == nodeId : (node == 2 ? x.child2DnaOldId == nodeId : (node == 1 ? x.child1DnaOldId == nodeId : (node == 0 ? x.rootDnaOldId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + retirementResignEmployees = retirementResignEmployees + .Where(x => x.rootDnaOldId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + retirementResignEmployees = retirementResignEmployees + .Where(x => node == 0 ? x.child1DnaOldId == null : (node == 1 ? x.child2DnaOldId == null : (node == 2 ? x.child3DnaOldId == null : (node == 3 ? x.child4DnaOldId == null : true)))).ToList(); + } + return Success(retirementResignEmployees); } @@ -228,6 +282,30 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; var retirementResignEmployees = await _context.RetirementResignEmployeeCancels.AsQueryable() .Where(x => type.Trim().ToUpper() == "APPROVE" ? (x.Status == "APPROVE" || x.Status == "REJECT") : x.Status == type.Trim().ToUpper()) .OrderByDescending(x => x.CreatedAt) @@ -258,9 +336,34 @@ namespace BMA.EHR.Retirement.Service.Controllers p.CreatedAt, p.ApproveStep, p.Group, + p.rootDnaOldId, + p.child1DnaOldId, + p.child2DnaOldId, + p.child3DnaOldId, + p.child4DnaOldId, }) .ToListAsync(); + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + retirementResignEmployees = retirementResignEmployees + .Where(x => node == 4 ? x.child4DnaOldId == nodeId : (node == 3 ? x.child3DnaOldId == nodeId : (node == 2 ? x.child2DnaOldId == nodeId : (node == 1 ? x.child1DnaOldId == nodeId : (node == 0 ? x.rootDnaOldId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + retirementResignEmployees = retirementResignEmployees + .Where(x => x.rootDnaOldId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + retirementResignEmployees = retirementResignEmployees + .Where(x => node == 0 ? x.child1DnaOldId == null : (node == 1 ? x.child2DnaOldId == null : (node == 2 ? x.child3DnaOldId == null : (node == 3 ? x.child4DnaOldId == null : true)))).ToList(); + } + return Success(retirementResignEmployees); } @@ -1490,18 +1593,23 @@ namespace BMA.EHR.Retirement.Service.Controllers citizenId = updated.citizenId, rootOld = updated.rootOld, rootOldId = updated.rootOldId, + rootDnaOldId = updated.rootDnaOldId, rootShortNameOld = updated.rootShortNameOld, child1Old = updated.child1Old, child1OldId = updated.child1OldId, + child1DnaOldId = updated.child1DnaOldId, child1ShortNameOld = updated.child1ShortNameOld, child2Old = updated.child2Old, child2OldId = updated.child2OldId, + child2DnaOldId = updated.child2DnaOldId, child2ShortNameOld = updated.child2ShortNameOld, child3Old = updated.child3Old, child3OldId = updated.child3OldId, + child3DnaOldId = updated.child3DnaOldId, child3ShortNameOld = updated.child3ShortNameOld, child4Old = updated.child4Old, child4OldId = updated.child4OldId, + child4DnaOldId = updated.child4DnaOldId, child4ShortNameOld = updated.child4ShortNameOld, posMasterNoOld = updated.posMasterNoOld, posTypeOldId = updated.posTypeOldId, @@ -1929,7 +2037,31 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - var data = await _context.RetirementQuestions.AsQueryable() + string role = jsonData["result"]; + var nodeId = string.Empty; + var profileAdmin = new GetUserOCAllDto(); + profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); + if (role == "NORMAL" || role == "CHILD") + { + nodeId = profileAdmin?.Node == 4 + ? profileAdmin?.Child4DnaId + : profileAdmin?.Node == 3 + ? profileAdmin?.Child3DnaId + : profileAdmin?.Node == 2 + ? profileAdmin?.Child2DnaId + : profileAdmin?.Node == 1 + ? profileAdmin?.Child1DnaId + : profileAdmin?.Node == 0 + ? profileAdmin?.RootDnaId + : ""; + } + else if (role == "ROOT") + { + nodeId = profileAdmin?.RootDnaId; + } + + var node = profileAdmin?.Node; + var data = await _context.RetirementEmployeeQuestions.AsQueryable() .OrderByDescending(x => x.CreatedAt) .Select(p => new { @@ -1954,11 +2086,115 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdatedAt = p.LastUpdatedAt, CreatedAt = p.CreatedAt, AppointDate = p.AppointDate, + p.rootDnaId, + p.child1DnaId, + p.child2DnaId, + p.child3DnaId, + p.child4DnaId, }) .ToListAsync(); + + if (role == "OWNER") + { + node = null; + } + if (role == "OWNER" || role == "CHILD") + { + data = data + .Where(x => node == 4 ? x.child4DnaId == nodeId : (node == 3 ? x.child3DnaId == nodeId : (node == 2 ? x.child2DnaId == nodeId : (node == 1 ? x.child1DnaId == nodeId : (node == 0 ? x.rootDnaId == nodeId : (node == null ? true : true)))))).ToList(); + } + else if (role == "ROOT") + { + data = data + .Where(x => x.rootDnaId == nodeId).ToList(); + } + else if (role == "NORMAL") + { + data = data + .Where(x => node == 0 ? x.child1DnaId == null : (node == 1 ? x.child2DnaId == null : (node == 2 ? x.child3DnaId == null : (node == 3 ? x.child4DnaId == null : true)))).ToList(); + } return Success(data); } + /// + /// āļŠāļĢāđ‰āļēāļ‡āđāļšāļšāļŠāļ­āļšāļ–āļēāļĄāļŦāļĨāļąāļ‡āļĨāļēāļ­āļ­āļ + /// + /// + /// + /// āļ„āđˆāļēāļ•āļąāļ§āđāļ›āļĢāļ—āļĩāđˆāļŠāđˆāļ‡āļĄāļēāđ„āļĄāđˆāļ–āļđāļāļ•āđ‰āļ­āļ‡ + /// āđ„āļĄāđˆāđ„āļ”āđ‰ Login āđ€āļ‚āđ‰āļēāļĢāļ°āļšāļš + /// āđ€āļĄāļ·āđˆāļ­āđ€āļāļīāļ”āļ‚āđ‰āļ­āļœāļīāļ”āļžāļĨāļēāļ”āđƒāļ™āļāļēāļĢāļ—āļģāļ‡āļēāļ™ + [HttpPost("questionnaire")] + public async Task> PostQuestion([FromBody] RetirementQuestionRequest req) + { + var retirementResign = await _context.RetirementResignEmployees.AsQueryable() + .FirstOrDefaultAsync(x => x.Id == req.RetirementResignId); + if (retirementResign == null) + return Error(GlobalMessages.RetirementResignNotFound); + + var period = new RetirementEmployeeQuestion + { + RetirementResignEmployee = retirementResign, + ReasonWork = Newtonsoft.Json.JsonConvert.SerializeObject(req.ReasonWork), + ReasonWorkOther = req.ReasonWorkOther, + TimeThink = req.TimeThink, + ExitFactor = Newtonsoft.Json.JsonConvert.SerializeObject(req.ExitFactor), + ExitFactorOther = req.ExitFactorOther, + Adjust = Newtonsoft.Json.JsonConvert.SerializeObject(req.Adjust), + AdjustOther = req.AdjustOther, + RealReason = req.RealReason, + NotExitFactor = req.NotExitFactor, + Havejob = req.Havejob, + HavejobReason = req.HavejobReason, + SuggestFriends = req.SuggestFriends, + SuggestFriendsReason = req.SuggestFriendsReason, + FutureWork = req.FutureWork, + FutureWorkReason = req.FutureWorkReason, + Suggestion = req.Suggestion, + CreatedFullName = FullName ?? "System Administrator", + CreatedUserId = UserId ?? "", + CreatedAt = DateTime.Now, + LastUpdateFullName = FullName ?? "System Administrator", + LastUpdateUserId = UserId ?? "", + LastUpdatedAt = DateTime.Now, + }; + + using (var client = new HttpClient()) + { + client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); + client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); + var apiUrl = $"{_configuration["API"]}/org/profile-employee/profileid/position/{retirementResign.profileId}"; + var _req = new HttpRequestMessage(HttpMethod.Get, apiUrl); + var _res = await client.SendAsync(_req); + var _result = await _res.Content.ReadAsStringAsync(); + + var org = JsonConvert.DeserializeObject(_result); + + if (org == null || org.result == null) + return Error("āđ„āļĄāđˆāļžāļšāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļ„āļ™āļ™āļĩāđ‰", 404); + + period.root = org.result.root; + period.rootId = org.result.rootId; + period.rootDnaId = org.result.rootDnaId; + period.child1 = org.result.child1; + period.child1Id = org.result.child1Id; + period.child1DnaId = org.result.child1DnaId; + period.child2 = org.result.child2; + period.child2Id = org.result.child2Id; + period.child2DnaId = org.result.child2DnaId; + period.child3 = org.result.child3; + period.child3Id = org.result.child3Id; + period.child3DnaId = org.result.child3DnaId; + period.child4 = org.result.child4; + period.child4Id = org.result.child4Id; + period.child4DnaId = org.result.child4DnaId; + } + await _context.RetirementEmployeeQuestions.AddAsync(period); + await _context.SaveChangesAsync(); + + return Success(); + } + /// /// āļŠāđˆāļ‡āļĢāļēāļĒāļŠāļ·āđˆāļ­āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡ C-PM-23 /// From 1e5676e8ab9010b6c42f38f1726f16b0a2d2e553 Mon Sep 17 00:00:00 2001 From: kittapath <> Date: Fri, 20 Jun 2025 01:24:57 +0700 Subject: [PATCH 382/879] migrate db --- ...pdate_table_discipline_add_dna.Designer.cs | 21235 ++++++++++++++++ ...9180137_update_table_discipline_add_dna.cs | 428 + .../ApplicationDBContextModelSnapshot.cs | 344 + ...pdate_table_discipline_add_dna.Designer.cs | 3671 +++ ...9175842_update_table_discipline_add_dna.cs | 198 + .../DisciplineDbContextModelSnapshot.cs | 60 + 6 files changed, 25936 insertions(+) create mode 100644 BMA.EHR.Infrastructure/Migrations/20250619180137_update_table_discipline_add_dna.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/20250619180137_update_table_discipline_add_dna.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250619175842_update_table_discipline_add_dna.Designer.cs create mode 100644 BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250619175842_update_table_discipline_add_dna.cs diff --git a/BMA.EHR.Infrastructure/Migrations/20250619180137_update_table_discipline_add_dna.Designer.cs b/BMA.EHR.Infrastructure/Migrations/20250619180137_update_table_discipline_add_dna.Designer.cs new file mode 100644 index 00000000..8f7a7a35 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250619180137_update_table_discipline_add_dna.Designer.cs @@ -0,0 +1,21235 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + [DbContext(typeof(ApplicationDBContext))] + [Migration("20250619180137_update_table_discipline_add_dna")] + partial class update_table_discipline_add_dna + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("ActStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĢāļąāļāļĐāļēāļāļēāļĢāđāļ—āļ™"); + + b.Property("AuthorizedPosition") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserFullName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("AuthorizedUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āļĄāļĩāļ­āļģāļ™āļēāļˆāļĨāļ‡āļ™āļēāļĄ"); + + b.Property("CaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ChairManFullName") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āļ˜āļēāļ™āļ„āļ“āļ°āļāļĢāļĢāļĄāļāļēāļĢ"); + + b.Property("CommandAffectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļĄāļĩāļœāļĨ"); + + b.Property("CommandExcecuteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandNo") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandStatusId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāļ–āļēāļ™āļ°āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandSubject") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandYear") + .IsRequired() + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("ComplaintId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ConclusionFireDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireNo") + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionFireResolution") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļīāļ—āļĩāđˆāļ›āļĢāļ°āļŠāļļāļĄ (āđ€āļĢāļ·āđˆāļ­āļ‡āļāļēāļĢāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ)"); + + b.Property("ConclusionMeetingDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionMeetingNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ConclusionReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionReceiveNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āļāļēāļĢāļĢāļąāļšāđ‚āļ­āļ™)"); + + b.Property("ConclusionRegisterDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionRegisterNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļĢāļąāļšāļŠāļĄāļąāļ„āļĢāļŠāļ­āļšāļŊ)"); + + b.Property("ConclusionResultDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionResultNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļœāļĨāļāļēāļĢāļŠāļ­āļšāđāļ‚āđˆāļ‡āļ‚āļąāļ™)"); + + b.Property("ConclusionReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionReturnNo") + .HasColumnType("longtext") + .HasComment("āļĄāļ•āļī āļāļ. āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ (āđ€āļĢāļ·āđˆāļ­āļ‡ āļāļĨāļąāļšāđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("ConclusionTranferDate") + .HasColumnType("datetime(6)") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ConclusionTranferNo") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ›āļĢāļ°āļŠāļļāļĄ āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Fault") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāļāļĢāļ°āļ—āļģāļœāļīāļ”"); + + b.Property("FaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("GovAidCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GovAidCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ (āļ„āļģāļŠāļąāđˆāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("GuiltyBasis") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("IssuerOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("IssuerOrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Member1FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 1"); + + b.Property("Member2FullName") + .HasColumnType("longtext") + .HasComment("āļāļĢāļĢāļĄāļāļēāļĢāļ„āļ™āļ—āļĩāđˆ 2"); + + b.Property("MilitaryCommanDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("MilitaryCommandNo") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļ—āļĩāđˆ (āđƒāļŦāđ‰āđ€āļ‚āđ‰āļēāļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ)"); + + b.Property("OwnerGovId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļœāļđāđ‰āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PlacementCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("PlacementCommandIssuer") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementId") + .HasColumnType("char(36)") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("PlacementOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PlacementPositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ProbationEndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ProbationStartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ—āļ”āļĨāļ­āļ‡āļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReceiveOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™"); + + b.Property("RefRaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļāļŦāļĄāļēāļĒ"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļ”āļģāđ€āļ™āļīāļ™āļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("SalaryPeriod") + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPeriodId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĢāļ·āđˆāļ­āļ‡āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SourceOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ” āļāđˆāļ­āļ™āļĢāļąāļšāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("TransferOrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ—āļĩāđˆāđƒāļŦāđ‰āđ‚āļ­āļ™"); + + b.Property("Year") + .HasMaxLength(4) + .HasColumnType("varchar(4)") + .HasComment("āļ›āļĩāļĢāļ­āļšāđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.HasIndex("CommandStatusId"); + + b.HasIndex("CommandTypeId"); + + b.HasIndex("PlacementId"); + + b.ToTable("Commands"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("ReceiveUserId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļœāļđāđ‰āđƒāļŠāđ‰āļ‡āļēāļ™āļĢāļ°āļšāļš"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandDeployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ­āļāļŠāļēāļĢ"); + + b.Property("CommandId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CommandDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BirthDate") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Comment2") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionNumber") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RefDisciplineId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ§āļīāļ™āļąāļĒ"); + + b.Property("RefPlacementProfileId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ­āđ‰āļēāļ‡āļ­āļīāļ‡āđ„āļ›āļĒāļąāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļœāļđāđ‰āļšāļĢāļĢāļˆāļļ"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāđƒāļ™āļšāļąāļāļŠāļĩāđāļ™āļšāļ—āđ‰āļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("CommandId"); + + b.ToTable("CommandReceivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Sequence") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļāļēāļĢāļ—āļģāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("CommandStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandCode") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("CommandTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("DeploymentChannels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļĒāļąāļ‡āđ„āļĄāđˆāļŠāļąāļ§āđƒāļŠāđ‰āļ­āļ°āđ„āļĢāđ€āļ›āđ‡āļ™key"); + + b.HasKey("Id"); + + b.ToTable("LimitLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļĩāđˆāļĨāļēāđ„āļ”āđ‰"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Ability") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("AvatarRef") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CoupleLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUser") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DateRetire") + .HasColumnType("datetime(6)"); + + b.Property("DateStart") + .HasColumnType("datetime(6)"); + + b.Property("DutyTimeEffectiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāļĄāļĩāļœāļĨ"); + + b.Property("DutyTimeId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļĨāļ‡āđ€āļ§āļĨāļēāđ€āļ‚āđ‰āļēāļ‡āļēāļ™"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeMoneyAllowance") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­āļ„āđˆāļēāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeMoneyEmployee") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļĨāļđāļāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyEmployer") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļŠāļĄāļ—āļšāļ›āļĢāļ°āļāļąāļ™āļŠāļąāļ‡āļ„āļĄ(āļ™āļēāļĒāļˆāđ‰āļēāļ‡)"); + + b.Property("EmployeeMoneyIncrease") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļžāļīāđˆāļĄāļāļēāļĢāļ„āļĢāļ­āļ‡āļŠāļĩāļžāļŠāļąāđˆāļ§āļ„āļĢāļēāļ§"); + + b.Property("EmployeeOc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeTypeIndividual") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļšāļļāļ„āļ„āļĨ"); + + b.Property("EmployeeWage") + .HasColumnType("double") + .HasComment("āļ„āđˆāļēāļˆāđ‰āļēāļ‡"); + + b.Property("EntryStatus") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.Property("FatherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("FirstNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­(āđ€āļ”āļīāļĄ)"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("GovAgeAbsent") + .HasColumnType("int"); + + b.Property("GovAgePlus") + .HasColumnType("int"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsLeave") + .HasColumnType("tinyint(1)"); + + b.Property("IsProbation") + .HasColumnType("tinyint(1)"); + + b.Property("IsSendVerified") + .HasColumnType("tinyint(1)"); + + b.Property("IsTransfer") + .HasColumnType("tinyint(1)"); + + b.Property("IsVerified") + .HasColumnType("tinyint(1)"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastNameOld") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ(āđ€āļ”āļīāļĄ)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDateOrder") + .HasColumnType("datetime(6)"); + + b.Property("LeaveDetail") + .HasColumnType("longtext"); + + b.Property("LeaveNumberOrder") + .HasColumnType("longtext"); + + b.Property("LeaveReason") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("LimitLeaveId") + .HasColumnType("char(36)"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("MotherCareer") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherCitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLive") + .HasColumnType("tinyint(1)") + .HasComment("āļĄāļĩāļŠāļĩāļ§āļīāļ•āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("Physical") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("PrefixOldId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē(āđ€āļ”āļīāļĄ)"); + + b.Property("ProfileType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("TransferDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("VerifiedUser") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.HasIndex("GenderId"); + + b.HasIndex("LimitLeaveId"); + + b.HasIndex("PosNoId"); + + b.HasIndex("PositionEmployeeGroupId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.HasIndex("PositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.ToTable("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAbilitys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("Field") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileAbilityId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAbilityId"); + + b.ToTable("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RegistrationAddress") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrict") + .HasColumnType("longtext") + .HasComment("āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ‚āļ•āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvince") + .HasColumnType("longtext") + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationProvinceId") + .HasColumnType("char(36)") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āļ•āļĢāļ‡āļāļąāļšāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("RegistrationSubDistrict") + .HasColumnType("longtext") + .HasComment("āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id āđāļ‚āļ§āļ‡āļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistrationZipCode") + .HasMaxLength(5) + .HasColumnType("varchar(5)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAssessments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđāļšāļšāļ›āļĢāļ°āđ€āļĄāļīāļ™"); + + b.Property("Point1") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point1Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ1 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("Point2Total") + .HasColumnType("double") + .HasComment("āļŠāđˆāļ§āļ™āļ—āļĩāđˆ2 (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSum") + .HasColumnType("double") + .HasComment("āļœāļĨāļ›āļĢāļ°āđ€āļĄāļīāļ™āļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("PointSumTotal") + .HasColumnType("double") + .HasComment("āļœāļĨāļĢāļ§āļĄ (āļ„āļ°āđāļ™āļ™)"); + + b.Property("ProfileAssessmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileAssessmentId"); + + b.ToTable("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AvatarFileId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("AvatarFileId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileAvatarHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileCertificateId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileCertificateId"); + + b.ToTable("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChangeNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileChangeNameId") + .HasColumnType("char(36)"); + + b.Property("Status") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileChangeNameId"); + + b.ToTable("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileChildrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ChildrenCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļļāļ•āļĢ"); + + b.Property("ChildrenFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļļāļ•āļĢ"); + + b.Property("ChildrenLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("ChildrenPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļļāļ•āļĢ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileChildrenId") + .HasColumnType("char(36)"); + + b.Property("ProfileFamilyHistoryId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileChildrenId"); + + b.HasIndex("ProfileFamilyHistoryId"); + + b.ToTable("ProfileChildrenHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCoupleHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileCurrentAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDisciplines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("ProfileDisciplineId") + .HasColumnType("char(36)"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDisciplineId"); + + b.ToTable("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileDutys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileDutyId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileDutyId"); + + b.ToTable("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Id āļĢāļ°āļ”āļąāļšāļĻāļķāļāļĐāļē"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileEducationId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEducationId"); + + b.ToTable("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileEmployments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Command") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđ‰āļēāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileEmploymentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileEmploymentId"); + + b.ToTable("ProfileEmploymentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Couple") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CoupleLastNameOld") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ(āđ€āļ”āļīāļĄ)"); + + b.Property("CouplePrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CouplePrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FatherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļšāļīāļ”āļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MotherCareer") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherFirstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļĄāļēāļĢāļ”āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFamilyHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileFatherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļšāļĢāļĢāļˆāļļ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļĢāļīāđˆāļĄāļ›āļŽāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAge") + .HasColumnType("longtext") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgeAbsent") + .HasColumnType("int") + .HasComment("āļ‚āļēāļ”āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("GovAgePlus") + .HasColumnType("int") + .HasComment("āļ­āļēāļĒāļļāļĢāļēāļŠāļāļēāļĢāđ€āļāļ·āđ‰āļ­āļāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReasonSameDate") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļĢāļ“āļĩāđ„āļĄāđˆāļ•āļĢāļ‡āļ§āļąāļ™"); + + b.Property("RetireDate") + .HasColumnType("longtext") + .HasComment("āļ§āļąāļ™āđ€āļāļĐāļĩāļĒāļ“āļ­āļēāļĒāļļ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileGovernmentHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EmployeeClass") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("EmployeeType") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļˆāđ‰āļēāļ‡"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("āđ€āļžāļĻ"); + + b.Property("GenderId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.Property("ReligionId") + .HasColumnType("char(36)") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileHonors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ­āļ­āļ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileHonorId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileHonorId"); + + b.ToTable("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("RefCommandDate") + .HasColumnType("datetime(6)") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileInsignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAnnounce") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ›āļĢāļ°āļāļēāļĻāđƒāļ™āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ"); + + b.Property("Insignia") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("InsigniaType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Issue") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasComment("āļĢāļēāļŠāļāļīāļˆāļˆāļēāļŊ āļ‰āļšāļąāļšāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Page") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļŦāļ™āđ‰āļē"); + + b.Property("ProfileInsigniaId") + .HasColumnType("char(36)"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Section") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āļ•āļ­āļ™"); + + b.Property("Volume") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄ"); + + b.Property("VolumeNo") + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileInsigniaId"); + + b.ToTable("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEndLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļĨāļē"); + + b.Property("DateStartLeave") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("ProfileLeaveId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°"); + + b.Property("SumLeave") + .HasColumnType("double") + .HasComment("āļĨāļēāļĄāļēāđāļĨāđ‰āļ§"); + + b.Property("TotalLeave") + .HasColumnType("double") + .HasComment("āļĢāļ§āļĄāđ€āļ›āđ‡āļ™"); + + b.Property("TypeLeaveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileLeaveId"); + + b.HasIndex("TypeLeaveId"); + + b.ToTable("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveYear") + .HasColumnType("int"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("SumAbsent") + .HasColumnType("longtext"); + + b.Property("SumEducation") + .HasColumnType("longtext"); + + b.Property("SumLate") + .HasColumnType("longtext"); + + b.Property("SumRest") + .HasColumnType("longtext"); + + b.Property("SumSick") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileLeaveSummary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Career") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileMotherHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileNopaids"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileNopaidId") + .HasColumnType("char(36)"); + + b.Property("Reference") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileNopaidId"); + + b.ToTable("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāļąāļ‡āļāļąāļ”"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasComment("User Id KeyCloak"); + + b.HasKey("Id"); + + b.ToTable("ProfileOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileOtherId"); + + b.ToTable("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CategoryName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āđ„āļŸāļĨāđŒ-āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)") + .HasComment("āļŠāļ·āđˆāļ­āđ„āļŸāļĨāđŒ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePapers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Address") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("varchar(5)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileRegistrationAddressHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyName") + .HasColumnType("longtext") + .HasComment("AgencyName"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CLevel") + .HasColumnType("longtext") + .HasComment("CLevel"); + + b.Property("CommandNo") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("OrgName") + .HasColumnType("longtext") + .HasComment("OrgName"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoName") + .HasColumnType("longtext") + .HasComment("PosNoName"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveName") + .HasColumnType("longtext") + .HasComment("PositionExecutiveName"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelName") + .HasColumnType("longtext"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineName") + .HasColumnType("longtext") + .HasComment("PositionLineName"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("PositionName"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideName") + .HasColumnType("longtext") + .HasComment("PositionPathSideName"); + + b.Property("PositionRef") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeName") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RefCommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ (āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("SalaryStatus") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āļāļĢāļ“āļĩāļžāļīāđ€āļĻāļĐ"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileSalaries"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™ āđ€āļ”āļ·āļ­āļ™ āļ›āļĩ āļĢāļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OcId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PosNoEmployee") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.Property("PosNoId") + .HasColumnType("char(36)") + .HasComment("Id āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeeGroup") + .HasColumnType("longtext") + .HasComment("āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeGroupId") + .HasColumnType("char(36)") + .HasComment("Id āļāļĨāļļāđˆāļĄāļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™"); + + b.Property("PositionEmployeePosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment(" Id āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionLineId") + .HasColumnType("char(36)") + .HasComment("Id āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("Id āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("Id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("ProfileSalaryId") + .HasColumnType("char(36)"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("ProfileSalaryId"); + + b.ToTable("ProfileSalaryHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("PositionId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionId"); + + b.ToTable("ProfileSalaryPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionsNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasComment("āđ„āļĄāđˆāđƒāļŠāđ‰"); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.ToTable("ProfileSalaryPositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļē"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfileTrainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOrder") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ/āļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļīāļĨāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Department") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļšāļˆāļąāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Duration") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļĢāļ§āļĄāļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āđ‚āļ„āļĢāļ‡āļāļēāļĢ/āļŦāļĨāļąāļāļŠāļđāļ•āļĢāļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ"); + + b.Property("NumberOrder") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡/āđ€āļĨāļ‚āļ—āļĩāđˆāļŦāļ™āļąāļ‡āļŠāļ·āļ­āļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Place") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("ProfileTrainingId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Topic") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āļ‚āđ‰āļ­āļāļēāļĢāļāļķāļāļ­āļšāļĢāļĄ/āļ”āļđāļ‡āļēāļ™"); + + b.Property("Yearly") + .HasMaxLength(200) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ—āļĩāđˆāļ­āļšāļĢāļĄ (āļž.āļĻ.)"); + + b.HasKey("Id"); + + b.HasIndex("ProfileTrainingId"); + + b.ToTable("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĨāļē"); + + b.HasKey("Id"); + + b.ToTable("TypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaPeriodId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RefId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaPeriodId"); + + b.ToTable("InsigniaEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaId"); + + b.ToTable("InsigniaManages"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ—āļąāđ‰āļ‡āļŦāļĄāļ”"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageId"); + + b.ToTable("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("BorrowDate") + .HasColumnType("datetime(6)") + .HasComment("āļĒāļ·āļĄāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("BorrowOrganization") + .HasColumnType("longtext"); + + b.Property("BorrowOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaManageOrganiationId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReturnDate") + .HasColumnType("datetime(6)") + .HasComment("āļ„āļ·āļ™āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("ReturnOrganization") + .HasColumnType("longtext"); + + b.Property("ReturnOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Return"); + + b.Property("ReturnReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ„āļ·āļ™"); + + b.Property("Status") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaManageOrganiationId"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Year") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("InsigniaNotes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("InsigniaNoteId"); + + b.ToTable("InsigniaNoteDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ—āļĩāđˆāļˆāđˆāļēāļĒ"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("DatePayment") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļˆāđˆāļēāļĒāđƒāļšāļāļģāļāļąāļš"); + + b.Property("DateReceive") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReceiveInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DateReturnInsignia") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("DocReceiveInsigniaId") + .HasColumnType("char(36)"); + + b.Property("DocReturnInsigniaId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("InsigniaNoteId") + .HasColumnType("char(36)"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("Issue") + .HasColumnType("longtext") + .HasComment("āļ—āļ°āđ€āļšāļĩāļĒāļ™āļāļēāļ™āļąāļ™āļ”āļĢ"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("No") + .HasColumnType("longtext") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļĨāļ‚āļ›āļĢāļ°āļāļēāļĻāļ™āļĩāļĒāļšāļąāļ•āļĢāļāļģāļāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReceiveInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsignia") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrgReturnInsigniaId") + .HasColumnType("char(36)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ„āļ·āļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationReceive") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļšāļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("OrganizationOrganizationSend") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ” āļ“ āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļžāļĢāļ°āļĢāļēāļŠāļ—āļēāļ™āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("Page") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Section") + .HasColumnType("longtext") + .HasComment("āļ•āļ­āļ™āļ—āļĩāđˆ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("TypePayment") + .HasColumnType("longtext") + .HasComment("āļĢāļđāļ›āđāļšāļšāļāļēāļĢāļˆāđˆāļēāļĒ"); + + b.Property("VolumeNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāđˆāļĄāļ—āļĩāđˆ"); + + b.HasKey("Id"); + + b.HasIndex("DocReceiveInsigniaId"); + + b.HasIndex("DocReturnInsigniaId"); + + b.HasIndex("InsigniaNoteId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasMaxLength(50) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsLock") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢ Freez āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ­āļšāđ€āļŠāļ™āļ­āļ‚āļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("RevisionId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļĢāļēāļšāļāļēāļĢāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("Type") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļ‚āļ­"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩ"); + + b.HasKey("Id"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("InsigniaPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaNoteProfileId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ReclaimDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.Property("ReclaimOrganization") + .HasColumnType("longtext"); + + b.Property("ReclaimOrganizationId") + .HasColumnType("char(36)") + .HasComment("Fk Table OrganizationOrganization Borrow"); + + b.Property("ReclaimReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđƒāļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļāļ„āļ·āļ™"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaNoteProfileId"); + + b.ToTable("InsigniaReclaimProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PeriodId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("RequestNote") + .IsRequired() + .HasColumnType("text"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodId"); + + b.ToTable("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("APR1") + .HasColumnType("longtext"); + + b.Property("APR2") + .HasColumnType("longtext"); + + b.Property("APR3") + .HasColumnType("longtext"); + + b.Property("APR4") + .HasColumnType("longtext"); + + b.Property("APR5") + .HasColumnType("longtext"); + + b.Property("Amount") + .HasColumnType("double"); + + b.Property("BirthDate") + .HasColumnType("datetime(6)"); + + b.Property("Child1") + .HasColumnType("longtext"); + + b.Property("Child1DnaId") + .HasColumnType("char(36)"); + + b.Property("Child1Id") + .HasColumnType("char(36)"); + + b.Property("Child2") + .HasColumnType("longtext"); + + b.Property("Child2DnaId") + .HasColumnType("char(36)"); + + b.Property("Child2Id") + .HasColumnType("char(36)"); + + b.Property("Child3") + .HasColumnType("longtext"); + + b.Property("Child3DnaId") + .HasColumnType("char(36)"); + + b.Property("Child3Id") + .HasColumnType("char(36)"); + + b.Property("Child4") + .HasColumnType("longtext"); + + b.Property("Child4DnaId") + .HasColumnType("char(36)"); + + b.Property("Child4Id") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateAppoint") + .HasColumnType("datetime(6)"); + + b.Property("FirstName") + .HasColumnType("longtext"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("IsApprove") + .HasColumnType("tinyint(1)"); + + b.Property("LastInsigniaName") + .HasColumnType("longtext"); + + b.Property("LastName") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MarkDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļĄāļĩāđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("MarkInsignia") + .HasColumnType("tinyint(1)"); + + b.Property("MarkLeave") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™/āđ„āļĄāđˆāđ„āļ”āđ‰āđ€āļĨāļ·āđˆāļ­āļ™āļ‚āļąāđ‰āļ™ āđ€āļ™āļ·āđˆāļ­āļ‡āļˆāļēāļāļĨāļēāđ€āļāļīāļ™"); + + b.Property("MarkRate") + .HasColumnType("tinyint(1)") + .HasComment("āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™ āļœāļĨāļāļēāļĢāļ›āļĢāļ°āđ€āļĄāļīāļ™āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāđƒāļ™āļĢāļ­āļš 5 āļ›āļĩ āļ•āđˆāļģāļāļ§āđˆāļēāļĢāļ°āļ”āļąāļšāļ”āļĩ (āļ™āđ‰āļ­āļĒāļāļ§āđˆāļēāļĢāđ‰āļ­āļĒāļĨāļ° 70)"); + + b.Property("MatchingConditions") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊāļ—āļĩāđˆāļ‚āļ­"); + + b.Property("OCT1") + .HasColumnType("longtext"); + + b.Property("OCT2") + .HasColumnType("longtext"); + + b.Property("OCT3") + .HasColumnType("longtext"); + + b.Property("OCT4") + .HasColumnType("longtext"); + + b.Property("OCT5") + .HasColumnType("longtext"); + + b.Property("PosLevelName") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PosTypeName") + .HasColumnType("longtext"); + + b.Property("Position") + .HasColumnType("longtext"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double"); + + b.Property("Prefix") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("ProfileType") + .HasColumnType("longtext"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ„āļ”āđ‰āļĢāļąāļšāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.Property("ReasonReject") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.Property("RequestDate") + .HasColumnType("datetime(6)"); + + b.Property("RequestId") + .HasColumnType("char(36)"); + + b.Property("RequestInsigniaId") + .HasColumnType("char(36)"); + + b.Property("Root") + .HasColumnType("longtext"); + + b.Property("RootDnaId") + .HasColumnType("char(36)"); + + b.Property("RootId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("RequestId"); + + b.HasIndex("RequestInsigniaId"); + + b.ToTable("InsigniaRequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("varchar(2)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŦāļĄāļđāđˆāđ‚āļĨāļŦāļīāļ•"); + + b.HasKey("Id"); + + b.ToTable("BloodGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ProvinceId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ProvinceId"); + + b.ToTable("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.HasKey("Id"); + + b.ToTable("EducationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasColumnOrder(1) + .HasComment("āđ€āļžāļĻ"); + + b.HasKey("Id"); + + b.ToTable("Genders"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Category") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āļ§āļąāļ™āļŦāļĒāļļāļ”āļŠāļģāļŦāļĢāļąāļš āļ—āļģāļ‡āļēāļ™ 5 āļ§āļąāļ™=`NORMAL`,āļ—āļģāļ‡āļēāļ™ 6 āļ§āļąāļ™=`6DAYS`"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("HolidayDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("IsSpecial") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļŦāļĒāļļāļ”āļžāļīāđ€āļĻāļĐāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(250) + .HasColumnType("varchar(250)") + .HasColumnOrder(4) + .HasComment("āļŠāļ·āđˆāļ­āļ§āļąāļ™āļŦāļĒāļļāļ”"); + + b.Property("OriginalDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("āļ§āļąāļ™āļŦāļĒāļļāļ”(Original)"); + + b.Property("Year") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļ›āļĢāļ°āļˆāļģāļ›āļĩ"); + + b.HasKey("Id"); + + b.ToTable("Holidays"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("InsigniaTypeId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ āđ€āļ­āļēāđ„āļ§āđ‰āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļĨāļēāļ‚āļ­āļ§āđˆāļēāļ•āđ‰āļ­āļ‡āđ„āļ”āđ‰āļŠāļąāđ‰āļ™āļ—āļĩāđˆāļŠāļđāļ‡āļāļ§āđˆāļēāļ—āļĩāđˆāđ€āļ„āļĒāđ„āļ”āđ‰āļĢāļąāļšāđāļĨāđ‰āļ§āđ€āļ—āđˆāļēāļ™āļąāđ‰āļ™"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.HasIndex("InsigniaTypeId"); + + b.ToTable("Insignias"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠ"); + + b.HasKey("Id"); + + b.ToTable("InsigniaTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļŠāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationFaxs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāļ•āđ‰āļ™āļŠāļąāļ‡āļāļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("OrganizationGovernmentAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļ°āļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationOrganizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AgencyCode") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(4) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ•āļąāļ§āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationShortNames"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļŠāļ–āļēāļ™āļ°"); + + b.HasKey("Id"); + + b.ToTable("OrganizationStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāļ™āļ­āļ"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelExternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āđ€āļšāļ­āļĢāđŒāļ•āļīāļ”āļ•āđˆāļ­āļ āļēāļĒāđƒāļ™"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTelInternals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļŠāļ·āđˆāļ­ āļ›āļĢāļ°āđ€āļ āļ—"); + + b.HasKey("Id"); + + b.ToTable("OrganizationTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļžāļ—āļēāļ‡āļāļēāļĒ"); + + b.HasKey("Id"); + + b.ToTable("PhysicalStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExecutiveName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("ExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(9) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionCategory") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļģāļŦāļĢāļąāļšāļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŦāļĢāļ·āļ­āļĨāļđāļāļˆāđ‰āļēāļ‡ officer/employee"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("ExecutiveSideId"); + + b.HasIndex("PathSideId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("Positions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļāļĨāļļāđˆāļĄāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeGroups"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļŠāļąāđ‰āļ™āļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļĨāļđāļāļˆāđ‰āļēāļ‡āļāļĢāļļāļ‡āđ€āļ—āļž"); + + b.HasKey("Id"); + + b.ToTable("PositionEmployeeStatuses"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionExecutiveSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(5) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnOrder(4) + .HasComment("āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āļ­āļ‡āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(3) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionLines"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPaths"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("Note") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.HasKey("Id"); + + b.ToTable("PositionPathSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļŠāļ–āļēāļ™āļ°āļ‚āļ­āļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ"); + + b.HasKey("Id"); + + b.ToTable("PositionStatuss"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Order") + .HasColumnType("int") + .HasColumnOrder(1) + .HasComment("āļĨāļģāļ”āļąāļš"); + + b.HasKey("Id"); + + b.ToTable("PositionTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(2) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.HasKey("Id"); + + b.ToTable("Prefixes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āļˆāļąāļ‡āļŦāļ§āļąāļ”"); + + b.HasKey("Id"); + + b.ToTable("Provinces"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ„āļ§āļēāļĄāļŠāļąāļĄāļžāļąāļ™āļ˜āđŒ"); + + b.HasKey("Id"); + + b.ToTable("Relationships"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļĻāļēāļŠāļ™āļē"); + + b.HasKey("Id"); + + b.ToTable("Religions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.Property("ShortName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āđ€āļŦāļĢāļĩāļĒāļāļ•āļĢāļē"); + + b.HasKey("Id"); + + b.ToTable("Royals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļĨāļģāļ”āļąāļšāļŠāļąāđ‰āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalHierarchys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(2) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĢāļēāļŠāļŊ"); + + b.HasKey("Id"); + + b.ToTable("RoyalTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DistrictId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(1) + .HasComment("āđ€āļ‚āļ•/āļ­āļģāđ€āļ āļ­"); + + b.Property("ZipCode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasColumnOrder(2) + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DistrictId"); + + b.ToTable("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Inbox", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("Inboxes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.MessageQueueEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSend") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļģāļāļēāļĢāļŠāđˆāļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡?"); + + b.Property("IsSendEmail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļ—āļĩāđˆāļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("MessageContent") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("MessagePayLoad") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļīāđˆāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiverEmailAddress") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)") + .HasComment("āļ­āļĩāđ€āļĄāļĨāđŒāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("SenderSystem") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāđˆāļ‡āļˆāļēāļāļĢāļ°āļšāļšāļ‡āļēāļ™"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("MessageQueues"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Notifications.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DeleteDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĨāļšāļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsOpen") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āļīāļ”āļ­āđˆāļēāļ™āđāļĨāđ‰āļ§āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("KeycloakUserId") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OpenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļ›āļīāļ”āļ­āđˆāļēāļ™"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™"); + + b.HasKey("Id"); + + b.ToTable("Notifications"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext"); + + b.Property("ConditionNote") + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext"); + + b.Property("Government") + .HasColumnType("longtext"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsCondition") + .HasColumnType("tinyint(1)"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext"); + + b.Property("Pile") + .HasColumnType("longtext"); + + b.Property("PosNo") + .HasColumnType("longtext"); + + b.Property("PositionCondition") + .HasColumnType("longtext"); + + b.Property("PositionEmployeeLineId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationAgencyId"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationGovernmentAgencyId"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("PositionEmployeeLineId"); + + b.HasIndex("PositionEmployeePositionId"); + + b.HasIndex("PositionEmployeeStatusId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrgEmployeeId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext"); + + b.HasKey("Id"); + + b.HasIndex("OrgEmployeeId"); + + b.HasIndex("ProfileId"); + + b.ToTable("OrganizationEmployeeProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeeLevelId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeeLevelId"); + + b.ToTable("OrganizationPositionEmployeeLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationEmployeeId") + .HasColumnType("char(36)"); + + b.Property("PositionEmployeePositionSideId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationEmployeeId"); + + b.HasIndex("PositionEmployeePositionSideId"); + + b.ToTable("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionMasterId"); + + b.ToTable("AvailablePositionLevels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Agency") + .HasColumnType("longtext") + .HasColumnOrder(14) + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Department") + .HasColumnType("longtext") + .HasColumnOrder(16) + .HasComment("āļāđˆāļēāļĒ/āļŠāđˆāļ§āļ™"); + + b.Property("Government") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(10) + .HasComment("OrganizationAgencyId"); + + b.Property("OrganizationFaxId") + .HasColumnType("char(36)"); + + b.Property("OrganizationGovernmentAgencyId") + .HasColumnType("char(36)") + .HasColumnOrder(11) + .HasComment("OrganizationGovernmentAgencyId"); + + b.Property("OrganizationLevelId") + .HasColumnType("char(36)"); + + b.Property("OrganizationOrder") + .HasColumnType("int") + .HasColumnOrder(12) + .HasComment("OrganizationOrder"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.Property("OrganizationStatusId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelExternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTelInternalId") + .HasColumnType("char(36)"); + + b.Property("OrganizationTypeId") + .HasColumnType("char(36)"); + + b.Property("OrganizationUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("OrganizationUserNote"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Pile") + .HasColumnType("longtext") + .HasColumnOrder(17) + .HasComment("āļāļ­āļ‡"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationFaxId"); + + b.HasIndex("OrganizationLevelId"); + + b.HasIndex("OrganizationOrganizationId"); + + b.HasIndex("OrganizationShortNameId"); + + b.HasIndex("OrganizationStatusId"); + + b.HasIndex("OrganizationTelExternalId"); + + b.HasIndex("OrganizationTelInternalId"); + + b.HasIndex("OrganizationTypeId"); + + b.HasIndex("ParentId"); + + b.ToTable("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(3) + .HasComment("Is Director"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionUserNote") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("positionUserNote"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationId"); + + b.HasIndex("PositionMasterId"); + + b.HasIndex("PositionNumberId"); + + b.ToTable("OrganizationPositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(1) + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļāļēāļĢāđāļāđ‰āđ„āļ‚"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ObjectValue") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("āđ€āļāđ‡āļš Object āļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ­āļąāļžāđ€āļ”āļ•āđƒāļ™āļĢāļ°āļšāļš"); + + b.HasKey("Id"); + + b.ToTable("OrganizationPublishHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasColumnOrder(2) + .HasComment("PositionId"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatusId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionExecutiveId"); + + b.HasIndex("PositionExecutiveSideId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionStatusId"); + + b.HasIndex("PositionTypeId"); + + b.ToTable("PositionMasters"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsDirector") + .HasColumnType("tinyint(1)") + .HasColumnOrder(14) + .HasComment("IsDirector"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Position") + .HasColumnType("longtext") + .HasColumnOrder(2) + .HasComment("Position"); + + b.Property("PositionCondition") + .HasColumnType("longtext") + .HasColumnOrder(11) + .HasComment("PositionCondition"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasColumnOrder(5) + .HasComment("PositionExecutive"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("PositionExecutiveSide"); + + b.Property("PositionExecutiveSideObject") + .HasColumnType("longtext"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasColumnOrder(12) + .HasComment("PositionLevel"); + + b.Property("PositionLine") + .HasColumnType("longtext") + .HasColumnOrder(8) + .HasComment("PositionLine"); + + b.Property("PositionMasterEntityId") + .HasColumnType("char(36)"); + + b.Property("PositionMasterUserNote") + .HasColumnType("longtext") + .HasColumnOrder(13) + .HasComment("PositionMasterUserNote"); + + b.Property("PositionPath") + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("PositionPath"); + + b.Property("PositionPathSide") + .HasColumnType("longtext") + .HasColumnOrder(7) + .HasComment("PositionPathSide"); + + b.Property("PositionPathSideObject") + .HasColumnType("longtext"); + + b.Property("PositionStatus") + .HasColumnType("longtext") + .HasColumnOrder(10) + .HasComment("PositionStatus"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("PositionType"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasColumnOrder(15) + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.HasIndex("PositionMasterEntityId"); + + b.ToTable("PositionMasterHistoryEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasMaxLength(300) + .HasColumnType("varchar(300)") + .HasColumnOrder(2) + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationShortNameId"); + + b.ToTable("PositionNumbers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsPublished") + .HasColumnType("tinyint(1)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("ProfileId"); + + b.ToTable("ProfilePositions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("GovernmentCode") + .HasColumnType("longtext"); + + b.Property("GovernmentCodeOld") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("OrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationOrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationShortName") + .HasColumnType("longtext"); + + b.Property("OrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OrganizationShortNameOld") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("PositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionNum") + .HasColumnType("longtext"); + + b.Property("PositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionNumOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆāđ€āļ”āļīāļĄ"); + + b.Property("PositionPath") + .HasColumnType("longtext"); + + b.Property("PositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("PositionPathOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ"); + + b.Property("PositionPathSide") + .HasColumnType("longtext"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("PositionPathSideOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("PositionType") + .HasColumnType("longtext"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.ToTable("Report2s"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.ToTable("Report2DetailHistories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Education") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.Property("FullName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NewGovernmentCode") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganization") + .HasColumnType("longtext"); + + b.Property("NewOrganizationOrganizationId") + .HasColumnType("char(36)") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewOrganizationShortName") + .HasColumnType("longtext"); + + b.Property("NewOrganizationShortNameId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutive") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionExecutiveSide") + .HasColumnType("longtext"); + + b.Property("NewPositionExecutiveSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionLevel") + .HasColumnType("longtext"); + + b.Property("NewPositionLevelId") + .HasColumnType("char(36)") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionNum") + .HasColumnType("longtext"); + + b.Property("NewPositionNumId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPath") + .HasColumnType("longtext"); + + b.Property("NewPositionPathId") + .HasColumnType("char(36)") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionPathSide") + .HasColumnType("longtext"); + + b.Property("NewPositionPathSideId") + .HasColumnType("char(36)") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("NewPositionType") + .HasColumnType("longtext"); + + b.Property("NewPositionTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđƒāļŦāļĄāđˆ"); + + b.Property("OldGovernmentCode") + .HasColumnType("longtext"); + + b.Property("OldOrganizationOrganization") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldOrganizationShortName") + .HasColumnType("longtext") + .HasComment("āļĢāļŦāļąāļŠāļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionExecutiveSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļšāļĢāļīāļŦāļēāļĢ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionNum") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPath") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionPathSide") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OldPositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ āļāļģāļŦāļ™āļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("ProfilePositionId") + .HasColumnType("char(36)") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļ—āļĩāđˆāļ–āļ·āļ­āļ„āļĢāļ­āļ‡"); + + b.Property("Report2DetailHistoryId") + .HasColumnType("char(36)"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryMonth") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("SalaryPosition") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđ€āļ›āļĨāļĩāđˆāļĒāļ™āđāļ›āļĨāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("Report2DetailHistoryId"); + + b.ToTable("Report2Histories"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļšāļąāļāļŠāļĩ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļ­āļšāļāļēāļĢāļŠāļ­āļš"); + + b.Property("Number") + .HasMaxLength(10) + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļœāļđāđ‰āļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("PlacementTypeId") + .HasColumnType("char(36)"); + + b.Property("RefId") + .HasColumnType("char(36)") + .HasComment("Id āļāļēāļĢāļŠāļ­āļš"); + + b.Property("Round") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļšāļąāļāļŠāļĩāļšāļąāļāļŠāļĩ"); + + b.Property("Year") + .HasMaxLength(5) + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("PlacementTypeId"); + + b.ToTable("Placements"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”/āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ old"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("type") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointments"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementAppointmentId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementAppointmentId"); + + b.ToTable("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id DNA āđƒāļŠāđ‰āđƒāļ™āļāļĢāļ“āļĩāļ—āļĩāđˆāļĄāļĩāļāļēāļĢāļ—āļģāļŠāļģāđ€āļ™āļēāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡ āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđƒāļŦāļĄāđˆāļ—āļĩāđˆāļ—āļģāļŠāļģāđ€āļ™āļēāļāļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āđ€āļāđˆāļēāļˆāļ°āļ•āđ‰āļ­āļ‡āļĄāļĩ DNA āđ€āļ”āļĩāļĒāļ§āļāļąāļ™ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰ track āļ›āļĢāļ°āļ§āļąāļ•āļīāļāļēāļĢāđāļāđ‰āđ„āļ‚āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡āļĒāđ‰āļ­āļ™āļŦāļĨāļąāļ‡āđ„āļ”āđ‰"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("PlacementAppointmentEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CertificateNo") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CertificateType") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExpireDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŦāļĄāļ”āļ­āļēāļĒāļļ"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("Issuer") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļœāļđāđ‰āļ­āļ­āļāđƒāļšāļ­āļ™āļļāļāļēāļ•"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementCertificates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Country") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ›āļĢāļ°āđ€āļ—āļĻ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Degree") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ§āļļāļ’āļīāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("Duration") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļē"); + + b.Property("DurationYear") + .HasColumnType("int") + .HasComment("āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļŦāļĨāļąāļāļŠāļđāļ•āļĢ"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idāļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļīāļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("EndDate") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡"); + + b.Property("Field") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŠāļēāļ‚āļēāļ§āļīāļŠāļē/āļ—āļēāļ‡"); + + b.Property("FinishDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļģāđ€āļĢāđ‡āļˆāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("FundName") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ—āļļāļ™"); + + b.Property("Gpa") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļāļĢāļ”āđ€āļ‰āļĨāļĩāđˆāļĒ"); + + b.Property("Institute") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļŠāļ–āļēāļ™āļĻāļķāļāļĐāļē"); + + b.Property("IsDate") + .HasColumnType("tinyint(1)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļŠāđˆāļ§āļ‡āđ€āļ§āļĨāļēāļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsEducation") + .HasColumnType("tinyint(1)") + .HasComment("āđ€āļ›āđ‡āļ™āļ§āļļāļ’āļīāļĻāļķāļāļĐāļēāđƒāļ™āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Other") + .HasMaxLength(1000) + .HasColumnType("varchar(1000)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļāļēāļĢāļ•āļīāļ”āļ•āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆ"); + + b.HasKey("Id"); + + b.HasIndex("PlacementProfileId"); + + b.HasIndex("PositionPathId"); + + b.ToTable("PlacementEducations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.HasKey("Id"); + + b.ToTable("PlacementIsProperties"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementOfficer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ–āļķāļ‡āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ§āļĒāļĢāļēāļŠāļāļēāļĢāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("commandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementOfficers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢ"); + + b.Property("CitizenDistrictId") + .HasColumnType("longtext") + .HasComment("Id āđ€āļ‚āļ•āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CitizenProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļ­āļāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("Draft") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļ•āļģāđāļŦāļ™āđˆāļ‡ Draft"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("ExamNumber") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆāļŠāļ­āļšāđ„āļ”āđ‰"); + + b.Property("ExamRound") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļšāļīāļ”āļē"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļšāļīāļ”āļē"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļšāļīāļ”āļē"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļšāļīāļ”āļē"); + + b.Property("FatherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļšāļīāļ”āļē"); + + b.Property("Firstname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsOfficer") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢāļŊ āļāļ—āļĄ."); + + b.Property("IsOld") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļāđˆāļē"); + + b.Property("IsProperty") + .HasColumnType("longtext") + .HasComment("āļāļēāļĢāļ„āļąāļ”āļāļĢāļ­āļ‡āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļī"); + + b.Property("IsRelief") + .HasColumnType("tinyint(1)") + .HasComment("āļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āļžāļīāđ€āļĻāļĐ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MarryPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļ„āļđāđˆāļŠāļĄāļĢāļŠ"); + + b.Property("MobilePhone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­āļˆāļĢāļīāļ‡āļĄāļēāļĢāļ”āļē"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļīāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļ­āļēāļŠāļĩāļžāļĄāļēāļĢāļ”āļē"); + + b.Property("MotherPrefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­āļĄāļēāļĢāļ”āļē"); + + b.Property("MouthSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ„āđˆāļēāļ•āļ­āļšāđāļ—āļ™āļĢāļēāļĒāđ€āļ”āļ·āļ­āļ™"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OccupationGroup") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļĨāļļāđˆāļĄ/āļāđˆāļēāļĒ"); + + b.Property("OccupationOrg") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("OccupationPile") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļāļ­āļ‡"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("OccupationPositionType") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āļ›āļĢāļ°āđ€āļ āļ—āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OccupationSalary") + .HasColumnType("int") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ āļšāļĢāļīāļĐāļąāļ—"); + + b.Property("Pass") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļŠāļĄāļąāļ„āļĢāļŠāļ­āļš"); + + b.Property("PlacementId") + .HasColumnType("char(36)"); + + b.Property("PlacementStatus") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāļšāļĢāļĢāļˆāļļ"); + + b.Property("PointA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ"); + + b.Property("PointB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ‚"); + + b.Property("PointC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āļ āļēāļ„ āļ„"); + + b.Property("PointTotalA") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ"); + + b.Property("PointTotalB") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ‚"); + + b.Property("PointTotalC") + .HasColumnType("double") + .HasComment("āļ„āļ°āđāļ™āļ™āđ€āļ•āđ‡āļĄāļ āļēāļ„ āļ„"); + + b.Property("PosNumber") + .HasColumnType("int") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PosPath") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionCandidate") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļŠāļ­āļš"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionSalaryAmount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āļ›āļĢāļ°āļˆāļģāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("Id āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ­āļģāđ€āļ āļ­āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistProvinceId") + .HasColumnType("longtext") + .HasComment("Id āļˆāļąāļ‡āļŦāļ§āļąāļ”āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļŦāļĄāļ·āļ­āļ™āļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistSubDistrictId") + .HasColumnType("longtext") + .HasComment("Id āļ•āļģāļšāļĨāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("āļĢāļŦāļąāļŠāđ„āļ›āļĢāļĐāļ“āļĩāļĒāđŒāļ—āļĩāđˆāļ­āļĒāļđāđˆāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļšāđ‰āļēāļ™"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŠāļĨāļ°āļŠāļīāļ—āļ˜āļīāđŒ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ āļēāļž"); + + b.Property("ReliefDocId") + .HasColumnType("char(36)"); + + b.Property("ReliefReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļœāđˆāļ­āļ™āļœāļąāļ™"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RemarkVertical") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ•āļąāđ‰āļ‡"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("SalaryClass") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡ (āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”)"); + + b.Property("SalaryRef") + .HasColumnType("longtext") + .HasComment("āđ€āļ­āļāļŠāļēāļĢāļ­āđ‰āļēāļ‡āļ­āļīāļ‡"); + + b.Property("Telephone") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4IdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("commandId") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeIdOld") + .HasColumnType("longtext") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeOld") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgRevisionIdOld") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("orgTreeShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("organizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelIdOld") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeIdOld") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionFieldOld") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionIdOld") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("positionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("posmasterIdOld") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profileId"); + + b.Property("refCommandCode") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandDate") + .HasMaxLength(200) + .HasColumnType("datetime(6)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandName") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("refCommandNo") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootIdOld") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("templateDoc") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒāļĄāļ·āļ­āļ–āļ·āļ­"); + + b.Property("typeCommand") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.HasKey("Id"); + + b.HasIndex("PlacementId"); + + b.HasIndex("ProfileImgId"); + + b.HasIndex("ReliefDocId"); + + b.ToTable("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementProfileId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementProfileId"); + + b.ToTable("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AvatarId") + .HasColumnType("char(36)"); + + b.Property("BloodGroup") + .HasColumnType("longtext") + .HasComment("Id āļāļĨāļļāđˆāļĄāđ€āļĨāļ·āļ­āļ”"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Gender") + .HasColumnType("longtext") + .HasComment("Id āđ€āļžāļĻ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāđ‚āļ­āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Relationship") + .HasColumnType("longtext") + .HasComment("Id āļŠāļ–āļēāļ™āļ°āļ āļēāļž"); + + b.Property("Religion") + .HasColumnType("longtext") + .HasComment("Id āļĻāļēāļŠāļ™āļē"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("AvatarId"); + + b.ToTable("PlacementReceives"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementReceiveId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementReceiveId"); + + b.ToTable("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("BloodGroupId") + .HasColumnType("char(36)"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđ€āļāļīāļ”"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("Firstname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("GenderId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Lastname") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("Nationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļąāļāļŠāļēāļ•āļī"); + + b.Property("OrganizationPositionId") + .HasColumnType("char(36)"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelId") + .HasColumnType("char(36)"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionLineId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberId") + .HasColumnType("char(36)"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionPathId") + .HasColumnType("char(36)"); + + b.Property("PositionPathSideId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeId") + .HasColumnType("char(36)"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("PrefixId") + .HasColumnType("char(36)"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Race") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āđ€āļŠāļ·āđ‰āļ­āļŠāļēāļ•āļī"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)"); + + b.Property("ReligionId") + .HasColumnType("char(36)"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("TelephoneNumber") + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢ"); + + b.HasKey("Id"); + + b.HasIndex("BloodGroupId"); + + b.HasIndex("GenderId"); + + b.HasIndex("OrganizationPositionId"); + + b.HasIndex("PositionLevelId"); + + b.HasIndex("PositionLineId"); + + b.HasIndex("PositionNumberId"); + + b.HasIndex("PositionPathId"); + + b.HasIndex("PositionPathSideId"); + + b.HasIndex("PositionTypeId"); + + b.HasIndex("PrefixId"); + + b.HasIndex("ProfileId"); + + b.HasIndex("RelationshipId"); + + b.HasIndex("ReligionId"); + + b.ToTable("PlacementRelocations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementRelocationId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementRelocationId"); + + b.ToTable("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRepatriation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("DateRepatriation") + .HasColumnType("datetime(6)") + .HasComment("āļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("refId") + .HasColumnType("char(36)") + .HasComment("Id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļŠāđˆāļ§āļĒāļĢāļēāļŠ"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementRepatriations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļŠāđˆāļ‡āļ•āļąāļ§āļāļĨāļąāļšāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("PlacementTransfers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PlacementTransferId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PlacementTransferId"); + + b.ToTable("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļšāļĢāļĢāļˆāļļ"); + + b.HasKey("Id"); + + b.ToTable("PlacementTypes"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Probation.CronjobNotiProbation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Body") + .IsRequired() + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNoti") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļēāļĢāđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āļĒāļąāļ‡"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Payload") + .IsRequired() + .HasColumnType("text") + .HasComment("āļŠāļīāļ‡āļ—āļĩāđˆāđāļ™āļšāļĄāļēāļ”āđ‰āļ§āļĒ"); + + b.Property("ReceiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ„āļ”āđ‰āļĢāļąāļš"); + + b.Property("ReceiverUserId") + .HasColumnType("char(36)") + .HasComment("āļĢāļŦāļąāļŠāļœāļđāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļ„āļ§āļēāļĄ"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("āļŦāļąāļ§āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.HasKey("Id"); + + b.ToTable("CronjobNotiProbations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("DocumentForwardId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļ­āļ­āļāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("Number") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāđƒāļšāļĄāļĢāļ“āļšāļąāļ•āļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļāļēāļĢāđ€āļŠāļĩāļĒāļŠāļĩāļ§āļīāļ•"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DocumentForwardId"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementDeceaseds"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .IsRequired() + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āđ€āļĨāļ‚āļ›āļĢāļ°āļˆāļģāļ•āļąāļ§āļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsSendInbox") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļāļĨāđˆāļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendMail") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āļ­āļĩāđ€āļĄāļĨāđŒāļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("IsSendNotification") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļŦāļĢāļ·āļ­āđ„āļĄāđˆ?"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ‚āļ­āļ‡āļœāļđāđ‰āļĢāļąāļšāļŠāļģāđ€āļ™āļēāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļ™āļēāļĄ"); + + b.Property("RetirementDeceasedId") + .HasColumnType("char(36)"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementDeceasedId"); + + b.ToTable("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļ›āļĨāļ”āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementDischarges"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementEmployeeQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementEmployeeQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđ„āļĨāđˆāļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.HasKey("Id"); + + b.HasIndex("ProfileId"); + + b.ToTable("RetirementExpulsions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Amount") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("EducationOld") + .HasColumnType("longtext") + .HasComment("āļ§āļļāļ’āļī/āļŠāļēāļ‚āļēāđ€āļ”āļīāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LeaveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢāđ€āļĄāļ·āđˆāļ­"); + + b.Property("MilitaryDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļžāđ‰āļ™āļˆāļēāļāļĢāļēāļŠāļāļēāļĢāļ—āļŦāļēāļĢ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("PositionDate") + .HasColumnType("datetime(6)") + .HasComment("āļ”āļģāļĢāļ‡āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļĢāļ°āļ”āļąāļšāļ›āļąāļˆāļˆāļļāļšāļąāļ™āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PositionExecutive") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĢāļąāļšāļĒāđ‰āļēāļĒāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RecruitDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļšāļĢāļĢāļˆāļļ"); + + b.Property("ReportingDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļ•āļąāļ§"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna old"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna old"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna old"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna old"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("node") + .HasColumnType("int") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("nodeId") + .HasColumnType("char(36)") + .HasComment("id āđ‚āļ„āļĢāļ‡āļŠāļĢāđ‰āļēāļ‡"); + + b.Property("orgRevisionId") + .HasColumnType("longtext") + .HasComment("id revision"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("positionField") + .HasColumnType("longtext") + .HasComment("āļŠāļēāļĒāļ‡āļēāļ™"); + + b.Property("positionId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posmasterId") + .HasColumnType("longtext") + .HasComment("id āļ­āļąāļ•āļĢāļēāļāļģāļĨāļąāļ‡"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna old"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("CommandTypeId"); + + b.ToTable("RetirementOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementOtherId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementOtherId"); + + b.ToTable("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOut", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Date") + .HasColumnType("datetime(6)") + .HasComment("āļ•āļąāđ‰āļ‡āđāļ•āđˆāļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāđƒāļŦāđ‰āļ­āļ­āļāđ„āļ›"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ„āļģāļ‚āļ­"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementOuts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.ToTable("RetirementPeriods"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļĄāļ•āļī āļ­āļāļ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("ProfileFile") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļŠāļ·āđˆāļ­āđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("Round") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆ"); + + b.Property("SignDate") + .HasColumnType("datetime(6)") + .HasComment("āļ›āļĢāļ°āļāļēāļĻ āļ“ āļ§āļąāļ™āļ—āļĩāđˆ"); + + b.Property("Total") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ„āļ™"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("TypeReport") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementPeriodHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Question10Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 10"); + + b.Property("Question10Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question10Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 10"); + + b.Property("Question1Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 1"); + + b.Property("Question1Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question1Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 1"); + + b.Property("Question2Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 2"); + + b.Property("Question2Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question2Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 2"); + + b.Property("Question3Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 3"); + + b.Property("Question3Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question3Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 3"); + + b.Property("Question4Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 4"); + + b.Property("Question4Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question4Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 4"); + + b.Property("Question5Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 5"); + + b.Property("Question5Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question5Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 5"); + + b.Property("Question6Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 6"); + + b.Property("Question6Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question6Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 6"); + + b.Property("Question7Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 7"); + + b.Property("Question7Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question7Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 7"); + + b.Property("Question8Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 8"); + + b.Property("Question8Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question8Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 8"); + + b.Property("Question9Answer") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ­āļāļ„āļ°āđāļ™āļ™ 9"); + + b.Property("Question9Desc") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.Property("Question9Score") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ•āļ­āļšāļ‚āđ‰āļ­āļ—āļĩāđˆ 9"); + + b.HasKey("Id"); + + b.ToTable("RetirementQuestionnaireQuestions"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Order") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ—āļĩāđˆ"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("Remove") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļĨāļšāļ­āļ­āļāļˆāļēāļāđ€āļāļĐāļĩāļĒāļ"); + + b.Property("RetirementPeriodId") + .HasColumnType("char(36)"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posExecutiveId") + .HasColumnType("longtext") + .HasComment("id āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posExecutiveName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ "); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posLevelRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("posTypeRank") + .HasColumnType("int") + .HasComment("āļĨāļģāļ”āļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ "); + + b.Property("position") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ•āļģāđāļŦāļ™āđˆāļ‡āđƒāļ™āļŠāļēāļĒāļ‡āļēāļ™ "); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementPeriodId"); + + b.ToTable("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResigns"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionExecutiveOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢāđ€āļ”āļīāļĄ"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("positionArea") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē"); + + b.Property("positionAreaOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™/āļŠāļēāļ‚āļē (āđ€āļāđˆāļē)"); + + b.Property("positionExecutiveField") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ"); + + b.Property("positionExecutiveFieldOld") + .HasColumnType("longtext") + .HasComment("āļ”āđ‰āļēāļ™āļ—āļēāļ‡āļāļēāļĢāļšāļĢāļīāļŦāļēāļĢ (āđ€āļāđˆāļē)"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignCancelId"); + + b.ToTable("RetirementResignCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignId"); + + b.ToTable("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsCancel") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļāđ€āļĨāļīāļ"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ReasonResign") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.ToTable("RetirementResignEmployees"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ActiveDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("AmountOld") + .HasColumnType("double") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("ApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("ApproveStep") + .HasColumnType("longtext") + .HasComment("step āļāļēāļĢāļ­āļ™āļļāļĄāļąāļ•āļī st1 = āļˆāļ—āļ™.āļ­āļ™āļļāļĄāļąāļ•āļ·,st2 = āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē āļ­āļ™āļļāļĄāļąāļ•āļī "); + + b.Property("CancelReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļāđ€āļĨāļīāļ"); + + b.Property("CommanderApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CommanderRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļšāļąāļ‡āļ„āļąāļšāļšāļąāļāļŠāļē"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Group") + .HasColumnType("longtext") + .HasComment("āļ„āļ™āļĒāļ·āđˆāļ™āļĄāļēāļ­āļĒāļđāđˆāđƒāļ™āļāļĨāļļāđˆāļĄ"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™"); + + b.Property("IsDiscipline") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļžāļĪāļ•āļīāļāļēāļĢāļ“āđŒāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ"); + + b.Property("IsNoBurden") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāļĄāļĩāļ āļēāļĢāļ°āļœāļđāļāļžāļąāļ™āļ„āđ‰āļģāļ›āļĢāļ°āļāļąāļ™āļ—āļļāļ™āļāļēāļĢāļĻāļķāļāļĐāļē"); + + b.Property("IsNoDebt") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ„āļĄāđˆāđ€āļ›āđ‡āļ™āļŦāļ™āļĩāđ‰āļŠāļŦāļāļĢāļ“āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Location") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļĨāļēāļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("OfficerApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OfficerRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļāļēāļĢāđ€āļˆāđ‰āļēāļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("OligarchApproveReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ­āļ™āļļāļĄāļąāļ•āļīāļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchReject") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OligarchRejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļĒāļąāļšāļĒāļąāđ‰āļ‡āļœāļđāđ‰āļ”āļđāđāļĨ"); + + b.Property("OrganizationOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āđ€āļ”āļīāļĄ"); + + b.Property("OrganizationPositionOld") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PositionLevelOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionNumberOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("PositionOld") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āđ€āļ”āļīāļĄ"); + + b.Property("PositionTypeOld") + .HasColumnType("longtext") + .HasComment("āļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ€āļ”āļīāļĄ āļ•āļģāđāļŦāļ™āđˆāļ‡āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Reason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("RejectReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāđ„āļĄāđˆāļ­āļ™āļļāļĄāļąāļ•āļī"); + + b.Property("Remark") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āļĩāđˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ(āļ­āļ·āđˆāļ™āđ†)"); + + b.Property("RemarkHorizontal") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāđāļ™āļ§āļ™āļ­āļ™"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("SendDate") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĒāļ·āđˆāļ™āļ‚āļ­āļ­āļ­āļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child1ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child2ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child3ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4Old") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4OldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("child4ShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + + b.Property("citizenId") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("firstName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("lastName") + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("posLevelNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posLevelOldId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posMasterNoOld") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("posTypeOldId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡ old"); + + b.Property("prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("profileId") + .HasColumnType("longtext") + .HasComment("profile Id"); + + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.Property("rootShortNameOld") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeCancels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("ApproveStatus") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ApproveType") + .HasColumnType("longtext"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("KeycloakId") + .HasColumnType("char(36)"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Org") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("PositionName") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ProfileId") + .HasColumnType("char(36)"); + + b.Property("RejectDate") + .HasColumnType("datetime(6)"); + + b.Property("RetirementResignEmployeeCancelId") + .HasColumnType("char(36)"); + + b.Property("Seq") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeCancelId"); + + b.ToTable("RetirementResignEmployeeCancelApprovers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDebtDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandStatus", "CommandStatus") + .WithMany() + .HasForeignKey("CommandStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany() + .HasForeignKey("PlacementId"); + + b.Navigation("CommandStatus"); + + b.Navigation("CommandType"); + + b.Navigation("Placement"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDeployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Deployments") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandDocument", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Documents") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.CommandReceiver", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.Command", "Command") + .WithMany("Receivers") + .HasForeignKey("CommandId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Command"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany("LimitTypeLeaves") + .HasForeignKey("TypeLeaveId"); + + b.Navigation("LimitLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave") + .WithMany("Profiles") + .HasForeignKey("LimitLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PosNo") + .WithMany() + .HasForeignKey("PosNoId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", "PositionEmployeeGroup") + .WithMany() + .HasForeignKey("PositionEmployeeGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "Position") + .WithMany() + .HasForeignKey("PositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId"); + + b.Navigation("Avatar"); + + b.Navigation("Gender"); + + b.Navigation("LimitLeave"); + + b.Navigation("PosNo"); + + b.Navigation("Position"); + + b.Navigation("PositionEmployeeGroup"); + + b.Navigation("PositionEmployeeLevel"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeePositionSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Abilitys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAbility", "ProfileAbility") + .WithMany("ProfileAbilityHistorys") + .HasForeignKey("ProfileAbilityId"); + + b.Navigation("ProfileAbility"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AddressHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Assessments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileAssessment", "ProfileAssessment") + .WithMany("ProfileAssessmentHistorys") + .HasForeignKey("ProfileAssessmentId"); + + b.Navigation("ProfileAssessment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "AvatarFile") + .WithMany() + .HasForeignKey("AvatarFileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("AvatarHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AvatarFile"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Certificates") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileCertificate", "ProfileCertificate") + .WithMany("ProfileCertificateHistorys") + .HasForeignKey("ProfileCertificateId"); + + b.Navigation("ProfileCertificate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ChangeNames") + .HasForeignKey("ProfileId"); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChangeName", "ProfileChangeName") + .WithMany("ProfileChangeNameHistorys") + .HasForeignKey("ProfileChangeNameId"); + + b.Navigation("Document"); + + b.Navigation("ProfileChangeName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Childrens") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileChildren", null) + .WithMany("ProfileChildrenHistorys") + .HasForeignKey("ProfileChildrenId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", null) + .WithMany("Childrens") + .HasForeignKey("ProfileFamilyHistoryId"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CoupleHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("CurrentAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Disciplines") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDiscipline", "ProfileDiscipline") + .WithMany("ProfileDisciplineHistorys") + .HasForeignKey("ProfileDisciplineId"); + + b.Navigation("ProfileDiscipline"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Dutys") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileDuty", "ProfileDuty") + .WithMany("ProfileDutyHistorys") + .HasForeignKey("ProfileDutyId"); + + b.Navigation("ProfileDuty"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Educations") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEducation", "ProfileEducation") + .WithMany("ProfileEducationHistorys") + .HasForeignKey("ProfileEducationId"); + + b.Navigation("ProfileEducation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmployment", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Employments") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileEmployment", "ProfileEmployment") + .WithMany() + .HasForeignKey("ProfileEmploymentId"); + + b.Navigation("ProfileEmployment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FamilyHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("FatherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("GovernmentHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("ProfileHistory") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Honors") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileHonor", "ProfileHonor") + .WithMany("ProfileHonorHistorys") + .HasForeignKey("ProfileHonorId"); + + b.Navigation("ProfileHonor"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Insignias") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileInsignia", "ProfileInsignia") + .WithMany("ProfileInsigniaHistorys") + .HasForeignKey("ProfileInsigniaId"); + + b.Navigation("ProfileInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", null) + .WithMany("Leaves") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileLeave", "ProfileLeave") + .WithMany("ProfileLeaveHistorys") + .HasForeignKey("ProfileLeaveId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.TypeLeave", "TypeLeave") + .WithMany() + .HasForeignKey("TypeLeaveId"); + + b.Navigation("ProfileLeave"); + + b.Navigation("TypeLeave"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveSummary", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("LeaveSummary") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("MotherHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Nopaids") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileNopaid", "ProfileNopaid") + .WithMany("ProfileNopaidHistorys") + .HasForeignKey("ProfileNopaidId"); + + b.Navigation("ProfileNopaid"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Others") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileOther", "ProfileOther") + .WithMany("ProfileOtherHistorys") + .HasForeignKey("ProfileOtherId"); + + b.Navigation("ProfileOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Papers") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("RegistrationAddressHistory") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Salaries") + .HasForeignKey("ProfileId"); + + b.Navigation("PositionLevel"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileSalary", "ProfileSalary") + .WithMany("ProfileSalaryHistorys") + .HasForeignKey("ProfileSalaryId"); + + b.Navigation("ProfileSalary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Position"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany("Trainings") + .HasForeignKey("ProfileId"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.ProfileTraining", "ProfileTraining") + .WithMany("ProfileTrainingHistorys") + .HasForeignKey("ProfileTrainingId"); + + b.Navigation("ProfileTraining"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "InsigniaPeriod") + .WithMany("InsigniaEmployees") + .HasForeignKey("InsigniaPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "Insignia") + .WithMany() + .HasForeignKey("InsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Insignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManage", "InsigniaManage") + .WithMany("InsigniaManageOrganiations") + .HasForeignKey("InsigniaManageId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManage"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", "InsigniaManageOrganiation") + .WithMany("InsigniaManageProfiles") + .HasForeignKey("InsigniaManageOrganiationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaManageOrganiation"); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteDocs") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("InsigniaNote"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReceiveInsignia") + .WithMany() + .HasForeignKey("DocReceiveInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocReturnInsignia") + .WithMany() + .HasForeignKey("DocReturnInsigniaId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNote", "InsigniaNote") + .WithMany("InsigniaNoteProfiles") + .HasForeignKey("InsigniaNoteId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DocReceiveInsignia"); + + b.Navigation("DocReturnInsignia"); + + b.Navigation("InsigniaNote"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile", "InsigniaNoteProfile") + .WithMany() + .HasForeignKey("InsigniaNoteProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("InsigniaNoteProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", "Period") + .WithMany("InsigniaRequests") + .HasForeignKey("PeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("Period"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", "Request") + .WithMany("RequestProfiles") + .HasForeignKey("RequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Insignia", "RequestInsignia") + .WithMany() + .HasForeignKey("RequestInsigniaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Request"); + + b.Navigation("RequestInsignia"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "Province") + .WithMany("Districts") + .HasForeignKey("ProvinceId"); + + b.Navigation("Province"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.InsigniaType", "InsigniaType") + .WithMany() + .HasForeignKey("InsigniaTypeId"); + + b.Navigation("InsigniaType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "ExecutiveSide") + .WithMany() + .HasForeignKey("ExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PathSide") + .WithMany() + .HasForeignKey("PathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("ExecutiveSide"); + + b.Navigation("PathSide"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "District") + .WithMany("SubDistricts") + .HasForeignKey("DistrictId"); + + b.Navigation("District"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationAgency") + .WithMany() + .HasForeignKey("OrganizationAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrganizationGovernmentAgency") + .WithMany() + .HasForeignKey("OrganizationGovernmentAgencyId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", "PositionEmployeeLine") + .WithMany() + .HasForeignKey("PositionEmployeeLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", "PositionEmployeePosition") + .WithMany() + .HasForeignKey("PositionEmployeePositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", "PositionEmployeeStatus") + .WithMany() + .HasForeignKey("PositionEmployeeStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("Organization"); + + b.Navigation("OrganizationAgency"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationGovernmentAgency"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("PositionEmployeeLine"); + + b.Navigation("PositionEmployeePosition"); + + b.Navigation("PositionEmployeeStatus"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrgEmployee") + .WithMany("OrganizationEmployeeProfiles") + .HasForeignKey("OrgEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OrgEmployee"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeeLevels") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", "PositionEmployeeLevel") + .WithMany() + .HasForeignKey("PositionEmployeeLevelId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeeLevel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide", b => + { + b.HasOne("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", "OrganizationEmployee") + .WithMany("OrganizationPositionEmployeePositionSides") + .HasForeignKey("OrganizationEmployeeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", "PositionEmployeePositionSide") + .WithMany() + .HasForeignKey("PositionEmployeePositionSideId"); + + b.Navigation("OrganizationEmployee"); + + b.Navigation("PositionEmployeePositionSide"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionMaster"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationFax", "OrganizationFax") + .WithMany() + .HasForeignKey("OrganizationFaxId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", "OrganizationLevel") + .WithMany() + .HasForeignKey("OrganizationLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganization") + .WithMany() + .HasForeignKey("OrganizationOrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", "OrganizationStatus") + .WithMany() + .HasForeignKey("OrganizationStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", "OrganizationTelExternal") + .WithMany() + .HasForeignKey("OrganizationTelExternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", "OrganizationTelInternal") + .WithMany() + .HasForeignKey("OrganizationTelInternalId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationType", "OrganizationType") + .WithMany() + .HasForeignKey("OrganizationTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Parent") + .WithMany("Organizations") + .HasForeignKey("ParentId"); + + b.Navigation("OrganizationFax"); + + b.Navigation("OrganizationLevel"); + + b.Navigation("OrganizationOrganization"); + + b.Navigation("OrganizationShortName"); + + b.Navigation("OrganizationStatus"); + + b.Navigation("OrganizationTelExternal"); + + b.Navigation("OrganizationTelInternal"); + + b.Navigation("OrganizationType"); + + b.Navigation("Parent"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization") + .WithMany() + .HasForeignKey("OrganizationId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMaster") + .WithMany() + .HasForeignKey("PositionMasterId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.Navigation("Organization"); + + b.Navigation("PositionMaster"); + + b.Navigation("PositionNumber"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutive", "PositionExecutive") + .WithMany() + .HasForeignKey("PositionExecutiveId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", "PositionExecutiveSide") + .WithMany() + .HasForeignKey("PositionExecutiveSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionStatus", "PositionStatus") + .WithMany() + .HasForeignKey("PositionStatusId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.Navigation("PositionExecutive"); + + b.Navigation("PositionExecutiveSide"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionStatus"); + + b.Navigation("PositionType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", "PositionMasterEntity") + .WithMany("PositionMasterHistorys") + .HasForeignKey("PositionMasterEntityId"); + + b.Navigation("PositionMasterEntity"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", "OrganizationShortName") + .WithMany() + .HasForeignKey("OrganizationShortNameId"); + + b.Navigation("OrganizationShortName"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", "Report2DetailHistory") + .WithMany() + .HasForeignKey("Report2DetailHistoryId"); + + b.Navigation("Report2DetailHistory"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementType", "PlacementType") + .WithMany() + .HasForeignKey("PlacementTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementAppointment", "PlacementAppointment") + .WithMany("PlacementAppointmentDocs") + .HasForeignKey("PlacementAppointmentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementAppointment"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementCertificates") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementEducations") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.Navigation("PlacementProfile"); + + b.Navigation("PositionPath"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement") + .WithMany("PlacementProfiles") + .HasForeignKey("PlacementId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc") + .WithMany() + .HasForeignKey("ReliefDocId"); + + b.Navigation("Placement"); + + b.Navigation("ProfileImg"); + + b.Navigation("ReliefDoc"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile") + .WithMany("PlacementProfileDocs") + .HasForeignKey("PlacementProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementProfile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar") + .WithMany() + .HasForeignKey("AvatarId"); + + b.Navigation("Avatar"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementReceive", "PlacementReceive") + .WithMany("PlacementReceiveDocs") + .HasForeignKey("PlacementReceiveId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementReceive"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup") + .WithMany() + .HasForeignKey("BloodGroupId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender") + .WithMany() + .HasForeignKey("GenderId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition") + .WithMany() + .HasForeignKey("OrganizationPositionId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel") + .WithMany() + .HasForeignKey("PositionLevelId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine") + .WithMany() + .HasForeignKey("PositionLineId"); + + b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber") + .WithMany() + .HasForeignKey("PositionNumberId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath") + .WithMany() + .HasForeignKey("PositionPathId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide") + .WithMany() + .HasForeignKey("PositionPathSideId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType") + .WithMany() + .HasForeignKey("PositionTypeId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix") + .WithMany() + .HasForeignKey("PrefixId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship") + .WithMany() + .HasForeignKey("RelationshipId"); + + b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion") + .WithMany() + .HasForeignKey("ReligionId"); + + b.Navigation("BloodGroup"); + + b.Navigation("Gender"); + + b.Navigation("OrganizationPosition"); + + b.Navigation("PositionLevel"); + + b.Navigation("PositionLine"); + + b.Navigation("PositionNumber"); + + b.Navigation("PositionPath"); + + b.Navigation("PositionPathSide"); + + b.Navigation("PositionType"); + + b.Navigation("Prefix"); + + b.Navigation("Profile"); + + b.Navigation("Relationship"); + + b.Navigation("Religion"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementRelocation", "PlacementRelocation") + .WithMany("PlacementRelocationDocs") + .HasForeignKey("PlacementRelocationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementRelocation"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransferDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementTransfer", "PlacementTransfer") + .WithMany("PlacementTransferDocs") + .HasForeignKey("PlacementTransferId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PlacementTransfer"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward") + .WithMany() + .HasForeignKey("DocumentForwardId"); + + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + + b.Navigation("DocumentForward"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased") + .WithMany("RetirementDeceasedNotis") + .HasForeignKey("RetirementDeceasedId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementDeceased"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDischarge", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementEmployeeQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany() + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => + { + b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") + .WithMany() + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Profile"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType") + .WithMany() + .HasForeignKey("CommandTypeId"); + + b.Navigation("CommandType"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementOther", "RetirementOther") + .WithMany("RetirementOtherDocs") + .HasForeignKey("RetirementOtherId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementOther"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId"); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementPeriodHistorys") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany() + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementRawProfile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", "RetirementPeriod") + .WithMany("RetirementRawProfiles") + .HasForeignKey("RetirementPeriodId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementPeriod"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("Approvers") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignCancels") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", "RetirementResignCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDebtDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResign", "RetirementResign") + .WithMany("RetirementResignDocs") + .HasForeignKey("RetirementResignId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResign"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeCancels") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", "RetirementResignEmployeeCancel") + .WithMany("Approvers") + .HasForeignKey("RetirementResignEmployeeCancelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployeeCancel"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDebtDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany("RetirementResignEmployeeDocs") + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("RetirementResignEmployee"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.Core.Command", b => + { + b.Navigation("Deployments"); + + b.Navigation("Documents"); + + b.Navigation("Receivers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b => + { + b.Navigation("LimitTypeLeaves"); + + b.Navigation("Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b => + { + b.Navigation("Abilitys"); + + b.Navigation("AddressHistory"); + + b.Navigation("Assessments"); + + b.Navigation("AvatarHistory"); + + b.Navigation("Certificates"); + + b.Navigation("ChangeNames"); + + b.Navigation("Childrens"); + + b.Navigation("CoupleHistory"); + + b.Navigation("CurrentAddressHistory"); + + b.Navigation("Disciplines"); + + b.Navigation("Dutys"); + + b.Navigation("Educations"); + + b.Navigation("Employments"); + + b.Navigation("FamilyHistory"); + + b.Navigation("FatherHistory"); + + b.Navigation("GovernmentHistory"); + + b.Navigation("Honors"); + + b.Navigation("Insignias"); + + b.Navigation("LeaveSummary"); + + b.Navigation("Leaves"); + + b.Navigation("MotherHistory"); + + b.Navigation("Nopaids"); + + b.Navigation("Others"); + + b.Navigation("Papers"); + + b.Navigation("ProfileHistory"); + + b.Navigation("RegistrationAddressHistory"); + + b.Navigation("Salaries"); + + b.Navigation("Trainings"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b => + { + b.Navigation("ProfileAbilityHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b => + { + b.Navigation("ProfileAssessmentHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b => + { + b.Navigation("ProfileCertificateHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b => + { + b.Navigation("ProfileChangeNameHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b => + { + b.Navigation("ProfileChildrenHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b => + { + b.Navigation("ProfileDisciplineHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b => + { + b.Navigation("ProfileDutyHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b => + { + b.Navigation("ProfileEducationHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b => + { + b.Navigation("Childrens"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b => + { + b.Navigation("ProfileHonorHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b => + { + b.Navigation("ProfileInsigniaHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b => + { + b.Navigation("ProfileLeaveHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b => + { + b.Navigation("ProfileNopaidHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b => + { + b.Navigation("ProfileOtherHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b => + { + b.Navigation("ProfileSalaryHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b => + { + b.Navigation("ProfileTrainingHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b => + { + b.Navigation("LimitTypeLeaves"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManage", b => + { + b.Navigation("InsigniaManageOrganiations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation", b => + { + b.Navigation("InsigniaManageProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaNote", b => + { + b.Navigation("InsigniaNoteDocs"); + + b.Navigation("InsigniaNoteProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b => + { + b.Navigation("InsigniaEmployees"); + + b.Navigation("InsigniaRequests"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b => + { + b.Navigation("RequestProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b => + { + b.Navigation("SubDistricts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b => + { + b.Navigation("Districts"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee", b => + { + b.Navigation("OrganizationEmployeeProfiles"); + + b.Navigation("OrganizationPositionEmployeeLevels"); + + b.Navigation("OrganizationPositionEmployeePositionSides"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b => + { + b.Navigation("Organizations"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b => + { + b.Navigation("PositionMasterHistorys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", b => + { + b.Navigation("PlacementProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b => + { + b.Navigation("PlacementAppointmentDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b => + { + b.Navigation("PlacementCertificates"); + + b.Navigation("PlacementEducations"); + + b.Navigation("PlacementProfileDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b => + { + b.Navigation("PlacementReceiveDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementRelocation", b => + { + b.Navigation("PlacementRelocationDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b => + { + b.Navigation("PlacementTransferDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b => + { + b.Navigation("RetirementDeceasedNotis"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementOther", b => + { + b.Navigation("RetirementOtherDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementPeriod", b => + { + b.Navigation("RetirementPeriodHistorys"); + + b.Navigation("RetirementProfiles"); + + b.Navigation("RetirementRawProfiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignCancels"); + + b.Navigation("RetirementResignDebtDocs"); + + b.Navigation("RetirementResignDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignCancel", b => + { + b.Navigation("Approvers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", b => + { + b.Navigation("Approvers"); + + b.Navigation("RetirementResignEmployeeCancels"); + + b.Navigation("RetirementResignEmployeeDebtDocs"); + + b.Navigation("RetirementResignEmployeeDocs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel", b => + { + b.Navigation("Approvers"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/20250619180137_update_table_discipline_add_dna.cs b/BMA.EHR.Infrastructure/Migrations/20250619180137_update_table_discipline_add_dna.cs new file mode 100644 index 00000000..7e9e9839 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/20250619180137_update_table_discipline_add_dna.cs @@ -0,0 +1,428 @@ +ïŧŋusing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations +{ + /// + public partial class update_table_discipline_add_dna : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "child1DnaOldId", + table: "RetirementResignEmployeeCancels", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaOldId", + table: "RetirementResignEmployeeCancels", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaOldId", + table: "RetirementResignEmployeeCancels", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaOldId", + table: "RetirementResignEmployeeCancels", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaOldId", + table: "RetirementResignEmployeeCancels", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaOldId", + table: "RetirementResignCancels", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaOldId", + table: "RetirementResignCancels", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaOldId", + table: "RetirementResignCancels", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaOldId", + table: "RetirementResignCancels", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaOldId", + table: "RetirementResignCancels", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaId", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1Id", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaId", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2Id", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaId", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3Id", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaId", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4Id", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "root", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaId", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootId", + table: "RetirementQuestions", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "RetirementEmployeeQuestions", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”") + .Annotation("MySql:CharSet", "utf8mb4"), + RetirementResignEmployeeId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + ReasonWork = table.Column(type: "longtext", nullable: true, comment: "āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ") + .Annotation("MySql:CharSet", "utf8mb4"), + ReasonWorkOther = table.Column(type: "longtext", nullable: true, comment: "āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ") + .Annotation("MySql:CharSet", "utf8mb4"), + TimeThink = table.Column(type: "int", nullable: true, comment: "āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"), + ExitFactor = table.Column(type: "longtext", nullable: true, comment: "āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"), + ExitFactorOther = table.Column(type: "longtext", nullable: true, comment: "āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ") + .Annotation("MySql:CharSet", "utf8mb4"), + Adjust = table.Column(type: "longtext", nullable: true, comment: "āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡") + .Annotation("MySql:CharSet", "utf8mb4"), + AdjustOther = table.Column(type: "longtext", nullable: true, comment: "āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡") + .Annotation("MySql:CharSet", "utf8mb4"), + RealReason = table.Column(type: "longtext", nullable: true, comment: "āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ") + .Annotation("MySql:CharSet", "utf8mb4"), + NotExitFactor = table.Column(type: "longtext", nullable: true, comment: "āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ") + .Annotation("MySql:CharSet", "utf8mb4"), + Havejob = table.Column(type: "tinyint(1)", nullable: true, comment: "āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"), + HavejobReason = table.Column(type: "longtext", nullable: true, comment: "āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ") + .Annotation("MySql:CharSet", "utf8mb4"), + SuggestFriends = table.Column(type: "tinyint(1)", nullable: true, comment: "āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"), + SuggestFriendsReason = table.Column(type: "longtext", nullable: true, comment: "āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ") + .Annotation("MySql:CharSet", "utf8mb4"), + FutureWork = table.Column(type: "tinyint(1)", nullable: true, comment: "āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"), + FutureWorkReason = table.Column(type: "longtext", nullable: true, comment: "āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ") + .Annotation("MySql:CharSet", "utf8mb4"), + Suggestion = table.Column(type: "longtext", nullable: true, comment: "āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† ") + .Annotation("MySql:CharSet", "utf8mb4"), + AppointDate = table.Column(type: "datetime(6)", nullable: true, comment: "āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"), + Score1 = table.Column(type: "int", nullable: true, comment: "āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"), + Score2 = table.Column(type: "int", nullable: true, comment: "āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"), + Score3 = table.Column(type: "int", nullable: true, comment: "āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"), + Score4 = table.Column(type: "int", nullable: true, comment: "āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"), + Score5 = table.Column(type: "int", nullable: true, comment: "āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"), + Score6 = table.Column(type: "int", nullable: true, comment: "āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"), + Score7 = table.Column(type: "int", nullable: true, comment: "āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"), + Score8 = table.Column(type: "int", nullable: true, comment: "āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"), + Score9 = table.Column(type: "int", nullable: true, comment: "āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"), + Score10 = table.Column(type: "int", nullable: true, comment: "āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"), + ScoreTotal = table.Column(type: "int", nullable: true, comment: "āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"), + Comment = table.Column(type: "longtext", nullable: true, comment: "āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™") + .Annotation("MySql:CharSet", "utf8mb4"), + root = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ") + .Annotation("MySql:CharSet", "utf8mb4"), + rootId = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ") + .Annotation("MySql:CharSet", "utf8mb4"), + rootDnaId = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root ") + .Annotation("MySql:CharSet", "utf8mb4"), + child1 = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child1Id = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child1DnaId = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child2 = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child2Id = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child2DnaId = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child3 = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child3Id = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child3DnaId = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child4 = table.Column(type: "longtext", nullable: true, comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child4Id = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ") + .Annotation("MySql:CharSet", "utf8mb4"), + child4DnaId = table.Column(type: "longtext", nullable: true, comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 ") + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_RetirementEmployeeQuestions", x => x.Id); + table.ForeignKey( + name: "FK_RetirementEmployeeQuestions_RetirementResignEmployees_Retire~", + column: x => x.RetirementResignEmployeeId, + principalTable: "RetirementResignEmployees", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateIndex( + name: "IX_RetirementEmployeeQuestions_RetirementResignEmployeeId", + table: "RetirementEmployeeQuestions", + column: "RetirementResignEmployeeId"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "RetirementEmployeeQuestions"); + + migrationBuilder.DropColumn( + name: "child1DnaOldId", + table: "RetirementResignEmployeeCancels"); + + migrationBuilder.DropColumn( + name: "child2DnaOldId", + table: "RetirementResignEmployeeCancels"); + + migrationBuilder.DropColumn( + name: "child3DnaOldId", + table: "RetirementResignEmployeeCancels"); + + migrationBuilder.DropColumn( + name: "child4DnaOldId", + table: "RetirementResignEmployeeCancels"); + + migrationBuilder.DropColumn( + name: "rootDnaOldId", + table: "RetirementResignEmployeeCancels"); + + migrationBuilder.DropColumn( + name: "child1DnaOldId", + table: "RetirementResignCancels"); + + migrationBuilder.DropColumn( + name: "child2DnaOldId", + table: "RetirementResignCancels"); + + migrationBuilder.DropColumn( + name: "child3DnaOldId", + table: "RetirementResignCancels"); + + migrationBuilder.DropColumn( + name: "child4DnaOldId", + table: "RetirementResignCancels"); + + migrationBuilder.DropColumn( + name: "rootDnaOldId", + table: "RetirementResignCancels"); + + migrationBuilder.DropColumn( + name: "child1", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "child1DnaId", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "child1Id", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "child2", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "child2DnaId", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "child2Id", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "child3", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "child3DnaId", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "child3Id", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "child4", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "child4DnaId", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "child4Id", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "root", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "rootDnaId", + table: "RetirementQuestions"); + + migrationBuilder.DropColumn( + name: "rootId", + table: "RetirementQuestions"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs index cf809d3a..160c836d 100644 --- a/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs @@ -15186,6 +15186,239 @@ namespace BMA.EHR.Infrastructure.Migrations b.ToTable("RetirementDischarges"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementEmployeeQuestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Adjust") + .HasColumnType("longtext") + .HasComment("āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AdjustOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āđˆāļēāļ™āđ€āļŦāđ‡āļ™āļ§āđˆāļēāļ„āļ§āļĢāļ›āļĢāļąāļšāļ›āļĢāļļāļ‡"); + + b.Property("AppointDate") + .HasColumnType("datetime(6)") + .HasComment("āļāđāļēāļŦāļ™āļ”āļ§āļąāļ™āļ™āļąāļ”āļŦāļĄāļēāļĒāđ€āļžāļ·āđˆāļ­āļ—āđāļēāļāļēāļĢāļŠāļąāļĄāļ āļēāļĐāļ“āđŒāļāļēāļĢāļĨāļēāļ­āļ­āļ"); + + b.Property("Comment") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("ExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ExitFactorOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("FutureWork") + .HasColumnType("tinyint(1)") + .HasComment("āļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("FutureWorkReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļŦāļēāļāļ—āđˆāļēāļ™āļĄāļĩāđ‚āļ­āļāļēāļŠāđƒāļ™āļ­āļ™āļēāļ„āļ• āļ—āđˆāļēāļ™āļ­āļĒāļēāļāļāļĨāļąāļšāļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Havejob") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("HavejobReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļĄāļĩāļ‡āļēāļ™āđƒāļŦāļĄāđˆāļŦāļĢāļ·āļ­āđ„āļĄāđˆāđāļĨāļ°āļ­āļ°āđ„āļĢāļ„āļ·āļ­āļŠāļīāđˆāļ‡āļ—āļĩāđˆāļ—āļĩāđˆāļ—āļģāļ‡āļēāļ™āđƒāļŦāļĄāđˆāđƒāļŦāđ‰āļāļąāļšāļ—āđˆāļēāļ™ āļ‹āļķāđˆāļ‡āļ—āđˆāļēāļ™āļĢāļđāđ‰āļŠāļķāļāļ§āđˆāļēāđ€āļ›āđ‡āļ™āļ—āļĩāđˆāļ™āđˆāļēāļžāļ­āđƒāļˆāļĄāļēāļāļāļ§āđˆāļēāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("NotExitFactor") + .HasColumnType("longtext") + .HasComment("āļ›āļąāļˆāļˆāļąāļĒāđƒāļ”āļ—āļĩāđˆāļˆāļ°āļŠāđˆāļ§āļĒāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđƒāļˆ āđ„āļĄāđˆāļ­āļĒāļēāļāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RealReason") + .HasColumnType("longtext") + .HasComment("āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāļŠāļēāđ€āļŦāļ•āļļāļ—āļĩāđˆāđāļ—āđ‰āļˆāļĢāļīāļ‡ āļ—āļĩāđˆāļ—āļģāđƒāļŦāđ‰āļ—āđˆāļēāļ™āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĨāļēāļ­āļ­āļāļˆāļēāļāļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļĢāļēāļŠāļāļēāļĢāļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWork") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("ReasonWorkOther") + .HasColumnType("longtext") + .HasComment("āļ­āļ·āđˆāļ™āđ† āđ€āļŦāļ•āļļāđƒāļ”āļ—āđˆāļēāļ™āļˆāļķāļ‡āļ•āļąāļ”āļŠāļīāļ™āđƒāļˆāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ"); + + b.Property("RetirementResignEmployeeId") + .HasColumnType("char(36)"); + + b.Property("Score1") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 1"); + + b.Property("Score10") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 10"); + + b.Property("Score2") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 2"); + + b.Property("Score3") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 3"); + + b.Property("Score4") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 4"); + + b.Property("Score5") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 5"); + + b.Property("Score6") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 6"); + + b.Property("Score7") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 7"); + + b.Property("Score8") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 8"); + + b.Property("Score9") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļ‚āđ‰āļ­ 9"); + + b.Property("ScoreTotal") + .HasColumnType("int") + .HasComment("āļ„āļ°āđāļ™āļ™āļĢāļ§āļĄ"); + + b.Property("SuggestFriends") + .HasColumnType("tinyint(1)") + .HasComment("āļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("SuggestFriendsReason") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļœāļĨāļ—āđˆāļēāļ™āļˆāļ°āđāļ™āļ°āļ™āļģāđ€āļžāļ·āđˆāļ­āļ™āđƒāļŦāđ‰āļĄāļēāļĢāđˆāļ§āļĄāļ‡āļēāļ™āļāļąāļšāļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļŦāļĢāļ·āļ­āđ„āļĄāđˆ"); + + b.Property("Suggestion") + .HasColumnType("longtext") + .HasComment("āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™āđāļĨāļ°āļ‚āđ‰āļ­āđ€āļŠāļ™āļ­āđāļ™āļ°āļ­āļ·āđˆāļ™ āđ† "); + + b.Property("TimeThink") + .HasColumnType("int") + .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.HasKey("Id"); + + b.HasIndex("RetirementResignEmployeeId"); + + b.ToTable("RetirementEmployeeQuestions"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => { b.Property("Id") @@ -16565,6 +16798,66 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("int") .HasComment("āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļĨāļēāļ­āļ­āļāđƒāļ™āļ„āļĢāļąāđ‰āļ‡āļ™āļĩāđ‰ āļ—āđˆāļēāļ™āđ„āļ”āđ‰āļ„āļīāļ”āļ—āļšāļ—āļ§āļ™āļ­āļĒāđˆāļēāļ‡āļˆāļĢāļīāļ‡āļˆāļąāļ‡āđ€āļ›āđ‡āļ™āļĢāļ°āļĒāļ°āđ€āļ§āļĨāļēāļ™āļēāļ™āđ€āļ—āđˆāļēāđƒāļ”"); + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 "); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 "); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 "); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 "); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root "); + b.HasKey("Id"); b.HasIndex("RetirementResignId"); @@ -17589,6 +17882,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child1Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); @@ -17601,6 +17898,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child2Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); @@ -17613,6 +17914,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child3Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); @@ -17625,6 +17930,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + b.Property("child4Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); @@ -17693,6 +18002,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("profile Id"); + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + b.Property("rootOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); @@ -18546,6 +18859,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ–āļēāļ™āļ°āļĨāļēāļ­āļ­āļ"); + b.Property("child1DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child1Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); @@ -18558,6 +18875,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1 old"); + b.Property("child2DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child2Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); @@ -18570,6 +18891,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2 old"); + b.Property("child3DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child3Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); @@ -18582,6 +18907,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3 old"); + b.Property("child4DnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); + b.Property("child4Old") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4 old"); @@ -18634,6 +18963,10 @@ namespace BMA.EHR.Infrastructure.Migrations .HasColumnType("longtext") .HasComment("profile Id"); + b.Property("rootDnaOldId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); + b.Property("rootOld") .HasColumnType("longtext") .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root old"); @@ -20340,6 +20673,17 @@ namespace BMA.EHR.Infrastructure.Migrations b.Navigation("Profile"); }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementEmployeeQuestion", b => + { + b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee") + .WithMany() + .HasForeignKey("RetirementResignEmployeeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("RetirementResignEmployee"); + }); + modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b => { b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile") diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250619175842_update_table_discipline_add_dna.Designer.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250619175842_update_table_discipline_add_dna.Designer.cs new file mode 100644 index 00000000..cac9ad19 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250619175842_update_table_discipline_add_dna.Designer.cs @@ -0,0 +1,3671 @@ +ïŧŋ// +using System; +using BMA.EHR.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + [DbContext(typeof(DisciplineDbContext))] + [Migration("20250619175842_update_table_discipline_add_dna")] + partial class update_table_discipline_add_dna + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.9") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("RootDnaId") + .HasColumnType("char(36)") + .HasComment("RootDnaId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CaseNumber") + .HasColumnType("longtext") + .HasComment("āļ„āļ”āļĩāđ€āļĨāļ‚āļ—āļĩāđˆ"); + + b.Property("CaseType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļ”āļĩ"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Fullname") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­-āļ™āļēāļĄāļŠāļāļļāļĨāļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Oc") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡āļœāļđāđ‰āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("ProfileId") + .IsRequired() + .HasColumnType("longtext") + .HasComment("ProfileId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Type") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļļāļ—āļ˜āļĢāļ“āđŒāļŦāļĢāļ·āļ­āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Appeals"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Appeal_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaint_AppealId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļļāļ—āļ˜āļĢāļ“āđŒ/āļĢāđ‰āļ­āļ‡āļ—āļļāļāļ‚āđŒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaint_AppealId"); + + b.ToTable("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Channel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļāļēāļĢāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.HasKey("Id"); + + b.ToTable("DisciplineComplaint_Channels"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineComplaint_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineComplaint_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("Email") + .HasColumnType("longtext") + .HasComment("āļ­āļĩāđ€āļĄāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Phone") + .HasColumnType("longtext") + .HasComment("āđ€āļšāļ­āļĢāđŒāđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ"); + + b.Property("Position") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļēāļŠāļ·āđˆāļ­"); + + b.Property("Qualification") + .HasColumnType("longtext") + .HasComment("āļ„āļļāļ“āļ§āļļāļ’āļī"); + + b.HasKey("Id"); + + b.ToTable("DisciplineDirectors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryCauseText") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨ"); + + b.Property("DisciplinaryDateAllegation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāļ—āļĢāļēāļšāļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateEvident") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™"); + + b.Property("DisciplinaryDateInvestigation") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĄāļĩāļ„āļģāļŠāļąāđˆāļ‡āđƒāļŦāđ‰āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateResult") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļēāļĒāļ‡āļēāļ™āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("DisciplinaryDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplinaryExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplinaryFaultLevelOther") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ”āļāļĢāļ“āļĩāļ­āļ·āđˆāļ™āđ†"); + + b.Property("DisciplinaryInvestigateAt") + .HasColumnType("longtext") + .HasComment("āļŠāļ­āļšāļŠāļ§āļ™āļ—āļĩāđˆ"); + + b.Property("DisciplinaryRecordAccuser") + .HasColumnType("longtext") + .HasComment("āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļ‚āļ­āļ‡āļœāļđāđ‰āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryRefLaw") + .HasColumnType("longtext") + .HasComment("āļ­āđ‰āļēāļ‡āļ­āļīāļ‡āļĄāļēāļ•āļĢāļēāļ•āļēāļĄāļāļŽāļŦāļĄāļēāļĒ"); + + b.Property("DisciplinaryResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āđ€āļŦāļ•āļļāļœāļĨ"); + + b.Property("DisciplinaryStatusResult") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļŠāļ­āļšāļŠāļ§āļ™ āļœāļĨ"); + + b.Property("DisciplinarySummaryEvidence") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļžāļĒāļēāļ™āļŦāļĨāļąāļāļāļēāļ™āļŠāļ™āļąāļšāļŠāļ™āļļāļ™āļ‚āđ‰āļ­āļāļĨāđˆāļēāļ§āļŦāļē"); + + b.Property("DisciplinaryWitnesses") + .HasColumnType("longtext") + .HasComment("āļžāļĒāļēāļ™āđāļĨāļ°āļšāļąāļ™āļ—āļķāļāļ–āđ‰āļ­āļĒāļ„āļģāļžāļĒāļēāļ™"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (APPOINT_DIRECTORS āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, SECRET_INVESTIGATION āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, OTHER āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, HAVE_CAUSE āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, NO_CAUSE āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ResultDescription") + .HasColumnType("longtext") + .HasComment("āļŠāļĢāļļāļ›āļœāļĨāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("ResultDisciplineType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ§āļīāļ™āļąāļĒ"); + + b.Property("ResultInvestigate") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("ResultOc") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļĒ/āļŠāđˆāļ§āļ™āļĢāļēāļŠāļāļēāļĢ"); + + b.Property("ResultTitleType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("ResultYear") + .HasColumnType("int") + .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + + b.Property("RootDnaId") + .HasColumnType("char(36)") + .HasComment("RootDnaId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineDisciplinarys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinaryExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_DirectorInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocInvestigateRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocOthers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRecordAccusers"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocRelevants"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocResults"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocSummaryEvidences"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineDisciplinary_DocWitnessess"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandDiscardCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("CommandTypeDiscardId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("IsSuspend") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļžāļąāļāļĢāļēāļŠāļāļēāļĢ"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Offense") + .HasColumnType("longtext") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨ"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Remark") + .HasColumnType("text") + .HasComment("āļāļēāļ™āļ„āļ§āļēāļĄāļœāļīāļ”āļĢāļēāļĒāļšāļļāļ„āļ„āļĨāļŦāļĄāļēāļĒāđ€āļŦāļ•āļļ"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("StatusDiscard") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡āļ‡āļ”āđ‚āļ—āļ”"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("Appellant") + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("ComplaintFrom") + .HasColumnType("longtext") + .HasComment("āļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™āļˆāļēāļ āļĢāļ°āļšāļļāļ§āđˆāļēāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĄāļēāļˆāļēāļāđƒāļ„āļĢ/āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđ„āļŦāļ™ (āļŠāļ•āļ‡., āļ›āļ›āļŠ., āļ›āļ›āļ—., āļˆāļ”āļŦāļĄāļēāļĒ, āļ­āļĩāđ€āļĄāļĨ, āđ‚āļ—āļĢāļĻāļąāļžāļ—āđŒ, āļšāļ­āļāļāļĨāđˆāļēāļ§)"); + + b.Property("ConsideredAgency") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡"); + + b.Property("ConsideredAgencyId") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āļ—āļĩāđˆāļžāļīāļˆāļēāļĢāļ“āļē āļˆāļ°āđ€āļ›āļĨāļĩāđˆāļĒāļ™āđ„āļ›āļ•āļēāļĄāļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āļ”āļđāļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ”āđ‰āļēāļ™āļĨāđˆāļēāļ‡ id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateConsideration") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āļžāļīāļˆāļēāļĢāļ“āļē"); + + b.Property("DateNotification") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™āļĨāđˆāļ§āļ‡āļŦāļ™āđ‰āļē"); + + b.Property("DateReceived") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļĢāļąāļšāđ€āļĢāļ·āđˆāļ­āļ‡ āđ€āļ›āđ‡āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ–āļ·āļ­āđ€āļ›āđ‡āļ™āļˆāļļāļ”āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ‚āļ­āļ‡āļ§āļīāļ™āļąāļĒāļ™āļąāđ‰āļ™ āđ†"); + + b.Property("Description") + .HasColumnType("text") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āļ‚āļ­āļ‡āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("DisciplineComplaintId") + .HasColumnType("char(36)"); + + b.Property("InvestigationCauseText") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļĄāļĩāļĄāļđāļĨāļ•āđ‰āļ­āļ‡āđ€āļĨāļ·āļ­āļāļ§āđˆāļē 'āļĢāđ‰āļēāļĒāđāļĢāļ‡' āļŦāļĢāļ·āļ­ 'āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡'"); + + b.Property("InvestigationDateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļ•āđ‰āļ­āļ‡āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("InvestigationDescription") + .HasColumnType("longtext") + .HasComment("āļĢāļēāļĒāļĨāļ°āđ€āļ­āļĩāļĒāļ”āđ€āļāļĩāđˆāļĒāļ§āļāļąāļšāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™"); + + b.Property("InvestigationDetail") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (appoint_directors āļ„āļ·āļ­ āđāļ•āđˆāļ‡āļ•āļąāđ‰āļ‡āļāļĢāļĢāļĄāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™, secret_investigation āļ„āļ·āļ­ āļŠāļ·āļšāļŠāļ§āļ™āļ—āļēāļ‡āļĨāļąāļš, other āļ„āļ·āļ­ āļ­āļ·āđˆāļ™ āđ†)"); + + b.Property("InvestigationDetailOther") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™āļāļĢāļ“āļĩāđ€āļĨāļ·āļ­āļāļ­āļ·āđˆāļ™āđ†"); + + b.Property("InvestigationExtendStatus") + .HasColumnType("tinyint(1)") + .HasComment("āļ‚āļĒāļēāļĒāđ€āļ§āļĨāļē"); + + b.Property("InvestigationStatusResult") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļŦāļĢāļ·āļ­āļœāļĨāļāļēāļĢāļŠāļ·āļšāļŠāļ§āļ™ (not_specified āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, have_cause āļ„āļ·āļ­ āļĄāļĩāļĄāļđāļĨ, no_cause āļ„āļ·āļ­ āđ„āļĄāđˆāļĄāļĩāļĄāļđāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("LevelConsideration") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāļāļēāļĢāļžāļīāļˆāļēāļĢāļ“āļē 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NORMAL āļ„āļ·āļ­ āļ›āļāļ•āļī, URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™, VERY_URGENT āļ„āļ·āļ­ āļ”āđˆāļ§āļ™āļĄāļēāļ)"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.Property("OrganizationId") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™āđƒāļŠāđˆāļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ id"); + + b.Property("RespondentType") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļœāļđāđ‰āļ–āļđāļāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ (PERSON āļ„āļ·āļ­ āļšāļļāļ„āļ„āļĨ, ORGANIZATION āļ„āļ·āļ­ āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™, BANGKOK āļ„āļ·āļ­ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ)"); + + b.Property("Result") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļš"); + + b.Property("ResultComplaint") + .HasColumnType("longtext") + .HasComment("āļœāļĨāļāļēāļĢāļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("RootDnaId") + .HasColumnType("char(36)") + .HasComment("RootDnaId"); + + b.Property("Status") + .IsRequired() + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āđ€āļĢāļ·āđˆāļ­āļ‡āļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™ āļĄāļĩāļ”āļąāļ‡āļ™āļĩāđ‰ āđƒāļŦāļĄāđˆ (NEW), āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡ (STOP), āļĄāļĩāļĄāļđāļĨāļŠāđˆāļ‡āđ„āļ›āļŠāļ·āļšāļŠāļ§āļ™āđāļĨāđ‰āļ§ (SEND_INVESTIGATE)"); + + b.Property("Title") + .IsRequired() + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("activeId") + .HasColumnType("longtext") + .HasComment("version āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineComplaintId"); + + b.ToTable("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DateEnd") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļīāđ‰āļ™āļŠāļļāļ”"); + + b.Property("DateStart") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāđ€āļĢāļīāđˆāļĄ"); + + b.Property("DaysExtend") + .HasColumnType("int") + .HasComment("āļˆāļģāļ™āļ§āļ™āļ§āļąāļ™āļ—āļĩāđˆāļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļāļēāļĢāļ‚āļĒāļēāļĒ"); + + b.Property("Num") + .HasColumnType("int") + .HasComment("āļ„āļĢāļąāđ‰āļ‡āļ—āļĩāđˆāļ‚āļĒāļēāļĒ"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigateExtends"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigateRelevant_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CommandNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineDirectorId") + .HasColumnType("char(36)"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("Duty") + .HasColumnType("longtext") + .HasComment("āļŦāļ™āđ‰āļēāļ—āļĩāđˆ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDirectorId"); + + b.HasIndex("DisciplineInvestigateId"); + + b.ToTable("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_Docs"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("DisciplineInvestigate_DocComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DisciplineInvestigateId") + .HasColumnType("char(36)"); + + b.Property("DocumentRejectId") + .HasColumnType("char(36)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("IsAncestorDNA") + .HasColumnType("tinyint(1)") + .HasComment("āļĢāļēāļĒāļāļēāļĢāđ€āļāđˆāļē"); + + b.Property("IsDisciplinary") + .HasColumnType("tinyint(1)") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļŠāļ­āļšāļŠāļ§āļ™"); + + b.Property("IsReport") + .HasColumnType("longtext") + .HasComment("āļŠāđˆāļ‡āđ„āļ›āļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("RemarkReject") + .HasColumnType("longtext") + .HasComment("āļŦāļĄāļēāļĒāđ€āļŦāļ•āļļāļĒāļļāļ•āļīāđ€āļĢāļ·āđˆāļ­āļ‡"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineInvestigateId"); + + b.HasIndex("DocumentRejectId"); + + b.ToTable("DisciplineInvestigate_ProfileComplaints"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CommandCode") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CommandTypeId") + .HasColumnType("char(36)") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("DescriptionSuspend") + .HasColumnType("longtext") + .HasComment("āđ€āļŦāļ•āļļāļ—āļĩāđˆāļ–āļđāļāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("DisciplinaryCaseFault") + .HasColumnType("longtext") + .HasComment("āļāļĢāļ“āļĩāļ„āļ§āļēāļĄāļœāļīāļ”"); + + b.Property("DisciplinaryFaultLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļšāđ‚āļ—āļĐāļ„āļ§āļēāļĄāļœāļīāļ” āļāļĢāļ“āļĩāđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ āļēāļ„āļ—āļąāļ“āļ‘āđŒ, āļ•āļąāļ”āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™, āļĨāļ”āļ‚āļąāđ‰āļ™āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™ | āļāļĢāļ“āļĩāļĢāđ‰āļēāļĒāđāļĢāļ‡: āļ›āļĨāļ”āļ­āļ­āļ, āđ„āļĨāđˆāļ­āļ­āļ"); + + b.Property("DisciplineDisciplinaryId") + .HasColumnType("char(36)"); + + b.Property("EndDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļŠāļīāđ‰āļ™āļŠāļļāļ”āļāļēāļĢāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("OffenseDetails") + .HasColumnType("longtext") + .HasComment("āļĨāļąāļāļĐāļ“āļ°āļ„āļ§āļēāļĄāļœāļīāļ”āļ„āļĢāļąāđ‰āļ‡āđāļĢāļāļˆāļ°āđ€āļ›āđ‡āļ™ 'āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ' (NOT_SPECIFIED āļ„āļ·āļ­ āļĒāļąāļ‡āđ„āļĄāđˆāļĢāļ°āļšāļļ, NOT_DEADLY āļ„āļ·āļ­ āđ„āļĄāđˆāļĢāđ‰āļēāļĒāđāļĢāļ‡, DEADLY āļ„āļ·āļ­ āļĢāđ‰āļēāļĒāđāļĢāļ‡)"); + + b.Property("Organization") + .HasColumnType("longtext") + .HasComment("āļŠāļąāļ‡āļāļąāļ”"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("PosNo") + .HasColumnType("longtext") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("Position") + .HasColumnType("longtext") + .HasComment("āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("PositionLevel") + .HasColumnType("longtext") + .HasComment("āļĢāļ°āļ”āļąāļš"); + + b.Property("PositionType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("Salary") + .HasColumnType("double") + .HasComment("āđ€āļ‡āļīāļ™āđ€āļ”āļ·āļ­āļ™"); + + b.Property("StartDateSuspend") + .HasColumnType("datetime(6)") + .HasComment("āļ§āļąāļ™āļ—āļĩāđˆāļŠāļąāđˆāļ‡āļžāļąāļāļĢāļēāļŠāļāļēāļĢ/āđƒāļŦāđ‰āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢāđ„āļ§āđ‰āļāđˆāļ­āļ™"); + + b.Property("Status") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ°āļ­āļ­āļāļ„āļģāļŠāļąāđˆāļ‡"); + + b.Property("Title") + .HasColumnType("text") + .HasComment("āđ€āļĢāļ·āđˆāļ­āļ‡āļ—āļĩāđˆāļĢāđ‰āļ­āļ‡āđ€āļĢāļĩāļĒāļ™"); + + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4ShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("posLevelId") + .HasColumnType("longtext") + .HasComment("id āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posLevelName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĢāļ°āļ”āļąāļšāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posMasterNo") + .HasColumnType("int") + .HasComment("āđ€āļĨāļ‚āļ—āļĩāđˆāļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeId") + .HasColumnType("longtext") + .HasComment("id āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("posTypeName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ•āļģāđāļŦāļ™āđˆāļ‡"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootShortName") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļĒāđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.HasKey("Id"); + + b.HasIndex("DisciplineDisciplinaryId"); + + b.ToTable("DisciplineReport_Profiles"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.ProfileComplaintInvestigate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenId") + .HasMaxLength(13) + .HasColumnType("varchar(13)") + .HasComment("āļĢāļŦāļąāļŠāļšāļąāļ•āļĢāļ›āļĢāļ°āļŠāļēāļŠāļ™"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("āļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨāđ€āļĄāļ·āđˆāļ­"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id āļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āđ‰āļ­āļĄāļđāļĨ"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļŠāļ·āđˆāļ­"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("āļ™āļēāļĄāļŠāļāļļāļĨ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("āļŠāļ·āđˆāļ­ User āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id āļ—āļĩāđˆāđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("āđāļāđ‰āđ„āļ‚āļ‚āđ‰āļ­āļĄāļđāļĨāļĨāđˆāļēāļŠāļļāļ”āđ€āļĄāļ·āđˆāļ­"); + + b.Property("PersonId") + .HasColumnType("longtext") + .HasComment("id āļ­āđ‰āļēāļ‡āļ­āļīāļ‡ profile"); + + b.Property("Prefix") + .HasColumnType("longtext") + .HasComment("āļ„āļģāļ™āļģāļŦāļ™āđ‰āļē"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1Dna"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2Dna"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3Dna"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4Dna"); + + b.Property("commandType") + .HasColumnType("longtext") + .HasComment("āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ—āļēāļ‡āļ§āļīāļ™āļąāļĒ (C-PM-19->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāļ›āļĨāļ”āļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ C-PM-20->āļ„āļģāļŠāļąāđˆāļ‡āļĨāļ‡āđ‚āļ—āļĐāđ„āļĨāđˆāļ­āļ­āļāļˆāļēāļāļĢāļēāļŠāļāļēāļĢ)"); + + b.Property("profileType") + .HasColumnType("longtext") + .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ rootDna"); + + b.HasKey("Id"); + + b.ToTable("ProfileComplaintInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Docs") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal_History", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", "DisciplineComplaint_Appeal") + .WithMany("DisciplineComplaint_Appeal_Historys") + .HasForeignKey("DisciplineComplaint_AppealId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint_Appeal"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Docs") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineComplaint_Profiles") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineDisciplinarys") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinaryExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinaryExtends") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DirectorInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DirectorInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocInvestigateRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocInvestigateRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocOther", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocOthers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRecordAccuser", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRecordAccusers") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocRelevant", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocRelevants") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocResult", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocResults") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocSummaryEvidence", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocSummaryEvidences") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_DocWitnesses", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_DocWitnessess") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany("DisciplineDisciplinary_ProfileComplaintInvestigates") + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", "DisciplineComplaint") + .WithMany("DisciplineInvestigates") + .HasForeignKey("DisciplineComplaintId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineComplaint"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateExtend", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateExtends") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigateRelevant_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigateRelevant_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Director", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", "DisciplineDirector") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineDirectorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Directors") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDirector"); + + b.Navigation("DisciplineInvestigate"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_Doc", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_Docs") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_DocComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_DocComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate_ProfileComplaint", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", "DisciplineInvestigate") + .WithMany("DisciplineInvestigate_ProfileComplaints") + .HasForeignKey("DisciplineInvestigateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Domain.Models.Discipline.Document", "DocumentReject") + .WithMany() + .HasForeignKey("DocumentRejectId"); + + b.Navigation("DisciplineInvestigate"); + + b.Navigation("DocumentReject"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b => + { + b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary") + .WithMany() + .HasForeignKey("DisciplineDisciplinaryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DisciplineDisciplinary"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b => + { + b.Navigation("DisciplineComplaint_Docs"); + + b.Navigation("DisciplineComplaint_Profiles"); + + b.Navigation("DisciplineInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Appeal", b => + { + b.Navigation("DisciplineComplaint_Appeal_Docs"); + + b.Navigation("DisciplineComplaint_Appeal_Historys"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b => + { + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineInvestigate_Directors"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", b => + { + b.Navigation("DisciplineDisciplinaryExtends"); + + b.Navigation("DisciplineDisciplinary_DirectorInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocComplaintInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocInvestigateRelevants"); + + b.Navigation("DisciplineDisciplinary_DocInvestigates"); + + b.Navigation("DisciplineDisciplinary_DocOthers"); + + b.Navigation("DisciplineDisciplinary_DocRecordAccusers"); + + b.Navigation("DisciplineDisciplinary_DocRelevants"); + + b.Navigation("DisciplineDisciplinary_DocResults"); + + b.Navigation("DisciplineDisciplinary_DocSummaryEvidences"); + + b.Navigation("DisciplineDisciplinary_DocWitnessess"); + + b.Navigation("DisciplineDisciplinary_ProfileComplaintInvestigates"); + }); + + modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineInvestigate", b => + { + b.Navigation("DisciplineDisciplinarys"); + + b.Navigation("DisciplineInvestigateExtends"); + + b.Navigation("DisciplineInvestigateRelevant_Docs"); + + b.Navigation("DisciplineInvestigate_Directors"); + + b.Navigation("DisciplineInvestigate_DocComplaints"); + + b.Navigation("DisciplineInvestigate_Docs"); + + b.Navigation("DisciplineInvestigate_ProfileComplaints"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250619175842_update_table_discipline_add_dna.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250619175842_update_table_discipline_add_dna.cs new file mode 100644 index 00000000..8f8db0e1 --- /dev/null +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250619175842_update_table_discipline_add_dna.cs @@ -0,0 +1,198 @@ +ïŧŋusing Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb +{ + /// + public partial class update_table_discipline_add_dna : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "child1", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1DnaId", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child1Id", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2DnaId", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child2Id", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3DnaId", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child3Id", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4DnaId", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "child4Id", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "root", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootDnaId", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "rootId", + table: "DisciplineComplaint_Appeals", + type: "longtext", + nullable: true, + comment: "id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "child1", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "child1DnaId", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "child1Id", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "child2", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "child2DnaId", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "child2Id", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "child3", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "child3DnaId", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "child3Id", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "child4", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "child4DnaId", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "child4Id", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "root", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "rootDnaId", + table: "DisciplineComplaint_Appeals"); + + migrationBuilder.DropColumn( + name: "rootId", + table: "DisciplineComplaint_Appeals"); + } + } +} diff --git a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs index 0b64f30d..414bf536 100644 --- a/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs +++ b/BMA.EHR.Infrastructure/Migrations/DisciplineDb/DisciplineDbContextModelSnapshot.cs @@ -245,10 +245,70 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb .HasColumnType("int") .HasComment("āļ›āļĩāļ‡āļšāļ›āļĢāļ°āļĄāļēāļ“"); + b.Property("child1") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child1Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child1"); + + b.Property("child2") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child2Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child2"); + + b.Property("child3") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child3Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child3"); + + b.Property("child4") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4DnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + + b.Property("child4Id") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ child4"); + b.Property("profileType") .HasColumnType("longtext") .HasComment("āļŠāļ–āļēāļ™āļ āļēāļž (OFFICER->āļ‚āđ‰āļēāļĢāļēāļŠāļāļēāļĢ EMPLOYEE->āļĨāļđāļāļˆāđ‰āļēāļ‡āļ›āļĢāļ°āļˆāļģ)"); + b.Property("root") + .HasColumnType("longtext") + .HasComment("āļŠāļ·āđˆāļ­āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootDnaId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + + b.Property("rootId") + .HasColumnType("longtext") + .HasComment("id āļŦāļ™āđˆāļ§āļĒāļ‡āļēāļ™ root"); + b.HasKey("Id"); b.ToTable("DisciplineComplaint_Appeals"); From 065fafc3d7c85d8167e78e7a14afc0ee4a27cc65 Mon Sep 17 00:00:00 2001 From: kittapath <> Date: Fri, 20 Jun 2025 10:29:45 +0700 Subject: [PATCH 383/879] edit permission --- .../DisciplineComplaint_AppealController.cs | 2 +- .../Controllers/InsigniaManageController.cs | 4 ++-- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 10 +++++----- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 8 ++++---- .../Controllers/PlacementAppointmentController.cs | 2 +- .../PlacementAppointmentEmployeeController.cs | 2 +- .../Controllers/PlacementOfficerController.cs | 2 +- .../Controllers/PlacementReceiveController.cs | 2 +- .../Controllers/PlacementRepatriationController.cs | 2 +- .../Controllers/PlacementTransferController.cs | 2 +- .../Controllers/RetirementDeceasedController.cs | 2 +- .../Controllers/RetirementOtherController.cs | 2 +- .../Controllers/RetirementOutController.cs | 2 +- .../Controllers/RetirementResignController.cs | 6 +++--- .../Controllers/RetirementResignEmployeeController.cs | 6 +++--- 15 files changed, 27 insertions(+), 27 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs index 061a53ed..85f1d1e5 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs @@ -720,7 +720,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs index 0e8e94e2..6c64eb87 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs @@ -605,7 +605,7 @@ namespace BMA.EHR.Insignia.Service.Controllers } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -881,7 +881,7 @@ namespace BMA.EHR.Insignia.Service.Controllers if (insigniaType == null) return Error(GlobalMessages.InsigniaTypeNotFound); - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 260fe484..8c2e8412 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -243,7 +243,7 @@ namespace BMA.EHR.Leave.Service.Controllers positionLeaveName = profile!.PositionLeaveName == null ? "-" : profile!.PositionLeaveName.ToThaiNumber(), organizationName = profile!.Oc!.ToThaiNumber() ?? "", wifeDayName = data.WifeDayName ?? "", - wifeDayDateBorn =data.WifeDayDateBorn == null || data.WifeDayDateBorn == "" ? "" : DateTime.Parse(data.WifeDayDateBorn).ToThaiShortDate().ToThaiNumber(), + wifeDayDateBorn = data.WifeDayDateBorn == null || data.WifeDayDateBorn == "" ? "" : DateTime.Parse(data.WifeDayDateBorn).ToThaiShortDate().ToThaiNumber(), leaveDateStart = data.LeaveStartDate.Date.ToThaiShortDate().ToThaiNumber(), leaveDateEnd = data.LeaveEndDate.Date.ToThaiShortDate().ToThaiNumber(), LeaveTotal = data.LeaveTotal.ToString().ToThaiNumber(), //data.LeaveStartDate.DiffDay(data.LeaveEndDate).ToString().ToThaiNumber(), @@ -956,7 +956,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var profile = new List(); - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -1363,7 +1363,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var profile = new List(); - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -1679,7 +1679,7 @@ namespace BMA.EHR.Leave.Service.Controllers var employees = new List(); var count = 1; - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -1785,7 +1785,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index ebe2757d..134c081f 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1594,7 +1594,7 @@ namespace BMA.EHR.Leave.Service.Controllers //var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminWithAuthAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate, keycloakList); //var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate); - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -1741,7 +1741,7 @@ namespace BMA.EHR.Leave.Service.Controllers .OrderBy(x => x.Seq) .ToList(); - foreach(var approver in approvers) + foreach (var approver in approvers) { // Send Notification var noti1 = new Notification @@ -1753,7 +1753,7 @@ namespace BMA.EHR.Leave.Service.Controllers }; _appDbContext.Set().Add(noti1); } - + return Success(); } @@ -1780,7 +1780,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 63701573..25f03ac8 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -81,7 +81,7 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index e9a5b21f..a71747e4 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -80,7 +80,7 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 44a5f6a4..226051cb 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -81,7 +81,7 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index c6d6f0a7..df3646c6 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -82,7 +82,7 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index 9f055cc8..3c30ff18 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -82,7 +82,7 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index 20e4b821..7e7883e5 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -174,7 +174,7 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index b5106358..2b276465 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -86,7 +86,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 7b8d3475..5a3d4413 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -82,7 +82,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index 3f4308c1..a696b6a5 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -83,7 +83,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 16a6f5bf..d2b36c51 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -239,7 +239,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -343,7 +343,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -2109,7 +2109,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index a932eedd..85988965 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -178,7 +178,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -282,7 +282,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -2037,7 +2037,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]; + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); From 058c762eb2956148f29717b752455ea8b2000620 Mon Sep 17 00:00:00 2001 From: kittapath <> Date: Fri, 20 Jun 2025 10:39:17 +0700 Subject: [PATCH 384/879] edit permission --- .../Controllers/DisciplineComplaint_AppealController.cs | 2 +- BMA.EHR.Insignia/Controllers/InsigniaManageController.cs | 4 ++-- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 8 ++++---- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 4 ++-- .../Controllers/PlacementAppointmentController.cs | 2 +- .../Controllers/PlacementAppointmentEmployeeController.cs | 2 +- .../Controllers/PlacementOfficerController.cs | 2 +- .../Controllers/PlacementReceiveController.cs | 2 +- .../Controllers/PlacementRepatriationController.cs | 2 +- .../Controllers/PlacementTransferController.cs | 2 +- .../Controllers/RetirementDeceasedController.cs | 2 +- .../Controllers/RetirementOtherController.cs | 2 +- .../Controllers/RetirementOutController.cs | 2 +- .../Controllers/RetirementResignController.cs | 6 +++--- .../Controllers/RetirementResignEmployeeController.cs | 6 +++--- 15 files changed, 24 insertions(+), 24 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs index 85f1d1e5..3804c18f 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs @@ -720,7 +720,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs index 6c64eb87..be6ba483 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs @@ -605,7 +605,7 @@ namespace BMA.EHR.Insignia.Service.Controllers } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -881,7 +881,7 @@ namespace BMA.EHR.Insignia.Service.Controllers if (insigniaType == null) return Error(GlobalMessages.InsigniaTypeNotFound); - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 8c2e8412..431e00b7 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -956,7 +956,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var profile = new List(); - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -1363,7 +1363,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var profile = new List(); - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -1679,7 +1679,7 @@ namespace BMA.EHR.Leave.Service.Controllers var employees = new List(); var count = 1; - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -1785,7 +1785,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 134c081f..310cc84f 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1594,7 +1594,7 @@ namespace BMA.EHR.Leave.Service.Controllers //var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminWithAuthAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate, keycloakList); //var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate); - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -1780,7 +1780,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 25f03ac8..448cc9b8 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -81,7 +81,7 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index a71747e4..04a03e57 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -80,7 +80,7 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index 226051cb..f96e0f9c 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -81,7 +81,7 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index df3646c6..e9f531f5 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -82,7 +82,7 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index 3c30ff18..9a16af88 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -82,7 +82,7 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index 7e7883e5..14def837 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -174,7 +174,7 @@ namespace BMA.EHR.Placement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 2b276465..844fec5e 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -86,7 +86,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 5a3d4413..2afa095d 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -82,7 +82,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index a696b6a5..f823c8ba 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -83,7 +83,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index d2b36c51..54b47dda 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -239,7 +239,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -343,7 +343,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -2109,7 +2109,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 85988965..02499eca 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -178,7 +178,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -282,7 +282,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -2037,7 +2037,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]?.ToString(); + string role = jsonData["result"]["privilege"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); From 8870139cbe7455400823b0696b00c5a4986bdc53 Mon Sep 17 00:00:00 2001 From: kittapath <> Date: Fri, 20 Jun 2025 10:46:57 +0700 Subject: [PATCH 385/879] permission --- .../Controllers/DisciplineComplaint_AppealController.cs | 2 +- BMA.EHR.Insignia/Controllers/InsigniaManageController.cs | 4 ++-- BMA.EHR.Leave/Controllers/LeaveReportController.cs | 8 ++++---- BMA.EHR.Leave/Controllers/LeaveRequestController.cs | 4 ++-- .../Controllers/PlacementAppointmentController.cs | 4 ++-- .../Controllers/PlacementAppointmentEmployeeController.cs | 4 ++-- .../Controllers/PlacementOfficerController.cs | 4 ++-- .../Controllers/PlacementReceiveController.cs | 4 ++-- .../Controllers/PlacementRepatriationController.cs | 4 ++-- .../Controllers/PlacementTransferController.cs | 4 ++-- .../Controllers/RetirementDeceasedController.cs | 4 ++-- .../Controllers/RetirementOtherController.cs | 2 +- .../Controllers/RetirementOutController.cs | 2 +- .../Controllers/RetirementResignController.cs | 6 +++--- .../Controllers/RetirementResignEmployeeController.cs | 6 +++--- 15 files changed, 31 insertions(+), 31 deletions(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs index 3804c18f..85f1d1e5 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs @@ -720,7 +720,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs index be6ba483..6c64eb87 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaManageController.cs @@ -605,7 +605,7 @@ namespace BMA.EHR.Insignia.Service.Controllers } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -881,7 +881,7 @@ namespace BMA.EHR.Insignia.Service.Controllers if (insigniaType == null) return Error(GlobalMessages.InsigniaTypeNotFound); - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Leave/Controllers/LeaveReportController.cs b/BMA.EHR.Leave/Controllers/LeaveReportController.cs index 431e00b7..8c2e8412 100644 --- a/BMA.EHR.Leave/Controllers/LeaveReportController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveReportController.cs @@ -956,7 +956,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var profile = new List(); - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -1363,7 +1363,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } var profile = new List(); - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -1679,7 +1679,7 @@ namespace BMA.EHR.Leave.Service.Controllers var employees = new List(); var count = 1; - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -1785,7 +1785,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs index 310cc84f..134c081f 100644 --- a/BMA.EHR.Leave/Controllers/LeaveRequestController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveRequestController.cs @@ -1594,7 +1594,7 @@ namespace BMA.EHR.Leave.Service.Controllers //var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminWithAuthAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate, keycloakList); //var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate); - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -1780,7 +1780,7 @@ namespace BMA.EHR.Leave.Service.Controllers return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 448cc9b8..f043b65e 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -75,13 +75,13 @@ namespace BMA.EHR.Placement.Service.Controllers [HttpGet()] public async Task> GetListByAdmin(string? status = "ALL") { - var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_PROMOTION_OFFICER", UserId); + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_PROMOTION_OFFICER"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index 04a03e57..cd8845b8 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -74,13 +74,13 @@ namespace BMA.EHR.Placement.Service.Controllers [HttpGet()] public async Task> GetListByAdmin(string? status = "ALL") { - var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_PROMOTION_EMP", UserId); + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_PROMOTION_EMP"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs index f96e0f9c..cc868b2b 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementOfficerController.cs @@ -75,13 +75,13 @@ namespace BMA.EHR.Placement.Service.Controllers [HttpGet()] public async Task> GetListByAdmin(string? status = "ALL") { - var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_TEMPDUTY", UserId); + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_TEMPDUTY"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index e9f531f5..67eeff36 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -76,13 +76,13 @@ namespace BMA.EHR.Placement.Service.Controllers [HttpGet()] public async Task> GetListByAdmin(string? status = "ALL") { - var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_TRANSFER_RECEIVE", UserId); + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_TRANSFER_RECEIVE"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs index 9a16af88..6935a57d 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementRepatriationController.cs @@ -76,13 +76,13 @@ namespace BMA.EHR.Placement.Service.Controllers [HttpGet()] public async Task> GetListByAdmin(string? status = "ALL") { - var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_TEMPDUTY2", UserId); + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_TEMPDUTY2"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs index 14def837..b7cee90d 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs @@ -168,13 +168,13 @@ namespace BMA.EHR.Placement.Service.Controllers [HttpGet()] public async Task> GetListByAdmin(string? status = "ALL") { - var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_TRANSFER_REQ", UserId); + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_TRANSFER_REQ"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs index 844fec5e..8b3571f4 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementDeceasedController.cs @@ -80,13 +80,13 @@ namespace BMA.EHR.Retirement.Service.Controllers [HttpGet()] public async Task> GetList() { - var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_PASSAWAY", UserId); + var getPermission = await _permission.GetPermissionAPIAsync("LIST", "SYS_PASSAWAY"); var jsonData = JsonConvert.DeserializeObject(getPermission); if (jsonData["status"]?.ToString() != "200") { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 2afa095d..5a3d4413 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -82,7 +82,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs index f823c8ba..a696b6a5 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOutController.cs @@ -83,7 +83,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs index 54b47dda..d2b36c51 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignController.cs @@ -239,7 +239,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -343,7 +343,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -2109,7 +2109,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs index 02499eca..85988965 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementResignEmployeeController.cs @@ -178,7 +178,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -282,7 +282,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); @@ -2037,7 +2037,7 @@ namespace BMA.EHR.Retirement.Service.Controllers { return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden); } - string role = jsonData["result"]["privilege"]?.ToString(); + string role = jsonData["result"]?.ToString(); var nodeId = string.Empty; var profileAdmin = new GetUserOCAllDto(); profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken); From 3e8e461ebe9363073fb422860972401d75c098f8 Mon Sep 17 00:00:00 2001 From: kittapath <> Date: Fri, 20 Jun 2025 12:45:18 +0700 Subject: [PATCH 386/879] =?UTF-8?q?=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=E0=B8=96=E0=B8=B6?= =?UTF-8?q?=E0=B8=87=E0=B9=81=E0=B8=81=E0=B9=88=E0=B8=81=E0=B8=A3=E0=B8=A3?= =?UTF-8?q?=E0=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.idea/projectSettingsUpdater.xml | 3 +- .../.idea/workspace.xml | 88 ++++++++++++++----- .../RetirementDeceasedController.cs | 4 +- .../Controllers/RetirementOutController.cs | 4 +- 4 files changed, 70 insertions(+), 29 deletions(-) diff --git a/.idea/.idea.BMA.EHR.Solution/.idea/projectSettingsUpdater.xml b/.idea/.idea.BMA.EHR.Solution/.idea/projectSettingsUpdater.xml index 4bb9f4d2..64af657f 100644 --- a/.idea/.idea.BMA.EHR.Solution/.idea/projectSettingsUpdater.xml +++ b/.idea/.idea.BMA.EHR.Solution/.idea/projectSettingsUpdater.xml @@ -1,6 +1,7 @@ - \ No newline at end of file diff --git a/.idea/.idea.BMA.EHR.Solution/.idea/workspace.xml b/.idea/.idea.BMA.EHR.Solution/.idea/workspace.xml index 3a284eaf..2fe67b57 100644 --- a/.idea/.idea.BMA.EHR.Solution/.idea/workspace.xml +++ b/.idea/.idea.BMA.EHR.Solution/.idea/workspace.xml @@ -6,6 +6,7 @@ BMA.EHR.Command.Service/BMA.EHR.Command.Service.csproj BMA.EHR.Command.Service/BMA.EHR.Command.Service.csproj BMA.EHR.Command.Service/BMA.EHR.Command.Service.csproj + BMA.EHR.Discipline.Service/BMA.EHR.Discipline.Service.csproj BMA.EHR.Discipline.Service/BMA.EHR.Discipline.Service.csproj BMA.EHR.Discipline.Service/BMA.EHR.Discipline.Service.csproj BMA.EHR.Insignia/BMA.EHR.Insignia.csproj @@ -31,17 +32,14 @@ BMA.EHR.Retirement.Service/BMA.EHR.Retirement.Service.csproj BMA.EHR.Retirement.Service/BMA.EHR.Retirement.Service.csproj BMA.EHR.Retirement.Service/BMA.EHR.Retirement.Service.csproj + LinkageResponseTest/LinkageResponseTest.csproj + LinkageResponseTest/LinkageResponseTest.csproj - - - - - - + - - - - + @@ -589,7 +595,7 @@ - @@ -603,6 +609,8 @@ From 1038d2e894adff14ed4c0d40304be37d37f149e5 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 23 Jun 2025 16:08:46 +0700 Subject: [PATCH 390/879] change git ignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 88bfb4ba..529fa551 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,9 @@ # Mono auto generated files mono_crash.* +.idea/ +.vs/ + # Build results [Dd]ebug/ [Dd]ebugPublic/ From b9931ce2e403d90c20e6ee457a8ac49cb77cff3f Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 23 Jun 2025 16:09:54 +0700 Subject: [PATCH 391/879] test --- .../.idea/AndroidProjectSystem.xml | 6 ++ .idea/.idea.BMA.EHR.Solution/.idea/aws.xml | 11 +++ .../.idea/projectSettingsUpdater.xml | 1 + .../shelved.patch | 67 +++++++++++++++++++ .../.idea/workspace.xml | 30 ++++----- 5 files changed, 100 insertions(+), 15 deletions(-) create mode 100644 .idea/.idea.BMA.EHR.Solution/.idea/AndroidProjectSystem.xml create mode 100644 .idea/.idea.BMA.EHR.Solution/.idea/aws.xml create mode 100644 .idea/.idea.BMA.EHR.Solution/.idea/shelf/Uncommitted_changes_before_Merge_at_23_6_25_16_09_[Changes]/shelved.patch diff --git a/.idea/.idea.BMA.EHR.Solution/.idea/AndroidProjectSystem.xml b/.idea/.idea.BMA.EHR.Solution/.idea/AndroidProjectSystem.xml new file mode 100644 index 00000000..e82600c9 --- /dev/null +++ b/.idea/.idea.BMA.EHR.Solution/.idea/AndroidProjectSystem.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/.idea.BMA.EHR.Solution/.idea/aws.xml b/.idea/.idea.BMA.EHR.Solution/.idea/aws.xml new file mode 100644 index 00000000..b63b642c --- /dev/null +++ b/.idea/.idea.BMA.EHR.Solution/.idea/aws.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/.idea/.idea.BMA.EHR.Solution/.idea/projectSettingsUpdater.xml b/.idea/.idea.BMA.EHR.Solution/.idea/projectSettingsUpdater.xml index 64af657f..ef20cb08 100644 --- a/.idea/.idea.BMA.EHR.Solution/.idea/projectSettingsUpdater.xml +++ b/.idea/.idea.BMA.EHR.Solution/.idea/projectSettingsUpdater.xml @@ -2,6 +2,7 @@ \ No newline at end of file diff --git a/.idea/.idea.BMA.EHR.Solution/.idea/shelf/Uncommitted_changes_before_Merge_at_23_6_25_16_09_[Changes]/shelved.patch b/.idea/.idea.BMA.EHR.Solution/.idea/shelf/Uncommitted_changes_before_Merge_at_23_6_25_16_09_[Changes]/shelved.patch new file mode 100644 index 00000000..96d6b3d9 --- /dev/null +++ b/.idea/.idea.BMA.EHR.Solution/.idea/shelf/Uncommitted_changes_before_Merge_at_23_6_25_16_09_[Changes]/shelved.patch @@ -0,0 +1,67 @@ +Index: .idea/.idea.BMA.EHR.Solution/.idea/workspace.xml +IDEA additional info: +Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP +<+>\n\n \n BMA.EHR.CheckInConsumer/BMA.EHR.CheckInConsumer.csproj\n BMA.EHR.CheckInConsumer/BMA.EHR.CheckInConsumer.csproj\n BMA.EHR.Command.Service/BMA.EHR.Command.Service.csproj\n BMA.EHR.Command.Service/BMA.EHR.Command.Service.csproj\n BMA.EHR.Command.Service/BMA.EHR.Command.Service.csproj\n BMA.EHR.Discipline.Service/BMA.EHR.Discipline.Service.csproj\n BMA.EHR.Discipline.Service/BMA.EHR.Discipline.Service.csproj\n BMA.EHR.Discipline.Service/BMA.EHR.Discipline.Service.csproj\n BMA.EHR.Insignia/BMA.EHR.Insignia.csproj\n BMA.EHR.Insignia/BMA.EHR.Insignia.csproj\n BMA.EHR.Insignia/BMA.EHR.Insignia.csproj\n BMA.EHR.Leave/BMA.EHR.Leave.csproj\n BMA.EHR.Leave/BMA.EHR.Leave.csproj\n BMA.EHR.Leave/BMA.EHR.Leave.csproj\n BMA.EHR.MetaData.Service/BMA.EHR.MetaData.Service.csproj\n BMA.EHR.MetaData.Service/BMA.EHR.MetaData.Service.csproj\n BMA.EHR.MetaData.Service/BMA.EHR.MetaData.Service.csproj\n BMA.EHR.OrganizationEmployee.Service/BMA.EHR.OrganizationEmployee.Service.csproj\n BMA.EHR.OrganizationEmployee.Service/BMA.EHR.OrganizationEmployee.Service.csproj\n BMA.EHR.OrganizationEmployee.Service/BMA.EHR.OrganizationEmployee.Service.csproj\n BMA.EHR.Placement.Service/BMA.EHR.Placement.Service.csproj\n BMA.EHR.Placement.Service/BMA.EHR.Placement.Service.csproj\n BMA.EHR.Placement.Service/BMA.EHR.Placement.Service.csproj\n BMA.EHR.Report.Service/BMA.EHR.Report.Service.csproj\n BMA.EHR.Report.Service/BMA.EHR.Report.Service.csproj\n BMA.EHR.Report.Service/BMA.EHR.Report.Service.csproj\n BMA.EHR.Report.Service/BMA.EHR.Report.Service.csproj\n BMA.EHR.Report.Service/BMA.EHR.Report.Service.csproj\n BMA.EHR.Retirement.Service/BMA.EHR.Retirement.Service.csproj\n BMA.EHR.Retirement.Service/BMA.EHR.Retirement.Service.csproj\n BMA.EHR.Retirement.Service/BMA.EHR.Retirement.Service.csproj\n LinkageResponseTest/LinkageResponseTest.csproj\n LinkageResponseTest/LinkageResponseTest.csproj\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {\n "customColor": "",\n "associatedIndex": 2\n}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n 1724638841465\n \n \n \n \n \n \n \n \n \n \n \n \n file://$PROJECT_DIR$/BMA.EHR.Leave/Controllers/LeaveController.cs\n 1159\n \n \n \n \n \n \n \n \n \n \n +Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP +<+>UTF-8 +=================================================================== +diff --git a/.idea/.idea.BMA.EHR.Solution/.idea/workspace.xml b/.idea/.idea.BMA.EHR.Solution/.idea/workspace.xml +--- a/.idea/.idea.BMA.EHR.Solution/.idea/workspace.xml (revision 27acadbb077eded5c9f01ce18df7d9a5ef9bfb63) ++++ b/.idea/.idea.BMA.EHR.Solution/.idea/workspace.xml (date 1750669762540) +@@ -66,22 +66,22 @@ + +- { ++ "keyToString": { ++ ".NET Launch Settings Profile.BMA.EHR.Leave: https.executor": "Debug", ++ ".NET Launch Settings Profile.BMA.EHR.Placement.Service: http.executor": "Run", ++ "RunOnceActivity.ShowReadmeOnStart": "true", ++ "RunOnceActivity.git.unshallow": "true", ++ "git-widget-placeholder": "develop", ++ "node.js.detected.package.eslint": "true", ++ "node.js.detected.package.tslint": "true", ++ "node.js.selected.package.eslint": "(autodetect)", ++ "node.js.selected.package.tslint": "(autodetect)", ++ "nodejs_package_manager_path": "npm", ++ "settings.editor.selected.configurable": "preferences.lookFeel", ++ "vue.rearranger.settings.migration": "true" + } +-}]]> ++} + + + - { + "keyToString": { + ".NET Launch Settings Profile.BMA.EHR.Leave: https.executor": "Debug", + ".NET Launch Settings Profile.BMA.EHR.Placement.Service: http.executor": "Run", + "RunOnceActivity.ShowReadmeOnStart": "true", + "RunOnceActivity.git.unshallow": "true", + "git-widget-placeholder": "develop", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "settings.editor.selected.configurable": "preferences.lookFeel", + "vue.rearranger.settings.migration": "true" } -}]]> +} - + + + + + - + { "customColor": "", "associatedIndex": 2 @@ -66,23 +71,23 @@ - { - "keyToString": { - ".NET Launch Settings Profile.BMA.EHR.Leave: https.executor": "Debug", - ".NET Launch Settings Profile.BMA.EHR.Placement.Service: http.executor": "Run", - "RunOnceActivity.ShowReadmeOnStart": "true", - "RunOnceActivity.git.unshallow": "true", - "git-widget-placeholder": "develop", - "node.js.detected.package.eslint": "true", - "node.js.detected.package.tslint": "true", - "node.js.selected.package.eslint": "(autodetect)", - "node.js.selected.package.tslint": "(autodetect)", - "nodejs_package_manager_path": "npm", - "settings.editor.selected.configurable": "preferences.lookFeel", - "vue.rearranger.settings.migration": "true" + - +}]]> +